Page 1 of 1

x264 fine tuning

Posted: 26 Mar 2010 12:16
by Greendq
Hi !

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 is started like:
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?

Re: x264 fine tuning

Posted: 26 Mar 2010 13:14
by rishe
can i ask a question to you? in editing x264, do we need to download x264 source code or is the vlc source code enough to edit functions like the CAVLC, In-Loop Deblocking Filter, Flexible MAcroblock Ordering or I/P slices?

Re: x264 fine tuning

Posted: 03 Apr 2010 14:55
by Greendq
So, no one use x264 for transcoding? :(

Re: x264 fine tuning

Posted: 03 Apr 2010 19:56
by Lotesdelere
I'm not sure that presets and tuning features are implemented in the x264 library which VLC is using.

Re: x264 fine tuning

Posted: 04 Apr 2010 10:07
by Greendq
Hmm, but VLC use libx264.so/.a libraries from x264 package (which is on the same site and is a subprogect). Do you think, that x264 tool and libx264 works differently? I did build of liblame, ffmpeg, x264 and vlc from sources, if it matter.

Re: x264 fine tuning

Posted: 04 Apr 2010 11:50
by rishe
does building ffmpeg required for x264 build in vlc?