Bug #5250
IPTV freeze after tens of seconds
0%
Description
Hello
i have tvheadend 4.2.6. I'v created stream with this URL
pipe:///usr/bin/ffmpeg -loglevel fatal -i http://se01.se.cdn.srv.markiza.sk/live/dajto-w.smil/chunklist_b1120000.m3u8 -c copy -f mpegts -mpegts_service_type advanced_codec_digital_hdtv pipe:1
It works only few tens of seconds, than it stops. In log is only "spawn: Executing "/usr/bin/ffmpeg"... nothing else...
When I try that link in VLC, or ffmpeg | ffplay, no problem.
Files
History
Updated by Nina Kampusch about 6 years ago
Igal Three wrote:
pipe:///usr/bin/ffmpeg
*-loglevel fatal*
It works only few tens of seconds, than it stops. In log is only "spawn: Executing "/usr/bin/ffmpeg"... nothing else...
No way, you're telling it not to log, and ... it actually does that?! Who could expect that...
scnr...
Updated by Igal Three about 6 years ago
logs:
2018-10-10 13:28:15.151 http: 192.168.1.11: using ticket 90744735482194EA4AA8CE762DFF51F207D3CA29 for /stream/channelid/1465036609 2018-10-10 13:28:15.151 mpegts: Dajto in Internet - tuning on IPTV 2018-10-10 13:28:15.153 subscription: 038B: "HTTP" subscribing on channel "Dajto", weight: 100, adapter: "IPTV", network: "Internet", mux: "Dajto", provider: "FFmpeg", service: "Dajto.SD", profile="pass", hostname="192.168.1.11", client="VLC/3.0.4 LibVLC/3.0.4" 2018-10-10 13:28:15.153 spawn: Executing "/usr/bin/ffmpeg" 2018-10-10 13:28:15.287 spawn: ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers 2018-10-10 13:28:15.287 spawn: built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609 2018-10-10 13:28:15.287 spawn: configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11g 2018-10-10 13:28:15.288 spawn: libavutil 54. 31.100 / 54. 31.100 2018-10-10 13:28:15.288 spawn: libavcodec 56. 60.100 / 56. 60.100 2018-10-10 13:28:15.288 spawn: libavformat 56. 40.101 / 56. 40.101 2018-10-10 13:28:15.288 spawn: libavdevice 56. 4.100 / 56. 4.100 2018-10-10 13:28:15.288 spawn: libavfilter 5. 40.101 / 5. 40.101 2018-10-10 13:28:15.288 spawn: libavresample 2. 1. 0 / 2. 1. 0 2018-10-10 13:28:15.288 spawn: libswscale 3. 1.101 / 3. 1.101 2018-10-10 13:28:15.288 spawn: libswresample 1. 2.101 / 1. 2.101 2018-10-10 13:28:15.288 spawn: libpostproc 53. 3.100 / 53. 3.100 2018-10-10 13:28:15.424 spawn: [http @ 0xbb26e0] No trailing CRLF found in HTTP header. 2018-10-10 13:28:15.812 spawn: [http @ 0xbb3ca0] No trailing CRLF found in HTTP header. 2018-10-10 13:28:16.192 spawn: Input #0, hls,applehttp, from 'http://se01.se.cdn.srv.markiza.sk/live/dajto-w.smil/chunklist_b1120000.m3u8': 2018-10-10 13:28:16.193 spawn: Duration: N/A, start: 3729.283067, bitrate: N/A 2018-10-10 13:28:16.193 spawn: Program 0 2018-10-10 13:28:16.193 spawn: Metadata: 2018-10-10 13:28:16.193 spawn: variant_bitrate : 0 2018-10-10 13:28:16.193 spawn: Stream #0:0: Data: timed_id3 (ID3 / 0x20334449) 2018-10-10 13:28:16.193 spawn: Stream #0:1: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 720x404 [SAR 404:405 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc 2018-10-10 13:28:16.194 spawn: Stream #0:2: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 94 kb/s 2018-10-10 13:28:16.194 spawn: Output #0, mpegts, to 'pipe:1': 2018-10-10 13:28:16.194 spawn: Metadata: 2018-10-10 13:28:16.194 spawn: encoder : Lavf56.40.101 2018-10-10 13:28:16.195 spawn: Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x404 [SAR 404:405 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc 2018-10-10 13:28:16.195 spawn: Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, 94 kb/s 2018-10-10 13:28:16.195 spawn: Stream mapping: 2018-10-10 13:28:16.195 spawn: Stream #0:1 -> #0:0 (copy) 2018-10-10 13:28:16.195 spawn: Stream #0:2 -> #0:1 (copy) 2018-10-10 13:28:16.195 spawn: Press [q] to stop, [?] for help 2018-10-10 13:28:16.701 spawn: frame= 89 fps=0.0 q=-1.0 size= 537kB time=00:00:03.64 bitrate=1206.3kbits/s 2018-10-10 13:28:17.238 spawn: frame= 150 fps=144 q=-1.0 size= 897kB time=00:00:06.08 bitrate=1208.4kbits/s 2018-10-10 13:28:17.752 spawn: frame= 218 fps=141 q=-1.0 size= 1327kB time=00:00:08.77 bitrate=1238.4kbits/s 2018-10-10 13:28:17.806 spawn: [http @ 0xbb3b20] No trailing CRLF found in HTTP header. 2018-10-10 13:28:20.950 spawn: frame= 237 fps= 50 q=-1.0 size= 1477kB time=00:00:09.54 bitrate=1267.7kbits/s
video stops...
Updated by Joe User about 6 years ago
It looks like it is not finding the next segment. Can you run ffmpeg from a command prompt?
ffmpeg -i http://se01.se.cdn.srv.markiza.sk/live/dajto-w.smil/chunklist_b1120000.m3u8 test.ts
Updated by Igal Three about 6 years ago
OK
user@server:~$ ffmpeg -i http://se01.se.cdn.srv.markiza.sk/live/dajto-w.smil/chunklist_b1120000.m3u8 -c copy -f mpegts - | ffplay -i - ffplay version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2003-2018 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609 configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609 configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 [http @ 0x25246c0] No trailing CRLF found in HTTP header. [http @ 0x2525c80] No trailing CRLF found in HTTP header.0B f=0/0 Input #0, hls,applehttp, from 'http://se01.se.cdn.srv.markiza.sk/live/dajto-w.smil/chunklist_b1120000.m3u8': Duration: N/A, start: 6057.315711, bitrate: N/A Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Data: timed_id3 (ID3 / 0x20334449) Stream #0:1: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 720x404 [SAR 404:405 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:2: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 93 kb/s Output #0, mpegts, to 'pipe:': Metadata: encoder : Lavf56.40.101 Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x404 [SAR 404:405 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, 93 kb/s Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #0:2 -> #0:1 (copy) Press [q] to stop, [?] for help Input #0, mpegts, from 'pipe:': 0KB vq= 0KB sq= 0B f=0/0 1261.3kbits/s Duration: N/A, start: 1.400000, bitrate: N/A Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 720x404 [SAR 404:405 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 86 kb/s skipping 1 segments ahead, expired from playlists sq= 0B f=0/0 1219.1kbits/s [http @ 0x2710aa0] No trailing CRLF found in HTTP header. [http @ 0x2710a80] No trailing CRLF found in HTTP header.0B f=0/0 832.4kbits/s [http @ 0x2616440] No trailing CRLF found in HTTP header.0B f=0/0 977.8kbits/s [http @ 0x2710a80] No trailing CRLF found in HTTP header.0B f=0/0 1062.8kbits/s [http @ 0x2616440] No trailing CRLF found in HTTP header.0B f=0/0 1100.4kbits/s 66.51 A-V: -0.037 fd= 42 aq= 13KB vq= 174KB sq= 0B f=0/0 1128.2kbits/s ... ...
works forever, i stop it
Updated by Igal Three about 6 years ago
I try change upgrade ubuntu to 18.04, still not work.
Than I change ffmpeg to mencoder and it works (but som little freezes, but play forever).
Updated by Jaroslav Kysela almost 6 years ago
Could you try run ffmpeg under strace (write the log to a file) to see where things stop? (write a script for this complex pipe)
Updated by Jaroslav Kysela almost 6 years ago
connect(4, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("212.5.205.122")}, 16) = -1 EINPROGRESS (Operation now in progress) poll([{fd=4, events=POLLOUT}], 1, 100) = 1 ([{fd=4, revents=POLLOUT}]) getsockopt(4, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 poll([{fd=4, events=POLLOUT}], 1, 100) = 1 ([{fd=4, revents=POLLOUT}]) sendto(4, "GET /live/dajto-w.smil/media-uq2"..., 180, MSG_NOSIGNAL, NULL, 0) = 180 poll([{fd=4, events=POLLIN}], 1, 100) = 1 ([{fd=4, revents=POLLIN}]) recvfrom(4, "HTTP/1.1 200 OK\r\nConnection: Clo"..., 4096, 0, NULL, NULL) = 505 poll([{fd=4, events=POLLIN}], 1, 100) = 1 ([{fd=4, revents=POLLIN}]) recvfrom(4, "gp\36\224\231\t\36)\300B\222\300X0\271\220\"f\276\3647\263\336\236\345C\211\0\264\2'\35"..., 4112, 0, NULL, NULL) = 1400 poll([{fd=4, events=POLLIN}], 1, 100) = 1 ([{fd=4, revents=POLLIN}]) recvfrom(4, "\241\203\250*\243\375\341T\0246\204\305I@O\203\310_\t\366\372\227\276=\2T\220xbg>\210"..., 2712, 0, NULL, NULL) = 1400 poll([{fd=4, events=POLLIN}], 1, 100) = 1 ([{fd=4, revents=POLLIN}]) recvfrom(4, "\33\225\331\343Z\25\21\377\202\225H\227p\20\323\222\241:pM pO\364a\254\301X\326|\243\234"..., 4096, 0, NULL, NULL) = 1400 poll([{fd=4, events=POLLIN}], 1, 100) = 1 ([{fd=4, revents=POLLIN}]) recvfrom(4, "\265\2243K_a\16\2167I\35\266p`8\364\24\365\271\16H\1U?\23&~\t\340\32n\230"..., 2696, 0, NULL, NULL) = 1400 ..... poll([{fd=4, events=POLLIN}], 1, 100) = 1 ([{fd=4, revents=POLLIN}]) recvfrom(4, "au\204\245\236=\341\240V\361F\1ST'\230\327\262:J\347\306\373\372\336S\324Z\323v\16\27"..., 4096, 0, NULL, NULL) = 4096 poll([{fd=4, events=POLLIN}], 1, 100) = 1 ([{fd=4, revents=POLLIN}]) recvfrom(4, "A\26\316?\353\227\347\353\341F\300o&2;1\2002\233\263\33\337\31\32R\367i\257?\3474\205"..., 4096, 0, NULL, NULL) = 2744 poll([{fd=4, events=POLLIN}], 1, 100) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 100) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 100) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 100) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 100) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 100) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 100) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 100) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 100) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 100) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 100) = 0 (Timeout)
It seems that the TCP stream hung up but ffmpeg cannot detect this. https://www.ffmpeg.org/bugreports.html
Updated by Luis Alves almost 6 years ago
Try adding the timeout or reconnect switches to the stream:
From your example:
pipe:///usr/bin/ffmpeg -loglevel fatal -i http://se01.se.cdn.srv.markiza.sk/live/dajto-w.smil/chunklist_b1120000.m3u8 -timeout 100 -reconnect_at_eof -reconnect_streamed -c copy -f mpegts -mpegts_service_type advanced_codec_digital_hdtv pipe:1
Updated by Luis Alves almost 6 years ago
Discard my post above - I was mislead by Jaroslav comment about the hung up.
The issue (not really an issue) is on tvheadend side.
Jaroslav Kysela wrote:
It seems that the TCP stream hung up but ffmpeg cannot detect this. https://www.ffmpeg.org/bugreports.html
Not true. It looks like the source stream doesn't send the data continuously - it sends a big chunk of data with intervals where nothing is sent - but the connection doesn't hung up.
Tvheadend has a "data timeout" timer that will abort a stream when no data is received for that amount of time.
That config option is available on the stream profile configuration:
Go to "Configuration->Stream->Stream Profiles" tab and select the profile in use.
On the "Data timeout" setting, type in a number greater than the "sleep" interval the stream has - try with something like 30 (sec).
Jaroslav,
Does it make sense for iptv type of network to have a local data timeout (per mux)?
Personally I don't think it needs it, the stream profile data timeout setting should be enough...
Updated by Jaroslav Kysela almost 6 years ago
It may be a problem or not. I need probably dig more to it. TVH uses 'pause' mechanism - if too much realtime data are queued (PCR clocks are used as reference), the input is paused (in this case it's the pipe). Perhaps, this cause some unwanted effects.
Updated by Igal Three almost 6 years ago
Jaroslav Kysela wrote:
It seems that the TCP stream hung up but ffmpeg cannot detect this. https://www.ffmpeg.org/bugreports.html
Hello
if it bug of ffmpeg, why ffplay is OK? or ffmpeg | ffplay ?
Updated by Luis Alves almost 6 years ago
Igal Three wrote:
Jaroslav Kysela wrote:
It seems that the TCP stream hung up but ffmpeg cannot detect this. https://www.ffmpeg.org/bugreports.html
Hello
if it bug of ffmpeg, why ffplay is OK? or ffmpeg | ffplay ?
It's not.
Did you try my suggestion? Change the "data timeout" setting on the "Stream Profile" to 15 sec.
Updated by Igal Three almost 6 years ago
Luis Alves wrote:
Did you try my suggestion? Change the "data timeout" setting on the "Stream Profile" to 15 sec.
I haven't that option, only "Timeout (sec) (0=infinite):"
Updated by Igal Three almost 6 years ago
Updated by Luis Alves almost 6 years ago
- File sp-datatimeout.png sp-datatimeout.png added
Igal Three wrote:
Luis Alves wrote:
Did you try my suggestion? Change the "data timeout" setting on the "Stream Profile" to 15 sec.
I haven't that option, only "Timeout (sec) (0=infinite):"
Oh... You need to user a later version to have the "data timeout" option (check attachment)
Updated by Igal Three almost 6 years ago
Luis Alves wrote:
Igal Three wrote:
Luis Alves wrote:
Did you try my suggestion? Change the "data timeout" setting on the "Stream Profile" to 15 sec.
I haven't that option, only "Timeout (sec) (0=infinite):"
Oh... You need to user a later version to have the "data timeout" option (check attachment)
I try unstable version 4.3-1620~gda5dc1044.
Now it freeze and than stop stream:
... 2018-12-04 17:58:29.564 spawn: frame= 687 fps= 30 q=-1.0 size= 3876kB time=00:00:27.51 bitrate=1154.1kbits/s speed=1.21x 2018-12-04 17:58:29.740 spawn: [hls,applehttp @ 0x5620eccc8880] Opening 'crypto+http://se01.se.cdn.srv.markiza.sk/live/markiza-w.smil/media-upqrovpmg_b1120000_98885.ts' for reading 2018-12-04 17:58:30.108 spawn: frame= 753 fps= 32 q=-1.0 size= 4292kB time=00:00:30.16 bitrate=1165.6kbits/s speed= 1.3x 2018-12-04 17:58:31.967 spawn: frame= 760 fps= 30 q=-1.0 size= 4373kB time=00:00:30.41 bitrate=1177.8kbits/s speed=1.21x 2018-12-04 17:58:34.969 spawn: frame= 840 fps= 30 q=-1.0 size= 4739kB time=00:00:33.64 bitrate=1153.7kbits/s speed= 1.2x 2018-12-04 17:58:35.007 spawn: [http @ 0x5620ece8ade0] Stream ends prematurely at 1085512, should be 1435392 2018-12-04 17:58:35.008 spawn: Last message repeated 1 times 2018-12-04 17:58:35.009 spawn: [hls,applehttp @ 0x5620eccc8880] Opening 'crypto+http://se01.se.cdn.srv.markiza.sk/live/markiza-w.smil/media-upqrovpmg_b1120000_98886.ts' for reading 2018-12-04 17:58:37.973 spawn: frame= 912 fps= 29 q=-1.0 size= 5416kB time=00:00:39.40 bitrate=1126.0kbits/s speed=1.27x 2018-12-04 17:58:40.974 spawn: frame= 924 fps= 27 q=-1.0 size= 5475kB time=00:00:39.91 bitrate=1123.6kbits/s speed=1.17x 2018-12-04 17:58:40.994 spawn: [http @ 0x5620ece8ade0] Stream ends prematurely at 337656, should be 1217680 2018-12-04 17:58:41.139 spawn: Last message repeated 1 times 2018-12-04 17:58:41.139 spawn: [hls,applehttp @ 0x5620eccc8880] Opening 'crypto+http://se01.se.cdn.srv.markiza.sk/live/markiza-w.smil/media-upqrovpmg_b1120000_98887.ts' for reading 2018-12-04 17:58:41.467 spawn: [mpegts @ 0x5620ecccf4c0] PES packet size mismatch 2018-12-04 17:58:41.521 spawn: frame= 958 fps= 28 q=-1.0 size= 5784kB time=00:00:48.04 bitrate= 986.2kbits/s speed=1.39x 2018-12-04 17:58:50.484 spawn: frame= 982 fps= 23 q=-1.0 size= 5837kB time=00:00:49.01 bitrate= 975.5kbits/s speed=1.12x 2018-12-04 17:58:53.489 spawn: frame= 1045 fps= 22 q=-1.0 size= 6155kB time=00:00:51.54 bitrate= 978.1kbits/s speed=1.11x 2018-12-04 17:59:09.304 webui: Stop streaming /stream/channel/1c2a678f18d1a3f3d2ecc4bbd8e11fd2?ticket=b97790304bb997912a5fd7e2dd38d921cb6d7518, timeout waiting for packets 2018-12-04 17:59:09.305 subscription: 0030: "HTTP" unsubscribing from "Markíza", hostname="192.168.1.11", username="admin", client="VLC/3.0.5 LibVLC/3.0.5"
Updated by Luis Alves almost 6 years ago
Igal Three wrote:
oh, previous post is with "Data timeout" 15.
Try with 60
If it doesn't work, try with 0
Make sure you are setting up the profile you are using.
Updated by Igal Three almost 6 years ago
Luis Alves wrote:
Igal Three wrote:
oh, previous post is with "Data timeout" 15.
Try with 60
If it doesn't work, try with 0Make sure you are setting up the profile you are using.
Nothing has changed
Updated by Luis Alves almost 6 years ago
Igal Three wrote:
Nothing has changed
Not sure what you are doing wrong.
I've tested with the playlist you posted (http://se01.se.cdn.srv.markiza.sk/live/dajto-w.smil/chunklist_b1120000.m3u8) and I can play the channel for hours without any interruption when I set the data timeout to 15 sec.
If I set to 3 sec, then it stops.
Updated by Igal Three almost 6 years ago
Luis Alves wrote:
Igal Three wrote:
Nothing has changed
Not sure what you are doing wrong.
I've tested with the playlist you posted (http://se01.se.cdn.srv.markiza.sk/live/dajto-w.smil/chunklist_b1120000.m3u8) and I can play the channel for hours without any interruption when I set the data timeout to 15 sec.
If I set to 3 sec, then it stops.
It is interesting...
When I play from console
ffmpeg -i http://se01.se.cdn.srv.markiza.sk/live/markiza-w.smil/chunklist_b1120000.m3u8 -c copy -f mpegts -mpegts_service_type advanced_codec_digital_hdtv - | ffplay -i -
it is OK without errors.
When I play it via tvheadend, it hangs.
Updated by Luis Alves almost 6 years ago
Here is a log where I play from tvheadend: https://pastebin.com/a3ChRHSZ
No hang. Are you sure you are setting the "data timeout" on the correct profile?
Post here the complete log of tvheadend playing the channel.
Updated by Igal Three almost 6 years ago
Luis Alves wrote:
Here is a log where I play from tvheadend: https://pastebin.com/a3ChRHSZ
No hang. Are you sure you are setting the "data timeout" on the correct profile?
Post here the complete log of tvheadend playing the channel.
Here is complete log, profile pass, data timeout 0:
Loglevel debug: enabled 2018-12-07 09:28:59.540 http: 192.168.1.11: using ticket 2d91ff58b380251f17008d88a207f05226039238 for /stream/channel/1c2a678f18d1a3f3d2ecc4bbd8e11fd2 2018-12-07 09:28:59.540 mpegts: Markiza in Internet - tuning on IPTV #1 2018-12-07 09:28:59.542 subscription: 0021: "HTTP" subscribing on channel "Markíza", weight: 100, adapter: "IPTV #1", network: "Internet", mux: "Markiza", provider: "FFmpeg", service: "Service01", profile="pass", hostname="192.168.1.11", username="admin", client="VLC/3.0.5 LibVLC/3.0.5" 2018-12-07 09:28:59.547 spawn: Executing "/usr/bin/ffmpeg" 2018-12-07 09:28:59.896 spawn: ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers 2018-12-07 09:28:59.896 spawn: built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) 2018-12-07 09:28:59.896 spawn: configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 - 2018-12-07 09:28:59.896 spawn: libavutil 55. 78.100 / 55. 78.100 2018-12-07 09:28:59.896 spawn: libavcodec 57.107.100 / 57.107.100 2018-12-07 09:28:59.896 spawn: libavformat 57. 83.100 / 57. 83.100 2018-12-07 09:28:59.896 spawn: libavdevice 57. 10.100 / 57. 10.100 2018-12-07 09:28:59.896 spawn: libavfilter 6.107.100 / 6.107.100 2018-12-07 09:28:59.896 spawn: libavresample 3. 7. 0 / 3. 7. 0 2018-12-07 09:28:59.896 spawn: libswscale 4. 8.100 / 4. 8.100 2018-12-07 09:28:59.896 spawn: libswresample 2. 9.100 / 2. 9.100 2018-12-07 09:28:59.896 spawn: libpostproc 54. 7.100 / 54. 7.100 2018-12-07 09:29:00.049 spawn: [hls,applehttp @ 0x5573b8a97880] Opening 'http://www.markiza.sk/binary/channelkey?id=markiza' for reading 2018-12-07 09:29:00.191 spawn: [hls,applehttp @ 0x5573b8a97880] Opening 'crypto+http://se01.se.cdn.srv.markiza.sk/live/markiza-w.smil/media-upqrovpmg_b1120000_121746.ts' for reading 2018-12-07 09:29:00.917 spawn: Input #0, hls,applehttp, from 'http://se01.se.cdn.srv.markiza.sk/live/markiza-w.smil/chunklist_b1120000.m3u8': 2018-12-07 09:29:00.917 spawn: Duration: N/A, start: 41101.085956, bitrate: N/A 2018-12-07 09:29:00.917 spawn: Program 0 2018-12-07 09:29:00.917 spawn: Metadata: 2018-12-07 09:29:00.917 spawn: variant_bitrate : 0 2018-12-07 09:29:00.917 spawn: Stream #0:0: Data: timed_id3 (ID3 / 0x20334449) 2018-12-07 09:29:00.917 spawn: Metadata: 2018-12-07 09:29:00.917 spawn: variant_bitrate : 0 2018-12-07 09:29:00.917 spawn: Stream #0:1: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 720x404 [SAR 404:405 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc 2018-12-07 09:29:00.917 spawn: Metadata: 2018-12-07 09:29:00.917 spawn: variant_bitrate : 0 2018-12-07 09:29:00.918 spawn: Stream #0:2: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp 2018-12-07 09:29:00.918 spawn: Metadata: 2018-12-07 09:29:00.918 spawn: variant_bitrate : 0 2018-12-07 09:29:00.921 spawn: Output #0, mpegts, to 'pipe:1': 2018-12-07 09:29:00.921 spawn: Metadata: 2018-12-07 09:29:00.921 spawn: encoder : Lavf57.83.100 2018-12-07 09:29:00.921 spawn: Stream #0:0: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 720x404 [SAR 404:405 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc 2018-12-07 09:29:00.921 spawn: Metadata: 2018-12-07 09:29:00.921 spawn: variant_bitrate : 0 2018-12-07 09:29:00.921 spawn: Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp 2018-12-07 09:29:00.921 spawn: Metadata: 2018-12-07 09:29:00.921 spawn: variant_bitrate : 0 2018-12-07 09:29:00.921 spawn: Stream mapping: 2018-12-07 09:29:00.921 spawn: Stream #0:1 -> #0:0 (copy) 2018-12-07 09:29:00.921 spawn: Stream #0:2 -> #0:1 (copy) 2018-12-07 09:29:00.921 spawn: Press [q] to stop, [?] for help 2018-12-07 09:29:01.427 spawn: frame= 66 fps=0.0 q=-1.0 size= 433kB time=00:00:02.63 bitrate=1349.9kbits/s speed=5.17x 2018-12-07 09:29:01.932 spawn: frame= 104 fps=103 q=-1.0 size= 668kB time=00:00:04.16 bitrate=1314.0kbits/s speed=4.11x 2018-12-07 09:29:02.437 spawn: frame= 130 fps= 86 q=-1.0 size= 898kB time=00:00:05.23 bitrate=1406.2kbits/s speed=3.45x 2018-12-07 09:29:02.993 spawn: frame= 162 fps= 78 q=-1.0 size= 1152kB time=00:00:06.48 bitrate=1454.6kbits/s speed=3.13x 2018-12-07 09:29:03.493 spawn: frame= 200 fps= 78 q=-1.0 size= 1409kB time=00:00:08.01 bitrate=1439.8kbits/s speed=3.11x 2018-12-07 09:29:04.074 spawn: frame= 235 fps= 74 q=-1.0 size= 1668kB time=00:00:09.41 bitrate=1452.1kbits/s speed=2.98x 2018-12-07 09:29:05.900 spawn: frame= 236 fps= 47 q=-1.0 size= 1676kB time=00:00:09.48 bitrate=1448.3kbits/s speed= 1.9x 2018-12-07 09:29:05.948 spawn: [hls,applehttp @ 0x5573b8a97880] Opening 'crypto+http://se01.se.cdn.srv.markiza.sk/live/markiza-w.smil/media-upqrovpmg_b1120000_121747.ts' for reading 2018-12-07 09:29:06.420 spawn: frame= 308 fps= 56 q=-1.0 size= 2205kB time=00:00:12.33 bitrate=1464.5kbits/s speed=2.24x 2018-12-07 09:29:08.204 spawn: frame= 313 fps= 43 q=-1.0 size= 2230kB time=00:00:12.52 bitrate=1458.6kbits/s speed=1.72x 2018-12-07 09:29:11.544 spawn: frame= 388 fps= 37 q=-1.0 size= 2676kB time=00:00:15.51 bitrate=1412.5kbits/s speed=1.46x 2018-12-07 09:29:14.544 spawn: frame= 465 fps= 34 q=-1.0 size= 3091kB time=00:00:18.60 bitrate=1361.0kbits/s speed=1.37x 2018-12-07 09:29:14.709 spawn: [hls,applehttp @ 0x5573b8a97880] Opening 'crypto+http://se01.se.cdn.srv.markiza.sk/live/markiza-w.smil/media-upqrovpmg_b1120000_121748.ts' for reading 2018-12-07 09:29:15.046 spawn: frame= 524 fps= 37 q=-1.0 size= 3406kB time=00:00:20.99 bitrate=1328.8kbits/s speed=1.49x 2018-12-07 09:29:17.024 spawn: frame= 541 fps= 34 q=-1.0 size= 3484kB time=00:00:21.67 bitrate=1317.0kbits/s speed=1.35x 2018-12-07 09:29:20.125 spawn: frame= 611 fps= 32 q=-1.0 size= 3891kB time=00:00:24.45 bitrate=1303.1kbits/s speed=1.27x 2018-12-07 09:29:23.132 spawn: frame= 684 fps= 31 q=-1.0 size= 4515kB time=00:00:27.38 bitrate=1350.9kbits/s speed=1.23x 2018-12-07 09:29:23.170 spawn: [hls,applehttp @ 0x5573b8a97880] Opening 'crypto+http://se01.se.cdn.srv.markiza.sk/live/markiza-w.smil/media-upqrovpmg_b1120000_121749.ts' for reading 2018-12-07 09:29:26.431 spawn: frame= 759 fps= 30 q=-1.0 size= 5088kB time=00:00:30.37 bitrate=1372.2kbits/s speed=1.19x
after last line it hangs