Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for secondary audio stream? #2

Closed
nzeppos opened this issue May 14, 2017 · 4 comments
Closed

Support for secondary audio stream? #2

nzeppos opened this issue May 14, 2017 · 4 comments

Comments

@nzeppos
Copy link

nzeppos commented May 14, 2017

Hi,

several channels broadcasted via acestream include a secondary audio track (eg. main: russian, secondary: english), however this doesn't seem to be supported in acestream version 3+ for raspberry (it used to work fine with 2.x). Currently in openelec/arm only the default audio stream can be selected, whereas in windows/linux etc the second one is also available.

Any chance of bringing back that functionality?

Thanks.

@mikemyl
Copy link
Owner

mikemyl commented May 14, 2017

To be honnest @nzeppos I have no idea - I m just porting the official acestream engine to raspberry pi, meaning I m changing the start / stop scripts to be able to work with the plexus addon.

You would need to ask the original acestream developers for that!

@dmisdani
Copy link

dmisdani commented Jul 11, 2017

According the following logs, it discards the secondary audio stream (lang=eng):

~/.kodi/userdata/addon_data/program.plexus/acestream/androidfs/system/data/data/org.acestream.engine/files/segmenter.log


2017-07-11 18:21:18: Input #0, mpegts, from 'input':
  Duration: N/A, start: 2042.936000, bitrate: 243 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x101](rus): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 121 kb/s (clean effects)
    Stream #0:2[0x102](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 121 kb/s (clean effects)
2017-07-11 18:21:18: 0: init: duration=-9223372036854
2017-07-11 18:21:18: 0: on_duration: duration=-2077252342
2017-07-11 18:21:18: 0: got video stream: 0->0 codec=28
2017-07-11 18:21:18: 0: got audio stream: 1->1 codec=86016
2017-07-11 18:21:18: 0:  lang=rus
2017-07-11 18:21:18: 0: discard audio stream: 2 codec=86016
2017-07-11 18:21:18: 0:  lang=eng
2017-07-11 18:21:18: 0: Open decoder
2017-07-11 18:21:18: 0: stream map: 0->0
2017-07-11 18:21:18: 0: stream map: 1->1
2017-07-11 18:21:18: 0: stream map: 2->-1
2017-07-11 18:21:18: 0: on_codec_info: video=28 audio=86016
2017-07-11 18:21:18: 0: hls_mux_init: map: 0->0
2017-07-11 18:21:18: 0: hls_mux_init: map: 1->1
2017-07-11 18:21:18: 0: Transcode audio: type=1 input_codec_id=86016
2017-07-11 18:21:18: 0: Create resample context for stream #1
2017-07-11 18:21:18: 0: Create resample fifo for stream #1
2017-07-11 18:21:18: 0: hls_mux_init: map: 2->-1
2017-07-11 18:21:18: 0: hls_mux_init: discard stream: 2
2017-07-11 18:21:18: Output #0, mpegts, to 'output':
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 90k tbn, 100 tbc
    Stream #0:1: Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 128 kb/s
....
....

It should be caused by this library:
~/.kodi/userdata/addon_data/program.plexus/acestream/androidfs/system/data/data/org.acestream.engine/files/acestreamengine/pysegmenter.so

I couldn't find any python code pysegmenter, so probably it is acetream's proprietary library

md5sum ~/.kodi/userdata/addon_data/program.plexus/acestream/androidfs/system/data/data/org.acestream.engine/files/acestreamengine/pysegmenter.so
021bc63cbf09d13350fc8284009c646f  /storage/.kodi/userdata/addon_data/program.plexus/acestream/androidfs/system/data/data/org.acestream.engine/files/acestreamengine/pysegmenter.so

If we could find the old pysegmenter.so (i remember the secondary audio streams used to work in previous versions), just to check if somehow works with the new acestream.

@mikemyl
Copy link
Owner

mikemyl commented Oct 15, 2017

Hey @nzeppos, support for secondary audio stream has been updated. Apparently there was a configuration parameter that I needed to update. Credits to @spokV for identifying this on mikemyl/castaway-p2p-corner#2

@nzeppos
Copy link
Author

nzeppos commented Oct 16, 2017

Great news, thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants