Core of movie player for E2 based on the libeplayer using the ffmpeg solution
Integrated from skyjet18/exteplayer3 (v185 to v186): bug fixes in the container, PTS clock, subtitles, buffering, progressive playback and the H.264, H.265, VP9, VC-1/WMV, AAC, PCM and Vorbis writers, JSON escaping of track names and subtitles, xHE-AAC software decoding and full HLS probing over the network.
A new resampler is set up when decoded audio changes its channels, sample rate or format (5.1 to stereo at a programme change). In OpenBH this also covers the DTS/TrueHD to AC3/E-AC3 and HE-AAC to AAC-LC transcoders, which otherwise stopped (or crashed) at such a change.
Integrated from skyjet18/exteplayer3, retaining the OE Alliance Autotools build and the OpenBH audio codec, audio channel, transcoding, HDR and Atmos detection changes.
The update improves HLS/DASH audio switching, stream identity, timestamp handling, HTTP MPEG-TS seeking, subtitle selection and radio metadata. The Dreambox-only parts of the OE Alliance/Skyjet update (DreamNextGen kernel audio, raw video, keyframe trick play, DreamOS live start hold, MP2/VP9 Dreambox workarounds) are not included.
The OpenBH options are long options only, so all short options stay the same as
upstream and later upstream options do not collide with them. They need a ServiceApp
that sends the long options (older ones used -D, -X, -K, -Z, -Y).
| Option | Behavior |
|---|---|
--dts-ac3 |
Transcode DTS / DTS-HD to Dolby Digital (AC3 5.1). |
--truehd-ac3 |
Transcode TrueHD to Dolby Digital (AC3 5.1). |
--dts-eac3 |
Transcode DTS / DTS-HD to Dolby Digital + (E-AC3 5.1), or AC3 without an E-AC3 encoder. |
--truehd-eac3 |
Transcode TrueHD to Dolby Digital + (E-AC3 5.1), or AC3 without an E-AC3 encoder. |
--heaac-aaclc |
Transcode HE-AAC to AAC-LC. |
| Option | Behavior |
|---|---|
-Q 0/1/2 |
Auto (default, highest advertised bandwidth), lowest or highest HLS/DASH quality. |
-D 0/1 |
Keep all HLS audio renditions (default), or prefer default audio. |
-M WIDTHxHEIGHT |
Limit automatic H.264 selection; 0x0 disables the limit. HEVC is unaffected. |
-P ID |
Select an explicit positive program ID, bypassing automatic selection limits. |
Quality selection chooses a representation; it does not change quality dynamically according to available bandwidth. HLS groups without default audio retain their available tracks.
Use the companion FFmpeg 6.1 patched branch.
The player uses its hls_quality_mode, hls_audio_default_only and
dash_subtitle_default_discard AVOptions. The OpenATV ffmpeg-ext recipe supplies
this version together with the downstream decoder and decryption changes.
-K enables /tmp/exteplayer3_pcm_audio.fifo; export is disabled by default.
Tracks being transcoded (DTS/TrueHD to AC3/E-AC3, HE-AAC to AAC-LC) are not exported.
It forces software decoding for the supported audio codecs and therefore uses
additional CPU time. Normal playback continues if the consumer is absent or slow.
Each chunk starts with a 16-byte little-endian header: magic 0x504d4341
(bytes ACMP), sample rate (32 bits), channel count (16 bits), sample depth
(16 bits, always 16), and payload size (32 bits). The payload is interleaved
signed S16LE audio. Rate and channel count can change between chunks.
Header and payload are written atomically in complete sample frames within
PIPE_BUF. Consumers must read complete chunks and tolerate dropped chunks.
Use one reader; multiple readers divide the bytes instead of receiving copies.
Only a FIFO owned by the player user is accepted; newly created FIFOs use mode
0600. The FIFO remains on disk between sessions and must not be replaced while
playback is active.