Hi all,
I am trying to save a live stream in a file. Below are the pipelines & error messages. Sender side Pipeline: gst-launch gstrtpbin name=rtpbin filesrc location=~/Desktop/h264-aac/alien.mp4 ! qtdemux name=d d. ! rtph264pay ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink port=5002 host=239.220.8.13 rtpbin.send_rtcp_src_0 ! udpsink port=5003 host=239.220.8.13 sync=false async=false udpsrc port=5007 ! rtpbin.recv_rtcp_sink_0 Receiver side Pipeline: gst-launch udpsrc caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, profile-level-id=(string)4d4033, sprop-parameter-sets=(string)\"Z01AM5JSAoP2AiAAAAMDACAAAAYR4wZJ\\,aO4CvIA\\=\", ssrc=(guint)2050116617, payload=(int)96, clock-base=(guint)3965693777, seqnum-base=(guint)4980" port=5002 ! queue2 ! rtph264depay ! ffmux_mp4 ! filesink location=~/Desktop/test.mp4 ERROR: Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock ERROR: from element /GstPipeline:pipeline0/ffmux_mp4:ffmux_mp40: Could not configure supporting library. Additional debug info: gstffmpegmux.c(485): gst_ffmpegmux_collected (): /GstPipeline:pipeline0/ffmux_mp4:ffmux_mp40: Failed to write file header - check codec settings Execution ended after 2126051332 ns. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... FREEING pipeline ... Can anyone suggest the way to save live stream. Thanks PS : The file I am streaming on sender side has H264 video content. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
The pipeline needs to shut down gracefully. You will have to send eos
to pipeline. Ctrl-C won't work as the pipeline is shut down abruptly. But I guess, eos feature is recently added for gst-launch. On Tue, Apr 21, 2009 at 2:36 PM, Jyoti <[hidden email]> wrote: > Hi all, > > I am trying to save a live stream in a file. Below are the pipelines & error > messages. > > Sender side Pipeline: > gst-launch gstrtpbin name=rtpbin filesrc > location=~/Desktop/h264-aac/alien.mp4 ! qtdemux name=d d. ! rtph264pay ! > rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink port=5002 > host=239.220.8.13 rtpbin.send_rtcp_src_0 ! udpsink port=5003 > host=239.220.8.13 sync=false async=false udpsrc port=5007 ! > rtpbin.recv_rtcp_sink_0 > > Receiver side Pipeline: > gst-launch udpsrc caps="application/x-rtp, media=(string)video, > clock-rate=(int)90000, encoding-name=(string)H264, > profile-level-id=(string)4d4033, > sprop-parameter-sets=(string)\"Z01AM5JSAoP2AiAAAAMDACAAAAYR4wZJ\\,aO4CvIA\\=\", > ssrc=(guint)2050116617, payload=(int)96, clock-base=(guint)3965693777, > seqnum-base=(guint)4980" port=5002 ! queue2 ! rtph264depay ! ffmux_mp4 ! > filesink location=~/Desktop/test.mp4 > > ERROR: > > Setting pipeline to PAUSED ... > Pipeline is live and does not need PREROLL ... > Setting pipeline to PLAYING ... > New clock: GstSystemClock > ERROR: from element /GstPipeline:pipeline0/ffmux_mp4:ffmux_mp40: Could not > configure supporting library. > Additional debug info: > gstffmpegmux.c(485): gst_ffmpegmux_collected (): > /GstPipeline:pipeline0/ffmux_mp4:ffmux_mp40: > Failed to write file header - check codec settings > Execution ended after 2126051332 ns. > Setting pipeline to PAUSED ... > Setting pipeline to READY ... > Setting pipeline to NULL ... > FREEING pipeline ... > > Can anyone suggest the way to save live stream. > > Thanks > > PS : The file I am streaming on sender side has H264 video content. > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > > ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On Tue, Apr 21, 2009 at 7:15 AM, vikram kf <[hidden email]> wrote: The pipeline needs to shut down gracefully. You will have to send eos Yes, use git head (or core release tarballs) and pass -e to gst-launch, this way ctrl+c will send EOS to the pipeline.
-- Thiago Sousa Santos Embedded Systems and Pervasive Computing Lab (Embedded) Center of Electrical Engineering and Informatics (CEEI) Federal University of Campina Grande (UFCG) ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by ved kpl
But I am getting error on ffmux_mp4 element.
So why are those errors shown? Attached is the log of the receiver pipeline. And I could not get the EOS part you mentioned. Could you please elaborate on that? Thanks On Tue, Apr 21, 2009 at 3:45 PM, vikram kf <[hidden email]> wrote: The pipeline needs to shut down gracefully. You will have to send eos ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ffmux_mp4.log (67K) Download Attachment |
On Tue, Apr 21, 2009 at 9:54 AM, Jyoti <[hidden email]> wrote: But I am getting error on ffmux_mp4 element. The log you sent seems to have nothing about the error you receive on the console (at least, I couldn't find it). If you don't feel like going further into the problem with ffmux_mp4 you can try mp4mux from -bad instead. But maybe someone out there knows gst-ffmpeg and the answer for your problem. Attached is the log of the receiver pipeline. When you are recording from live pipelines and you stop gst-launch with ctrl+c, it simply shuts the pipeline down, no EOS is sent. Some muxers need to send data after they receive EOS to finish the file properly, if no EOS is received the file ends up in an unconsistent state. A new feature has been added to git head and will be in the next core release (the prerelease is already up, you might try it from there)
-- Thiago Sousa Santos Embedded Systems and Pervasive Computing Lab (Embedded) Center of Electrical Engineering and Informatics (CEEI) Federal University of Campina Grande (UFCG) ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Thanks for the info. And sorry for the inconvenience. Below is the error messages on the receiver pipeline.
I did set gst debug level to 1. Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock 0:00:02.411903894 4462 0x8b64b30 ERROR ffmpeg :0:: time base not set ERROR: from element /GstPipeline:pipeline0/ffmux_mp4:ffmux_mp40: Could not configure supporting library. Additional debug info: gstffmpegmux.c(485): gst_ffmpegmux_collected (): /GstPipeline:pipeline0/ffmux_mp4:ffmux_mp40: Failed to write file header - check codec settings Execution ended after 2171823723 ns. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... FREEING pipeline ... I tried with the muxmp4 also but I the pipeline throws the following errors and exits. Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data flow error. Additional debug info: gstbasesrc.c(2330): gst_base_src_loop (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: streaming task paused, reason not-negotiated (-4) Execution ended after 74215528 ns. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... FREEING pipeline ... Pipeline I used is for receiver is: gst-launch udpsrc caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, profile-level-id=(string)4d4033, sprop-parameter-sets=(string)\"Z01AM5JSAoP2AiAAAAMDACAAAAYR4wZJ\\,aO4CvIA\\=\", payload=(int)96, ssrc=(guint)250263704, clock-base=(guint)2304826711, seqnum-base=(guint)52740" uri=udp://239.220.8.13:5002 ! queue2 ! rtph264depay ! mp4mux ! filesink location=~/Desktop/test.mp4 On Tue, Apr 21, 2009 at 6:49 PM, thiagoss <[hidden email]> wrote:
------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |