Archived:VLC-V4L: Difference between revisions

From LinuxTVWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:

Cf. VLC's [http://wiki.videolan.org/index.php/How_to_Create_a_DVD How to Create a DVD].
Cf. VLC's [http://wiki.videolan.org/index.php/How_to_Create_a_DVD How to Create a DVD].


Line 5: Line 4:


vlc v4l:/dev/video$DEV:norm=ntsc:frequency=77250:size=640x480:channel=5:\
vlc v4l:/dev/video$DEV:norm=ntsc:frequency=77250:size=640x480:channel=5:\
adev=/dev/dsp$DEV:audio=0:stop-time=$TIM --sout #transcode{vcodec=h264,\
adev=/dev/dsp$DEV:samplerate=32000:audio=0:stop-time=$TIM \
--sout "#transcode{vcodec=h264,fps=29.97,acodec=mp3}\
acodec=mpga,vb=512,ab=96,samplerate=32000,venc=ffmpeg{keyint=80,hurry-up,\
vt=800000},deinterlace}:std{access=file,mux=ts,dst=$DIR/$FIL.avi}' -I dummy
:std{access=file,mux=ts,dst=$DIR/$FIL.mpg}" aspect-ratio "4:3" -I dummy


This should work -- though on my machines I don't get sound from vlc or ffmpeg.
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 ratio. 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.

Revision as of 04:30, 29 March 2006

Cf. VLC's How to Create a DVD.

It is also possible to record to x264 with VLC, using something like this:

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

This should work -- though on my machines I don't get sound from vlc or ffmpeg.