LINUX.ORG.RU

Плата видеозахвата EUsbRec63: в выходном файле нет звука.

 , ,


0

1
$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: CAMERA [USB2.0 PC CAMERA], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC891 Analog [ALC891 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 2: ALC891 Alt Analog [ALC891 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Попытка подставить адрес устройства приводит к ошибке:

$ ffmpeg -f v4l2 -standard PAL -thread_queue_size 512 -i /dev/video0 -f alsa -thread_queue_size 512 -i hw:0,0 -vcodec mpeg2video -preset superfast -crf 25 -s 704x520 -r 25 -b:v 6000k  -aspect 4:3 -acodec mp2 -b:a 192k -channels 2 -ar 48000 out.mpg
...
[video4linux2,v4l2 @ 0x5611e2df6400] This device does not support any standard
[mjpeg @ 0x5611e2df6e00] EOI missing, emulating                                                                                               
Input #0, video4linux2,v4l2, from '/dev/video0':                                                                                              
  Duration: N/A, start: 2670.126785, bitrate: N/A
  Stream #0:0: Video: mjpeg (Baseline), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 30 fps, 30 tbr, 1000k tbn
[alsa @ 0x5611e2df7f40] cannot set channel count to 2 (Invalid argument)
[in#1 @ 0x5611e2df7c40] Error opening input: Input/output error                                                                               
Error opening input file hw:0,0.                                                                                                              
Error opening input files: Input/output error                                                                                                 
[video4linux2,v4l2 @ 0x5611e2df6400] Some buffers are still owned by the caller on close.                                                     
ioctl(VIDIOC_QBUF): Bad file descriptor                                                        

адрес же вида «hw:1,0» запись разрешает, но трек пуст, не записывается даже то, что сейчас идёт по «hw:1,0». Графические программы всё играют, но… qv4l2 выдаёт только дамп, videolan искажает видео вплоть до полного неприятия записей в SECAM



Последнее исправление: moskvich (всего исправлений: 1)