Offspring2099
21st February 2010, 01:17
Hello,
I'm trying to convert mpeg2 (PS) to mp4 (h.264). ffmpeg seems to fail/quit at random times during the 2nd pass. I don't see an error in event viewer, it just stops and goes to prompt
It's a Windows xp 32bit (sp3) box, 4G of ram, plenty HD space, e8400 cpu.
I know this is a lot to look at, but maybe someone that has done it a million times can spot something. I can convert a transport stream (ts) version of this video just fine but not mpeg2 (program stream).
Thanks in advance.
###################################################################
########################## 1st Pass #################################
###################################################################
C:\xtivo>c:/xtivo/ffmpeg/bin/ffmpeg -i c:/xtivo/skers_2.mpg -y -an -f mp4 -pass 1 -vcodec libx264 -s 1280x720 -vpre fastfirstpass -b 2900k -bt 100k -r 30000/100
1 -threads 0 c:/xtivo/skers.mp4
FFmpeg version SVN-r21915, Copyright (c) 2000-2010 the FFmpeg developers
built on Feb 20 2010 06:04:48 with gcc 4.4.2
configuration: --enable-memalign-hack --cross-prefix=i686-mingw32- --cc=ccache-i686-mingw32-gcc --arch=i686 --target-os=mingw32 --enable-runtime-cpudetect --e
nable-avisynth --enable-gpl --enable-version3 --enable-bzlib --enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheora --enable-l
ibspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --enable-libx264 --enable-libopencore_amrwb --enable-libopencore_amrn
b
libavutil 50. 9. 0 / 50. 9. 0
libavcodec 52.54. 0 / 52.54. 0
libavformat 52.52. 0 / 52.52. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[mpeg @ 0195d410]invalid dts/pts combination
Last message repeated 164 times
[mpeg @ 0195d410]MAX_READ_SIZE:5000000 reached
Seems stream 0 codec frame rate differs from container frame rate: 119.88 (120000/1001) -> 59.94 (120000/2002)
Input #0, mpeg, from 'c:/xtivo/skers_2.mpg':
Duration: 03:10:14.95, start: 0.200000, bitrate: 12789 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 38810 kb/s, 59.92 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
[libx264 @ 01abbc10]using SAR=1/1
[libx264 @ 01abbc10]using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 01abbc10]profile Main, level 3.1
Output #0, mp4, to 'c:/xtivo/skers.mp4':
Metadata:
encoder : Lavf52.52.0
Stream #0.0: Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=10-51, pass 1, 2900 kb/s, 30k tbn, 29.97 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[mpeg @ 0195d410]invalid dts/pts combination
Last message repeated 208378 times238kB time=7123.78 bitrate=2892.4kbits/s dup=0 drop=206377
[mpeg2video @ 0195e590]warning: first frame is no keyframe
Last message repeated 1 times 2519035kB time=7138.73 bitrate=2890.7kbits/s dup=0 drop=206821
[mpeg @ 0195d410]invalid dts/pts combination
frame=342490 fps= 63 q=-2.0 Lsize= 4052000kB time=11442.10 bitrate=2901.0kbits/s dup=0 drop=334175
video:4047704kB audio:0kB global headers:0kB muxing overhead 0.106123%
Last message repeated 134694 times
[libx264 @ 01abbc10]frame I:1671 Avg QP:25.43 size: 66456
[libx264 @ 01abbc10]frame P:235613 Avg QP:29.37 size: 15461
[libx264 @ 01abbc10]frame B:105206 Avg QP:31.34 size: 3717
[libx264 @ 01abbc10]consecutive B-frames: 43.8% 43.5% 5.4% 7.4%
[libx264 @ 01abbc10]mb I I16..4: 39.8% 0.0% 60.2%
[libx264 @ 01abbc10]mb P I16..4: 17.3% 0.0% 0.0% P16..4: 51.0% 0.0% 0.0% 0.0% 0.0% skip:31.7%
[libx264 @ 01abbc10]mb B I16..4: 2.2% 0.0% 0.0% B16..8: 17.0% 0.0% 0.0% direct: 5.8% skip:75.0% L0:31.9% L1:45.6% BI:22.5%
[libx264 @ 01abbc10]final ratefactor: 26.88
[libx264 @ 01abbc10]direct mvs spatial:61.9% temporal:38.1%
[libx264 @ 01abbc10]coded y,uvDC,uvAC intra: 33.4% 37.4% 8.4% inter: 16.3% 10.3% 0.4%
[libx264 @ 01abbc10]i16 v,h,dc,p: 27% 35% 24% 14%
[libx264 @ 01abbc10]i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 28% 14% 6% 6% 6% 7% 6% 7%
[libx264 @ 01abbc10]Weighted P-Frames: Y:0.4%
[libx264 @ 01abbc10]kb/s:2901.60
C:\xtivo>
###################################################################
########################## 2nd Pass #################################
###################################################################
C:\xtivo>c:/xtivo/ffmpeg/bin/ffmpeg -i c:/xtivo/skers_2.mpg -y -ab 192k -ac 2 -f mp4 -pass 2 -vcodec libx264 -s 1280x720 -vpre hq -b 2900k -bt 100k -r 30000/100
1 -threads 0 c:/xtivo/skers.mp4
FFmpeg version SVN-r21915, Copyright (c) 2000-2010 the FFmpeg developers
built on Feb 20 2010 06:04:48 with gcc 4.4.2
configuration: --enable-memalign-hack --cross-prefix=i686-mingw32- --cc=ccache-i686-mingw32-gcc --arch=i686 --target-os=mingw32 --enable-runtime-cpudetect --e
nable-avisynth --enable-gpl --enable-version3 --enable-bzlib --enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheora --enable-l
ibspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --enable-libx264 --enable-libopencore_amrwb --enable-libopencore_amrn
b
libavutil 50. 9. 0 / 50. 9. 0
libavcodec 52.54. 0 / 52.54. 0
libavformat 52.52. 0 / 52.52. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[mpeg @ 0195d410]invalid dts/pts combination
Last message repeated 164 times
[mpeg @ 0195d410]MAX_READ_SIZE:5000000 reached
Seems stream 0 codec frame rate differs from container frame rate: 119.88 (120000/1001) -> 59.94 (120000/2002)
Input #0, mpeg, from 'c:/xtivo/skers_2.mpg':
Duration: 03:10:14.95, start: 0.200000, bitrate: 12789 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 38810 kb/s, 59.92 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
[libx264 @ 01b1cb50]using SAR=1/1
[libx264 @ 01b1cb50]using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 01b1cb50]profile High, level 3.1
Output #0, mp4, to 'c:/xtivo/skers.mp4':
Metadata:
encoder : Lavf52.52.0
Stream #0.0: Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=10-51, pass 2, 2900 kb/s, 30k tbn, 29.97 tbc
Stream #0.1: Audio: aac, 48000 Hz, 2 channels, s16, 192 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
[mpeg @ 0195d410]invalid dts/pts combination
frame=30648 fps= 12 q=33.0 size= 405613kB time=1020.84 bitrate=3254.9kbits/s dup=0 drop=29639
C:\xtivo>
I'm trying to convert mpeg2 (PS) to mp4 (h.264). ffmpeg seems to fail/quit at random times during the 2nd pass. I don't see an error in event viewer, it just stops and goes to prompt
It's a Windows xp 32bit (sp3) box, 4G of ram, plenty HD space, e8400 cpu.
I know this is a lot to look at, but maybe someone that has done it a million times can spot something. I can convert a transport stream (ts) version of this video just fine but not mpeg2 (program stream).
Thanks in advance.
###################################################################
########################## 1st Pass #################################
###################################################################
C:\xtivo>c:/xtivo/ffmpeg/bin/ffmpeg -i c:/xtivo/skers_2.mpg -y -an -f mp4 -pass 1 -vcodec libx264 -s 1280x720 -vpre fastfirstpass -b 2900k -bt 100k -r 30000/100
1 -threads 0 c:/xtivo/skers.mp4
FFmpeg version SVN-r21915, Copyright (c) 2000-2010 the FFmpeg developers
built on Feb 20 2010 06:04:48 with gcc 4.4.2
configuration: --enable-memalign-hack --cross-prefix=i686-mingw32- --cc=ccache-i686-mingw32-gcc --arch=i686 --target-os=mingw32 --enable-runtime-cpudetect --e
nable-avisynth --enable-gpl --enable-version3 --enable-bzlib --enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheora --enable-l
ibspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --enable-libx264 --enable-libopencore_amrwb --enable-libopencore_amrn
b
libavutil 50. 9. 0 / 50. 9. 0
libavcodec 52.54. 0 / 52.54. 0
libavformat 52.52. 0 / 52.52. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[mpeg @ 0195d410]invalid dts/pts combination
Last message repeated 164 times
[mpeg @ 0195d410]MAX_READ_SIZE:5000000 reached
Seems stream 0 codec frame rate differs from container frame rate: 119.88 (120000/1001) -> 59.94 (120000/2002)
Input #0, mpeg, from 'c:/xtivo/skers_2.mpg':
Duration: 03:10:14.95, start: 0.200000, bitrate: 12789 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 38810 kb/s, 59.92 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
[libx264 @ 01abbc10]using SAR=1/1
[libx264 @ 01abbc10]using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 01abbc10]profile Main, level 3.1
Output #0, mp4, to 'c:/xtivo/skers.mp4':
Metadata:
encoder : Lavf52.52.0
Stream #0.0: Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=10-51, pass 1, 2900 kb/s, 30k tbn, 29.97 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[mpeg @ 0195d410]invalid dts/pts combination
Last message repeated 208378 times238kB time=7123.78 bitrate=2892.4kbits/s dup=0 drop=206377
[mpeg2video @ 0195e590]warning: first frame is no keyframe
Last message repeated 1 times 2519035kB time=7138.73 bitrate=2890.7kbits/s dup=0 drop=206821
[mpeg @ 0195d410]invalid dts/pts combination
frame=342490 fps= 63 q=-2.0 Lsize= 4052000kB time=11442.10 bitrate=2901.0kbits/s dup=0 drop=334175
video:4047704kB audio:0kB global headers:0kB muxing overhead 0.106123%
Last message repeated 134694 times
[libx264 @ 01abbc10]frame I:1671 Avg QP:25.43 size: 66456
[libx264 @ 01abbc10]frame P:235613 Avg QP:29.37 size: 15461
[libx264 @ 01abbc10]frame B:105206 Avg QP:31.34 size: 3717
[libx264 @ 01abbc10]consecutive B-frames: 43.8% 43.5% 5.4% 7.4%
[libx264 @ 01abbc10]mb I I16..4: 39.8% 0.0% 60.2%
[libx264 @ 01abbc10]mb P I16..4: 17.3% 0.0% 0.0% P16..4: 51.0% 0.0% 0.0% 0.0% 0.0% skip:31.7%
[libx264 @ 01abbc10]mb B I16..4: 2.2% 0.0% 0.0% B16..8: 17.0% 0.0% 0.0% direct: 5.8% skip:75.0% L0:31.9% L1:45.6% BI:22.5%
[libx264 @ 01abbc10]final ratefactor: 26.88
[libx264 @ 01abbc10]direct mvs spatial:61.9% temporal:38.1%
[libx264 @ 01abbc10]coded y,uvDC,uvAC intra: 33.4% 37.4% 8.4% inter: 16.3% 10.3% 0.4%
[libx264 @ 01abbc10]i16 v,h,dc,p: 27% 35% 24% 14%
[libx264 @ 01abbc10]i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 28% 14% 6% 6% 6% 7% 6% 7%
[libx264 @ 01abbc10]Weighted P-Frames: Y:0.4%
[libx264 @ 01abbc10]kb/s:2901.60
C:\xtivo>
###################################################################
########################## 2nd Pass #################################
###################################################################
C:\xtivo>c:/xtivo/ffmpeg/bin/ffmpeg -i c:/xtivo/skers_2.mpg -y -ab 192k -ac 2 -f mp4 -pass 2 -vcodec libx264 -s 1280x720 -vpre hq -b 2900k -bt 100k -r 30000/100
1 -threads 0 c:/xtivo/skers.mp4
FFmpeg version SVN-r21915, Copyright (c) 2000-2010 the FFmpeg developers
built on Feb 20 2010 06:04:48 with gcc 4.4.2
configuration: --enable-memalign-hack --cross-prefix=i686-mingw32- --cc=ccache-i686-mingw32-gcc --arch=i686 --target-os=mingw32 --enable-runtime-cpudetect --e
nable-avisynth --enable-gpl --enable-version3 --enable-bzlib --enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheora --enable-l
ibspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --enable-libx264 --enable-libopencore_amrwb --enable-libopencore_amrn
b
libavutil 50. 9. 0 / 50. 9. 0
libavcodec 52.54. 0 / 52.54. 0
libavformat 52.52. 0 / 52.52. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[mpeg @ 0195d410]invalid dts/pts combination
Last message repeated 164 times
[mpeg @ 0195d410]MAX_READ_SIZE:5000000 reached
Seems stream 0 codec frame rate differs from container frame rate: 119.88 (120000/1001) -> 59.94 (120000/2002)
Input #0, mpeg, from 'c:/xtivo/skers_2.mpg':
Duration: 03:10:14.95, start: 0.200000, bitrate: 12789 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 38810 kb/s, 59.92 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
[libx264 @ 01b1cb50]using SAR=1/1
[libx264 @ 01b1cb50]using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 01b1cb50]profile High, level 3.1
Output #0, mp4, to 'c:/xtivo/skers.mp4':
Metadata:
encoder : Lavf52.52.0
Stream #0.0: Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=10-51, pass 2, 2900 kb/s, 30k tbn, 29.97 tbc
Stream #0.1: Audio: aac, 48000 Hz, 2 channels, s16, 192 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
[mpeg @ 0195d410]invalid dts/pts combination
frame=30648 fps= 12 q=33.0 size= 405613kB time=1020.84 bitrate=3254.9kbits/s dup=0 drop=29639
C:\xtivo>