Cel_Rocha
12th January 2006, 16:45
First, sorry my bad english. I'm brazilian and fifteen years old.
In november my father went to USA and bought 2 iPod's video ( one for me, one for my sister ). Since then, I'm using Videora iPod Converter to convert videos to iPod's format but I like to make things by myself, setting options, etc.
I'm starting to use x264 w/ AviSynth and MeGUI. My first attempt was sucessful.
See the avs script:
test.avs
# Video source
AviSource("C:\Files\my_video_to_convert.avi")
# Range to encode
Trim(0, 240)
Note: Is just a test, so, i encoded only 10 sec
In MeGUI I used PD-iPod profile, and the resultant log is:
logfile-06-01-12_13-06-17.log
Next job job1 is a video job. encoder commandline:
"x264.exe" --bitrate 700 --level 1.3 --no-cabac --subme 6 --analyse p8x8,b8x8 --qpmin 22 --me umh --threads 2 --progress --no-psnr --output "C:\Documents and Settings\Administrador\Desktop\test.mp4" "C:\Documents and Settings\Administrador\Desktop\test.avs"
successfully set up video encoder and callbacks for job job1
----------------------------------------------------------------------------------------------------------
Log for job job1
avis [info]: 624x352 @ 23.98 fps (241 frames)
x264 [warning]: frame MB size (39x22) > level limit (396)
x264 [warning]: MB rate (20571) > level limit (11880)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
mp4 [info]: initial delay 0 (scale 24000)
x264 [info]: slice I:3 Avg QP:22.67 size: 15220
x264 [info]: slice P:238 Avg QP:25.16 size: 3582
x264 [info]: mb I I16..4: 53.5% 0.0% 46.5%
x264 [info]: mb P I16..4: 9.2% 0.0% 0.0% P16..4: 41.5% 13.8% 3.3% 0.0% 0.0% skip:32.1%
x264 [info]: final ratefactor: 24.36
x264 [info]: kb/s:714.9
Actual bitrate after encoding without container overhead: 716.29
desired video bitrate of this job: 700 kbit/s - obtained video bitrate: 717.687358284869 kbit/s
----------------------------------------------------------------------------------------------------------
But, iPod only read 320x240 videos and this video is 624x352, so, i have to resize ...
First I downloaded SmartResize 1.1 and put on VD plugins folder, after i used this script:
test2.avs
# Path to plugins folder
global VirtualDub_plugin_directory = "C:\Arquivos de programas\Encoding Tools\VirtualDub\plugins"
# SmartResize by Donald Graft, v1.1
function VD_SmartResize(clip clip, int "new_width", int "new_height", bool "interlaced", bool "letterbox",
\ int "frame_width", int "frame_height", string "mode", int "color", string "calculator")
{
LoadVirtualdubPlugin(VirtualDub_plugin_directory+"\Resize.vdf", "_VD_SmartResize")
mode = default(mode, "p_bicubic")
interlaced = default(interlaced, false)
mode = (mode=="neighbour" && interlaced==false) ? 0 : (mode=="bilinear" && interlaced==false) ? 1 : (mode=="bicubic" && interlaced==false) ? 2 :
\ (mode=="p_bilinear" && interlaced==false) ? 3 : (mode=="p_bicubic" && interlaced==false) ? 4 : (mode=="neighbour" && interlaced==true) ? 128 :
\ (mode=="bilinear" && interlaced==true) ? 129 : (mode=="bicubic" && interlaced==true) ? 130 : (mode=="p_bilinear" && interlaced==true) ? 131 :
\ (mode=="p_bicubic" && interlaced==true) ? 132 : -1
Assert(mode>=0, """VD_SmartResize: "mode" parameter must be "neighbour", "bilinear", "bicubic", "p_bilinear", "p_bicubic"""")
return clip._VD_SmartResize(new_width, new_height, default(letterbox,false)?1:0, mode, default(frame_width,new_width),
\ default(frame_height,new_height), default(color,0), default(calculator,""))
}
# Video source
AviSource("C:\Files\my_video_to_convert.avi")
# Range to encode
Trim(0, 240)
# Applying the resizer
ConvertToRGB()
VD_SmartResize(320, 180, false, true, 320, 240, "neighbour", $000000)
ConvertToYUY2()
Using the same PD-iPod profile, i got the program closed w/o any log ...
What i did wrong ?
Thx in advance.
Edited:
I tryed to open test2.avs w/ Media Player Classic and works perfectly. The image was resized to 320x240 with blackbars.
Edited 2:
Changed file name ( rules ... )
Edited 3:
Using cmd, i've got:
C:\Arquivos de programas\Encoding Tools\x264>"x264.exe" --bitrate 700 --level 1.
3 --no-cabac --subme 6 --analyse p8x8,b8x8 --qpmin 22 --me umh --threads 2 --pro
gress --no-psnr --output "C:\Documents and Settings\Administrador\Desktop\test2.
mp4" "C:\Documents and Settings\Administrador\Desktop\test2.avs"
avis [error]: unsupported input format (YUY2)
could not open input file 'C:\Documents and Settings\Administrador\Desktop\test2
.avs'
C:\Arquivos de programas\Encoding Tools\x264>
In november my father went to USA and bought 2 iPod's video ( one for me, one for my sister ). Since then, I'm using Videora iPod Converter to convert videos to iPod's format but I like to make things by myself, setting options, etc.
I'm starting to use x264 w/ AviSynth and MeGUI. My first attempt was sucessful.
See the avs script:
test.avs
# Video source
AviSource("C:\Files\my_video_to_convert.avi")
# Range to encode
Trim(0, 240)
Note: Is just a test, so, i encoded only 10 sec
In MeGUI I used PD-iPod profile, and the resultant log is:
logfile-06-01-12_13-06-17.log
Next job job1 is a video job. encoder commandline:
"x264.exe" --bitrate 700 --level 1.3 --no-cabac --subme 6 --analyse p8x8,b8x8 --qpmin 22 --me umh --threads 2 --progress --no-psnr --output "C:\Documents and Settings\Administrador\Desktop\test.mp4" "C:\Documents and Settings\Administrador\Desktop\test.avs"
successfully set up video encoder and callbacks for job job1
----------------------------------------------------------------------------------------------------------
Log for job job1
avis [info]: 624x352 @ 23.98 fps (241 frames)
x264 [warning]: frame MB size (39x22) > level limit (396)
x264 [warning]: MB rate (20571) > level limit (11880)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
mp4 [info]: initial delay 0 (scale 24000)
x264 [info]: slice I:3 Avg QP:22.67 size: 15220
x264 [info]: slice P:238 Avg QP:25.16 size: 3582
x264 [info]: mb I I16..4: 53.5% 0.0% 46.5%
x264 [info]: mb P I16..4: 9.2% 0.0% 0.0% P16..4: 41.5% 13.8% 3.3% 0.0% 0.0% skip:32.1%
x264 [info]: final ratefactor: 24.36
x264 [info]: kb/s:714.9
Actual bitrate after encoding without container overhead: 716.29
desired video bitrate of this job: 700 kbit/s - obtained video bitrate: 717.687358284869 kbit/s
----------------------------------------------------------------------------------------------------------
But, iPod only read 320x240 videos and this video is 624x352, so, i have to resize ...
First I downloaded SmartResize 1.1 and put on VD plugins folder, after i used this script:
test2.avs
# Path to plugins folder
global VirtualDub_plugin_directory = "C:\Arquivos de programas\Encoding Tools\VirtualDub\plugins"
# SmartResize by Donald Graft, v1.1
function VD_SmartResize(clip clip, int "new_width", int "new_height", bool "interlaced", bool "letterbox",
\ int "frame_width", int "frame_height", string "mode", int "color", string "calculator")
{
LoadVirtualdubPlugin(VirtualDub_plugin_directory+"\Resize.vdf", "_VD_SmartResize")
mode = default(mode, "p_bicubic")
interlaced = default(interlaced, false)
mode = (mode=="neighbour" && interlaced==false) ? 0 : (mode=="bilinear" && interlaced==false) ? 1 : (mode=="bicubic" && interlaced==false) ? 2 :
\ (mode=="p_bilinear" && interlaced==false) ? 3 : (mode=="p_bicubic" && interlaced==false) ? 4 : (mode=="neighbour" && interlaced==true) ? 128 :
\ (mode=="bilinear" && interlaced==true) ? 129 : (mode=="bicubic" && interlaced==true) ? 130 : (mode=="p_bilinear" && interlaced==true) ? 131 :
\ (mode=="p_bicubic" && interlaced==true) ? 132 : -1
Assert(mode>=0, """VD_SmartResize: "mode" parameter must be "neighbour", "bilinear", "bicubic", "p_bilinear", "p_bicubic"""")
return clip._VD_SmartResize(new_width, new_height, default(letterbox,false)?1:0, mode, default(frame_width,new_width),
\ default(frame_height,new_height), default(color,0), default(calculator,""))
}
# Video source
AviSource("C:\Files\my_video_to_convert.avi")
# Range to encode
Trim(0, 240)
# Applying the resizer
ConvertToRGB()
VD_SmartResize(320, 180, false, true, 320, 240, "neighbour", $000000)
ConvertToYUY2()
Using the same PD-iPod profile, i got the program closed w/o any log ...
What i did wrong ?
Thx in advance.
Edited:
I tryed to open test2.avs w/ Media Player Classic and works perfectly. The image was resized to 320x240 with blackbars.
Edited 2:
Changed file name ( rules ... )
Edited 3:
Using cmd, i've got:
C:\Arquivos de programas\Encoding Tools\x264>"x264.exe" --bitrate 700 --level 1.
3 --no-cabac --subme 6 --analyse p8x8,b8x8 --qpmin 22 --me umh --threads 2 --pro
gress --no-psnr --output "C:\Documents and Settings\Administrador\Desktop\test2.
mp4" "C:\Documents and Settings\Administrador\Desktop\test2.avs"
avis [error]: unsupported input format (YUY2)
could not open input file 'C:\Documents and Settings\Administrador\Desktop\test2
.avs'
C:\Arquivos de programas\Encoding Tools\x264>