Ajtim starikarp at
Sat Jul 14 22:40:37 UTC 2018


My system is FreeBSD 11.2-RELEASE (amd64) and it is installed on iMac
11,1 which has a built-in iSight video camera.
It worked and it works after todays update too. After update I have
video0 and video1 and both work the same.

But my problem is sound in mpv player. I start with  
mpv tv://v42: device=/dev/video0 
[tv] Selected driver: v4l2
[tv]  name: Video 4 Linux 2 input
[tv] your device driver does not support VIDIOC_G_STD ioctl,
VIDIOC_G_PARM was used instead. [tv] Selected device: Built-in iSight:
Built-in iSigh [tv]  Capabilities:  video capture  read/write  streaming
[tv]  supported norms:
[tv]  inputs: 0 = Camera 1;
[tv]  Current input: 0
[tv]  Current format: YUYV
[tv] tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
[tv] ioctl enum norm failed: Invalid argument
[tv] Error: Cannot set norm!
[tv] Selected input hasn't got a tuner!
[tv] ioctl set mute failed: Invalid argument
 (+) Video --vid=1 (rawvideo 640x480 30.000fps)
VO: [gpu] 640x480 yuv420p

I had the same problem with sound on VLC player.

But if I use:
 mencoder tv:// -tvdriver=v4l2:width=420:height=340:device=/dev/video0:forceaudio:adevice=/dev/dsp1
 -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o
 webcam.avimencoder tv:// -tv
 -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o
 webcam2.avidevice=/dev/video0:forceaudio:adevice=/dev/dsp1 -ovc lavc
 -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.avi

It save webcam.avi with sound. 

Any idea how to get sound on mpv player, please?

Thank you.


More information about the freebsd-questions mailing list