n00b wants to play movie to quicktime over net

Peter Maersk-Moller pmaersk at gmail.com
Sun Sep 22 13:00:23 PDT 2013


You have a double paste in the pipeline

This is the correct pipeline and playable using VLC on all platforms

gst-launch-0.10 -v filesrc location=archidance-0.mov ! qtdemux name=demuxer
! h264parse ! queue ! ffdec_h264 ! x264enc ! mpegtsmux name=muxer !
 mpegtsparse ! queue ! filesink location=file.ts demuxer. !
 'audio/x-raw-int' ! queue ! lamemp3enc ! queue !  muxer.

If you want to support live http streaming to iOS, html5, quicktime, VLC
etc. then you can on your server add these two scripts

gst-launch-0.10 -v filesrc location=archidance-0.mov ! qtdemux name=demuxer
! h264parse ! queue ! ffdec_h264 ! x264enc ! mpegtsmux name=muxer !
mpegtsparse ! queue ! tcpserversink host=127.0.0.1 port=5010 sync=true
sync-method=2 demuxer. ! 'audio/x-raw-int' ! queue ! lamemp3enc ! queue !
muxer.

#!/bin/bash
vlc -I dummy --tcp-caching 0    \
        tcp@://127.0.0.1:5010   \
        vlc://quit              \

--sout='#standard{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=/var/www/recordings/mystream.m3u8,index-url=
http://192.168.1.2/recordings/mystream-########.ts
},mux=ts{use-key-frames},dst=/var/www/recordings/mystream-########.ts}'

Of course you need to set IP and paths to fit your configuration.

Best regards
Peter



On Sun, Sep 22, 2013 at 8:57 PM, Randy Bush <randy at psg.com> wrote:

> > You can also transcode offline doing this
> >
> > gst-launch-0.10 -v filesrc location=archidance-0.mov ! qtdemux
> name=demuxer
> > ! h264parse ! queue ! ffdec_h264 ! x264enc ! mpegtsmux name=muxer !
> >  mpegtsparse ! queue ! filesink location=file.ts demuxer. !
> > 'audio/x-raw-int' ! queue ! lamemp3enc ! queue !  muxer.
>
> rtsp.iad.rg.net:/home/randy> gst-launch-0.10 -v filesrc
> location=archidance-0.mov ! qtdemux name=demuxer ! h264parse ! queue !
> ffdec_h264 ! x264enc ! mpegtsmux name=muxer !  mpegtsparse ! queue !
> filesink location=file.ts demuxer. !  'audio/x-raw-int' ! queue !
> lamemp3enc ! queue !  muxer.gst-launch-0.10 -v filesrc
> location=archidance-0.mov ! qtdemux name=demuxer ! h264parse ! queue !
> ffdec_h264 ! x264enc ! mpegtsmux name=muxer !  mpegtsparse ! queue !
> filesink location=file.ts demuxer. !  'audio/x-raw-int' ! queue !
> lamemp3enc ! queue !  muxer.
>
> (gst-launch-0.10:24759): GStreamer-WARNING **: Name 'demuxer' is not
> unique in bin 'pipeline0', not adding
>
> (gst-launch-0.10:24759): GStreamer-WARNING **: Name 'muxer' is not unique
> in bin 'pipeline0', not adding
>
> (gst-launch-0.10:24759): GStreamer-WARNING **: Trying to connect elements
> that don't share a common ancestor: filesrc1 and demuxer
>
> (gst-launch-0.10:24759): GStreamer-WARNING **: Trying to connect elements
> that don't share a common ancestor: filesrc1 and demuxer
>
> (gst-launch-0.10:24759): GStreamer-WARNING **: Trying to connect elements
> that don't share a common ancestor: x264enc1 and muxer
>
> (gst-launch-0.10:24759): GStreamer-WARNING **: Trying to connect elements
> that don't share a common ancestor: muxer and mpegtsparse1
>
> (gst-launch-0.10:24759): GStreamer-WARNING **: Trying to connect elements
> that don't share a common ancestor: muxer and mpegtsparse1
> WARNING: erroneous pipeline: could not link filesrc1 to demuxer
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130922/1aceec12/attachment.html>


More information about the gstreamer-devel mailing list