Help with dv1394src pipeline

Ramiro Blanco ramiblanco at gmail.com
Sun Apr 28 20:49:43 PDT 2013


Found the problem by running the pipeline with "GST_DEBUG=2"
I got:

0:00:00.161635749  5217  0x8af6bb0 WARN           basetransform
gstbasetransform.c:1304:gst_base_transform_setcaps:<audioconvert0>
transform could not transform audio/x-raw-int, rate=(int)48000,
depth=(int)16, width=(int)16, signed=(boolean)true, channels=(int)2,
endianness=(int)1234 in anything we support

I've added audioresample and some other tweaking and finally ended up with:

gst-launch-0.10  dv1394src ! queue ! dvdemux name=demux demux.video ! queue
! dvdec ! ffmpegcolorspace ! aspectratiocrop aspect-ratio=16/9 ! x264enc
pass=pass1 threads=0 bitrate=536 tune=zerolatency ! queue ! flvmux name=mux
demux.audio ! audio/x-raw-int !  queue  ! audioresample ! audioconvert !
lame ! audio/mpeg ! mux. mux. !
rtmpsink location='rtmp://x.x.x.x/live/cdn_live_1324358201415'

Which seems to work as expected.

Hope it helps someone.

Cheers!


2013/4/27 Ramiro Blanco <ramiblanco at gmail.com>

> Hi, I'm trying to send a rtmp stream from a dv source (video and audio),
> but so far I wasn't able to capture both a/v.
>
> For instance, taking video from dv and audio from 'audiotestsrc' works:
>
> gst-launch-0.10 -m dv1394src ! dvdemux name=demux demux. !  dvdec !
> ffmpegcolorspace !  x264enc pass=pass1 threads=0 bitrate=536
> tune=zerolatency ! flvmux name=mux audiotestsrc ! audiorate ! audioconvert
> ! lame ! audio/mpeg ! mux. mux. !  rtmpsink
> location='rtmp://x.x.x.x/live/cdn_live_1324358201415'
>
> So far so good... But I need to use audio source from 1394, so when I've
> tried the following:
>
> gst-launch-0.10 -vvv dv1394src ! dvdemux name=demux demux. ! dvdec !
> ffmpegcolorspace ! x264enc pass=pass1 threads=0 bitrate=536
> tune=zerolatency ! flvmux name=mux demux. ! audiorate ! audioconvert ! lame
> ! audio/mpeg ! mux. mux. ! rtmpsink
> location='rtmp://x.x.x.x/live/cdn_live_1324358201415'
>
> throws:
>
> ERROR: from element /GstPipeline:pipeline0/GstDV1394Src:dv1394src0:
> Internal data flow error.
> Additional debug info:
> gstbasesrc.c(2625): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstDV1394Src:dv1394src0:
> streaming task paused, reason not-negotiated (-4)
>
> What am I doing wrong ?
>
> Cheers!
>
>
>
>
> --
> Ramiro Blanco
>



-- 
Ramiro Blanco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130429/40e4c175/attachment.html>


More information about the gstreamer-devel mailing list