Hi,
I reported this first at the Retrospect addon website here: basrieter / XBMC Online TV
/ issues
/ #822 - Channels VIER and VIJF in Retrospect only give sound on RPi 3 / LibreELEC 7.95.3
— Bitbucket
When I start any stream from 2 different channels in Retrofit (both channels are from the same content provider) the streams only emit audio.
The normal logging shows this:
19:43:55.816 T:1962536768 NOTICE: VideoPlayer: Opening: http://vod.streamcloud.be/vier_vod/mp4:_definst_/demol/2017/volledigeafleveringen/20170206_aflevering1.mp4/chunklist_w187488663_ao.m3u8
19:43:55.829 T:1962536768 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:43:55.842 T:1555039136 NOTICE: Creating InputStream
19:43:55.856 T:1555039136 NOTICE: Creating Demuxer
19:43:56.044 T:1555039136 NOTICE: Opening stream: 0 source: 256
19:43:56.058 T:1555039136 NOTICE: Creating audio thread
19:43:56.234 T:1555039136 NOTICE: OMXClock using audio as reference
19:43:56.335 T:1555039136 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
The debug logging shows this:
19:50:22.518 T:1962536768 NOTICE: VideoPlayer: Opening: http://vod.streamcloud.be/vier_vod/mp4:_definst_/demol/2017/volledigeafleverngen/20170206_aflevering1.mp4/chunklist_w650361529_ao.m3u8
19:50:22.532 T:1962536768 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:50:22.547 T:1962536768 DEBUG: CMMALRenderer::CMMALRenderer
19:50:22.561 T:1962536768 DEBUG: CMMALRenderer::UnInitMMAL
19:50:22.576 T:1401942944 DEBUG: Thread MMALProcess start, auto delete: false
19:50:22.590 T:1962536768 DEBUG: CMMALRenderer::PreInit
19:50:22.604 T:1401942944 DEBUG: CMMALRenderer::Run - starting
19:50:22.618 T:1240306592 DEBUG: Thread VideoPlayer start, auto delete: false
19:50:22.633 T:1240306592 NOTICE: Creating InputStream
19:50:22.647 T:1240306592 NOTICE: Creating Demuxer
19:50:22.809 T:1240306592 DEBUG: Open - avformat_find_stream_info starting
19:50:22.826 T:1240306592 DEBUG: Open - av_find_stream_info finished
19:50:22.840 T:1240306592 INFO: ffmpeg[49ED93A0]: Input #0, hls,applehttp, http://vod.streamcloud.be/vier_vod/mp4:_definst_/demol/017/volledigeafleveringen/20170206_aflevering1.mp4/chunklist_w650361529_ao.m3u':
19:50:22.854 T:1240306592 INFO: ffmpeg[49ED93A0]: Duration: 01:11:39.52, start: 0.000000, bitrate: 0 kb/s
19:50:22.871 T:1240306592 INFO: ffmpeg[49ED93A0]: Program 0
19:50:22.885 T:1240306592 INFO: ffmpeg[49ED93A0]: Metadata:
19:50:22.909 T:1240306592 INFO: ffmpeg[49ED93A0]: variant_bitrate : 0
19:50:22.921 T:1240306592 INFO: ffmpeg[49ED93A0]: Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 115 kb/s
19:50:22.935 T:1240306592 DEBUG: CDVDDemuxFFmpeg::AddStream ID: 0
19:50:22.950 T:1240306592 DEBUG: SeekTime - unknown position after seek
19:50:22.964 T:1240306592 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x52c04870
19:50:22.979 T:1240306592 DEBUG: OMXClock::OMXStop
19:50:22.994 T:1240306592 DEBUG: OMXClock::OMXSetSpeed(0.000) pause_resume:1
19:50:23.006 T:1240306592 NOTICE: Opening stream: 0 source: 256
19:50:23.021 T:1240306592 NOTICE: Creating audio thread
19:50:23.037 T:1248695200 DEBUG: Thread OMXPlayerAudio start, auto delete: false
19:50:23.049 T:1240306592 DEBUG: OnPlayBackStarted: play state was 1, starting 1
19:50:23.062 T:1240306592 DEBUG: CVideoPlayer::SetCaching - caching state 2
19:50:23.078 T:1962536768 DEBUG: PlayFile: OpenFile succeed, play state 2
19:50:23.089 T:1240306592 DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
19:50:23.103 T:1248695200 DEBUG: COMXPlayerAudio - CDVDMsg::PLAYER_SETSPEED 0
19:50:23.118 T:1962536768 DEBUG: OnPlayBackStarted: play state was 2, starting 0
19:50:23.131 T:1555039136 DEBUG: Thread BackgroundLoader start, auto delete: false
19:50:23.146 T:1962536768 DEBUG: ADDON: Dll Initializing - Waveform
19:50:23.162 T:1962536768 DEBUG: SECTION:LoadDLL(/storage/.kodi/addons/visualization.waveform/visualization.waveform.so.1.1.0)
19:50:23.174 T:1555039136 DEBUG: Thread BackgroundLoader 1555039136 terminating
19:50:23.188 T:1248695200 DEBUG: COMXAudioCodecOMX::Decode(0x57413f70,17) format=8(8) chan=2 samples=1024 size=8192 data=0x56a92eb00x56aee2c0,(nil),(nil),(nil),(nil),(nil),(nil)
19:50:23.204 T:1962536768 DEBUG: Loading: /storage/.kodi/addons/visualization.waveform/visualization.waveform.so.1.1.0
19:50:23.216 T:1248695200 DEBUG: COMXAudioCodecOMX::GetData size=8192/8192 line=4096/4096 buf=0x56bdc198, desired=65536
19:50:23.231 T:1240306592 DEBUG: CVideoPlayer::OMXDoProcessing Resume 0.00,18442241441792.00 (A:10 V:01) EOF:0 FULL:1 T:0.20
19:50:23.325 T:1248695200 DEBUG: COMXAudio::SetCodingType OMX_AUDIO_CodingPCM
19:50:23.416 T:1962536768 DEBUG: Calling TransferSettings for: Waveform
19:50:23.506 T:1240306592 DEBUG: OMXClock::OMXSetSpeed(1.000) pause_resume:1
19:50:23.598 T:1248695200 DEBUG: COMXAudio:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
19:50:23.688 T:1962536768 DEBUG: Visualisation::Start()
19:50:23.778 T:1248695200 INFO: COMXAudio::Initialize remap:(nil) chan:2->2 norm:1 upmix:1 3:3
Display More
[hr]
Looking at OSMC you can see the following ffmpeg build flags for the RPi2/RPi3 build:
./configure \
--prefix=/usr \
--enable-gles \
--disable-x11 \
--disable-openmax \
--enable-optical-drive \
--enable-libbluray \
--disable-debug \
--disable-vaapi \
--disable-vdpau \
--disable-pulse \
--with-platform=$PIDEV \
--disable-optimizations \
--enable-libcec \
--enable-player=omxplayer \
--build=arm-linux
Display More
For LibreELEC builds a lot more is explicitly enabled/disabled:
./configure \
--prefix="/usr" \
--cpu="$TARGET_CPU" \
--arch="$TARGET_ARCH" \
--enable-cross-compile \
--cross-prefix="$TARGET_PREFIX" \
--sysroot="$SYSROOT_PREFIX" \
--sysinclude="$SYSROOT_PREFIX/usr/include" \
--target-os="linux" \
--nm="$NM" \
--ar="$AR" \
--as="$CC" \
--cc="$CC" \
--ld="$CC" \
--host-cc="$HOST_CC" \
--host-cflags="$HOST_CFLAGS" \
--host-ldflags="$HOST_LDFLAGS" \
--host-libs="-lm" \
--extra-cflags="$CFLAGS" \
--extra-ldflags="$LDFLAGS" \
--extra-libs="$FFMPEG_LIBS" \
--disable-static \
--enable-shared \
--enable-gpl \
--disable-version3 \
--disable-nonfree \
--enable-logging \
--disable-doc \
$FFMPEG_DEBUG \
--enable-pic \
--pkg-config="$ROOT/$TOOLCHAIN/bin/pkg-config" \
--enable-optimizations \
--disable-extra-warnings \
--disable-ffprobe \
--disable-ffplay \
--disable-ffserver \
--enable-ffmpeg \
--enable-avdevice \
--enable-avcodec \
--enable-avformat \
--enable-swscale \
--enable-postproc \
--enable-avfilter \
--disable-devices \
--enable-pthreads \
--disable-w32threads \
--enable-network \
--disable-gnutls
--enable-openssl \
--disable-gray \
--enable-swscale-alpha \
--disable-small \
--enable-dct \
--enable-fft \
--enable-mdct \
--enable-rdft \
--disable-crystalhd \
$FFMPEG_VAAPI \
$FFMPEG_VDPAU \
--disable-dxva2 \
--enable-runtime-cpudetect \
$FFMPEG_TABLES \
--disable-memalign-hack \
--disable-encoders \
--enable-encoder=ac3 \
--enable-encoder=aac \
--enable-encoder=wmav2 \
--enable-encoder=mjpeg \
--enable-encoder=png \
--disable-decoder=mpeg_xvmc \
--enable-hwaccels \
--disable-muxers \
--enable-muxer=spdif \
--enable-muxer=adts \
--enable-muxer=asf \
--enable-muxer=ipod \
--enable-muxer=mpegts \
--enable-demuxers \
--enable-parsers \
--enable-bsfs \
--enable-protocol=http \
--disable-indevs \
--disable-outdevs \
--enable-filters \
--disable-avisynth \
--enable-bzlib \
--disable-frei0r \
--disable-libopencore-amrnb \
--disable-libopencore-amrwb \
--disable-libopencv \
--disable-libdc1394 \
--disable-libfaac \
--disable-libfreetype \
--disable-libgsm \
--disable-libmp3lame \
--disable-libnut \
--disable-libopenjpeg \
--disable-librtmp \
--disable-libschroedinger \
--enable-libspeex \
--disable-libtheora \
--disable-libvo-amrwbenc \
--disable-libvorbis \
--disable-libvpx \
--disable-libx264 \
--disable-libxavs \
--disable-libxvid \
--enable-zlib \
--enable-asm \
--disable-altivec \
$FFMPEG_FPU \
--enable-yasm \
--disable-symver \
$FFMPEG_X11GRAB
Display More
So I am wondering whether we are disabling more support than what is required here ?
[hr]
Looking inside of the .m3u8 files from the stream I only identify audio file extensions:
[dag@moria ~]$ cat chunklist_w1393100106_ao.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.56,
media_w1393100106_ao_0.aac
#EXTINF:10.8,
media_w1393100106_ao_1.aac
#EXTINF:10.56,
media_w1393100106_ao_2.aac
#EXTINF:9.92,
media_w1393100106_ao_3.aac
#EXTINF:10.24,
media_w1393100106_ao_4.aac
#EXTINF:9.6,
media_w1393100106_ao_5.aac
#EXTINF:9.92,
media_w1393100106_ao_6.aac
#EXTINF:10.56,
media_w1393100106_ao_7.aac
#EXTINF:9.76,
media_w1393100106_ao_8.aac
#EXTINF:10.04,
media_w1393100106_ao_9.aac
#EXTINF:10.68,
media_w1393100106_ao_10.aac
#EXTINF:10.36,
media_w1393100106_ao_11.aac
#EXTINF:10.2,
media_w1393100106_ao_12.aac
#EXTINF:9.6,
media_w1393100106_ao_13.aac
#EXTINF:10.68,
media_w1393100106_ao_14.aac
#EXTINF:10.4,
media_w1393100106_ao_15.aac
#EXTINF:10.8,
media_w1393100106_ao_16.aac
#EXTINF:10.4,
media_w1393100106_ao_17.aac
#EXTINF:10.04,
media_w1393100106_ao_18.aac
#EXTINF:10.04,
media_w1393100106_ao_19.aac
...
#EXTINF:10.28,
media_w1393100106_ao_419.aac
#EXTINF:9.88,
media_w1393100106_ao_420.aac
#EXTINF:9.76,
media_w1393100106_ao_421.aac
#EXTINF:9.64,
media_w1393100106_ao_422.aac
#EXTINF:6.48,
media_w1393100106_ao_423.aac
#EXT-X-ENDLIST
Display More
[hr]
Alright I figured it out
Retrospect is downloading the audio-streams only.
Replacing in the link "ao" with "vo" works fine, and it .m3u8 files do contain video content !