[FFmpeg-trac] #1329(undetermined:open): A/V desync with mpeg1video and mp2 in mpeg-ps (was: Re: ffmpeg Que input is backward in time)
FFmpeg
trac at avcodec.org
Wed Jun 6 16:02:23 CEST 2012
#1329: A/V desync with mpeg1video and mp2 in mpeg-ps
-------------------------------------+-------------------------------------
Reporter: burek | Owner:
Type: defect | Status: open
Priority: normal | Component:
Version: git-master | undetermined
Keywords: mpegps | Resolution:
desync | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* keywords: => mpegps desync
* status: new => open
* version: unspecified => git-master
* reproduced: 0 => 1
Comment:
Sample uploaded to samples/ffmpeg-bugs/trac/ticket1329
Without -async 1, the resulting file is very heavily out-of-sync, with
-async 1, small desync is still visible imo after 30 seconds, not a
regression afaict.
Seeking does not work for the sample, works fine with MPlayer.
{{{
$ ffmpeg -async 1 -i invalid_cliping_on_screen_but_encodes_finishes.mpg
-q:v 2 -strict experimental out.mp4
ffmpeg version N-41352-gc8a1101 Copyright (c) 2000-2012 the FFmpeg
developers
built on Jun 6 2012 07:55:08 with gcc 4.3.2
configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-gpl --enable-
libopenjpeg --enable-libvorbis --enable-libspeex --enable-libmp3lame
--enable-libtheora --extra-ldflags=-lm --enable-libvpx --enable-libxavs
libavutil 51. 56.100 / 51. 56.100
libavcodec 54. 25.100 / 54. 25.100
libavformat 54. 6.101 / 54. 6.101
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 78.100 / 2. 78.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mpeg @ 0x90143c0] max_analyze_duration 5000000 reached at 5015467
Input #0, mpeg, from 'invalid_cliping_on_screen_but_encodes_finishes.mpg':
Duration: 26:31:34.47, start: 0.620000, bitrate: 0 kb/s
Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 640x480 [SAR 1:1 DAR
4:3], 1452 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16, 128 kb/s
[buffer @ 0x901c620] w:640 h:480 pixfmt:yuv420p tb:1/90000 sar:1/1
sws_param:flags=2
[ffmpeg_buffersink @ 0x901c580] No opaque field provided
-async is forwarded to lavfi similarly to -af
aresample=min_comp=0.001:min_hard_comp=0.100000.
[aresample @ 0x9015760] chl:stereo fmt:s16 r:44100Hz -> chl:stereo fmt:flt
r:44100Hz
Output #0, mp4, to 'out.mp4':
Metadata:
encoder : Lavf54.6.101
Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 640x480 [SAR
1:1 DAR 4:3], q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo,
flt, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg1video -> mpeg4)
Stream #0:1 -> #0:1 (mp2 -> aac)
Press [q] to stop, [?] for help
frame= 1279 fps= 65 q=2.0 Lsize= 23874kB time=00:00:51.16
bitrate=3822.8kbits/s dup=3 drop=0
video:23092kB audio:748kB global headers:0kB muxing overhead 0.141022%
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1329#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list