02.11.2024, 12:23
No, potřeboval bych vidět jak vypadá to volání streamlink, jaké jsou jeho parametry.
Resp. nejlepší by bylo udělat kompletní protokol pokusu o spuštění přehrávání toho kanálu, o kterém píšu nahoře.
Mé volání streamlink ve scriptu, které je obsahem playlistu v Tvheadend, vypadá pro potřeby testování takto:
str_file, ffm_file a log_file jsou proměnné, ve kterých mám uložené názvy souborů (s celou cestou od kořenového segmentu!), do kterých se to volání streamlink protokoluje. Nejdůležitěší je protokol ukládáný do souboru jehož jméno je obsažené v str_file.
A jen pro ilustraci, obsah prokolu ukládáného do souboru obsaženého v str_file pak vypadá takto (je to pro O2TV, ale ot je jedno, v tomto případě to mají oba provideři podobné):
Já teď odcházím a budu zas až večer...
Resp. nejlepší by bylo udělat kompletní protokol pokusu o spuštění přehrávání toho kanálu, o kterém píšu nahoře.
Mé volání streamlink ve scriptu, které je obsahem playlistu v Tvheadend, vypadá pro potřeby testování takto:
Kód:
streamlink --locale cs_CZ --loglevel all --logfile ${str_file} dash://${url} best --stdout --ffmpeg-ffmpeg "ffmpeg" --ffmpeg-fout "mpegts" --ffmpeg-verbose-path ${ffm_file} 2>> ${log_file}str_file, ffm_file a log_file jsou proměnné, ve kterých mám uložené názvy souborů (s celou cestou od kořenového segmentu!), do kterých se to volání streamlink protokoluje. Nejdůležitěší je protokol ukládáný do souboru jehož jméno je obsažené v str_file.
A jen pro ilustraci, obsah prokolu ukládáného do souboru obsaženého v str_file pak vypadá takto (je to pro O2TV, ale ot je jedno, v tomto případě to mají oba provideři podobné):
Kód:
[11:02:24.188339][cli][debug] OS: Linux-6.6.31+rpt-rpi-2712-aarch64-with-glibc2.36
[11:02:24.188561][cli][debug] Python: 3.11.2
[11:02:24.188633][cli][debug] Streamlink: 5.2.1
[11:02:24.189353][cli][debug] Dependencies:
[11:02:24.201535][cli][debug] PySocks: 1.7.1
[11:02:24.201986][cli][debug] certifi: 2022.9.24
[11:02:24.202454][cli][debug] isodate: 0.6.1
[11:02:24.202841][cli][debug] lxml: 4.9.2
[11:02:24.203449][cli][debug] pycountry: 22.3.5
[11:02:24.203802][cli][debug] pycryptodomex: 3.11.0
[11:02:24.204207][cli][debug] requests: 2.28.1
[11:02:24.205557][cli][debug] urllib3: 1.26.12
[11:02:24.206134][cli][debug] websocket-client: 1.2.3
[11:02:24.206662][cli][debug] importlib-metadata: 4.12.0
[11:02:24.206920][cli][debug] Arguments:
[11:02:24.206967][cli][debug] url=dash://https://aw-ucdn-3201-prod.tv.cetin.cz/bpk-tv/3184/output0/manifest.mpd?...
[11:02:24.207002][cli][debug] stream=['best']
[11:02:24.207045][cli][debug] --loglevel=all
[11:02:24.207074][cli][debug] --logfile=/home/kodi/TVServer/playlist/o2tv/streamer.str
[11:02:24.207105][cli][debug] --locale=cs_CZ
[11:02:24.207150][cli][debug] --stdout=True
[11:02:24.207200][cli][debug] --ffmpeg-ffmpeg=ffmpeg
[11:02:24.207226][cli][debug] --ffmpeg-verbose-path=/home/kodi/TVServer/playlist/o2tv/streamer.ffm
[11:02:24.207252][cli][debug] --ffmpeg-fout=mpegts
[11:02:24.207521][cli][info] Found matching plugin dash for URL dash://https://aw-ucdn-3201-prod.tv.cetin.cz/bpk-tv/3184/output0/manifest.mpd?...
[11:02:24.207612][plugins.dash][debug] URL=https://aw-ucdn-3201-prod.tv.cetin.cz/bpk-tv/3184/output0/manifest.mpd?...
[11:02:24.554768][utils.l10n][debug] Language code: cs_CZ
[11:02:24.554984][stream.dash][debug] Available languages for DASH audio streams: cs (using: cs)
[11:02:24.555725][cli][info] Available streams: 180p (worst), 360p, 540p, 720p, 1080p (best)
[11:02:24.555813][cli][info] Opening stream: 1080p (dash)
[11:02:24.556031][stream.dash][debug] Opening DASH reader for: video=5400000 (video/mp4)
[11:02:24.556940][stream.dash][debug] Opening DASH reader for: audio_129102_cze=128000 (audio/mp4)
[11:02:24.557299][stream.dash_manifest][debug] Generating segment timeline for dynamic playlist (id=2))
[11:02:24.558251][stream.dash][debug] Reloading manifest (video=5400000:video/mp4)
[11:02:24.560063][stream.dash_manifest][debug] Generating segment timeline for dynamic playlist (id=1))
[11:02:24.560317][stream.dash][debug] Reloading manifest (audio_129102_cze=128000:audio/mp4)
[11:02:24.562056][stream.ffmpegmux][trace] Querying FFmpeg version: ['/usr/bin/ffmpeg', '-version']
[11:02:24.571403][stream.dash][debug] Download of segment: 3184-video=5400000.dash complete
[11:02:24.670748][stream.ffmpegmux][debug] ffmpeg version 5.1.6-0+deb12u1+rpt1 Copyright (c) 2000-2024 the FFmpeg developers
[11:02:24.670867][stream.ffmpegmux][debug] built with gcc 12 (Debian 12.2.0-14)
[11:02:24.670907][stream.ffmpegmux][debug] configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
[11:02:24.670950][stream.ffmpegmux][debug] libavutil 57. 28.100 / 57. 28.100
[11:02:24.670982][stream.ffmpegmux][debug] libavcodec 59. 37.100 / 59. 37.100
[11:02:24.671009][stream.ffmpegmux][debug] libavformat 59. 27.100 / 59. 27.100
[11:02:24.671033][stream.ffmpegmux][debug] libavdevice 59. 7.100 / 59. 7.100
[11:02:24.671059][stream.ffmpegmux][debug] libavfilter 8. 44.100 / 8. 44.100
[11:02:24.671082][stream.ffmpegmux][debug] libswscale 6. 7.100 / 6. 7.100
[11:02:24.671105][stream.ffmpegmux][debug] libswresample 4. 7.100 / 4. 7.100
[11:02:24.671127][stream.ffmpegmux][debug] libpostproc 56. 6.100 / 56. 6.100
[11:02:24.671186][utils.named_pipe][info] Creating pipe streamlinkpipe-992914-1-2326
[11:02:24.671479][utils.named_pipe][info] Creating pipe streamlinkpipe-992914-2-5599
[11:02:24.671635][stream.ffmpegmux][debug] ffmpeg command: /usr/bin/ffmpeg -nostats -y -i /tmp/streamlinkpipe-992914-1-2326 -i /tmp/streamlinkpipe-992914-2-5599 -c:v copy -c:a copy -copyts -f mpegts pipe:1
[11:02:24.671887][stream.ffmpegmux][debug] Starting copy to pipe: /tmp/streamlinkpipe-992914-1-2326
[11:02:24.672043][stream.ffmpegmux][debug] Starting copy to pipe: /tmp/streamlinkpipe-992914-2-5599
[11:02:24.672427][cli][debug] Pre-buffering 8192 bytes
[11:02:24.705535][stream.dash][debug] Download of segment: 3184-audio_129102_cze=128000.dash complete
[11:02:24.725230][stream.dash][debug] Download of segment: 3184-audio_129102_cze=128000-83066003391422.dash complete
[11:02:24.740861][stream.dash][debug] Download of segment: 3184-audio_129102_cze=128000-83066003483582.dash complete
[11:02:24.923797][stream.dash][debug] Download of segment: 3184-video=5400000-1038325042379.dash complete
[11:02:25.155530][cli][debug] Writing stream to output
[11:02:25.287342][stream.dash][debug] Download of segment: 3184-video=5400000-1038325043531.dash complete
[11:02:26.556602][stream.dash_manifest][debug] Generating segment timeline for dynamic playlist (id=2))
[11:02:26.557591][stream.dash][debug] Reloading manifest (video=5400000:video/mp4)
[11:02:26.558851][stream.dash_manifest][debug] Generating segment timeline for dynamic playlist (id=1))
[11:02:26.559596][stream.dash][debug] Reloading manifest (audio_129102_cze=128000:audio/mp4)
[11:02:28.556756][stream.dash_manifest][debug] Generating segment timeline for dynamic playlist (id=2))
[11:02:28.557787][stream.dash][debug] Reloading manifest (video=5400000:video/mp4)
[11:02:28.559113][stream.dash_manifest][debug] Generating segment timeline for dynamic playlist (id=1))
[11:02:28.560309][stream.dash][debug] Reloading manifest (audio_129102_cze=128000:audio/mp4)
[11:02:28.614527][stream.dash][debug] Download of segment: 3184-audio_129102_cze=128000-83066003575742.dash complete
[11:02:28.912473][stream.dash][debug] Download of segment: 3184-video=5400000-1038325044683.dash complete
...Já teď odcházím a budu zas až večer...
Jsem (až na výjimky) pouhým čtenářem fóra.
Nepokračuji tedy ani v tématech, která jsem založil.
To platí i pro doplňky Kodi a další aplikace, které jsou s takovými tématy spojené.
Nepokračuji tedy ani v tématech, která jsem založil.
To platí i pro doplňky Kodi a další aplikace, které jsou s takovými tématy spojené.
