0

I have HDMI to S-Video converter: Mini Portable USB 2.0 Port HD 1 Way HDMI 1080P Video Capture Card For PC Laptop.

So it has:

  • HDMI input (connected to computer so I'm willing to record video output from it)

  • USB output (connected to a Debian based Linux distribution where mencoder is running - Linux raspberrypi 4.14.50-v7+ #1122 SMP Tue Jun 19 12:26:26 BST 2018 armv7l GNU/Linux)

I'm able to see /dev/video0 device when USB is plugged in.

This is a dmesg output when device connected:

[ 2132.394435] usb 1-1.3: new high-speed USB device number 7 using dwc2
[ 2132.527882] usb 1-1.3: config 1 interface 0 altsetting 1 bulk endpoint 0x83 has invalid maxpacket 256
[ 2132.530876] usb 1-1.3: New USB device found, idVendor=1b71, idProduct=3002
[ 2132.530898] usb 1-1.3: New USB device strings: Mfr=3, Product=4, SerialNumber=2
[ 2132.530906] usb 1-1.3: Product: usbtv007
[ 2132.530915] usb 1-1.3: Manufacturer: fushicai
[ 2132.530923] usb 1-1.3: SerialNumber: 300000000002
[ 2132.532973] usbtv 1-1.3:1.0: Fushicai USBTV007 Audio-Video Grabber

The issue: enter image description here

Normally it should like this: enter image description here

This is the mencoder command:

pi@raspberrypi:/tmp $ mencoder tv:// -tv driver=v4l2:norm=NTSC:device=/dev/video0:input=1:fps=5 -nosound -ovc copy -o test.avi
MEncoder 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team
success: format: 9  data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: usbtv
 Capabilities:  video capture  read/write  streaming
 supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-60;
 inputs: 0 = Composite; 1 = S-Video;
 Current input: 1
 Current format: YUYV
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
[V] filefmt:9  fourcc:0x32595559  size:720x480  fps:5.000  ftime:=0.2000
videocodec: framecopy (720x480 24bpp fourcc=32595559)
Forcing audio preload to 0, max pts correction to 0.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.2s      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]

Skipping frame!
Pos:   0.2s      3f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]

Invalid frame duration value (0.120/0.000 => -0.120). Defaulting to 0.040 sec.

Skipping frame!
Pos:   0.2s      4f ( 0%)  3.96fps Trem:   0min   0mb  A-V:0.000 [0:0]
v4l2: select timeout

some repeated and not relevant output removed

48 duplicate frame(s)!
Pos:  69.0s     38f ( 0%)  3.73fps Trem:   0min   0mb  A-V:0.000 [1602:0]

Skipping frame!
Pos:  69.2s     39f ( 0%)  3.81fps Trem:   0min   0mb  A-V:0.000 [1598:0]

Skipping frame!
Pos:  69.2s     40f ( 0%)  3.89fps Trem:   0min   0mb  A-V:0.000 [1598:0]

Invalid frame duration value (9.918/0.000 => -9.918). Defaulting to 0.040 sec.

Skipping frame!
^Cs:  69.2s     41f ( 0%)  3.80fps Trem:   0min   0mb  A-V:0.000 [1598:0]
v4l2: select timeout

Skipping frame!
Pos:  69.2s     42f ( 0%)  3.71fps Trem:   0min   0mb  A-V:0.000 [1598:0]
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: 1598.150 kbit/s  (199768 B/s)  size: 13824000 bytes  69.200 secs  42 frames
v4l2: ioctl set mute failed: Invalid argument
v4l2: 26 frames successfully processed, 31 frames dropped.
pi@raspberrypi:/tmp $ 

mencoder version: MEncoder 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team

The HDMI converter seems working, but for some reason there are green lines (glitches produced) and it makes the output almost not visible. I have tried two different HDMI to S-Video converters, two different HDMI cables and two different computers for HDMI output - the result is exactly the same. Do you have any thoughts what could be the issue? Thanks

1

In my case, removing dwc2 module from /boot/config.txt and /boot/cmdline.txt solved the issue.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.