Hi, I'm trying to create an mpeg file container with an unusual stream configuration because I need lossless compression.
Since such a file format is not intended for a mpeg file and I didn't find a documentation; I have difficulties trying to fill the AVFormatContext structure. All I need is a way to fill out properly the AVFormatContext structure.... Here are the details: In order to do that I use the "output_example.cpp" file (I changed only the lines where the audio and video AVStreams are initialized). the DUMP function returns: Output #0, mpeg, to 'test.mpeg': Stream #0.0: Audio: flac, 44100 Hz, stereo, 64 kb/s Stream #0.1: Video: huffyuv, rgb32, 352x288, q=2-31, 400 kb/s, 25.00 tb(c) and IT IS just what I need.... BUT when I read the file (I use the avcodec_sample.0.4.9.cpp for that) the av_open_input_file returns a AVFormatContext which holds wrong information about the steams. The DUMP is: Input #0, mpeg, from 'test.mpeg': Duration: 00:00:04.96, start: 0.000000, bitrate: 23499 kb/s Stream #0.0[0x1c0]: Audio: mp2, 448 kb/s Stream #0.1[0x1e0]: Video: mpeg2video, 90000.00 tb(r) and it is INCORRECT.... How can I read this file? How can I properly initialize the AVFormatContext structure? Thanks in advance, Mauro _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
