Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
download audio streamed by JWPlayerHello,
I'm new in this forum & a novice in matters with streaming. Recently I come across a couple of radio programmes on the www and I want to save a local copy of them, but enormous difficulties are encountered. The site uses JWPlayer to stream multimedia contents. Here is a sample URL : http://programme.rthk.hk/channel/rad...channel=radio4 The URL indicates that the audio should be an MP3, but in fact the player plays an .m3u8 : http://stmw1.rthk.hk/aod/_definst_/r.../playlist.m3u8 and this .m3u8 directs to another .m3u8 : http://stmw1.rthk.hk/aod/_definst_/r...061855960.m3u8 This last .m3u8 is a playlist with over 700 entries of .ts files : http://stmw1.rthk.hk/aod/_definst_/r...061855960_0.ts http://stmw1.rthk.hk/aod/_definst_/r...061855960_1.ts http://stmw1.rthk.hk/aod/_definst_/r...061855960_2.ts .... Since the URL's are known, I've retrieved a few of them, but none of these .ts files can be opened by local players (e.g. VLC). The file types of the .ts files are reported as : media_w2061855960_0.ts: MPEG transport stream data media_w2061855960_1.ts: TeX font metric data media_w2061855960_2.ts: TeX font metric data media_w2061855960_3.ts: data media_w2061855960_4.ts: data .... I've also tried to download using some Firefox add-on, but the stream keeps generating new entries with identical names instead of a single target. I guess the .ts files are the fragments of the original MP3. Even though I am patient enough to retrieve all such .ts files named in the playlist, the problem remains how to sew them together ? or is there any better way to download the programme as a single clip ? |
#2
|
|||
|
|||
Re: download audio streamed by JWPlayerLIVESTREAMER:
Code:
livestreamer "hlsvariant://stmw1.rthk.hk/aod/_definst_/radio/archive/radio4/Liveon4/mp3/mp3:20150321.mp3/playlist.m3u8" best -o 01.ts Code:
[cli][info] Found matching plugin stream for URL hlsvariant://stmw1.rthk.hk/aod/_definst_/radio/archive/radio4/Liveon4/mp3/mp3:20150321.mp3/playlist.m3u8 [cli][info] Available streams: 70k (worst, best) [cli][info] Opening stream: 70k (hls) Code:
ffmpeg -i "http://stmw3.rthk.hk/aod/_definst_/radio/archive/radio4/Liveon4/mp3/mp3:20150321.mp3/playlist.m3u8" -c copy 01.ts |
#3
|
|||
|
|||
Re: download audio streamed by JWPlayerMany thanks for the suggestions.
I've tried the method of "ffmpeg". It starts and runs for a short while but then ends prematurely with an error : Code:
[hls,applehttp @ 02fdd720] Failed to open segment of playlist 0 http://stmw3.rthk.hk/aod/_definst_/radio/archive/radio4/Liveon4/mp3/mp3:20150321.mp3/playlist.m3u8: Unknown error size= 2500kB time=00:05:20.00 bitrate= 64.0kbits/s video:0kB audio:2500kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.013008% Also, a couple of lines saying "[mpegts @ 030155c0] PES packet size mismatch" appeared during the execution. How does this error affect the downloaded file ? |
#4
|
|||
|
|||
Re: download audio streamed by JWPlayerI can't confirm that. Everything is working fine here. Seems to be a connection problem (maybe a bad internet connection?). Try it again with the Livestreamer application.
Code:
http://docs.livestreamer.io/cli.html |
#5
|
|||
|
|||
Re: download audio streamed by JWPlayerQuote:
The link above is to a zip-file which contains everything else you will need. Just open the file "Instructions.txt" and follow it. (The instructions assume the use of the above two browser add-ons.) The method requires a bit of manual editing to the scripts used (they are Windows .cmd files) and the entering of some commands in a Command-Prompt window, but for about 5 minutes' work, you can download all the (.TS) segments comprising the whole download stream and concatenate them into a single file playable in VLC Media Player. (The concatenated file is somewhat bloated with multiple redundant headers throughout the file, but their existence doesn't seem to bother VLC and the overhead is slight.) Note: the specific example used in the instructions may not work in some countries, as the stream I used it for may be geo-blocked for IP addresses outside Australia. Just adapt it to whatever stream you want. I'd be interested in any feedback. |
#6
|
|||
|
|||
Re: download audio streamed by JWPlayerI've just tried the "livestreamer" method. It runs much faster than "ffmpeg", but there are still a couple of errors :
Code:
[cli][info] Found matching plugin stream for URL hlsvariant://stmw1.rthk.hk/aod/_definst_/radio/archive/radio4/Liveon4/mp3/mp3:20150321.mp3/playlist.m3u8 [cli][info] Available streams: 70k (worst, best) [cli][info] Opening stream: 70k (hls) [download][01.ts] Written 15.5 MB (2m4s @ 52.0 KB/s) [stream.hls][error] Failed to open segment 188: Unable to open URL: http://stmw1.rthk.hk/aod/_definst_/radio/archive/radio4/Liveon4/mp3/mp3:20150321.mp3/media_w739913464_188.ts (timed out) [download][01.ts] Written 43.4 MB (5m27s @ 73.1 KB/s) [stream.hls][error] Failed to open segment 523: Unable to open URL: http://stmw3.rthk.hk/aod/_definst_/radio/archive/radio4/Liveon4/mp3/mp3:20150321.mp3/media_w1960685163_523.ts (timed out) [download][01.ts] Written 59.6 MB (7m29s @ 516.6 KB/s) [cli][info] Stream ended I think nullacht's conclusion is right, that my network connection is not stable enough for lengthy downloading. I'll try at different times when the traffic is less busy. Thanks again for recommending the useful tools. Last edited by anctop : 03-24-2015 at 11:50 PM. |
#7
|
|||
|
|||
Re: download audio streamed by JWPlayerQuote:
(I have just updated to ver 2.2.0 of VLC, and same behaviour!) So, while my solution works for downloading the files, you may need to hunt around for a player that will play the particular version of .TS files used in your stream. Anctop, did you ever find such a player? (Note: The above links are to ABC (Australia) radio programs that are kept online only for 1 month after the original broadcast date. That content will expire in 28 days, so if you're reading this after that time, the links won't work.) Last edited by Mabel : 03-25-2015 at 06:41 PM. Reason: Added information |
#8
|
|||
|
|||
Re: download audio streamed by JWPlayerQuote:
|
#9
|
|||
|
|||
Re: download audio streamed by JWPlayerQuote:
|
Tags: download audio jwplayer |
Thread Tools | |
Display Modes | |
|
|