x264 fine tuning

About encoding, codec settings, muxers and filter usage
Greendq
Blank Cone
Blank Cone
Posts: 18
Joined: 28 Sep 2009 12:52

x264 fine tuning

Postby Greendq » 26 Mar 2010 12:16

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?

rishe
New Cone
New Cone
Posts: 6
Joined: 08 Mar 2010 18:01

Re: x264 fine tuning

Postby rishe » 26 Mar 2010 13:14

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?

Greendq
Blank Cone
Blank Cone
Posts: 18
Joined: 28 Sep 2009 12:52

Re: x264 fine tuning

Postby Greendq » 03 Apr 2010 14:55

So, no one use x264 for transcoding? :(

Lotesdelere
Cone Master
Cone Master
Posts: 10105
Joined: 08 Sep 2006 04:39
Location: Europe

Re: x264 fine tuning

Postby Lotesdelere » 03 Apr 2010 19:56

I'm not sure that presets and tuning features are implemented in the x264 library which VLC is using.

Greendq
Blank Cone
Blank Cone
Posts: 18
Joined: 28 Sep 2009 12:52

Re: x264 fine tuning

Postby Greendq » 04 Apr 2010 10:07

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.

rishe
New Cone
New Cone
Posts: 6
Joined: 08 Mar 2010 18:01

Re: x264 fine tuning

Postby rishe » 04 Apr 2010 11:50

does building ffmpeg required for x264 build in vlc?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 9 guests