medicina
25th September 2008, 08:15
Hi,
I am using latest x264 version (x264 0.64.983M b4b6483) on my Linux system and trying to encode long video (2h) but in these cases I get frames loss in H264 stream (20-26 frames) and thus serious audio sync problems.
x264 is called with the following options:
--no-psnr --no-ssim --progress --threads auto --sar 1:1
--crf 26 --ref 3 --mixed-refs --bframes 16 --b-pyramid --bime
--weightb --direct auto --filter 1,1 --subme 6
--partitions p8x8,b8x8,i4x4 --me umh --merange 12
This is mplayer & x264 output:
MEncoder 1.0rc2-4.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP 2500+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
success: format: 0 data: 0x0 - 0x4681b49a
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [DX50] 512x384 24bpp 25.000 fps 1184.5 kbps (144.6 kbyte/s)
[V] filefmt:3 fourcc:0x30355844 size:512x384 fps:25.00 ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [format fmt=i420]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
Pos: 2.1s 53f ( 0%) 30.98fps Trem: 0min 0mb A-V:0.000 [58982:0]
Pos:7333.8s 183367f (99%) 13.60fps Trem: 0min 51566mb A-V:0.000 [58982:0]]
Flushing video frames.
Video stream: 58982.400 kbit/s (7372799 B/s) size: 54070935552 bytes 7333.840 secs 183367 frames
x264 [info]: slice I:980 Avg QP:23.42 size: 15961
x264 [info]: slice P:154955 Avg QP:26.48 size: 2536
x264 [info]: slice B:27411 Avg QP:26.60 size: 574
x264 [info]: consecutive B-frames: 77.8% 5.9% 5.1% 5.9% 4.7% 0.4% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.1%
x264 [info]: mb I I16..4: 20.2% 0.0% 79.8%
x264 [info]: mb P I16..4: 1.6% 0.0% 1.7% P16..4: 43.3% 10.5% 9.1% 0.0% 0.0% skip:33.8%
x264 [info]: mb B I16..4: 0.6% 0.0% 0.0% B16..8: 15.4% 1.1% 0.6% direct: 5.4% skip:76.9% L0:35.1% L1:53.5% BI:11.5%
x264 [info]: direct mvs spatial:98.8% temporal:1.2%
x264 [info]: ref P L0 89.0% 6.7% 4.2%
x264 [info]: ref B L0 84.7% 15.3%
x264 [info]: ref B L1 91.7% 8.3%
x264 [info]: kb/s:463.0
encoded 183346 frames, 13.60 fps, 463.02 kb/s
Any idea? x264 bug? :(
I am not 100% sure, but I think ffmpeg using libx264 works with these files.
I am using latest x264 version (x264 0.64.983M b4b6483) on my Linux system and trying to encode long video (2h) but in these cases I get frames loss in H264 stream (20-26 frames) and thus serious audio sync problems.
x264 is called with the following options:
--no-psnr --no-ssim --progress --threads auto --sar 1:1
--crf 26 --ref 3 --mixed-refs --bframes 16 --b-pyramid --bime
--weightb --direct auto --filter 1,1 --subme 6
--partitions p8x8,b8x8,i4x4 --me umh --merange 12
This is mplayer & x264 output:
MEncoder 1.0rc2-4.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP 2500+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
success: format: 0 data: 0x0 - 0x4681b49a
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [DX50] 512x384 24bpp 25.000 fps 1184.5 kbps (144.6 kbyte/s)
[V] filefmt:3 fourcc:0x30355844 size:512x384 fps:25.00 ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [format fmt=i420]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
Pos: 2.1s 53f ( 0%) 30.98fps Trem: 0min 0mb A-V:0.000 [58982:0]
Pos:7333.8s 183367f (99%) 13.60fps Trem: 0min 51566mb A-V:0.000 [58982:0]]
Flushing video frames.
Video stream: 58982.400 kbit/s (7372799 B/s) size: 54070935552 bytes 7333.840 secs 183367 frames
x264 [info]: slice I:980 Avg QP:23.42 size: 15961
x264 [info]: slice P:154955 Avg QP:26.48 size: 2536
x264 [info]: slice B:27411 Avg QP:26.60 size: 574
x264 [info]: consecutive B-frames: 77.8% 5.9% 5.1% 5.9% 4.7% 0.4% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.1%
x264 [info]: mb I I16..4: 20.2% 0.0% 79.8%
x264 [info]: mb P I16..4: 1.6% 0.0% 1.7% P16..4: 43.3% 10.5% 9.1% 0.0% 0.0% skip:33.8%
x264 [info]: mb B I16..4: 0.6% 0.0% 0.0% B16..8: 15.4% 1.1% 0.6% direct: 5.4% skip:76.9% L0:35.1% L1:53.5% BI:11.5%
x264 [info]: direct mvs spatial:98.8% temporal:1.2%
x264 [info]: ref P L0 89.0% 6.7% 4.2%
x264 [info]: ref B L0 84.7% 15.3%
x264 [info]: ref B L1 91.7% 8.3%
x264 [info]: kb/s:463.0
encoded 183346 frames, 13.60 fps, 463.02 kb/s
Any idea? x264 bug? :(
I am not 100% sure, but I think ffmpeg using libx264 works with these files.