MSG 2690 ISSUE 564 Created on 2008-07-31.03:45:37 by michael, last changed 2008-07-31.03:45:37 by michael. https://roundup.mplayerhq.hu/roundup/ffmpeg/msg2690 FFmpeg (version r14481) has a problem with a few-second clip recorded from HDTV. Command and output: =============== $ ffmpeg -i error-decoding-frame-no-sync-byte.mpg test.mp4 FFmpeg version SVN-r14481-Televise, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-memalign-hack --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-libmp3lame --enable-liba52 --enable-libxvid --enable-libfaac --enable-libfaad --enable-pthreads --enable-libx264 --disable-shared libavutil version: 49.7.0 libavcodec version: 51.62.0 libavformat version: 52.18.0 libavdevice version: 52.0.0 built on Jul 31 2008 12:59:59, gcc: 4.0.1 (Apple Inc. build 5483) No accelerated IMDCT transform found [liba52 @ 0x1007610]Error decoding frame, no sync byte at begin [mpegts @ 0x1002410]Could not find codec parameters (Audio: liba52) Input #0, mpegts, from 'error-decoding-frame-no-sync-byte.mpg': Duration: 00:00:01.93, start: 16190.954589, bitrate: 5466 kb/s Program 1585 TEN HD Program 1589 TEN Digital Stream #0.0[0x200]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], 9000 kb/s, 25.00 tb(r) Stream #0.1[0x28a](eng): Audio: mp2, 48000 Hz, stereo, 256 kb/s Stream #0.2[0x28b](eng): Audio: liba52, 48000 Hz, stereo, 256 kb/s Program 1592 TEN HD Output #0, mp4, to 'test.mp4': Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25.00 tb(c) Stream #0.1(eng): Audio: libfaac, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height =============== FFmpeg was compiled with: a52dec-0.7.4.tar.gz faac-1.26.tar.gz faad2-2.6.1.tar.gz gpac-0.4.4.tar.gz lame-3.98b8.tar.gz xvidcore-1.1.3.tar.gz x264-snapshot-20080730-2245.tar.bz2 I can successfully convert this clip using an older version of FFmpeg, bundled with the Mac OS X gui tool, FFMpegX: FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard Mac OSX universal build for ffmpegX configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264 libavutil version: 49.0.0 libavcodec version: 51.9.0 libavformat version: 50.4.0 built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250) ffmpeg CVS libavutil 3211264 libavcodec 3344640 libavformat 3277824 Output from this older version: =================== Fmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard Mac OSX universal build for ffmpegX configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264 libavutil version: 49.0.0 libavcodec version: 51.9.0 libavformat version: 50.4.0 built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250) Input #0, mpegts, from 'error-decoding-frame-no-sync-byte.mpg': Duration: 00:00:01.8, start: 16190.954589, bitrate: 5630 kb/s Stream #0.0[0x200], 25.00 fps(r): Video: mpeg2video, yuv420p, 720x576, 9000 kb/s Stream #0.1[0x28a](eng): Audio: mp2, 48000 Hz, stereo, 256 kb/s Stream #0.2[0x28b](eng): Audio: ac3, 48000 Hz, stereo, 256 kb/s Output #0, mp4, to 'test2.mp4': Stream #0.0, 25.00 fps(c): Video: mpeg4, yuv420p, 720x576, q=2-31, 200 kb/s Stream #0.1: Audio: aac, 48000 Hz, stereo, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 [mpeg4 @ 0x54340c]removing common factors from framerate Press [q] to stop encoding frame= 55 q=31.0 Lsize= 260kB time=1.8 bitrate=1186.8kbits/s video:175kB audio:14kB global headers:0kB muxing overhead 37.528712% ================== The sample clip has been uploaded to ftp://upload.mplayerhq.hu/MPlayer/incoming/issue-michael/error-decoding-frame-no-sync-byte.mpg