I have bought a HD HDMI to UVC device which has HDMI video source input and UVC for video output here.
I connect it from laptop A (input source HDMI) to laptop B (output USB).
I have installed Ubuntu 14.04 desktop on Laptop B and Win 8.1 on Laptop A.
B also have ffmpeg, opencv and sdl library installed.
My target is to capture video and audio from A via HD HDMI to UVC on B.
So I have decided to use libav of ffmpeg.
I saw this and used avformat_open_input function but this function returned error.
I thought that the error was occurred because the second parameter of avformat_open_input (const char * url) was invalid.
I know that the url should be like video:video device name:audio:audio card name.
How can I indicate the device names?
Here's the result of v4l2-ctl --list-devices command in terminal.
HD WebCam (usb-0000:02:03.0-1):
/dev/video0
HD TV CAM (usb-0000:03:00.0-2.1):
/dev/video1
And the result of arecord -l in terminal.
**** List of CAPTURE Hardware Devices ****
card 0: AudioPCI [Ensoniq AudioPCI], device 0: ES1371/1 [ES1371 DAC2/ADC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CAM [HD TV CAM], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Thank you.