Stumbled upon this post when searching google.
To save filter effects.
version VLC media player 1.0.5
First enable the gradient in the GUI. Go to Tools -> Preferences. Click Show settings all. Click Stream output -> Sout stream -> Transcode. Enable the Deinterlace video filter and the Gradient video filter in the Transcode stream output window and click save.
Now start a console or terminal. -v is for verbose output.
This code is for
windows. If you use Mac or something else, you will have to adjust the command line. Here I have my input file in the test folder, the gradient type 0 is for non-color, 1 is color.
This will display the filter result and play it. Notice this will start a debug window up also, close this when done.
Test run
This takes a mov file and plays the filtered result.
Code: Select all
vlc -I dummy -v test\input.MOV --video-filter="gradient{type=0}"
Convert and save first version example.
This takes a mov file and converts it to mp4 with gradient filter.
Notice this will start a debug window up also, close this when done.
Code: Select all
vlc -I dummy -v test\input.MOV --vout-filter="gradient{type=0}" --file-caching="20000" --sout="#transcode{vcodec=mp4v,vb=1024,scale=1,deinterlace,acodec=mp4a,ab=192,channels=2}:standard{access=file,mux=mp4,dst=test\output.mp4}"
You can append
vlc://quit to the code if you want the debug window to auto close.
You can play with transcode types to create the video you want. Read about the transcode options.
http://wiki.videolan.org/Transcode.
The test run and the convert gave different quality result for me, probably because of my poor cpu.
At first the debug window gave some warnings and main input error: ES_OUT_SET_(GROUP_)PCR is called too late, increasing pts_delay to 3000 ms, 3400 ms, 4400 ms. ... 15700 ms.
This why the --file-caching is set in the commandline with high enough number to avoid something is called too late.
EDIT
This script was much better for me, by increasing vb value the quality is good as preview.
Windows script, here I stop after 20 sec for test purpose
Convert and save example better version.
Code: Select all
vlc -I dummy test\input.mov -v --vout-filter="gradient{type=0}" --file-caching="20000" --stop-time="20" --sout="#transcode{vcodec=mp4v,vb=8192,scale=1,deinterlace,audio-sync,acodec=mp4a,ab=128,channels=2}:duplicate{dst=standard{access=file,mux=ts,dst=test\output.mpg}}" vlc://quit