[gst-devel] recording a file from stream

George Beasley george.beasley at d2see.com
Wed Sep 19 11:05:10 CEST 2007


I don't think your issue is with your pipeline, I think it's with the
way you terminate the stream. I've been recording from a rtp streams
(h263 and amr) and I found that you cannot simply Ctrl-C to stop
to-command-line streaming as the muxer needs to close down gracefully
(essentially it needs to write a table of contents in the file) and
that's why the file created doesn't play back. To test this add the
num-buffers=50 property to the udpsrc; after receiving 50 buffers it
will send an EOS message through the pipeline and close it down
gracefully.

I have had problems with the rtpamrdepay however the issues I had don't
seem to be related to yours. My issues were that it would perpetually
fail to recognise that I had provided it with a clock rate - however
this has now been fixed in the version available from cvs.


-----Original Message-----
From: gstreamer-devel-bounces at lists.sourceforge.net
[mailto:gstreamer-devel-bounces at lists.sourceforge.net] On Behalf Of
Terry Leung
Sent: Tuesday, 18 September 2007 09:57
To: gstreamer-devel at lists.sourceforge.net
Subject: Re: [gst-devel] recording a file from stream

Hi all,

I discover that even i do it without udpsink and udpsrc, it still
doesnt work, I suspect this is a bug...

The pipeline i use this time is:
gst-launch -v ffmux_3gp name=mux ! filesink
location=/home/video/jill3.3gp \
{filesrc location=/home/video/jill.3gp ! qtdemux name=demuxer2 !
rtpamrpay ! rtpamrdepay queue-delay=0 ! queue }! mux.audio_0

without using rtpamrpay and rtpamrdepay, this pipeline work perfectly
after adding this, the output file cannot be demux

when i try to open the output file to demux and strema it like before,
it shows that:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /pipeline0/demuxer: This file contains no playable
streams.
Additional debug info:
qtdemux.c(1444): gst_qtdemux_loop (): /pipeline0/demuxer:
no known streams found
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
FREEING pipeline ...

The pipeline I use to stream is :
gst-launch -v filesrc location=/home/video/jill3.3gp ! qtdemux
name=demuxer \
demuxer.!queue! rtpamrpay pt=98 ! udpsink host=172.20.122.9 port=11002

anyone here has tried to use rtpamrdepay with success?


On 9/17/07, Terry Leung <terry83 at gmail.com> wrote:
> Hi all,
>
> I am writing a program to record rtp stream into a 3gp file(currently
only amr)
> I try to build a pipeline like the following:
>
> gst-launch ffmux_3gp name=mux ! filesink
> location=/home/video/receive.3gp name=file \
> {udpsrc port=11002 name=audioudp \
> caps="application/x-rtp, media=audio, payload=96, clock-rate=8000,
> encoding-name=AMR, ssrc=111111002 "\
>  ! rtpamrdepay ! queue } mux.audio_0
>
> After i generate stream from another source, it shows that
>
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> ERROR: from element /pipeline0/audioudp: Internal data flow error.
> Additional debug info:
> gstbasesrc.c(1816): gst_base_src_loop (): /pipeline0/audioudp:
> streaming task paused, reason not-negotiated (-4)
> Execution ended after 12698510000 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> FREEING pipeline ...
>
> anyone got idea on how to make it work?
>

------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
This e-mail message (including any attachment) is confidential. If you have received this email in error please notify the sender immediately and delete this email from your system without copying or disseminating it or placing any reliance upon its contents. Any opinions expressed in this email (including attachments) are those of the author only.  This message (including any attachments) does not create any legally binding rights or obligations. D2see Limited is a company registered in England and Wales no. 5836806. Registered Office: 10 Barley Mow Passage, London W4 4PH, UK. VAT registered, no. 888 1076 85.  Tel +44 20 8819 5710




More information about the gstreamer-devel mailing list