[Problem] Recording from webcam to h264 - file isn't saved

About encoding, codec settings, muxers and filter usage
mangar
New Cone
New Cone
Posts: 1
Joined: 04 Jan 2010 18:17

[Problem] Recording from webcam to h264 - file isn't saved

Postby mangar » 04 Jan 2010 18:44

Hi all,
I'm trying to record from a webcam to a h264 file using the command line.
Current results: the webcam input is displayed in the VLC menu, but the file isn't save to the hdd.

Command line parameters:

Code: Select all

vlc dshow:// :dshow-vdev="Logitech Webcam 500" :dshow-adev="Microphone (Logitech Mic (Webca" :dshow-size=800x600 --sout-transcode-vcodec=h264 --sout-transcode-vb=800 --sout-transcode-scale=1 --sout-transcode-scale=1 --sout-transcode-aenc=mp3 --sout-transcode-ab=128 --sout-transcode-channels=2 --sout-transcode-samplerate=11250 --sout-transcode-threads=2 --sout-standard-access=file --sout-standard-mux=avi --sout-standard-dst="C:\\tmp\\c.avi"
What need I do in order in order to record from the webcam? An example will be greatly appreciated.

Thanks!

skirmish75
New Cone
New Cone
Posts: 2
Joined: 28 Jan 2010 17:27

Re: [Problem] Recording from webcam to h264 - file isn't saved

Postby skirmish75 » 28 Jan 2010 18:02

Hi,
I have a problem using the plug-in for VLC.

In practice, with version 0.8.6 with the string

:sout=#transcode{vcodec=MP4V,vb=256,acodec=mp3,ab=32,soverlay}:duplicate{dst=display,dst=std{access=file,mux=mp4,dst=c:\\output.avi}}

I could record any source into a MP4 file

Now with version 1.0.3 the file is no longer created. What is wrong? What is the syntax for the new version?

Thanks in advance

pawprint_net
New Cone
New Cone
Posts: 1
Joined: 20 Feb 2011 21:02

Re: [Problem] Recording from webcam to h264 - file isn't sav

Postby pawprint_net » 20 Feb 2011 21:06

I have a partial working solution I think you need dst=standard not dst=std

Code: Select all

"C:\Program Files (x86)\VideoLAN\VLC\\vlc.exe" -vvv <inputstream> --sout "#display:transcode{vcodec=h264,vb=380,fps=24,noaudio}:duplicate{dst=standard{access=file,dst=G:\LocalStream.mp4},dst=display}"
The above saves the file just fine - but the display is paused all the time on the first frame of the stream received - I'm trying to see how to get a live view but nothing I have found will work. Either it transcodes OR I can watch a live stream - but can't seem to get it to do both. If I find a solution I'll update the thread. Unfortunately all the documentation examples don't work.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests