Hi,
I want to generate FLV with AAC main-profile. I used gst_inspect to check the "faac" element and found "profile" is not part of the property and is negotiated by Caps (https://github.com/GStreamer/gst-plugins-bad/blob/11ace3c18a1a2a4f8cf7a972b1142de319b882e2/ext/faac/gstfaac.c). I tried those pipelines, but none of them work. [1] gst_launch audiotestsrc ! audioconvert ! audio/x-raw,channels=1 ! faac bitrate=64000 ! audio/mpeg,profile=main ! flvmux ! filesink location=main_aac.flv default gstutils.c:3766:gst_pad_create_stream_id_internal:<audiotestsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id Caught SIGSEGV [2] gst_launch audiotestsrc ! audioconvert ! audio/x-raw,channels=1 ! faac bitrate=64000 ! audio/mpeg ,base-profile=main ! flvmux ! filesink location=main_aac.flv basesrc gstbasesrc.c:2948:gst_base_src_loop:<audiotestsrc0> error: Internal data flow error. basesrc gstbasesrc.c:2948:gst_base_src_loop:<audiotestsrc0> error: streaming task paused, reason not-negotiated (-4) ERROR: from element /GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0: Internal data flow error. Additional debug info: gst/base/gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0: streaming task paused, reason not-negotiated (-4) ERROR: pipeline doesn't want to preroll. Would anyone help to comment is there anything wrong? Thanks a lot. |
Hi,
Mian profile is supported only in mpeg 2 AAC encoder. Add mpegcersion to your caps field. gst_launch audiotestsrc ! audioconvert ! audio/x-raw,channels=1 ! faac bitrate=64000 ! audio/mpeg,mpegversion=2,profile=main ! flvmux ! filesink location=main_aac.flv Refer the documentation for more information. https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-faac.html ~ Sudhir |
In reply to this post by Sean
Le samedi 01 octobre 2016 à 10:53 -0700, Sean a écrit :
> Hi, > > I want to generate FLV with AAC main-profile. I used gst_inspect to > check > the "faac" element and found "profile" is not part of the property > and is > negotiated by Caps > (https://github.com/GStreamer/gst-plugins-bad/blob/11ace3c18a1a2a4f8c > f7a972b1142de319b882e2/ext/faac/gstfaac.c). > > I tried those pipelines, but none of them work. > > [1] gst_launch audiotestsrc ! audioconvert ! audio/x-raw,channels=1 > ! faac > bitrate=64000 ! audio/mpeg,profile=main ! flvmux ! filesink > location=main_aac.flv I tried this one and it works for me. It requires a correction, gst_launch -> gst-launch-1.0. I checked the profile with gst- discoverer-1.0 -v main_aac.flv, and it's properly reported as base- profile=main, profile=main. This was tested on 1.8.3 and git master. Would it be possible to report a little more on your setup, gstreamer version, OS etc. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (188 bytes) Download Attachment |
Free forum by Nabble | Edit this page |