Page 1 of 1

CLI webcam record

Posted: 12 Jun 2018 23:07
by wdorison
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.

Re: CLI webcam record

Posted: 26 Jun 2018 20:54
by Jean-Baptiste Kempf
Use vcodec=h264, and add the filter in the sout chain.