Archived:VLC-V4L: Difference between revisions

From LinuxTVWiki
Jump to navigation Jump to search
(Placeholder for vlc recording)
 
m (VLC-V4L moved to V4L:VLC-V4L: namespace)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Guides==
It is also possible to record to x264 with VLC, using something like this:


* VLC's [http://wiki.videolan.org/index.php/How_to_Create_a_DVD How to Create a DVD]
vlc v4l:/dev/video$DEV:norm=ntsc:frequency=77250:size=640x480:channel=5:\
* [http://www.videolan.org/streaming/features.html Permitted combinations]
adev=/dev/dsp$DEV:audio=0:stop-time=$TIM --sout #transcode{vcodec=h264,\
* [http://wiki.videolan.org/index.php/Codec Codec names]
acodec=mpga,vb=512,ab=96,samplerate=32000,venc=ffmpeg{keyint=80,hurry-up,\
* [http://distributions.linux.com/howtos/VideoLAN-HOWTO/x988.shtml Some common parameters explained]
vt=800000},deinterlace}:std{access=file,mux=ts,dst=$DIR/$FIL.avi}' -I dummy


==Examples==
This doesn't actually work -- you may need to give the full samplerate as "32000,16,2" not to get speeded-up audio, and you may need to set the aspect ration. You may also want "strict-rc" as an ffmpeg parameter, said to help compatibility (but maybe not with x264?); possibly add "channels=2" to the audio parameters. There's also the problem that you can't put variables inside the parameter lists -- not sure how to get around that, ask on vlc-devel. Work in progress.

To record to x264 with VLC, use something like this:

vlc v4l:/dev/video0:norm=ntsc:frequency=77250:size=640x480:channel=5:\
adev=/dev/dsp1:samplerate=32000:audio=0:stop-time=60 \
--sout "#transcode{vcodec=h264,fps=29.97,acodec=mp3}\
:std{access=file,mux=ts,dst=output.mpg}" aspect-ratio "4:3" -I dummy

Note that vlc uses alsactl to find sound devices, so oss devices may not work.

Latest revision as of 20:12, 2 November 2008

Guides

Examples

To record to x264 with VLC, use something like this:

vlc v4l:/dev/video0:norm=ntsc:frequency=77250:size=640x480:channel=5:\
adev=/dev/dsp1:samplerate=32000:audio=0:stop-time=60 \
--sout "#transcode{vcodec=h264,fps=29.97,acodec=mp3}\
:std{access=file,mux=ts,dst=output.mpg}" aspect-ratio "4:3" -I dummy

Note that vlc uses alsactl to find sound devices, so oss devices may not work.