MPEG-4 files and sound

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

MPEG-4 files and sound

Russel Winder
At the risk of exposing my ignorance publicly…

I had thought that the MPEG-4 standard specified that AAC audio was supposed
to be used, yet the mp4mux only seems to allow AC3. I tried using voaacenc
instead of avenc_ac3 but it isn't allowed to be part of the pipeline, which on
inspection of mp4mux makes sense, but is it right? (Should I be using
avenc_ac3_fixed instead of avenc_ac3? What's fixed about it?)

From what I can tell the faac encoder is not available in Debian packages even
though the faad is. There doesn't seem to be a GStreamer plugin that works
with fdk-aac, but is that a historical thing re licencing?

--
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: MPEG-4 files and sound

David Ing
I can't answer your question about the MPEG-4 and AC3, but I can tell you that `gst-inspect-1.0 faac` finds nothing on my Ubuntu 18.04 system.  However it does find the "faad" plugin here:  /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstfaad.so

One approach is to use the "avenc_aac" plugin instead.

If you really need "faac" then you can build gstreamer yourself using gst-build, but you will need to install a couple of libraries before the build.
  • libfaac-dev
  • libfaad-dev
You should also look at Thibault's suggestion for installing packages before you run the build (OP = https://s-opensource.org/author/thibaultsauniersamsungcom/).  He basically suggests running this before you build:
sudo apt-get build-dep gstreamer1.0-plugins-{base,good,bad,ugly}

Once built you can copy libgstfaac.so into /usr/lib/x86_64-linux-gnu/gstreamer-1.0 ... and it should just work (I think).

On Sat, Dec 22, 2018 at 11:47 PM Russel Winder <[hidden email]> wrote:
At the risk of exposing my ignorance publicly…

I had thought that the MPEG-4 standard specified that AAC audio was supposed
to be used, yet the mp4mux only seems to allow AC3. I tried using voaacenc
instead of avenc_ac3 but it isn't allowed to be part of the pipeline, which on
inspection of mp4mux makes sense, but is it right? (Should I be using
avenc_ac3_fixed instead of avenc_ac3? What's fixed about it?)

From what I can tell the faac encoder is not available in Debian packages even
though the faad is. There doesn't seem to be a GStreamer plugin that works
with fdk-aac, but is that a historical thing re licencing?

--
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: MPEG-4 files and sound

Russel Winder
On Sun, 2018-12-23 at 11:05 -0800, David Ing wrote:
> I can't answer your question about the MPEG-4 and AC3, but I can tell you
> that `gst-inspect-1.0 faac` finds nothing on my Ubuntu 18.04 system.
> However it does find the "faad" plugin
> here:  /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstfaad.so

This is what is strange. faac and faad are listed as plugins, but whilst faad
is in Debian (and thus Ubuntu, Mint, etc.), faac appears not to be.

> One approach is to use the "avenc_aac" plugin instead.

I believe that will fail as the mp4mux appears not to have an AAC sink pad.
However, I hadn't about that element, so good the read about. :-)

Merry Christmas!

--
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: MPEG-4 files and sound

David Ing
Maybe try voaacenc

On Tue, Dec 25, 2018, 3:30 AM Russel Winder <[hidden email] wrote:
On Sun, 2018-12-23 at 11:05 -0800, David Ing wrote:
> I can't answer your question about the MPEG-4 and AC3, but I can tell you
> that `gst-inspect-1.0 faac` finds nothing on my Ubuntu 18.04 system.
> However it does find the "faad" plugin
> here:  /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstfaad.so

This is what is strange. faac and faad are listed as plugins, but whilst faad
is in Debian (and thus Ubuntu, Mint, etc.), faac appears not to be.

> One approach is to use the "avenc_aac" plugin instead.

I believe that will fail as the mp4mux appears not to have an AAC sink pad.
However, I hadn't about that element, so good the read about. :-)

Merry Christmas!

--
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: MPEG-4 files and sound

Tim-Philipp Müller-2
In reply to this post by Russel Winder
On Tue, 2018-12-25 at 11:29 +0000, Russel Winder wrote:

Hi Russel,

> I believe that will fail as the mp4mux appears not to have an AAC
> sink pad.

Here

  gst-inspect-1.0 mp4mux

shows:

  SINK template: 'audio_%u'
    Availability: On request
    Capabilities:
      ...
      audio/mpeg
            mpegversion: 4
          stream-format: raw
               channels: [ 1, 8 ]
                   rate: [ 1, 2147483647 ]

There is also a plugin for fdk-aac in gst-plugins-bad, but it looks
like it's not shipped by the debian packages at the moment.

Since this is a request pad you may have to create it (request it) in
your application explicitly.

Cheers
 Tim


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: MPEG-4 files and sound

Russel Winder
In reply to this post by David Ing
On Tue, 2018-12-25 at 08:31 -0800, David Ing wrote:
> Maybe try voaacenc
>

Trying that is what led me to discovering that mp4mux appears not to support
AAC as an input format.

AC3 seems to be working well, so this is not a Big Issue™ for me, it's mostly
that the MPEG-4 standard seems to emphasise AAC, but the mp4mux doesn't seem
to support it. I guess it is really me trying to ascertain if the problem is
my misunderstanding or there is an issue with mp4mux.

--
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: MPEG-4 files and sound

Russel Winder
In reply to this post by Tim-Philipp Müller-2
On Tue, 2018-12-25 at 18:30 +0100, Tim-Philipp Müller wrote:
> […]
>
> There is also a plugin for fdk-aac in gst-plugins-bad, but it looks
> like it's not shipped by the debian packages at the moment.

It does seem like the faac and fdk-aac plugins are documented in the Debian
Bad plugins packages, just not actually present. A tad frustrating I have to
admit to be able to read about things that aren't actually there.

But for the moment x264enc and avenc_ac3 are doing the job for me, so I am not
blocked in any way.

> Since this is a request pad you may have to create it (request it) in
> your application explicitly.

I saw the word "raw" and assumed it wasn't relevant. I guess I am just showing
my lack of knowledge of the pad system!

--
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (849 bytes) Download Attachment