Never mind all this. I forgot there was a gstreamer plugin written over a year ago to address this case. It is working, I am now able to capture hdmi and feed it into dvswitch.
On Sat, Aug 29, 2015 at 3:57 PM, Carl Karsten <c...@personnelware.com> wrote: > Is melt appropriate for this? > > I have a hardware hdmi frame grabber that exposes itself as a 4vl2 device. > I can view the stream with > > mplayer tv:// -tv driver=v4l2:device=/dev/video1 > > I need to convert that to ntsc dvd and stream it to stdout just like > dvgrab | foo > > > I am trying to do the ffmpeg command under v4l2 > http://dvswitch.alioth.debian.org/wiki/inputs/ > > current results: no image shows up on dvswtich (what dvsource-file > connects to.) > > juser@dc10b:~/dvsmon$ avconv -f video4linux2 -r 25 -i /dev/video1 -f > s16le -ar 48000 -ac 2 -i /dev/zero -target pal-dv - | dvsource-file > /dev/stdin > INFO: Reading from /dev/stdin > INFO: Connecting to room701.local:2000 > avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the > Libav developers > built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) > [video4linux2 @ 0x2574660] The driver changed the time per frame from 1/25 > to 2/15 > [video4linux2 @ 0x2574660] The v4l2 frame is 1004509 bytes, but 1572864 > bytes are expected > [video4linux2 @ 0x2574660] Estimating duration from bitrate, this may be > inaccurate > Input #0, video4linux2, from '/dev/video1': > Duration: N/A, bitrate: 94371 kb/s > Stream #0.0: Video: rawvideo, yuyv422, 1024x768, 94371 kb/s, 1000k > tbn, 7.50 tbc > [s16le @ 0x25756a0] Estimating duration from bitrate, this may be > inaccurate > Guessed Channel Layout for Input Stream #1.0 : stereo > Input #1, s16le, from '/dev/zero': > Duration: N/A, start: 0.000000, bitrate: N/A > Stream #1.0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s > Output #0, dv, to 'pipe:': > Metadata: > encoder : Lavf54.20.4 > Stream #0.0: Video: dvvideo, yuv420p, 720x576, q=2-31, 200 kb/s, 90k > tbn, 25 tbc > Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (rawvideo -> dvvideo) > Stream #1:0 -> #0:1 (pcm_s16le -> pcm_s16le) > Press ctrl-c to stop encoding > [video4linux2 @ 0x2574660] The v4l2 frame is 1055140 bytes, but 1572864 > bytes are expected > frame= 0 fps= 0 q=0.0 size= 0kB time=10718.61 bitrate= > 0.0kbits/s > frame= 0 fps= 0 q=0.0 size= 0kB time=11666.28 bitrate= > 0.0kbits/s > frame= 0 fps= 0 q=0.0 size= 0kB time=12582.72 bitrate= > 0.0kbits/s > ... > > > -- > Carl K > > -- Carl K
------------------------------------------------------------------------------
_______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel