I`m using VLC 1.0.5 (linux, but I have the same problem under windows) and ffmpeg with x264 version 0.84.X.
I want to pass extra options to the encoder to finetune resulted image.
Encoder understand additional option like "profile=baseline", but not understand "preset=veryfast" and others - when I specify "preset option" it complain:
main encoder warning: option preset is unknown
This is my config:
Code: Select all
del all
new channel0 broadcast enabled
setup channel0 input dv/rawdv:///dev/raw1394
setup channel0 output #transcode{vcodec=h264,vb=800,venc=x264{profile=baseline,preset=veryfast},width=512,height=288,aspect="4:3",fps=25,deinterlace=linear,acodec=mp3,ab=48k,channels=1,samplerate=22050}:std{access=http,dst=0.0.0.0:8088/channel1.flv}
control channel0 play
vlc -vvv --sout-mux-caching=10000 --dv-caching=5000 --vlm-conf=myconfig.conf
Is any posibility to pass extra parameters to the x264 codec?
I browsed x264 source code and found all options I want to pass (all names are in constants section), so I can not understand, why encoder complain about those options. The same complains I see when pass options from command line, like:
--sout='#transcode{width=448,height=336,venc=x264{profile=baseline,preset=fast,tune=grain,threads=2,keyint=300,min-keyint=25,fps=25,bitrate=500},fps=25,bitrate=500,acodec=mp3,ab=48k,channels=1,samplerate=22050}:std{access=http,dst=0.0.0.0:8088/channel1.flv}'
What I`m doing wrong? May be I need to build x264 as static library?