• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

ALAC audio file support?

Scheduled Pinned Locked Moved Support
26 Posts 4 Posters 4.6k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nekojet @dobey
      last edited by nekojet 21 Sept 2019, 21:38

      @dobey Makes senses. Thanks for the info!

      I'm not fluent in the different software licenses. Is something released under the Apache License considered non-free? Thanks.

      D 1 Reply Last reply 22 Sept 2019, 12:57 Reply Quote 0
      • D Offline
        dobey @nekojet
        last edited by 22 Sept 2019, 12:57

        @nekojet libav isn't solely a port of the original ALAC source code to Linux. libav/ffmpeg implements several encumbered codecs. So there may be issues with shipping those.

        If there were a totally free implementation of ALAC by itself, for GStreamer, we could possibly include it, but one only available with support for other codecs which are encumbered, is not really feasible.

        Best option really, is to transcode audio to a codec that is supported by the hardware decoder on the portable device you're putting them on, as this will save battery power by not having to do all the decoding in software on the CPU.

        N 1 Reply Last reply 23 Sept 2019, 19:34 Reply Quote 0
        • N Offline
          nekojet @dobey
          last edited by nekojet 23 Sept 2019, 19:34

          @dobey Yes! After doing more (and more) reading, I almost wrote a long post (or two) about:

          1. Apple open sourced ALAC in 2011 under the Apache License 2.0, so that probably isn't so much of an issue πŸ‘

          but

          1. gstreamer1.0-libav (built on libav/ffmpeg) includes wayyyyyyyy more than just ALAC, and that quickly becomes problematic if you look at the huge list of codecs it packages πŸ‘Ž

          I also want to thank the UBports community for all of the great work y'all are doing. It's really appreciated. πŸ‘ πŸ‘

          I'm a new UT user (and Patron) and this project is very exciting.

          Thanks!

          1 Reply Last reply Reply Quote 2
          • F Offline
            flohack
            last edited by 24 Sept 2019, 20:29

            Well its hard for me too to live without m4a now, since 2 of my band members use iPhones and any recording they do will come over the wire as m4a format. I have no idea if and how they can influence the recording codec on their side. Until that I can only listn to this on my desktop. Which is boring.

            Consumers are trapped in stuff they don't understand and also they are just no giving choices. We got along way to go...

            My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

            D 1 Reply Last reply 24 Sept 2019, 21:22 Reply Quote 0
            • F Offline
              flohack
              last edited by 24 Sept 2019, 20:30

              @nekojet said in ALAC audio file support?:

              gstreamer1.0-libav

              Oh and by the way, definitely need encoding support for opus when we ever want Telegram voice messages to be a thing. How could we get this in @dobey

              My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

              D 1 Reply Last reply 24 Sept 2019, 21:25 Reply Quote 0
              • D Offline
                dobey @flohack
                last edited by 24 Sept 2019, 21:22

                @Flohack m4a is the MPEG-4 container format. It's not related to the codec for the audio embedded in the file, which can be ALAC, AAC, or numerous other things.

                F 1 Reply Last reply 24 Sept 2019, 21:53 Reply Quote 0
                • D Offline
                  dobey @flohack
                  last edited by 24 Sept 2019, 21:25

                  @Flohack Well, Opus is an open codec, and it seems to already be implemented in the gstreamer1.0-plugins-base package, which should already be in the image, so I guess it should just work.

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    flohack @dobey
                    last edited by 24 Sept 2019, 21:53

                    @dobey Seems you are right, its AAC internally, but it still cannot be played back by UT...

                    My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                    D 1 Reply Last reply 25 Sept 2019, 02:17 Reply Quote 0
                    • D Offline
                      dobey @flohack
                      last edited by 25 Sept 2019, 02:17

                      @Flohack On what device? I don't think we include a software decoder for AAC, so it depends on hardware decoder support, as AAC is non-free. It should work on FP2 and Nexus devices at least, I think. If not, there might be some low level issue with Android drivers.

                      F 1 Reply Last reply 25 Sept 2019, 18:25 Reply Quote 0
                      • F Offline
                        flohack @dobey
                        last edited by 25 Sept 2019, 18:25

                        @dobey I am on Oneplus One, that might explain the issue. Hmm good question if it can be enabled if it would be there theoretically ^^

                        My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                        D 1 Reply Last reply 27 Sept 2019, 13:00 Reply Quote 0
                        • D Offline
                          dobey @flohack
                          last edited by 27 Sept 2019, 13:00

                          @Flohack From a quick search, I can't seem to find a list of definite hardware audio codec support on opo, so no idea what it actually supports.

                          1 Reply Last reply Reply Quote 0
                          • N Offline
                            nekojet
                            last edited by 13 Oct 2019, 01:53

                            Regarding AAC support on OPO...

                            I did a fresh OTA-11 RC install and wipe on my OnePlus One. It's now running OS build number 2019-W41/2. I can successfully play a couple of example AAC files I downloaded from here:

                            http://samplephotovideo.com/2015/12/download-aac-mpeg-2-advanced-audio-coding-file/

                            http://samplephotovideo.com/2015/12/m4a-mpeg-4-audio-layer-sample-file-m4a/

                            Hope this helps!

                            N 1 Reply Last reply 13 Oct 2019, 23:34 Reply Quote 1
                            • N Offline
                              nekojet @nekojet
                              last edited by 13 Oct 2019, 23:34

                              @dobey @Flohack I also downloaded an example OPUS file from here:

                              http://samplephotovideo.com/2015/12/download-opus-sample-audio-file-opus/

                              I can successfully play the file using my clean "install and wipe" installation of OTA-11 rc (OS build number 2019-W41/2) on my OnePlus One.

                              Cheers!

                              1 Reply Last reply Reply Quote 1
                              • First post
                                Last post