Ticket #488 (closed defect: fixed)
Hang on some example files
| Reported by: | Alex__ | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | git-master | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | yes | |
| Analyzed by developer: | no |
Description
Description: Hang on some example files
Version: latest trunk (via git)
URL: see attached
Steps that will reproduce the problem?
ffmpeg -y -i sample.mpg sample.m4v
What is the expected result?
Converted file or error message.
What happens instead?
ffmpeg hangs - ctrl+c doesn't kill the process.
Possible workaround:
-
Any additional information:
- Example: (see next comment)
- Command: ffmpeg -y -i sample.mpg sample.m4v
ffmpeg version N-30062-g4a9b069, Copyright (c) 2000-2011 the FFmpeg developers built on Sep 19 2011 12:35:00 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 @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=3600, dts=7200, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=7200, dts=10800, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=14400, dts=18000, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=18000, dts=21600, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=25200, dts=28800, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=28800, dts=32400, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=36000, dts=39600, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=39600, dts=43200, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=46800, dts=50400, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=50400, dts=54000, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=57600, dts=61200, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=61200, dts=64800, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=68400, dts=72000, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=72000, dts=75600, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=79200, dts=82800, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=82800, dts=86400, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=90000, dts=93600, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=93600, dts=97200, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=100800, dts=104400, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=104400, dts=108000, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=111600, dts=115200, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=115200, dts=118800, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=122400, dts=126000, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=126000, dts=129600, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=133200, dts=136800, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=136800, dts=140400, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=144000, dts=147600, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=147600, dts=151200, size=2018 Input #0, mpeg, from 'sample.mpg': Duration: 00:00:01.80, start: 0.000000, bitrate: 2275 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 @ 0x110c24680] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:178/163 sws_param: [libx264 @ 0x7f8cdc051400] using SAR=178/163 [libx264 @ 0x7f8cdc051400] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0x7f8cdc051400] profile High, level 1.3 [libx264 @ 0x7f8cdc051400] 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.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 @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=3600, dts=7200, size=2018 [mpeg @ 0x7f8cdc03d800] Invalid timestamps stream=0, pts=7200, dts=10800, size=2018
Attachments
Change History
comment:1 follow-up: ↓ 2 Changed 20 months ago by cehoyos
Is this also reproducible without external libraries?
(And please explain how you manage to produce a version number that looks 3000 versions old.)
comment:2 in reply to: ↑ 1 Changed 20 months ago by Alex__
Is this also reproducible without external libraries?
Can you provide me some more information on what you need exactly? E.g. the following command doesn't hang: "ffmpeg -i sample.mpg -vcodec copy -acodec copy sample-out.mpg".
(And please explain how you manage to produce a version number that looks 3000 versions old.)
Compiling latest trunk:
$ git pull && ./configure --enable-zlib --disable-debug --enable-libfaac --enable-libx264 --enable-gpl --enable-nonfree --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang && make -j3 && make install
Still having using the patch from #468:
$ git diff
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 29de5b0..0a741de 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1211,7 +1211,7 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVTrack *track, AVStream *st)
(version == 1) ? avio_wb32(pb, 104) : avio_wb32(pb, 92); /* size */
ffio_wfourcc(pb, "tkhd");
avio_w8(pb, version);
- avio_wb24(pb, 0xf); /* flags (track enabled) */
+ avio_wb24(pb, track->secondary ? 0x2 : 0xf); /* flags (first track enabled) */
if (version == 1) {
avio_wb64(pb, track->time);
avio_wb64(pb, track->time);
@@ -1225,8 +1225,7 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVTrack *track, AVStream *st)
avio_wb32(pb, 0); /* reserved */
avio_wb32(pb, 0); /* reserved */
- avio_wb16(pb, 0); /* layer */
- avio_wb16(pb, st->codec->codec_type); /* alternate group) */
+ avio_wb32(pb, track->alternative_group); /* reserved (Layer & Alternate group) */
/* Volume, only for audio */
if(track->enc->codec_type == AVMEDIA_TYPE_AUDIO)
avio_wb16(pb, 0x0100);
@@ -1808,6 +1807,7 @@ static int mov_write_moov_tag(AVIOContext *pb, MOVMuxContext *mov,
{
int i;
int64_t pos = avio_tell(pb);
+ int not_first[AVMEDIA_TYPE_NB]={0};
avio_wb32(pb, 0); /* size placeholder*/
ffio_wfourcc(pb, "moov");
@@ -1835,6 +1835,14 @@ static int mov_write_moov_tag(AVIOContext *pb, MOVMuxContext *mov,
//mov_write_iods_tag(pb, mov);
for (i=0; i<mov->nb_streams; i++) {
if(mov->tracks[i].entry > 0) {
+ if(i < s->nb_streams){
+ int codec_type= s->streams[i]->codec->codec_type;
+ if(codec_type==AVMEDIA_TYPE_AUDIO || codec_type==AVMEDIA_TYPE_SUBTITLE){
+ mov->tracks[i].alternative_group= 1 + (codec_type==AVMEDIA_TYPE_SUBTITLE);
+ mov->tracks[i].secondary= not_first[codec_type];
+ not_first[codec_type]= 1;
+ }
+ }
mov_write_trak_tag(pb, &(mov->tracks[i]), i < s->nb_streams ? s->streams[i] : NULL);
}
}
diff --git a/libavformat/movenc.h b/libavformat/movenc.h
index 610683f..4676983 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -78,6 +78,8 @@ typedef struct MOVIndex {
#define MOV_TRACK_STPS 0x0002
uint32_t flags;
int language;
+ int alternative_group;
+ int secondary;
int trackID;
int tag; ///< stsd fourcc
AVCodecContext *enc;
comment:3 follow-ups: ↓ 4 ↓ 6 Changed 20 months ago by cehoyos
(I suspect you are wrong: FFmpeg does not hang for the sample.)
Try any command line that does not involve an external library, often ffmpeg -i input -qscale 2 out.avi / out.mpg
comment:4 in reply to: ↑ 3 Changed 20 months ago 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:
- 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
- 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 $
comment:5 Changed 20 months ago by Alex__
Btw: the file "out.avi" has a size of 109MB. See "muxing overhead 106233.836009%" and "Stream #0.0[0x1e0]: Video: mpeg1video...104857 kb/s...". Might be related.
comment:6 in reply to: ↑ 3 Changed 20 months ago by Alex__
Replying to cehoyos:
(I suspect you are wrong: FFmpeg does not hang for the sample.)
Just double checked with a fresh Ubuntu 11.04 installation and ffmpeg + x264 compiled from trunk. Ffmpeg definitely hangs using the above mentioned compile/command parameters and the given example file.
comment:7 Changed 20 months ago by llogan
- Version changed from unspecified to git-master
Input sample-issue-488.mpg seems to hang for me on Arch Linux x86_64 and Ubuntu 11.04 32-bit.
$ ffmpeg -v 9 -loglevel 99 -i sample-issue-488.mpg -y output.mpg
ffmpeg version N-32725-ga6186f3, Copyright (c) 2000-2011 the FFmpeg developers
built on Sep 19 2011 14:52:56 with gcc 4.6.1 20110819 (prerelease)
configuration: --prefix=/usr
libavutil 51. 16. 1 / 51. 16. 1
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
[mpeg @ 0x2007780] Format mpeg probed with size=8192 and score=52
[mpeg @ 0x2007780] probing stream 0 pp:2500
[mpeg @ 0x2007780] Probe with size=2018, packets=1 detected mpegvideo with score=25
[mpeg @ 0x2007780] probing stream 0 pp:2499
[mpeg @ 0x2007780] Probe with size=4036, packets=2 detected mpegvideo with score=25
[mpeg @ 0x2007780] probing stream 0 pp:2498
[mpeg @ 0x2007780] Probe with size=6054, packets=3 detected mpegvideo with score=25
[mpeg @ 0x2007780] probing stream 0 pp:2497
[mpeg @ 0x2007780] probing stream 0 pp:2496
[mpeg @ 0x2007780] Probe with size=10090, packets=5 detected mpegvideo with score=51
[mpeg @ 0x2007780] probed stream 0
[mpeg1video @ 0x200dc60] Unsupported bit depth: 0
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=3600, dts=7200, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=7200, dts=10800, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=14400, dts=18000, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=18000, dts=21600, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=25200, dts=28800, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=28800, dts=32400, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=36000, dts=39600, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=39600, dts=43200, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=46800, dts=50400, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=50400, dts=54000, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=57600, dts=61200, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=61200, dts=64800, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=68400, dts=72000, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=72000, dts=75600, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=79200, dts=82800, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=82800, dts=86400, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=90000, dts=93600, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=93600, dts=97200, size=2018
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=100800, dts=104400, size=2018
[mpeg @ 0x2007780] 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], 32, 1/90000: Video: mpeg1video, yuv420p, 352x288 [SAR 178:163 DAR 1958:1467], 1/25, 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.1[0x1c0], 53, 1/90000: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
[buffer @ 0x200f480] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:178/163 sws_param:
[mpeg1video @ 0x200e120] Unsupported bit depth: 0
[mpeg @ 0x2017f40] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'output.mpg':
Metadata:
encoder : Lavf53.12.0
Stream #0.0, 0, 1/90000: Video: mpeg1video, yuv420p, 352x288 [SAR 178:163 DAR 1958:1467], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1, 0, 1/90000: 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 @ 0x2007780] invalid dts/pts combination 0
[mpeg1video @ 0x200dc60] Unsupported bit depth: 0
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=3600, dts=7200, size=2018
*** 1 dup!
[mpeg @ 0x2007780] Invalid timestamps stream=0, pts=7200, dts=10800, size=2018
timestamp discontinuity -95443717689, new offset= 95443717689
*** 2386092 dup!
Killed



