toutv-extra
toutv-extra copied to clipboard
Download paused
When I try to download le-show-cache-2, it "pause" after 2 minutes and never start again.
Is there anything I do wrong?
Hi @cvillemure,
I'm a bit confused because I was able to download this particular video successfully. Could you provide more information about the unexpected behavior you're experiencing?
- What do you mean by "pause" and "never start again"?
- Were you able to authenticate against the tou.tv service with the
logincommand? - Does your account have an active Extra subscription?
- What happens if you restart the download?
- Do you see an error message?
- Does the
ffmpegwindow pops? - Can you provide logs?
Hi, I'm sorry I dont have much log to provide you. I had an active extra subscription until a two hours ago. My computer always crash when listening from their websites (but other providers like Netflix works fine). So I tried your script as a last resort to see if my subscription was worth anything
I downloaded ffmpeg-3.2.4-win64-static and start using your script.
The login was successful and the commands seems to be able to fetch episodes information, but the download always stopped at random timings.
I'll try to write the logs as I remembered them since I cancelled my extra subscription after writing this issue and it no longer works.
When ffmpeg started I saw red message about something like SPS and buffer. It did not seems to be critical.
I also saw some message saying it wasn't receiving playlist 1-3 information.
I saw a number of lines saying what time/fps/size it has completed (I guess) then all of a sudden all stopped. No error, no CPU/memory activity, the process was frozen and nothing was moving.
I tried it a couple time, with a bunch of slug (batch or not) without success.
Sorry if I cannot be of any more help. You can close the tickets if you can't reproduce. If I ever subscribe again I'll try it again and give you feedback
I tried it with an normal streaming and the behaviour was the same.
Here's the log of ffmpeg
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
[NULL @ 0000000002037440] non-existing SPS 0 referenced in buffering period
[NULL @ 0000000002037440] SPS unavailable in decode_picture_timing
[NULL @ 0000000002058b60] non-existing SPS 0 referenced in buffering period
[NULL @ 0000000002058b60] SPS unavailable in decode_picture_timing
[NULL @ 00000000027d6c40] non-existing SPS 0 referenced in buffering period
[NULL @ 00000000027d6c40] SPS unavailable in decode_picture_timing
[NULL @ 00000000027da120] non-existing SPS 0 referenced in buffering period
[NULL @ 00000000027da120] SPS unavailable in decode_picture_timing
[h264 @ 0000000002038a00] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000002038a00] SPS unavailable in decode_picture_timing
[h264 @ 00000000027b2760] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000027b2760] SPS unavailable in decode_picture_timing
[h264 @ 00000000027d8920] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000027d8920] SPS unavailable in decode_picture_timing
[h264 @ 00000000027d7aa0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000027d7aa0] SPS unavailable in decode_picture_timing
Input #0, hls,applehttp, from '[REMOVED]':
Duration: 00:21:36.21, start: 0.100511, bitrate: 0 kb/s
Program 0
Metadata:
variant_bitrate : 561000
Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 512x288 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 tbr, 90k tbn, 59.94 tbc
Metadata:
variant_bitrate : 561000
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 561000
Program 1
Metadata:
variant_bitrate : 925000
Stream #0:2: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 tbr, 90k tbn, 59.94 tbc
Metadata:
variant_bitrate : 925000
Stream #0:3: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 925000
Program 2
Metadata:
variant_bitrate : 1324000
Stream #0:4: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 852x480 [SAR 1:1 DAR 71:40], Closed Captions, 29.97 tbr, 90k tbn, 59.94 tbc
Metadata:
variant_bitrate : 1324000
Stream #0:5: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 1324000
Program 3
Metadata:
variant_bitrate : 2124000
Stream #0:6: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 852x480 [SAR 1:1 DAR 71:40], Closed Captions, 29.97 tbr, 90k tbn, 59.94 tbc
Metadata:
variant_bitrate : 2124000
Stream #0:7: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 2124000
Output #0, mp4, to 'District 31 s01e108.mp4':
Metadata:
encoder : Lavf57.56.101
Stream #0:0: Video: h264 (Main) ([33][0][0][0] / 0x0021), yuv420p, 852x480 [SAR 1:1 DAR 71:40], q=2-31, 29.97 tbr, 90k tbn, 90k tbc
Metadata:
variant_bitrate : 1324000
Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo
Metadata:
variant_bitrate : 561000
Stream mapping:
Stream #0:4 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 99 fps=0.0 q=-1.0 size= 625kB time=00:00:03.29 bitrate=1553.8kbits/frame= 179 fps=171 q=-1.0 size= 980kB time=00:00:05.96 bitrate=1345.7kbits/frame= 251 fps=162 q=-1.0 size= 1356kB time=00:00:08.35 bitrate=1329.1kbits/[hls,applehttp @ 0000000001fd24a0] No longer receiving playlist 1
frame= 299 fps=139 q=-1.0 size= 1572kB time=00:00:09.98 bitrate=1289.6kbits/[hls,applehttp @ 0000000001fd24a0] No longer receiving playlist 3
frame= 368 fps=133 q=-1.0 size= 1931kB time=00:00:12.30 bitrate=1285.1kbits/frame= 418 fps=128 q=-1.0 size= 2145kB time=00:00:13.91 bitrate=1263.0kbits/frame= 502 fps=133 q=-1.0 size= 2593kB time=00:00:16.74 bitrate=1268.6kbits/frame= 600 fps=133 q=-1.0 size= 3099kB time=00:00:19.99 bitrate=1270.0kbits/frame= 672 fps=132 q=-1.0 size= 3472kB time=00:00:22.43 bitrate=1267.9kbits/frame= 768 fps=137 q=-1.0 size= 3960kB time=00:00:25.61 bitrate=1266.5kbits/frame= 899 fps=146 q=-1.0 size= 4636kB time=00:00:29.97 bitrate=1266.9kbits/frame= 931 fps=138 q=-1.0 size= 4802kB time=00:00:31.03 bitrate=1267.6kbits/frame= 1198 fps=162 q=-1.0 size= 6200kB time=00:00:39.98 bitrate=1270.3kbits/frame= 1234 fps=154 q=-1.0 size= 6380kB time=00:00:41.16 bitrate=1269.5kbits/frame= 1334 fps=157 q=-1.0 size= 6893kB time=00:00:44.53 bitrate=1268.0kbits/frame= 1498 fps=162 q=-1.0 size= 7800kB time=00:00:49.99 bitrate=1278.1kbits/frame= 1567 fps=161 q=-1.0 size= 8104kB time=00:00:52.25 bitrate=1270.5kbits/s
The last line "time=00:00:52.25" will hang there forever (as long as I could possibly hope for another output to come)
Is it still working in the background even without CPU?
Edit: removed url with hmac auth for privacy reasons
It did happen to me too, from time to time... and not always at the same % completed. Usually, closing the program, deleting the partially downloaded file and trying again worked.
@cvillemure: I'm sorry for what you're experiencing. toutv-extra only manages the authentication part. The actual file download is handled through ffmpeg. You should not experience any pauses.
Since you tried with a bunch of different slugs, something might interfere with your network or auth token. Here are a few pointers:
- If you login somewhere else (browser, mobile) after using
toutv-extralogincommand, it invalidates the token. (will happen if you share your account with someone else, or continue browsing the tou.tv website) - Some network providers fiddle with that kind of stream (especially if you're at work). You could try going through a Canadian VPN
As @juef17 suggested, you can always delete the partial file and give it another try. Your extra subscription should be active until the end of your term.
As an alternative, you can also try pytoutv which is an excellent python-based alternative.