Hello,
I'm trying to stream a flv stream into a Flash Media Server using the following pipeline: GST_DEBUG=2,*rtmp*:5 gst-launch -v videotestsrc ! videorate ! ffmpegcolorspace ! x264enc ! flvmux streamable=true ! queue2 ! rmtpsink location="<a href="rtmp://host/app/stream">rtmp://host/app/stream live=1" This is the result: http://pastebin.com/utD1t4CE My question is: how should I start debugging? I'm also wondering if the src caps of flvmux are okay. Thanks in advance. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Oops, I'm sorry.
I forgot to mention the pipeline closes right after the last line of the referred paste. From the debugging it also doesn't seem to shutdown properly like other pipelines.
2012/2/1 André Dieb Martins <[hidden email]>
@andredieb _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I've had some problems streaming to Wowza with rtmpsink. I've never actually read the log on that particular problem, because I noticed that streaming baseline h.264 "solves" the problem (actually just setting b-frames to 0 does the same).
Could you try if setting "profile=baseline" or "bframes=0" on x264enc has any effect?
_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hello Ari-Pekak Viitanen,
Firstly thank you for the help. Setting either one of the parameters you mentioned didn't had any effect. I just discovered that the RTMP_Write() call on gstrmpsink.c line 258 is raising a SIGPIPE signal, which is the cause of the abnormal shutdown.
Any idea? On Wed, Feb 1, 2012 at 7:33 PM, Ari-Pekka Viitanen <[hidden email]> wrote: I've had some problems streaming to Wowza with rtmpsink. I've never actually read the log on that particular problem, because I noticed that streaming baseline h.264 "solves" the problem (actually just setting b-frames to 0 does the same). @andredieb _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by André Dieb
Hello,
I am trying to stream audio + video by using rtmpsink. My pipeline works well with raw audio + h264(hw accelerated) video However if I use aac encoded audio(hardware accelerated) and h264(hw accelerated) video it does not work. I am trying to do over TI DM3730(omap3) here is my pipeline : gst-launch-0.10 -v v4l2src device=/dev/video2 queue-size=2 ! video/x-raw-yuv,format=\(fourcc\)UYVY ! TIVidenc1 codecName=h264enc engineName=codecServer resolution=720x480 ! queue2 ! flvmux name=mux alsasrc ! TIAudenc1 codecName=aacheenc engineName=codecServer numChannels=2 samplefreq=44100 bitrate=44000 ! mux. mux. ! queue2 ! rtmpsink location='rtmp://192.168.2.200/videochat/sankar' However If I use ffenc_aac instead of TIAudenc1,its working fine. Here is working pipeline: gst-launch-0.10 -v v4l2src device=/dev/video2 queue-size=2 ! video/x-raw-yuv,format=\(fourcc\)UYVY ! TIVidenc1 codecName=h264enc engineName=codecServer resolution=720x480 ! queue2 ! flvmux name=mux alsasrc ! ffenc_aac ! mux. mux. ! queue2 ! rtmpsink location='rtmp://192.168.2.200/videochat/sankar' What is going wrong? please give suggestions. |
Hi pratik,
I honestly don't know out of my head why it doesn't work, though I'm sure a log dump with GST_DEBUG=3 might help :) Just out of curiosity, which server are you using on rtmp://192.168.2.200/videochat/sankar ? My attempts to stream using rtmpsink and Flash Media Server did not work, showing a lot of errors on the FMS side.
br On Wed, Feb 8, 2012 at 5:04 PM, pratikshinde <[hidden email]> wrote: Hello, @andredieb _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hello André Dieb,
I am streaming to wowza media server, I found that h264+aac in flv container will not work, so I am trying with h264+aac in mp4 container, its f4v file format. |
Hi,
I had (probably) the same problem. Add this caps filter after your faac entry : audio/mpeg,mpegversion=4,stream-format=raw Because flvmux only accept raw aac on his audio sink. It solves my problem, hope it will solves yours too. |
Hello,
could you please share your pipeline its still not working for me. |
Example working pipeline (file streamed in "real time") :
gst-launch filesrc location=movies/big_buck_bunny_480p_surround-fix.avi ! decodebin name=demux ! queue ! videorate ! videoscale method=0 ! video/x-raw-yuv,width=852,height=480,framerate=\(fraction\)24/1 ! ffmpegcolorspace ! x264enc pass=pass1 threads=0 bitrate=900 tune=zerolatency ! flvmux name=mux ! rtmpsink location='rtmp://my.rtmp.server/live/stream_name' demux. ! queue ! progressreport ! audioconvert ! audiorate ! audioresample ! faac bitrate=96000 ! audio/mpeg,mpegversion=4,stream-format=raw ! mux. Working with Wowza and crtmpserver. I'm using gstreamer 0.10.36 and these plugins versions : Plugin Details: Name: rtmp Description: RTMP source and sink Filename: /usr/lib/gstreamer-0.10/libgstrtmp.so Version: 0.10.23 License: LGPL Source module: gst-plugins-bad Source release date: 2012-02-20 Binary package: GStreamer Bad Plugins (Archlinux) Origin URL: http://www.archlinux.org/ ... Plugin Details: Name: faac Description: Free AAC Encoder (FAAC) Filename: /usr/lib/gstreamer-0.10/libgstfaac.so Version: 0.10.23 License: LGPL Source module: gst-plugins-bad Source release date: 2012-02-20 Binary package: GStreamer Bad Plugins (Archlinux) Origin URL: http://www.archlinux.org/ |
Free forum by Nabble | Edit this page |