Hello Users,
The following codes creates (is supposed) to flv file. However I am getting a file which plays nothing.
FLV flv = new FLV(new File("OFFLINE_STREAM" +cnt+ ".flv"), true);
FLVWriter flw = (FLVWriter) flv.getWriter();
flw.setFLV(flv);
ITag tag = new Tag();
tag.setTimestamp(1);
tag.setDataType(ITag.TYPE_VIDEO);
tag.setBodySize(data.limit());
tag.setBody(data);
flw.writeHeader();
flw.writeTag(tag);
flw.close();
FFMPEG says:-
[flv @ 0x3db6a0]skipping flv packet: type 70, size 5002753, flags 0
[flv @ 0x3db6a0]Could not find codec parameters (Video: 0x0000)
[flv @ 0x3db6a0]Could not find codec parameters (Audio: 0x0000, 0 channels, s16)
What is the error in the above code. If I want to write the frame size, How can I specify?
Thanking you in advance.