command line record audio/video webcam

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
johannesgj
New Cone
New Cone
Posts: 7
Joined: 02 Feb 2010 03:33

command line record audio/video webcam

Postby johannesgj » 02 Feb 2010 03:39

i know there is probably someone answered this allready but i have been searching and didnt find it so here goes my question any ways.

i need to get the following syntax to record audio also. right now it doesent and i really dont know why.

Code: Select all

C:\Programs...\vlc.exe dshow:// --sout=#transcode{vcodec=mp2v,vb=1024,fps=30,width=320,acodec=mp2a,ab=128,scale=1,channels=2,deinterlace,audio-sync}:duplicate{dst=standard{access=file,mux=ps,dst="C:\Output.mpg"},dst=display{}} --extraintf=logger -vvv
its a sampled code put together of different bits found on the web.

i dont know why but it doesent add sound.
another thing is that i dont know what to parse the command when i want the recorded video finnished

thanks in advance!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: command line record audio/video webcam

Postby VLC_help » 02 Feb 2010 17:40

Can you see your audio device in Media -> Open Capture Device... ?

johannesgj
New Cone
New Cone
Posts: 7
Joined: 02 Feb 2010 03:33

Re: command line record audio/video webcam

Postby johannesgj » 03 Feb 2010 09:28

yes it shows fine.
but there is one thing though. to get audio when normally capturing i need to press options on the audio and make it the mic in to get sound

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: command line record audio/video webcam

Postby VLC_help » 03 Feb 2010 13:24

press options on the audio and make it the mic in to get sound
that cannot be automated via scripting.

johannesgj
New Cone
New Cone
Posts: 7
Joined: 02 Feb 2010 03:33

Re: command line record audio/video webcam

Postby johannesgj » 04 Feb 2010 10:16

ok. hmmm
then what can i do to make the mic the default setting?
and then use my script to just capture a video with sound

thnx for reps

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: command line record audio/video webcam

Postby VLC_help » 04 Feb 2010 23:50

then what can i do to make the mic the default setting?
Hack some .DLL since the dialog comes from driver. Or build some sort of macro for change.

johannesgj
New Cone
New Cone
Posts: 7
Joined: 02 Feb 2010 03:33

Re: command line record audio/video webcam

Postby johannesgj » 05 Feb 2010 12:32

sorry if im totally newbie.
but how do i hack some dll?

johannesgj
New Cone
New Cone
Posts: 7
Joined: 02 Feb 2010 03:33

Re: command line record audio/video webcam

Postby johannesgj » 05 Feb 2010 13:45

SOLVED !!!
hurray
i figured out what i needed was to describe the adev used see here:

Code: Select all

C:\Programmer\VideoLAN\VLC\vlc.exe dshow:// [b]:dshow-adev="Conexant HD Audio input"[/b] --sout=#transcode{vcodec=mp2v,vb=1024,fps=30,width=320,acodec=mp2a,ab=128,scale=1,channels=2,deinterlace,audio-sync}:duplicate{dst=standard{access=file,mux=ps,dst="C:\Output.mpg"},dst=display{}} --extraintf=logger -vvv
that was what saved me. i needed to go from the standard input to the conexant input and that apparantly is done with the adev.

again hurray!!!
vlc is major lazor

johannesgj
New Cone
New Cone
Posts: 7
Joined: 02 Feb 2010 03:33

Re: command line record audio/video webcam

Postby johannesgj » 05 Feb 2010 13:46

sorry i made a mistake in the code before here is the final example:
C:\Programmer\VideoLAN\VLC\vlc.exe dshow:// :dshow-adev="Conexant HD Audio input" --sout=#transcode{vcodec=mp2v,vb=1024,fps=30,width=320,acodec=mp2a,ab=128,scale=1,channels=2,deinterlace,audio-sync}:duplicate{dst=standard{access=file,mux=ps,dst="C:\Output.mpg"},dst=display{}} --extraintf=logger -vvv


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests