I tried an Elgato HD60 S+ capture card after the recent uvideo changes,
but it doesn't seem to work -- even though a brief glance suggests
uvideo should support it.

The first thing that's a bit odd is that mjpeg isn't listed as being
supported, even though the device supports it. `raw` is shown as
supported, though with an unsupported pixel:

  $ ffplay -f v4l2 -list_formats all -i /dev/video0
  ...
  [video4linux2,v4l2 @ 0x410d675800] Raw       :        nv12 :                 
NV12 : 3840x2160
  [video4linux2,v4l2 @ 0x410d675800] Raw       :        nv12 :                 
NV12 : 3840x2160
  [video4linux2,v4l2 @ 0x410d675800] Raw       : Unsupported :    Unknown UC 
Format : 3840x2160
  [video4linux2,v4l2 @ 0x410d675800] Raw       :        nv12 :                 
NV12 : 3840x2160
  /dev/video0: Immediate exit requested

However, even `raw` doesn't seem to work, with ffmpeg stalling for about
10 seconds and then spitting out a couple of `ioctl` errors before
giving up:

  $ ffmpeg -f v4l2 -i /dev/video0 -video_size 3840x2160 -input_format rawvideo 
-c:v copy out.nut
  ...
  [video4linux2,v4l2 @ 0x5d3cf962c00] ioctl(VIDIOC_DQBUF): Invalid argument
  Input #0, video4linux2,v4l2, from '/dev/video0':
    Duration: N/A, bitrate: 2388791 kb/s
    Stream #0:0: Video: rawvideo (NV12 / 0x3231564E), nv12, 3840x2160, 2388791 
kb/s, 24 fps, 24 tbr, 1000k tbn
  Output #0, nut, to 'out.nut':
    Metadata:
      encoder         : Lavf60.16.100
    Stream #0:0: Video: rawvideo (NV12 / 0x3231564E), nv12, 3840x2160, q=2-31, 
2388791 kb/s, 24 fps, 24 tbr, 1000k tbn
  Stream mapping:
    Stream #0:0 -> #0:0 (copy)
  Press [q] to stop, [?] for help
  [video4linux2,v4l2 @ 0x5d3cf962c00] ioctl(VIDIOC_DQBUF): Invalid argument
  [in#0/video4linux2,v4l2 @ 0x5d3cf93b800] Error during demuxing: Invalid 
argument
  [in#0/video4linux2,v4l2 @ 0x5d3cf93b800] Error retrieving a packet from 
demuxer: Invalid argument
  [out#0/nut @ 0x5d3cf94f800] video:0kB audio:0kB subtitle:0kB other 
streams:0kB global headers:0kB muxing overhead: unknown
  [out#0/nut @ 0x5d3cf94f800] Output file is empty, nothing was encoded
  size=       0kB time=N/A bitrate=N/A speed=N/A

Relevant dmesg output:

  uvideo0 at uhub1 port 2 configuration 1 interface 0 "Elgato Game Capture HD60 
S+" rev 2.10/0.00 addr 2
  video0 at uvideo0
  uhidev7 at uhub1 port 2 configuration 1 interface 2 "Elgato Game Capture HD60 
S+" rev 2.10/0.00 addr 2
  uhidev7: iclass 3/0, 19 report ids
  uhid7 at uhidev7 reportid 1: input=0, output=0, feature=1
  uhid8 at uhidev7 reportid 2: input=0, output=4, feature=0
  uhid9 at uhidev7 reportid 3: input=258, output=0, feature=0
  uhid10 at uhidev7 reportid 4: input=0, output=260, feature=0
  uhid11 at uhidev7 reportid 5: input=0, output=1, feature=0
  uhid12 at uhidev7 reportid 6: input=1, output=0, feature=0
  uhid13 at uhidev7 reportid 7: input=0, output=0, feature=1
  uhid14 at uhidev7 reportid 8: input=0, output=0, feature=1
  uhid15 at uhidev7 reportid 9: input=0, output=3, feature=0
  uhid16 at uhidev7 reportid 10: input=33, output=0, feature=0
  uhid17 at uhidev7 reportid 11: input=0, output=35, feature=0
  uhid18 at uhidev7 reportid 12: input=0, output=1, feature=0
  uhid19 at uhidev7 reportid 13: input=1, output=0, feature=0
  uhid20 at uhidev7 reportid 14: input=0, output=2, feature=0
  uhid21 at uhidev7 reportid 15: input=0, output=3, feature=0
  uhid22 at uhidev7 reportid 16: input=32, output=0, feature=0
  uhid23 at uhidev7 reportid 17: input=0, output=35, feature=0
  uhid24 at uhidev7 reportid 18: input=0, output=1, feature=0
  uhid25 at uhidev7 reportid 19: input=1, output=0, feature=0
  uaudio6 at uhub1 port 2 configuration 1 interface 4 "Elgato Game Capture HD60 
S+" rev 2.10/0.00 addr 2
  uaudio6: class v1, high-speed, sync, channels: 0 play, 2 rec, 0 ctls
  audio1 at uaudio6


Laurie

Reply via email to