stream static file

Carl Karsten carl at nextdayvideo.com
Sat Sep 20 09:05:58 PDT 2014


gst-launch-1.0 \
    uridecodebin uri=$uri \
        ! tsdemux \
        ! timeoverlay \
        ! x264enc bitrate=2000 key-int-max=60 bframes=0 byte-stream=false
aud=true tune=zerolatency \
        ! h264parse \
        ! "video/x-h264,profile=main" \
        ! queue \
        ! mux. \
        ! "audio/x-raw, format=(string)S16LE, endianness=(int)1234,
signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100,
channels=(int)2" \
        ! voaacenc bitrate=128000 \
        ! flvmux streamable=true name=mux \
        ! rtmpsink location="rtmp://a.rtmp.youtube.com/live2/x/$AUTH
app=live2"


WARNING: erroneous pipeline: link without source element

I also noticed:
Missing element: H.264 decoder

So switched to a .webm file and removed most of the parameters - I'll tune
it once I get the pipline working.

gst-launch-1.0 \
    uridecodebin uri=$uri \
        ! qtdemux name=mux \
        ! x264enc \
        ! h264parse \
        ! "video/x-h264,profile=main" \
        ! queue mux.\
        ! audio/x-raw \
        ! voaacenc \
        ! flvmux streamable=true mux. \
        ! rtmpsink location="rtmp://a.rtmp.youtube.com/live2/x/$AUTH
app=live2"

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMatroskaDemux:matroskademux0:
GStreamer encountered a general stream error.
Additional debug info:
matroska-demux.c(4671): gst_matroska_demux_loop ():
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMatroskaDemux:matroskademux0:
stream stopped, reason not-linked
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...




On Sat, Sep 20, 2014 at 8:09 AM, Nicolas Dufresne <
nicolas.dufresne at collabora.com> wrote:

>
> Le 2014-09-20 01:38, Carl Karsten a écrit :
>
>>         ! mux. "audio/x-raw, format=(string)S16LE, endianness=(int)1234,
>> signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100,
>> channels=(int)2" \
>>
> I didn't tested the rest, but you are missing a ! between mux. and audio/.
> Hopefully that's all you need. I don't think that having live sources is
> strictly required, though without live source streamable=true must be
> manually set on flvmux (as it can't guess), but you do that already.
>
> cheers,
> Nicolas
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140920/e9051fe5/attachment-0001.html>


More information about the gstreamer-devel mailing list