Jump to content

how to record video & sound simultaneously


hatahata

Recommended Posts

i use oprange pi PC .

 

i do

ffmpeg -s 320x240  -f video4linux2 -i /dev/video0 /home/orange/out.mpg

then i get video . 
 
 
i do
arecord --device hw:0 -r 44100 -f S16_LE /home/orange/1.wav
then i get sound .
 
but i cannot get  both at once .
by using cheese , i have no sound .
i guess alsamixer and i must do something , but i donot know the followings . 
 
 
aplay -L is 
null
    Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=audiocodec
    audiocodec, 
    Default Audio Device
dmix:CARD=audiocodec,DEV=0
    audiocodec, 
    Direct sample mixing device
dsnoop:CARD=audiocodec,DEV=0
    audiocodec, 
    Direct sample snooping device
hw:CARD=audiocodec,DEV=0
    audiocodec, 
    Direct hardware device without any conversions
plughw:CARD=audiocodec,DEV=0
    audiocodec, 
    Hardware device with all software conversions
sysdefault:CARD=sndhdmi
    sndhdmi, 
    Default Audio Device
dmix:CARD=sndhdmi,DEV=0
    sndhdmi, 
    Direct sample mixing device
dsnoop:CARD=sndhdmi,DEV=0
    sndhdmi, 
    Direct sample snooping device
hw:CARD=sndhdmi,DEV=0
    sndhdmi, 
    Direct hardware device without any conversions
plughw:CARD=sndhdmi,DEV=0
    sndhdmi, 
    Hardware device with all software conversions
 
 
-----
regards
Link to comment
Share on other sites

at last i found vlc is easy to record both video and movie .

 

 

start vlc

and

ctrl + R

 

vlc1.jpg

cheese has no sound . , video only .

guvcview has no video , sound only .

vlc is great  but is not commnd line .

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines