Capture Card with Audio

Posted 2023-11-16 8:41 by azri.

ffmpeg -f v4l2 -framerate 30 -pixel_format mjpeg -video_size hd1080 -i /dev/video0  -f alsa -thread_queue_size 1024 -ac 2 -i hw:CARD=MS2109,DEV=0 -c:v libx264 -b:v 3000k -preset ultrafast -tune fastdecode -listen 1 -f mp4 -movflags frag_keyframe+empty_moov http://192.168.100.120:8080

Audio device not found when piping in TVHeadend

Need to run script (.sh)? 

arecord -L

stream from VLC, http. Need to try RSTP next.

https://stackoverflow.com/questions/26999595/what-steps-are-needed-to-stream-rtsp-from-ffmpeg

https://forums.raspberrypi.com/viewtopic.php?t=66259 Try mjpg streamer?

https://forums.raspberrypi.com//viewtopic.php?f=41&t=61787

https://www.mankier.com/1/v4l2-ctl

https://stackoverflow.com/questions/59574987/how-to-change-mjpeg-to-yuyv422-from-a-webcam-to-a-v4l2loopback loopback?

https://superuser.com/questions/1639086/how-to-use-ffmpeg-to-save-video-and-audio-streams-to-a-file-in-linux

https://trac.ffmpeg.org/wiki/Capture/V4L2_ALSA

https://tvheadend.org/boards/4/topics/40891 try this? systemd as service...

41
 

Use -q:v to control (M)JPEG quality

The effective range is a linear scale of 2-31, and a lower value will result in a higher quality output.

Examples

Make MJPEG video in MOV container:

ffmpeg -i input.mov -c:v mjpeg -q:v 3 -an output.mov