[mythtv-users] Configuring USB3 HDMI capture device non-HDCP source

Robert LeBlanc robert at leblancnet.us
Tue Aug 15 05:37:44 UTC 2017


Before you stop reading, apparently my cable provider is not enforcing
HDCP as I can view the video streams with VLC without the need to do
any stripping or anything.

I purchased an "Imillet HDMI Video Capture with USB3.0/2.0 Dongle
1080P 60FPS Drive-Free Capture Card Box for Windows Linux Os X System"
[1] and I'm having a hard time getting MythTV to utilize the device.
It is v4l2 capable and I can use VLC, streamer, etc to capture and
view the video. Since my cable provider has moved to all digital, I
don't have much choice other than set-top boxes and IR blasting since
they can't turn off the copy protection for my HDHomeRun Prime (very
small cable provider).

I had limited success with setting the capture device as an "Analog
capture card", but the video plays at half speed (maybe because it is
capturing at 60 fps?). My audio is not coming through just yet because
I don't think I've passed the audio devices to the LXC container (my
previous MPEG-4 cards didn't need it).

I would have thought that "V4L2 Encoder" would be what I needed and
mythtv-setup shows "Probed info: USB3.0 Capture Video [uvcvideo]"
which is correct. When I try to watch LiveTV from it, I get a
segmentation fault.

2017-08-14 23:30:56.459309 I  MainServer: adding:
rleblanc-xps(9b8c5b1b70) as a client (events: 0)
2017-08-14 23:30:56.472924 I  TVRec[13]: Changing from None to WatchingLiveTV
2017-08-14 23:30:56.476207 I  TVRec[13]: TuningFrequency
2017-08-14 23:30:56.650376 I  V4LChannel[13](/dev/video0):
SetInputAndFormat(13, NTSC) (v4l v2) input_switch: 0 mode_switch: 1
2017-08-14 23:30:56.650400 E  V4LChannel[13](/dev/video0):
SetInputAndFormat(13, NTSC)
                       while disabling streaming (v4l v2)
                       eno: Device or resource busy (16)
2017-08-14 23:30:56.650413 E  V4LChannel[13](/dev/video0):
SetInputAndFormat(13, NTSC)
                       while setting format (v4l v2)
                       eno: Inappropriate ioctl for device (25)
2017-08-14 23:30:56.652200 I  V4LChannel[13](/dev/video0):
SetInputAndFormat(13, NTSC) (v4l v2) input_switch: 0 mode_switch: 1
2017-08-14 23:30:56.652217 E  V4LChannel[13](/dev/video0):
SetInputAndFormat(13, NTSC)
                       while disabling streaming (v4l v2)
                       eno: Device or resource busy (16)
2017-08-14 23:30:56.652229 E  V4LChannel[13](/dev/video0):
SetInputAndFormat(13, NTSC)
                       while setting format (v4l v2)
                       eno: Inappropriate ioctl for device (25)
2017-08-14 23:30:56.662394 N  AutoExpire: CalcParams(): Max required
Free Space: 2.0 GB w/freq: 15 min
2017-08-14 23:30:56.669261 W  LoadFromProgram(): SQL contains LIMIT
clause, caller should be updated to use limit parameter instead
2017-08-14 23:30:56.675715 N  ApplyRecordRecGroupChange: LiveTV to LiveTV (2)
2017-08-14 23:30:56.677443 E  V4L2(/dev/video0): Failed to retrieve
current Stream Type value.
                       eno: Invalid argument (22)
2017-08-14 23:30:56.713767 I  FileTransfer sock(9b8c583600) disconnected
2017-08-14 23:30:56.720059 I  Playback sock(9b8c5a1580) 'rleblanc-xps'
disconnected
2017-08-14 23:30:56.757400 N  AutoExpire: CalcParams(): Max required
Free Space: 2.0 GB w/freq: 15 min
2017-08-14 23:30:56.764039 W  LoadFromProgram(): SQL contains LIMIT
clause, caller should be updated to use limit parameter instead
2017-08-14 23:30:56.766163 E
RecordingInfo::InsertProgram(ProgramInfo(8772_20170815053056.ts):
channame() startts(Tue Aug 15 05:30:56 2017 GMT) endts(Tue Aug 15
06:00:00 2017 GMT)
            recstartts(Tue Aug 15 05:30:56 2017 GMT) recendts(Tue Aug
15 06:00:00 2017 GMT)
            title(Unknown)): recording already exists...
2017-08-14 23:30:56.772145 N  ApplyRecordRecGroupChange: LiveTV to LiveTV (2)
2017-08-14 23:30:56.772753 I  TVRec[13]: TuningNewRecorder - CreateRecorder()
2017-08-14 23:30:56.772857 E  V4L2SH(/dev/video0): Open() -- V4L
version 2 required
2017-08-14 23:30:56.772896 E  V4L2SH(/dev/video0): -- Failed to open
/dev/video0:
                       eno: Invalid argument (22)
2017-08-14 23:30:56.772906 E  V4L2Rec[13](/dev/video0): Open() --
Failed to open recorder: V4L version 2 required
2017-08-14 23:30:56.772919 E  V4L2Rec[13](/dev/video0): Open() --
Failed to open device
2017-08-14 23:30:56.772927 I  V4L2Rec[13](/dev/video0):
SetOptionsFromProfile() -- begin
2017-08-14 23:30:56.773844 C  Received Segmentation fault: Code 1, PID
424, UID 0, Value 0x00000000
2017-08-14 23:30:56.876471 I  MainServer: MainServer::ANN Playback
2017-08-14 23:30:56.876482 I  MainServer: adding:
rleblanc-xps(9b8c5a7f30) as a client (events: 0)
Segmentation fault

Any help getting this working would be appreciated. This is Debian
stretch with the debmultimedia repos:

$ mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : 03f4403
MythTV Branch : fixes/0.28
Network Protocol : 88
Library API : 0.28.20161120-1
QT Version : 5.7.1
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl
using_bindings_python using_bindings_php using_crystalhd using_dvb
using_firewire using_frontend using_hdhomerun usin
g_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu
using_libcec using_libcrypto using_libdns_sd using_libfftw3
using_libxml2 using_lirc using_mheg using_opengl using_opengl_video
using_opengl_themepainter using_qtwebkit
using_qtscript using_qtdbus using_taglib using_v4l2 using_x11
using_xrandr using_xv using_profiletype using_bindings_perl
using_bindings_python using_bindings_php using_freetype2
using_mythtranscode using_opengl using_vaapi using
_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2

[1] https://www.amazon.com/gp/product/B01M64EAX6/ref=oh_aui_detailpage_o03_s00?ie=UTF8&psc=1

Thank you,
Robert LeBlanc

----------------
Robert LeBlanc
PGP Fingerprint 79A2 9CA4 6CC4 45DD A904  C70E E654 3BB2 FA62 B9F1


More information about the mythtv-users mailing list