[FFmpeg-trac] #488(undetermined:new): Hang on some example files
FFmpeg
trac at avcodec.org
Mon Sep 19 13:55:12 CEST 2011
#488: Hang on some example files
-------------------------------------+-------------------------------------
Reporter: Alex__ | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by Alex__):
> (I suspect you are wrong: FFmpeg does not hang for the sample.)
Let put is this way: it does not hang for the sample on your system . It
does on my (OS X 10.7.1, compiler arguments as shown above with the given
example):
{{{
$ time ffmpeg -y -i sample-issue-488.mpg sample-issue-488.m4v
ffmpeg version N-30062-g4a9b069, Copyright (c) 2000-2011 the FFmpeg
developers
built on Sep 19 2011 13:39:12 with clang 2.1 (tags/Apple/clang-163.7.1)
configuration: --enable-zlib --disable-debug --enable-libfaac --enable-
libx264 --enable-gpl --enable-nonfree --enable-libmp3lame --enable-
libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang
libavutil 51. 16. 0 / 51. 16. 0
libavcodec 53. 16. 0 / 53. 16. 0
libavformat 53. 12. 0 / 53. 12. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 2 / 2. 43. 2
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=3600, dts=7200,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=7200, dts=10800,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=14400, dts=18000,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=18000, dts=21600,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=25200, dts=28800,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=28800, dts=32400,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=36000, dts=39600,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=39600, dts=43200,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=46800, dts=50400,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=50400, dts=54000,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=57600, dts=61200,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=61200, dts=64800,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=68400, dts=72000,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=72000, dts=75600,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=79200, dts=82800,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=82800, dts=86400,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=90000, dts=93600,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=93600, dts=97200,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=100800,
dts=104400, size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=104400,
dts=108000, size=2018
Input #0, mpeg, from 'sample-issue-488.mpg':
Duration: 00:00:01.32, start: 0.000000, bitrate: 1861 kb/s
Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x288 [SAR 178:163
DAR 1958:1467], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
[buffer @ 0x7f88804215e0] w:352 h:288 pixfmt:yuv420p tb:1/1000000
sar:178/163 sws_param:
[libx264 @ 0x7f8880851400] using SAR=178/163
[libx264 @ 0x7f8880851400] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0x7f8880851400] profile High, level 1.3
[libx264 @ 0x7f8880851400] 264 - core 116 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1
ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60
qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, ipod, to 'sample-issue-488.m4v':
Metadata:
encoder : Lavf53.12.0
Stream #0.0: Video: h264 (avc1 / 0x31637661), yuv420p, 352x288 [SAR
178:163 DAR 1958:1467], q=-1--1, 25 tbn, 25 tbc
Stream #0.1: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16,
128 kb/s
Stream mapping:
Stream #0.0 -> #0.0 (mpeg1video -> libx264)
Stream #0.1 -> #0.1 (mp2 -> libfaac)
Press [q] to stop, [?] for help
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=3600, dts=7200,
size=2018
[mpeg @ 0x7f888083d800] Invalid timestamps stream=0, pts=7200, dts=10800,
size=2018
q
^C
Killed: 9
real 0m51.891s
user 1m20.129s
sys 0m1.035s
$
}}}
>
> Try any command line that does not involve an external library, often
ffmpeg -i input -qscale 2 out.avi / out.mpg
Sure:
1. Hangs
{{{
$ time ffmpeg -y -i sample-issue-488.mpg -qscale 2 out.mpg
ffmpeg version N-30062-g4a9b069, Copyright (c) 2000-2011 the FFmpeg
developers
built on Sep 19 2011 13:39:12 with clang 2.1 (tags/Apple/clang-163.7.1)
configuration: --enable-zlib --disable-debug --enable-libfaac --enable-
libx264 --enable-gpl --enable-nonfree --enable-libmp3lame --enable-
libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang
libavutil 51. 16. 0 / 51. 16. 0
libavcodec 53. 16. 0 / 53. 16. 0
libavformat 53. 12. 0 / 53. 12. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 2 / 2. 43. 2
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=3600, dts=7200,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=7200, dts=10800,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=14400, dts=18000,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=18000, dts=21600,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=25200, dts=28800,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=28800, dts=32400,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=36000, dts=39600,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=39600, dts=43200,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=46800, dts=50400,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=50400, dts=54000,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=57600, dts=61200,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=61200, dts=64800,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=68400, dts=72000,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=72000, dts=75600,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=79200, dts=82800,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=82800, dts=86400,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=90000, dts=93600,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=93600, dts=97200,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=100800,
dts=104400, size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=104400,
dts=108000, size=2018
Input #0, mpeg, from 'sample-issue-488.mpg':
Duration: 00:00:01.32, start: 0.000000, bitrate: 1861 kb/s
Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x288 [SAR 178:163
DAR 1958:1467], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
[buffer @ 0x7fee0b4215a0] w:352 h:288 pixfmt:yuv420p tb:1/1000000
sar:178/163 sws_param:
[mpeg @ 0x7fee0b840200] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'out.mpg':
Metadata:
encoder : Lavf53.12.0
Stream #0.0: Video: mpeg1video, yuv420p, 352x288 [SAR 178:163 DAR
1958:1467], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0 (mpeg1video -> mpeg1video)
Stream #0.1 -> #0.1 (mp2 -> mp2)
Press [q] to stop, [?] for help
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=3600, dts=7200,
size=2018
[mpeg @ 0x7fee0b83d800] Invalid timestamps stream=0, pts=7200, dts=10800,
size=2018
}}}
2. Works:
{{{
$ time ffmpeg -y -i sample-issue-488.mpg -qscale 2 out.avi
ffmpeg version N-30062-g4a9b069, Copyright (c) 2000-2011 the FFmpeg
developers
built on Sep 19 2011 13:39:12 with clang 2.1 (tags/Apple/clang-163.7.1)
configuration: --enable-zlib --disable-debug --enable-libfaac --enable-
libx264 --enable-gpl --enable-nonfree --enable-libmp3lame --enable-
libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang
libavutil 51. 16. 0 / 51. 16. 0
libavcodec 53. 16. 0 / 53. 16. 0
libavformat 53. 12. 0 / 53. 12. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 2 / 2. 43. 2
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=3600, dts=7200,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=7200, dts=10800,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=14400, dts=18000,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=18000, dts=21600,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=25200, dts=28800,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=28800, dts=32400,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=36000, dts=39600,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=39600, dts=43200,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=46800, dts=50400,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=50400, dts=54000,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=57600, dts=61200,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=61200, dts=64800,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=68400, dts=72000,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=72000, dts=75600,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=79200, dts=82800,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=82800, dts=86400,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=90000, dts=93600,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=93600, dts=97200,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=100800,
dts=104400, size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=104400,
dts=108000, size=2018
Input #0, mpeg, from 'sample-issue-488.mpg':
Duration: 00:00:01.32, start: 0.000000, bitrate: 1861 kb/s
Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x288 [SAR 178:163
DAR 1958:1467], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
[buffer @ 0x7fcfd8c215a0] w:352 h:288 pixfmt:yuv420p tb:1/1000000
sar:178/163 sws_param:
Output #0, avi, to 'out.avi':
Metadata:
ISFT : Lavf53.12.0
Stream #0.0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 352x288 [SAR
178:163 DAR 1958:1467], q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream #0.1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16,
128 kb/s
Stream mapping:
Stream #0.0 -> #0.0 (mpeg1video -> mpeg4)
Stream #0.1 -> #0.1 (mp2 -> libmp3lame)
Press [q] to stop, [?] for help
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=3600, dts=7200,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=7200, dts=10800,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=14400, dts=18000,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=18000, dts=21600,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=25200, dts=28800,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=28800, dts=32400,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=36000, dts=39600,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=39600, dts=43200,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=46800, dts=50400,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=50400, dts=54000,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=57600, dts=61200,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=61200, dts=64800,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=68400, dts=72000,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=72000, dts=75600,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=79200, dts=82800,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=82800, dts=86400,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=90000, dts=93600,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=93600, dts=97200,
size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=100800,
dts=104400, size=2018
[mpeg @ 0x7fcfd903d800] Invalid timestamps stream=0, pts=104400,
dts=108000, size=2018
[mpeg1video @ 0x7fcfd903fc00] ac-tex damaged at 18 15
[mpeg1video @ 0x7fcfd903fc00] Warning MVs not available
[mpeg1video @ 0x7fcfd903fc00] concealing 66 DC, 66 AC, 66 MV errors
[mp2 @ 0x7fcfd9050e00] incomplete frame
Error while decoding stream #0.1
frame= 32 fps= 3 q=2.0 Lsize= 111965kB time=00:00:01.27
bitrate=721083.8kbits/s
video:100kB audio:5kB global headers:0kB muxing overhead 106233.836009%
real 0m12.843s
user 0m1.987s
sys 0m10.031s
$
}}}
--
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/488#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list