mixing datapath framegrabber with composite input
Mikael Kermorgant
mikael.kermorgant at gmail.com
Wed Jun 24 00:32:32 PDT 2015
Hello,
Just a note to say that thanks to Tim Müller, the problem got solved. It
had something to do with deinterlacing, and the following pipeline did the
trick :
DEST=192.168.100.100
BITRATE=2048
CAMSOURCE="v4l2src device=/dev/video0 ! video/x-raw-rgb, framerate=25/1"
VENC="x264enc tune=zerolatency byte-stream=true bitrate=$BITRATE"
VENC="x264enc tune=zerolatency byte-stream=true bitrate=$BITRATE"
SCREENSOURCE="v4l2src device=/dev/dada0 !
video/x-raw-yuv,format=\(fourcc\)YUY2,width=800,height=640, framerate=25/1"
AUDIOSOURCE="alsasrc device=hw:1"
gst-launch -v \
$CAMSOURCE ! ffmpegcolorspace ! videoscale !
video/x-raw-yuv,width=480,height=300 ! deinterlace fields=top ! \
queue ! videomixer name=mix ! \
$VENC ! flvmux name="mux" \
$AUDIOSOURCE ! ffenc_aac ! mux. \
mux. ! rtmpsink location="rtmp://$DEST/amphi/mp4:live" \
$SCREENSOURCE ! ffmpegcolorspace ! videobox border-alpha=1.0 top=0
left=-480 ! mix.
Regards
Mikael Kermorgant
On Wed, Jun 10, 2015 at 3:38 PM, Mikael Kermorgant <
mikael.kermorgant at gmail.com> wrote:
> Hello,
>
> In case it might be useful, I activated more debug on my command, which
> gace me this output : http://ur1.ca/msd8i
>
> Any idea or suggestion ?
>
> Regards
> Mikael
>
> On Tue, Jun 9, 2015 at 3:55 PM, Mikael Kermorgant <
> mikael.kermorgant at gmail.com> wrote:
>
>> Hello,
>>
>> I'm trying to mix two videos captured from /dev/video0 and /dev/video1
>> into one, on an old ubuntu 12.04.
>> I have successfully mixed videotestsrc sources, one videtestsrc with one
>> from /dev/videoN
>>
>> But when I try to combine /dev/video0 and /dev/video1, it fails.
>>
>> Here's the pipeline :
>>
>> gst-launch-0.10 -v \
>> v4l2src device=/dev/video0 ! video/x-raw-rgb ! videoscale !
>> video/x-raw-rgb,width=320,height=180 ! ffmpegcolorspace ! \
>> videomixer name=mix ! \
>> x264enc tune=zerolatency byte-stream=true bitrate=2048 ! queue !
>> filesink location="/tmp/pipcamera.avi" \
>> v4l2src device=/dev/dada0 ! video/x-raw-yuv,
>> width=1280,height=1024, framerate=10/1 ! videoscale ! video/x-raw-yuv,
>> format=\(fourcc\)YUY2, width=320,height=180 ! ffmpegcolorspace ! videobox
>> border-alpha=1.0 top=0 left=-320 ! mix.
>>
>> Main error is :
>>
>> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal
>> data flow error.
>> streaming task paused, reason not-negotiated (-4)
>>
>> Full output is here : http://ur1.ca/ms1uh
>>
>> Would you have any idea about what's wrong ?
>> Best regards
>>
>> --
>> Mikael Kermorgant
>>
>
>
>
> --
> Mikael Kermorgant
>
--
Mikael Kermorgant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150624/8e76c2d1/attachment.html>
More information about the gstreamer-devel
mailing list