NextPVR Forums

Full Version: Australian IPTV Channel 10 refusing "VLC/2.2.6 LibVLC/2.2.6" header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Version 6.1.5.231022   on Linux.
I'm using Matt Huisman's m3u files from https://i.mjh.nz/au/Melbourne/ for IPTV, and none of the Channel 10s seem to work. These files work on Kodi's IPTVSimple client, so it's not the streams themselves.
Attempting to record anything on Channel 10 (or 10 Bold, 10 Peach, etc) results in this in /var/log/syslog:

Quote:Oct 23 17:51:00 PUCK server.sh[1598]: ffmpeg version 4.2.7-0ubuntu0.1 Copyright © 2000-2022 the FFmpeg developers
Oct 23 17:51:00 PUCK server.sh[1598]:  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
Oct 23 17:51:00 PUCK server.sh[1598]:  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
Oct 23 17:51:00 PUCK server.sh[1598]:  libavutil      56. 31.100 / 56. 31.100
Oct 23 17:51:00 PUCK server.sh[1598]:  libavcodec    58. 54.100 / 58. 54.100
Oct 23 17:51:00 PUCK server.sh[1598]:  libavformat    58. 29.100 / 58. 29.100
Oct 23 17:51:00 PUCK server.sh[1598]:  libavdevice    58.  8.100 / 58.  8.100
Oct 23 17:51:00 PUCK server.sh[1598]:  libavfilter    7. 57.100 /  7. 57.100
Oct 23 17:51:00 PUCK server.sh[1598]:  libavresample  4.  0.  0 /  4.  0.  0
Oct 23 17:51:00 PUCK server.sh[1598]:  libswscale      5.  5.100 /  5.  5.100
Oct 23 17:51:00 PUCK server.sh[1598]:  libswresample  3.  5.100 /  3.  5.100
Oct 23 17:51:00 PUCK server.sh[1598]:  libpostproc    55.  5.100 / 55.  5.100
Oct 23 17:51:00 PUCK server.sh[1598]: /home/leigh/recordings/10 News First/Season 2023/10.News.First.S2023E211.ts: Invalid data found when processing input
Oct 23 17:51:11 PUCK server.sh[1605]: http://127.0.0.1:8866/live?recording_id=...9c3689d655: Invalid data found when processing input

I've updated the EXTVLCOPTS per https://forums.nextpvr.com/showthread.ph...381&page=4 to change the http headers, but it doesn't seem to make a difference.

When watching or recording one of the offending channels, I see this in the NextPVR log:

Quote:2023-10-23 17:50:47.069 [DEBUG][12]    PowerManagement CancelRecordingWakeupRequests (needs implementation)
2023-10-23 17:50:47.070 [DEBUG][12]    [10 News First] at 23/10/2023 5:00 pm
2023-10-23 17:50:47.070 [DEBUG][12]    Requesting wake up for 'RecordingOID889' [10 News First] at 23/10/2023 4:58 pm
2023-10-23 17:50:47.070 [DEBUG][12]    PowerManagement ScheduleWakeup (needs implementation)
2023-10-23 17:50:47.093 [DEBUG][12]    DefaultDirectoryChoice: first
2023-10-23 17:50:47.095 [DEBUG][12]    Preferred filename is '10.News.First.S2023E211'
2023-10-23 17:50:47.095 [DEBUG][12]    allocating recording target filename: /home/leigh/recordings/10 News First/Season 2023/10.News.First.S2023E211.ts
2023-10-23 17:50:47.096 [DEBUG][12]    About to start recording (889 on 34): /home/leigh/recordings/10 News First/Season 2023/10.News.First.S2023E211.ts
2023-10-23 17:50:47.096 [DEBUG][12]    (Recording is due to be stopped at 23/10/2023 6:30 pm)
2023-10-23 17:50:47.111 [DEBUG][12]    IPTV StartStream
2023-10-23 17:50:47.111 [DEBUG][12]    IPTV StartStream@2
2023-10-23 17:50:47.111 [DEBUG][12]    IPTV StartStream@3
2023-10-23 17:50:47.111 [DEBUG][12]    IPTV StartStream@3.1
2023-10-23 17:50:47.111 [DEBUG][12]    IPTV StartStream@3.2
2023-10-23 17:50:47.111 [DEBUG][12]    IPTV StartStream@3.3
2023-10-23 17:50:47.111 [DEBUG][12]    IPTV StartStream@3.4
2023-10-23 17:50:47.111 [DEBUG][12]    IPTV StartStream@3.5
2023-10-23 17:50:47.111 [DEBUG][12]    IPTV StartStream@3.5.1
2023-10-23 17:50:47.111 [DEBUG][12]    Executing: ffmpeg -y -user_agent "VLC/2.2.6 LibVLC/2.2.6"  -i https://i.mjh.nz/10-vic.m3u8 -vcodec copy -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -f mpegts  -
2023-10-23 17:50:47.123 [DEBUG][12]    https://i.mjh.nz/.../88.0?....  [R0hNAOWRTNaZw/rb17oB5MTaofEyRHqd5moHXxupRWI3g7lu8ZNsoT+o1H2FeYXDSw9VpEcdaNsEYJ9vVDHpXUryUlSxBK52oftdp8xxmLUJYjOwo89Pg51Q/DOpSumbQpUSmS+4glQGE+V5oUfW3ocHvH0wV1xc/XeOG
VoffxwIm8hbgEmeRcCOx80hBS7KFIferqbrHC9NDpNHUUx6qOT1awrUviFaNvXDRJTZrQqpJGoj/uL/9FJyXr3Urcdz/2jPvfvocG/sJ/kZI/G1jwh/flM+4EBa5fNi3gCEDruozaOWpJv6ZXBqzGH6wbUJgLkhn5Pho3BALkBMI+peWQHRPpHBS00FpIsKPxAlv8M9deqlk+FXV/h4ILJwmPSDt4DRF/+vYwSoFZz+kV9
HpfIaIYMjuipGxpYMHMTLVJ4LvndakHNhstZP+iGHGfiONlnZRJc6ruQRXyI+f+qpI3JbxFvbHmv60UmRr4neXxcrjLn54frt9G7epbn5WWiyfz1uDsSgtas0PcRYSgnK0ijcaAbetgKYv+shQ2dGdiwXheksJzW5HvwbMFVoq3xj0855kfTB1CpbnRnekxe6IYERcKpG/vA8GopJW3tMPZdtIpM6HXB2KNxzF8ke4Vww1
tW31xyLVpSppMbNsywd3tUX/Cd+ofTYfWRBg5LAUt8OvFlc5UAoaMWSK9CgrynbV1gBgBXSv3WqVKCt+MRlww==]
2023-10-23 17:50:47.126 [DEBUG][12]    IPTV StartStream@6
2023-10-23 17:50:47.126 [DEBUG][12]    IPTV StartStream@7
2023-10-23 17:50:47.126 [DEBUG][12]    IPTV StartStream@8
2023-10-23 17:50:47.129 [DEBUG][12]    Creating writer: /home/leigh/recordings/10 News First/Season 2023/10.News.First.S2023E211.ts
2023-10-23 17:50:47.130 [DEBUG][12]    Created Mutex: Global\NPVR-mutex-a44adb96175a1f90b1c37882aa558272
2023-10-23 17:50:47.131 [DEBUG][12]    Created map: /home/leigh/recordings/10 News First/Season 2023/10.News.First.S2023E211.ts.map
2023-10-23 17:50:47.133 [DEBUG][12]    StartStream [/home/leigh/recordings/10 News First/Season 2023/10.News.First.S2023E211.ts] allocated handle: 1
2023-10-23 17:50:47.133 [DEBUG][12]    IPTV StartStream@9
2023-10-23 17:50:47.133 [DEBUG][12]    Started recording (889:1:/home/leigh/recordings/10 News First/Season 2023/10.News.First.S2023E211.ts)
2023-10-23 17:50:47.138 [DEBUG][12]    Starting thumbnail extraction for /home/leigh/recordings/10 News First/Season 2023/10.News.First.S2023E211.ts
2023-10-23 17:50:48.084 [DEBUG][23]    Got request [172.16.2.109]: /service (recording.lastupdated)
2023-10-23 17:50:48.084 [DEBUG][23]    method=recording.lastupdated
2023-10-23 17:50:48.084 [DEBUG][23]    parameters:
2023-10-23 17:50:48.084 [DEBUG][23]        method: recording.lastupdated
2023-10-23 17:50:48.084 [DEBUG][23]        format: json
2023-10-23 17:50:48.084 [DEBUG][23]        sid: 5d7a4403-09f3-49d4-9e1d-3948a837612b
2023-10-23 17:50:48.084 [DEBUG][23]        client_ip: 172.16.2.109
2023-10-23 17:50:48.084 [DEBUG][23]        user_agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0
2023-10-23 17:50:48.084 [DEBUG][23]        host_callback: ...
2023-10-23 17:50:48.084 [DEBUG][23]    LastUpdated
2023-10-23 17:50:48.084 [DEBUG][23]    {"last_update":1698043847}

2023-10-23 17:50:50.430 [DEBUG][5]      ffmpeg exited. Likely end of VOD.
2023-10-23 17:50:50.430 [DEBUG][5]      StopStream@1
2023-10-23 17:50:50.430 [DEBUG][5]      StopStream@2
2023-10-23 17:50:50.430 [DEBUG][5]      StopStream@3
2023-10-23 17:50:50.430 [DEBUG][5]      StopStream handle: 1
2023-10-23 17:50:50.431 [DEBUG][5]      Closing TSWriter....: /home/leigh/recordings/10 News First/Season 2023/10.News.First.S2023E211.ts
2023-10-23 17:50:50.431 [ERROR][5]      writer.Close() did not complete in a timely fashion

...So the HTTP Header that's being sent to ffmpeg is still "VLC/2.2.6 LibVLC/2.2.6". Shouldn't these be passed from the m3u8 file?
As noted in the linked thread, if NextPVR can't determine the file content type it passes to ffmpeg but that doesn't use the header option and and an extra is needed.

Martin