[gst-devel] simultaneously showing and recording MPEG-2 video
Robert Krakora
rob.krakora at messagenetsystems.com
Tue Sep 21 23:07:11 CEST 2010
Faruk:
One thing I forgot on the pipeline example in my response was the '--*eos*
-on-*shutdown' option *after 'gst-launch'. This is needed by the 'filesink'
element in order to properly close the file on a SIGINT.
gst-launch -v --eos-on-shutdown gnomevfssrc
location=http://admin:mncamera@192.168.1.176/img/video.asf ! tee
name=t ! queue
! fluasfdemux ! mpeg4videoparse ! flumpeg4vdec ! xvimagesink t. ! queue !
fluasfdemux ! mpeg4videoparse ! mp4mux ! filesink location=file.mp4
Best Regards,
--
Rob Krakora
Senior Software Engineer
MessageNet Systems
101 East Carmel Dr. Suite 105
Carmel, IN 46032
(317)566-1677 Ext. 206
(317)663-0808 Fax
On Tue, Sep 21, 2010 at 4:52 PM, Robert Krakora <
rob.krakora at messagenetsystems.com> wrote:
> Hi Faruk,
>
> I believe that you want something like this:
>
> gst-launch -v gnomevfssrc location=http://admin:mncamera@192.168.1.176/img/video.asf ! tee name=t ! queue
>
> ! fluasfdemux ! mpeg4videoparse ! flumpeg4vdec ! xvimagesink t. ! queue !
> fluasfdemux ! mpeg4videoparse ! mp4mux ! filesink location=file.mp4
>
> This pipeline plays back an MPEG4 video in an ASF container from a Linksys WVC200 PTZ camera over an HTTP connection and also transcodes and stores
>
> it as an 'mp4' file. The 'tee' and 'queue' elements are the keys here.
>
> Best Regards,
>
> --
> Rob Krakora
> Senior Software Engineer
> MessageNet Systems
> 101 East Carmel Dr. Suite 105
> Carmel, IN 46032
> (317)566-1677 Ext. 206
> (317)663-0808 Fax
>
> On Tue, Sep 21, 2010 at 8:45 AM, <
> gstreamer-devel-request at lists.sourceforge.net> wrote:
>
>> Send gstreamer-devel mailing list submissions to
>> gstreamer-devel at lists.sourceforge.net
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>> or, via email, send a message with subject or body 'help' to
>> gstreamer-devel-request at lists.sourceforge.net
>>
>> You can reach the person managing the list at
>> gstreamer-devel-owner at lists.sourceforge.net
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of gstreamer-devel digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Re: simultaneously showing and recording MPEG-2 video
>> (Michael Joachimiak)
>> 2. Re: simultaneously showing and recording MPEG-2 video
>> (Michael Joachimiak)
>> 3. Re: simultaneously showing and recording MPEG-2 video
>> (Michael Joachimiak)
>> 4. Re: H264 problems (Gary Thomas)
>> 5. question on playbin2 for RTP streaming. (wu jieke)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Tue, 21 Sep 2010 14:52:53 +0300
>> From: Michael Joachimiak <mjoachimiak at gmail.com>
>> Subject: Re: [gst-devel] simultaneously showing and recording MPEG-2
>> video
>> To: Discussion of the development of GStreamer
>> <gstreamer-devel at lists.sourceforge.net>
>> Message-ID:
>> <AANLkTinm3MdXnMatFYR38gHzHy2bXzdQ99kdvwmBiA2v at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> You could take a look at tee element.
>> It might be suitable for you.
>>
>> 2010/9/16 frknml <faruk.namli at gmail.com>
>>
>> >
>> >
>> >
>> > Hi everyone;
>> >
>> > I'm very new for gstreamer and i'm developing multimedi project.My first
>> > aim
>> > is showing video which is in my local file system and at the same time i
>> > want to record this video as a second copy of my original video.I can
>> show
>> > video and i can record this video individually but not simultaneously.I
>> > couldn't find enough information in Gstreamer Application Development
>> > Manual
>> > from gstreamer.net to solve my problem.
>> > If you have any document,ebook or example please share me :) because i
>> > couldn't find any useful resource about gstreamer.
>> >
>> > Faruk
>> > --
>> > View this message in context:
>> >
>> http://gstreamer-devel.966125.n4.nabble.com/simultaneously-showing-and-recording-MPEG-2-video-tp2541735p2541735.html
>> > Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Start uncovering the many advantages of virtual appliances
>> > and start using them to simplify application deployment and
>> > accelerate your shift to cloud computing.
>> > http://p.sf.net/sfu/novell-sfdev2dev
>> > _______________________________________________
>> > gstreamer-devel mailing list
>> > gstreamer-devel at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>> >
>>
>>
>>
>> --
>> Your Sincerely
>> Michael Joachimiak
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Tue, 21 Sep 2010 14:52:53 +0300
>> From: Michael Joachimiak <mjoachimiak at gmail.com>
>> Subject: Re: [gst-devel] simultaneously showing and recording MPEG-2
>> video
>> To: Discussion of the development of GStreamer
>> <gstreamer-devel at lists.sourceforge.net>
>> Message-ID:
>> <AANLkTinm3MdXnMatFYR38gHzHy2bXzdQ99kdvwmBiA2v at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> You could take a look at tee element.
>> It might be suitable for you.
>>
>> 2010/9/16 frknml <faruk.namli at gmail.com>
>>
>> >
>> >
>> >
>> > Hi everyone;
>> >
>> > I'm very new for gstreamer and i'm developing multimedi project.My first
>> > aim
>> > is showing video which is in my local file system and at the same time i
>> > want to record this video as a second copy of my original video.I can
>> show
>> > video and i can record this video individually but not simultaneously.I
>> > couldn't find enough information in Gstreamer Application Development
>> > Manual
>> > from gstreamer.net to solve my problem.
>> > If you have any document,ebook or example please share me :) because i
>> > couldn't find any useful resource about gstreamer.
>> >
>> > Faruk
>> > --
>> > View this message in context:
>> >
>> http://gstreamer-devel.966125.n4.nabble.com/simultaneously-showing-and-recording-MPEG-2-video-tp2541735p2541735.html
>> > Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Start uncovering the many advantages of virtual appliances
>> > and start using them to simplify application deployment and
>> > accelerate your shift to cloud computing.
>> > http://p.sf.net/sfu/novell-sfdev2dev
>> > _______________________________________________
>> > gstreamer-devel mailing list
>> > gstreamer-devel at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>> >
>>
>>
>>
>> --
>> Your Sincerely
>> Michael Joachimiak
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Tue, 21 Sep 2010 14:52:53 +0300
>> From: Michael Joachimiak <mjoachimiak at gmail.com>
>> Subject: Re: [gst-devel] simultaneously showing and recording MPEG-2
>> video
>> To: Discussion of the development of GStreamer
>> <gstreamer-devel at lists.sourceforge.net>
>> Message-ID:
>> <AANLkTinm3MdXnMatFYR38gHzHy2bXzdQ99kdvwmBiA2v at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> You could take a look at tee element.
>> It might be suitable for you.
>>
>> 2010/9/16 frknml <faruk.namli at gmail.com>
>>
>> >
>> >
>> >
>> > Hi everyone;
>> >
>> > I'm very new for gstreamer and i'm developing multimedi project.My first
>> > aim
>> > is showing video which is in my local file system and at the same time i
>> > want to record this video as a second copy of my original video.I can
>> show
>> > video and i can record this video individually but not simultaneously.I
>> > couldn't find enough information in Gstreamer Application Development
>> > Manual
>> > from gstreamer.net to solve my problem.
>> > If you have any document,ebook or example please share me :) because i
>> > couldn't find any useful resource about gstreamer.
>> >
>> > Faruk
>> > --
>> > View this message in context:
>> >
>> http://gstreamer-devel.966125.n4.nabble.com/simultaneously-showing-and-recording-MPEG-2-video-tp2541735p2541735.html
>> > Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Start uncovering the many advantages of virtual appliances
>> > and start using them to simplify application deployment and
>> > accelerate your shift to cloud computing.
>> > http://p.sf.net/sfu/novell-sfdev2dev
>> > _______________________________________________
>> > gstreamer-devel mailing list
>> > gstreamer-devel at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>> >
>>
>>
>>
>> --
>> Your Sincerely
>> Michael Joachimiak
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>>
>> ------------------------------
>>
>> Message: 4
>> Date: Tue, 21 Sep 2010 06:13:01 -0600
>> From: Gary Thomas <gary at mlbassoc.com>
>> Subject: Re: [gst-devel] H264 problems
>> To: Discussion of the development of GStreamer
>> <gstreamer-devel at lists.sourceforge.net>
>> Message-ID: <4C98A14D.8030508 at mlbassoc.com>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> On 09/21/2010 02:43 AM, Andrey Nechypurenko wrote:
>> >> and this one stall?
>> >>
>> >> gst-launch -v v4l2src num-buffers=200 !
>> >> 'video/x-raw-yuv,width=720,height=480,format=(fourcc)UYVY' !
>> >> \ ffmpegcolorspace !
>> >> 'video/x-raw-yuv,width=720,height=480,format=(fourcc)I420' !
>> >> x264enc ! filesink location=/tmp/hold.h264
>> >
>> > I would suggest to try the following. Run your pipeline with
>> > increased debug level, i.e. GST_DEBUG=3 gst-launch ... and search
>> > for any relevant messages which might give you the hint about
>> > what is going wrong. In addition, I remember some strange
>> > behavior got fixed by explicitly mentioning the framerate. In
>> > your case, for example, in caps filter right after v4l2src add
>> > framerate=30/1 or whatever is appropriate frame rate for your
>> > camera.
>>
>> I sure don't see anything, perhaps someone that understands this better
>> can. I put a level 4 dump of this at http://pastebin.com/iDDVuHgv
>>
>> >
>> > In addition, since you are using gstreamer on TI platform, you
>> > can consider asking the question also here:
>> >
>> https://gstreamer.ti.com/gf/project/gstreamer_ti/forum/?action=ForumBrowse&forum_id=187
>>
>> Except that my problem is not with any of the TI components - it's
>> only the off-the-shelf encoder that stalls.
>>
>> --
>> ------------------------------------------------------------
>> Gary Thomas | Consulting for the
>> MLB Associates | Embedded world
>> ------------------------------------------------------------
>>
>>
>>
>> ------------------------------
>>
>> Message: 5
>> Date: Tue, 21 Sep 2010 09:09:45 +0800
>> From: wu jieke <jieke.wu at gmail.com>
>> Subject: [gst-devel] question on playbin2 for RTP streaming.
>> To: gstreamer-devel at lists.sourceforge.net
>> Message-ID:
>> <AANLkTik5MX3CRQr01bPsO0gQf3j18s_5dBOoTP0MkHAG at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> hi, all ,
>> i am setting up RTP streaming environment between a X86 server and a
>> embedded system client, host app is VLC, and target/client is gst-launch,
>> commands are following:
>>
>> HOST:
>> # vlc -vvv big_buck_bunny_480p_h264.mov --sout
>> '#rtp{dst=<dst ip>, port=5004,sdp=rtsp://<server ip>:8080/test.sdp}'
>>
>> Target/client:
>> # gst-launch udpsrc multicast-group=<server ip>
>>
>> caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
>> port=5004 ! rtph264depay ! my-codec-hw ! my-render-hw"
>>
>> the command works well, then i hope playbin2 creates hardware
>> pipeline
>> automatically, command line here:
>>
>> # gst-launch playbin2 uri=rtsp://<server ip>:8080/test.sdp
>>
>> it fails to play. btw : playbin2 works well with my optimized codec
>> and render, i test it with command. (gst-launch playbin2
>> uri=file:///big_buck.mov ), it can find the right elements, such as
>> "my-codec-hw" and "my-render-hw".
>>
>> then i dump the log of gst-launch , and find playbin2 not perform
>> preroll for live streams, which cause full or real pipeline is not ready
>> before getting GstSystemClock.
>> in fact, my optimized render can only use the specified clock
>> provided
>> with *_sink_provide_clock(), not GstSystemClock. so the pipeline hang
>> even
>> it links the optimized elements.
>>
>> my question is that how can i tell playbin2 to use my provided clock
>> for live pipeline?
>> if any misunderstanding , pls correct me.
>>
>>
>>
>> --
>> It's not the things you do in life that you regret ,
>> but the things that you do not do
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>>
>> ------------------------------
>>
>>
>> ------------------------------------------------------------------------------
>> Start uncovering the many advantages of virtual appliances
>> and start using them to simplify application deployment and
>> accelerate your shift to cloud computing.
>> http://p.sf.net/sfu/novell-sfdev2dev
>>
>> ------------------------------
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>> End of gstreamer-devel Digest, Vol 52, Issue 48
>> ***********************************************
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100921/79694d2c/attachment.htm>
More information about the gstreamer-devel
mailing list