Hey all,
Im having problems getting correct pictures from the video stream which
is opened with
av_register_all();
AVFormatContext *formatContext = NULL;
if( av_open_input_file(&formatContext, fn.toAscii(), NULL, 0, NULL)
!= 0 ) {
return false;
}
if( av_find_stream_info(formatContext) < 0 ) {
return false;
}
videoState->formatContext = formatContext;
av_dump_format(formatContext,0, fn.toAscii(), 0);
the dump returns
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f52fc01b8c0] multiple edit list entries,
a/v desync might occur, patch welcome
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
date : 2011-07-25T07:15:00.000+01:00
encoder : Lavf53.5.0
(...)
Duration: 00:00:05.08, start: 0.000000, bitrate: 931 kb/s
Stream #0.0(eng): Video: h264 (Main), yuv420p, 512x288 [PAR 1:1 DAR
16:9], 824 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0.1(ger): Audio: aac, 44100 Hz, stereo, s16, 125 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
that seems to be correct, however, the VideoDecoder wont get a complete
picture with avcodec_decode_video2(videoState->videoCodecContext, frame,
&frameFinished, packet);
I uploaded a sample to: http://www.asamnet.de/~winterch/test.mp4
Do you notice the same problems? If I use ffmpeg -i test.mp4 output.mp4;
output.mp4 is played correctly.
Thanks,
Christoph
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api