tizonia-openmax-il icon indicating copy to clipboard operation
tizonia-openmax-il copied to clipboard

Add support for Pandora

Open juanrubio opened this issue 7 years ago • 4 comments

There seems to be good Python support for Pandora's API

https://pypi.python.org/pypi/pydora/1.9.0

juanrubio avatar Jun 26 '17 08:06 juanrubio

You might get somewhere by checking out PianoBar, which is an existing CLI Pandora client: https://github.com/PromyLOPh/pianobar

tcaddy avatar Dec 11 '19 15:12 tcaddy

@tcaddy

Thanks, I believe pianobar uses its own internal library: https://github.com/PromyLOPh/pianobar/tree/master/src/libpiano https://packages.debian.org/jessie/libpiano-dev

but the last time I checked, it looked quite cumbersome to use. I think Pydora looked much more straightforward.

The problem with Pandora's support in Tizonia is actually none of this. I've got a proof of concept implementation based on pydora that works. But the problem for Tizonia is the implementation of a mp4 demuxer OpenMAX IL component (Pandora delivers 'aacplus' in Mp4 containers).

That mp4 demuxer component needs to implement two roles:

  • one for demuxing from file: container_demuxer.source.mp4
  • another for demuxing from stream: container_demuxer.filter.mp4

The only standalone library that I could find that can do mp4 demuxing is MP4v2. But this is semi-abandoned. And it has no API for demuxing from a buffer (i.e. from stream). Only to demux from a file. So the Tizonia mp4 demuxer component would have to buffer the data into a temporary file or some sort of hack like that. Which seems to much hassle.

Unless I can find another solution to solves this problem (maybe libpiano! :-) )

tizonia avatar Dec 11 '19 16:12 tizonia

https://github.com/lieff/minimp4 how about this muxer/demuxer

SolarAquarion avatar Aug 16 '20 17:08 SolarAquarion

@SolarAquarion

I think minimp4 looks interesting. I would need some time to test it. I can't really give an estimate of when I would get around to doing it, but it has piqued my interest!

Thanks for bringing it to my attention

juanrubio avatar Aug 18 '20 08:08 juanrubio