CLI webcam record

About encoding, codec settings, muxers and filter usage
wdorison
New Cone
New Cone
Posts: 1
Joined: 12 Jun 2018 22:39

CLI webcam record

Postby wdorison » 12 Jun 2018 23:07

Hi,

I'm actually trying to record my webcam directly in a file with a 180 rotation.
But I have just the output in the VLC window (without the rotation) and the file is corrupted.

Code: Select all

vlc.exe -I rc dshow:// --sout="#duplicate{dst='transcode{vcodec=mp4v,vb=1260,fps=24,scale=1,width=640,height=480,acodec=mp4a,ab=96,channels=2,samplerate=44100}:std{access=file,mux=mp4,dst=C:\Users\wdorison\Desktop\test\test1.mp4}',dst='display'}" --rotate-angle 180

Someone has an idea for this problem.

Thanks for your help.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: CLI webcam record

Postby Jean-Baptiste Kempf » 26 Jun 2018 20:54

Use vcodec=h264, and add the filter in the sout chain.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 24 guests