correct way to decode AAC?

Adams, Bruce (KMLWG) Bruce.Adams at KantarMedia.com
Wed May 23 13:37:17 UTC 2018


The decodebin element is perhaps a bit of overkill here. 
Consider this pipeline:

gst-launch-1.0 -v filesrc location=multi.ts ! tsparse ! tsdemux program_number=17540 ! decodebin ! audioconvert ! audioresample ! audio/x-raw, rate=8000, channels=1 ! wavenc ! filesink location=cbbc.wav

I get the error:

Missing element: H.264 decoder
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0: Your GStreamer installation is missing a plug-in.
Additional debug info:
gstdecodebin2.c(4592): gst_decode_bin_expose (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0:

There are patent issues with H264 but yes it would be nice to fix my install.

My point though is that I don't care about the video in this pipeline.
I really just want an "OR" element

Try decoding using A or B
E.g.

Src = audio/mpeg
Sink = audio/x-raw

If src=AAC use avdec_aac
If src=MPEG use faad

Of course the decodebin element gives us that and more
but is there a standard way of doing this or a case for something leaner?

Regards,

Bruce.

-----Original Message-----
From: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of Adams, Bruce (KMLWG)
Sent: 23 May 2018 12:57
To: Discussion of the development of and with GStreamer
Subject: RE: correct way to decode AAC?

What is the purpose of the queue in that pipeline?

-----Original Message-----
From: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of new baby
Sent: 23 May 2018 12:54
To: gstreamer-devel at lists.freedesktop.org
Subject: RE: correct way to decode AAC?

Found the BEST way Directly convert .ts to .wav file like this ...
Hope it solves all your worries 



*gst-launch-1.0 filesrc location=Transformers1080p.ts ! queue ! decodebin  !
audioconvert ! wavenc ! filesink location=file.wav *





-----
adi
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list