[x264-devel] 2-pass-encoding gives file of size 0
Michel Brabants
michel.brabants at euphonynet.be
Sun Mar 26 17:43:49 CEST 2006
Hello,
I'm trying to encode an mjpeg-avi-file to h264. I'm doin 2 passes. The 1ste
pass seems to be ok, but 2nd pass doesn't seem to run or produce any output.
Is it possible to have a look at my parameters?
I wrote the following script:
---------------------
#!/bin/sh
width=$2;
height=$3;
#first pass, lower quality to speed up the information-gathering
echo "pass 1 ..."
#widthxheight
echo "x264 -r 1 --stats $1.stats-h264 --progress --pass 1 --bframes 3 -o
$1-converted-h264.mkv $1 $width\x$height"
x264 -r 1 --stats $1.stats-h264 --progress --pass 1 --bframes 3 -o
$1-converted-h264.mkv $1 $width\x$height
#second pass, high quality
echo "pass 2 ..."
#widthxheight
echo "x264 -r 4 --8x8dct --analyse all --b-pyramid --bframes 3 --qcomp
0.90 --weightb --subme 5 --stats $1.stats-h264 --progress --pass 2 -o
$1-converted-h264.mkv $1 $width\x$height"
x264 -r 4 --8x8dct --analyse all --b-pyramid --bframes 3 --qcomp
0.90 --weightb --subme 5 --stats $1.stats-h264 --progress --pass 2 -o
$1-converted-h264-2.mkv $1 $width\x$height
--------------------------
The command that I give: lav2yuv ./DSCF0363.AVI | ../../tips/x264.sh - 640
480
The output:
---------------------------
INFO: [lav2yuv] chroma '422' recommended with this input
INFO: [lav2yuv] set default chroma '420jpeg'
pass 1 ...
x264 -r 1 --stats -.stats-h264 --progress --pass 1 --bframes
3 -o --converted-h264.mkv - 640\x480
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
INFO: [lav2yuv] Repeated frames (for error concealment): 0
x264 [info]: slice I:7 Avg QP:23.00 size: 67244 PSNR Mean Y:41.42
U:44.13 V:43.89 Avg:42.12 Global:42.10
x264 [info]: slice P:526 Avg QP:26.00 size: 43775 PSNR Mean Y:37.33
U:40.15 V:40.04 Avg:38.07 Global:38.03
x264 [info]: slice B:457 Avg QP:28.00 size: 28960 PSNR Mean Y:35.67
U:38.12 V:38.04 Avg:36.33 Global:36.29
x264 [info]: mb I I16..4: 25.5% 0.0% 74.5%
x264 [info]: mb P I16..4: 18.5% 0.0% 17.4% P16..4: 20.1% 18.6% 19.9% 0.0%
0.0% skip: 5.5%
x264 [info]: mb B I16..4: 1.4% 0.0% 1.0% B16..8: 30.5% 4.6% 22.2%
direct:20.7% skip:19.5%
x264 [info]: PSNR Mean Y:36.591 U:39.238 V:39.145 Avg:37.293 Global:37.155
kb/s:7420.36
encoded 990 frames, 3.26 fps, 7420.50 kb/s
pass 2 ...
x264 -r 4 --8x8dct --analyse all --b-pyramid --bframes 3 --qcomp
0.90 --weightb --subme 5 --stats -.stats-h264 --progress --pass
2 -o --converted-h264.mkv - 640\x480
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
-----------------------------
As you can see, the 2nd pass doesn't seem to do anything.
Thank you and greetings,
Michel
--
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html
More information about the x264-devel
mailing list