lajvguy
11-02-2016, 01:57 AM
Can somebody help get filmon rtmp code to play with livestreamer? Starts then cuts off after 30 seconds. Thanks in advance!
livestreamer "rtmp://live-1130.la2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d388022e9c04270a279056777b43ac1660 56d0c2876d8cdbdf224ec59313aca45a56e8c94bfbf2609b7e 84d30079fbc7833abf3e32348e402d6b40427743755c107e55 41702b3fed62f3e06ae0704422461d7ba108526e43b1dcee2b a73234156dbde5e3458d80105fbef588d4563372a30da75e70 4dce4271/694.high.stream live=1 swfUrl=http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf" best
ihryjfbd
11-02-2016, 04:36 AM
It only works for the low / worst quality setting, I think you need a account for the higher quality stream to bypass the 30 second limit, at least you don't get the constant annoying flash adds they have on the website though slowing your browser down to a halt :)
You can make your filmon script shorter though you only need the the filmon webpage channel url
eg:
livestreamer https://www.filmon.com/channel/bbc-news worst
pause
lajvguy
11-02-2016, 10:31 AM
It only works for the low / worst quality setting, I think you need a account for the higher quality stream to bypass the 30 second limit, at least you don't get the constant annoying flash adds they have on the website though slowing your browser down to a halt :)
You can make your filmon script shorter though you only need the the filmon webpage channel url
eg:
livestreamer https://www.filmon.com/channel/bbc-news worst
pause
Thanks but that method doesn't work with HRTV (channel 694). Was using the D3n1s Filmon Playlist Maker. Great but not working anymore.
j_cool
11-02-2016, 05:02 PM
ihryjfbd,
livestreamer "http://www.filmon.com/channel/cbeebiesbbc-four" best
Have you noticed that livestreamer plays rtmp stream here ?
Before it was possible to watch high steam by replacing "low" with "high" in http url.
Does not work any more.
Now there are 2 different ID's for low and high, high ID changing every 30 seconds.
For the start, I would like to get low rtmp stream with rtmpdump and for that I need right parameters.
Any idea how livestreamer would show us rtmp parameters ?
url helper returns nothing,
wireshark returns everything encrypted,
url snooper returns this:
6c748db9efc4a0cec5b80295d905694c43a9d3057f9ba591a3 9feeb4c9fa9
flashVer WIN 10,0,32,18
swfUrl Phttp:?//www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf
tcUrlbrtmp://live-889.ld5.edge.filmon.com:1935/li?ve/?id=0ad5aac39bb13fbedb155fbc99f60be5747cbf5aa9c464 ff837f79524346840496968ec2c1b8add4ae5be18f6eababa1 457324f83d8ddb809d2a60680?74d92ee98ada4b624091f2cc 7e03197c93163c0e2d3bfd8502d64a953a908bf9554e3ea314 ab45d7b9a8e9a461e65187a43
( cannot get -y --playpath from this )
the best of them all, rtmpdumphelper, works with web browser only, shows no rtmp stream.
j_cool
11-02-2016, 05:22 PM
In the meantime, this will give you bogus high:
set var=http://www.filmon.com/channel/cbeebiesbbc-four
start /min livestreamer --player "ffplay.exe -vf scale=864:480" %var% worst
lajvguy
11-02-2016, 07:20 PM
In the meantime, this will give you bogus high:
set var=http://www.filmon.com/channel/cbeebiesbbc-four
start /min livestreamer --player "ffplay.exe -vf scale=864:480" %var% worst
You helped me before so I hope this works for you:
http://www.filmon.com/api-v2/channel/3191?protocol=hls
http://www.filmon.com/api-v2/channel/3191?protocol=rtmp
livestreamer "hls://http://live-1183.gv2.edge.filmon.com/live/3191.low.stream/playlist.m3u8?id=035bca1a71b11fce016d28acd3dbea51c bc96ddfe5b9ed3f8fe3286df6a738d3ea8e8f151e193bfaffd 6e8f9fadcc78e80cadf8006c0b3076fbe9d488e0540c5bb87b 3206e31b61d8ebee55c398a2e094469a5f78da0bf0317bd646 a7c16eab52497798b095128bc8e7dc0b498e3246a21c5e4ad9 1fab1046ec19823f0cc2fd82c3e6daef4d8e8a9053c04735b2 76dac7725c9604fecbfe7" best
lajvguy
11-03-2016, 12:47 PM
Can expert help get livestreamer filmon rtmp or hls code for HRTV (channel 694)? It starts but cuts off. Thank you in advance!
livestreamer "rtmp://live-1130.la2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d39befbf192f1401c0d568d83f462b6c69 9513a3f395dd5023c9c133334797ca4f77db2302a4a0611771 5ca2e05454fbed8efffae5f28f8dcfcb5e7a41cbbe32dd12e3 cde188c942296a05240b2a27ceee5c1b39cca9a2e1ba87104f b73f90035919fe166df0f34a5e52fc5167c856568b7c02eef7 6ddb9e38/694.high.stream live=1 swfUrl=http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf" best
j_cool
11-03-2016, 01:14 PM
Lajvgyu,
Thank you for your feedback, every bit helps for research.
This cutting off of filmon stream can be compared to vaughnlive changing something every 5 seconds.
With vaughnlive, vaughnlive.py sorted that out, looking at vaughnlive.py shows you what somebody has to do to put it straight.
About HRTV (channel 694) I looked at that first, to access that stream on filmon site somebody has to pay them something
so I stopped looking.
I can write some basic code to get ID on one time basis, but nothing like python if it changes every 2 seconds.
Cheers,
Johnny.
lajvguy
11-03-2016, 01:39 PM
@ j cool,
I would appreciate it if you can write some basic code to get ID on one time basis for me for HRTV (channel 694). Thanks!
The code from this page will work only one time then cuts off:
http://www.filmon.com/api-v2/channel/694?protocol=hls
livestreamer "hls://http://live-1130.la2.edge.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d28acd3dbea51c bc96ddfe5b9ed3f8fe3286df6a738d3168b62ad801308c5e8e 867479d2a637b934c09c888545e718783e1498471b9efed4fa c83fd0304f0c19e14244d3345de75d7c9a2a47d9e42811667d 7d0dff9d61e8bcf846f412e0199a128268ce34bcbddd0df629 bd72c6e15925cf4e80802132392ce60756f90e98d06240cda0 40281a60fd16ef22ab348" best
lajvguy
11-03-2016, 03:48 PM
@ j cool,
Thanks for the simple code. Can you help me get HRTV (channel 694) or is it not possible? D3n1s Filmon Playlist Maker has always got the code for me before so there's a way.
j_cool
11-03-2016, 04:54 PM
I just read one older post in this thread and you say that livestreamer low stream does not work for your url.
Then it is something like CNN that doesn't work until you pay for it.
I think CNN is not worth a penny so I did not go further to look at that, and I think that CNN solution might work for your url.
Somebody worked out vaughnlive.py, everything is possible but who knows more than me appears to be more shy than me as well.
Cheers,
Johnny.
lajvguy
11-03-2016, 05:23 PM
I just read one older post in this thread and you say that livestreamer low stream does not work for your url.
Then it is something like CNN that doesn't work until you pay for it.
I think CNN is not worth a penny so I did not go further to look at that, and I think that CNN solution might work for your url.
Somebody worked out vaughnlive.py, everything is possible but who knows more than me appears to be more shy than me as well.
Cheers,
Johnny.
What CNN solution? Can you explain?
j_cool
11-03-2016, 05:44 PM
I visited filmon right now and it appears that CNN ceased to exist on filmon. There are some traces of them left on filmon search.
It was something hard to get hold of, so I tried to find comparison to your url.
If I am right, your url has to do something with horse racing, and had you not posted it here I would had never known it existed.
Looking for something popular like CNN migh attract more attention from other forum members, but CNN are not any more on filmon.
j_cool
11-04-2016, 11:55 AM
Lajvguy,
from your post here I put together low stream for BBC 4, they have good documentaries from 7pm -7am GMT ( Greenwich mean time, London )
ID is good for 24 hours, without livestreamer I have to get it, otherwise livestreamer sorts it out.
vlc "rtmp://live-1183.gv2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6
a738d35b096712269a4b58937a2748d9cac553841a7f4a0269 ee0c9381d661a439138a4da376366c0670726ee989947ccece 9cb22bb6ede792da9df4
bff4efc50a48ef17f2bb7157aecd03ba0ba2d9f38690c83846 610011549d250a5f39530c9cfbdb93ab9bcdd77d264f9553ba 5ac3444ecf61d113c74e
dcc2a3/3191.low.stream"
Not what you asked for, but somebody else on the forum may fancy reading this post.
(there are some spaces in ID string comming from imperfection of "paste" here, spaces should be removed. )
lajvguy
11-04-2016, 02:22 PM
@ j cool,
Thanks for the post. Do you know how to run this script:
http://darbycrash.eu/PHP/f-tok.php.txt
I think D3n1s uses this script to get the filmon channel codes.
j_cool
11-04-2016, 03:14 PM
No.
He runs Linux ( curl ), I should had looked at that long time ago but there was no streaming back then.
Now young folks leave me behind.
By the way, where did you get "code" for my BBC 4 "rtmp" and "hls" ?
Can you post the same for your horse racing url, I am curious to look at that.
Cheers,
Johnny.
lajvguy
11-04-2016, 03:39 PM
@ j cool,
I got the rtmp and hls codes for HRTV (horse racing) from these pages:
http://www.filmon.com/api-v2/channel/694?protocol=hls
http://www.filmon.com/api-v2/channel/694?protocol=rtmp
Your BBC4 channel number is 3191 so I got the rtmp & hls from:
http://www.filmon.com/api-v2/channel/3191?protocol=hls
http://www.filmon.com/api-v2/channel/3191?protocol=rtmp
j_cool
11-04-2016, 04:37 PM
About D3n1s script, it is served to you like a meal on a silver platter.
To run it is a matter of knowing how to run bash script on bash command line.
BBC 4 can be recorded like this, as you see, successfully:
rtmpdump -r rtmp://live-1183.gv2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d35b096712269a4b58937a2748d9cac553 841a7f4a0269ee0c9381d661a439138a4da376366c0670726e e989947ccece9cb22bb6ede792da9df4bff4efc50a48ef17f2 bb7157aecd03ba0ba2d9f38690c83846610011549d250a5f39 530c9cfbdb93ab9bcdd77d264f9553ba5ac3444ecf61d113c7 4edcc2a3 ^
-a "live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d35b096712269a4b58937a2748d9cac553 841a7f4a0269ee0c9381d661a439138a4da376366c0670726e e989947ccece9cb22bb6ede792da9df4bff4efc50a48ef17f2 bb7157aecd03ba0ba2d9f38690c83846610011549d250a5f39 530c9cfbdb93ab9bcdd77d264f9553ba5ac3444ecf61d113c7 4edcc2a3" ^
-y 3191.low.stream ^
-o test.flv
C:\>rtmpdump -r rtmp://live-1183.gv2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6
a738d35b096712269a4b58937a2748d9cac553841a7f4a0269 ee0c9381d661a439138a4da376366c0670726ee989947ccece 9cb22bb6ede792da9df4
bff4efc50a48ef17f2bb7157aecd03ba0ba2d9f38690c83846 610011549d250a5f39530c9cfbdb93ab9bcdd77d264f9553ba 5ac3444ecf61d113c74e
dcc2a3 -a "live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d35b096712269a4b58937a2748d9cac553 841a
7f4a0269ee0c9381d661a439138a4da376366c0670726ee989 947ccece9cb22bb6ede792da9df4bff4efc50a48ef17f2bb71 57aecd03ba0ba2d9f386
90c83846610011549d250a5f39530c9cfbdb93ab9bcdd77d26 4f9553ba5ac3444ecf61d113c74edcc2a3" -y 3191.low.stream -o test.flv
RTMPDump v2.4 GIT-2015-12-14 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
180.987 kB / 11485.92 sec
HRTV fails, like this:
rtmpdump -r rtmp://live-1130.la2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dc fad3f565efa53ffe021808d2313e9c504098a053a8d3b74ee3 26439ecc3a61289cd472a2ae44ddca0c1049032644a4df9bf5 e0313dbc1e216dfd46b94fa67e06a25c32dc1b34b8374d5c30 c016acc045d709bf5aa0b87d12b043a63a17305a53908f7cc7 65431387 ^
-a "live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dc fad3f565efa53ffe021808d2313e9c504098a053a8d3b74ee3 26439ecc3a61289cd472a2ae44ddca0c1049032644a4df9bf5 e0313dbc1e216dfd46b94fa67e06a25c32dc1b34b8374d5c30 c016acc045d709bf5aa0b87d12b043a63a17305a53908f7cc7 65431387" ^
-y 694.low.stream ^
-o test.flv
C:\>rtmpdump -r rtmp://live-1130.la2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6
a738d3915dbe4bc89fc2429bd6ffef93b3e5dcfad3f565efa5 3ffe021808d2313e9c504098a053a8d3b74ee326439ecc3a61 289cd472a2ae44ddca0c
1049032644a4df9bf5e0313dbc1e216dfd46b94fa67e06a25c 32dc1b34b8374d5c30c016acc045d709bf5aa0b87d12b043a6 3a17305a53908f7cc765
431387 -a "live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dc fad3
f565efa53ffe021808d2313e9c504098a053a8d3b74ee32643 9ecc3a61289cd472a2ae44ddca0c1049032644a4df9bf5e031 3dbc1e216dfd46b94fa6
7e06a25c32dc1b34b8374d5c30c016acc045d709bf5aa0b87d 12b043a63a17305a53908f7cc765431387" -y 694.low.stream -o test.flv
RTMPDump v2.4 GIT-2015-12-14 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: WriteN, RTMP send error 10054 (42 bytes)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Looking at RTMP error messages may be missleading unless you are streaming expert.
____________________
EDITED:
ERROR: WriteN, RTMP send error 10054 (42 bytes) goes away if you use -v switch... rtmpdump -v -r .....
ERROR: RTMP_ReadPacket, failed to read RTMP packet header is most of time about -T, but not sure about that
_______________________
Comparing BBC 4 and HRTV from http://www.filmon.com/api-v2/channel/xxxx?protocol=rtmp:
BBC 4:
"watch-timeout":86500
HRTV:
"watch-timeout":0 ( pay and watch, maybe something to do with secure token )
C:\>rtmpdump -V -r rtmp://live-1130.la2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286
df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dcfad3f565e fa53ffe021808d2313e9c504098a053a8d3b74ee326439ecc3 a61289cd472a2ae44ddc
a0c1049032644a4df9bf5e0313dbc1e216dfd46b94fa67e06a 25c32dc1b34b8374d5c30c016acc045d709bf5aa0b87d12b04 3a63a17305a53908f7cc
765431387 -a "live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dc f
ad3f565efa53ffe021808d2313e9c504098a053a8d3b74ee32 6439ecc3a61289cd472a2ae44ddca0c1049032644a4df9bf5e 0313dbc1e216dfd46b94
fa67e06a25c32dc1b34b8374d5c30c016acc045d709bf5aa0b 87d12b043a63a17305a53908f7cc765431387" -y 694.low.stream -o test.flv
RTMPDump v2.4 GIT-2015-12-14 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Parsing...
DEBUG: Parsed protocol: 0
DEBUG: Parsed host : live-1130.la2.edge.filmon.com
DEBUG: Parsed app : live
DEBUG: Protocol : RTMP
DEBUG: Hostname : live-1130.la2.edge.filmon.com
DEBUG: Port : 1935
DEBUG: Playpath : 694.low.stream
DEBUG: tcUrl : rtmp://live-1130.la2.edge.filmon.com:1935/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe
3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e5dcfad3f 565efa53ffe021808d2313e9c504098a053a8d3b74ee326439 ecc3a61289cd472a2ae4
4ddca0c1049032644a4df9bf5e0313dbc1e216dfd46b94fa67 e06a25c32dc1b34b8374d5c30c016acc045d709bf5aa0b87d1 2b043a63a17305a53908
f7cc765431387
DEBUG: app : live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed 3f8fe3286df6a738d3915dbe4bc89fc2429bd6ffef93b3e
5dcfad3f565efa53ffe021808d2313e9c504098a053a8d3b74 ee326439ecc3a61289cd472a2ae44ddca0c1049032644a4df9 bf5e0313dbc1e216dfd4
6b94fa67e06a25c32dc1b34b8374d5c30c016acc045d709bf5 aa0b87d12b043a63a17305a53908f7cc765431387
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 59222260
DEBUG: HandShake: FMS Version : 0.0.0.0
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: HandleServerBW: server BW = 5000000
DEBUG: HandleClientBW: client BW = 5000000 2
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 190 bytes
DEBUG: (object begin)
DEBUG: Property: <Name: no-name, STRING: _result>
DEBUG: Property: <Name: no-name, NUMBER: 1.00>
DEBUG: Property: <Name: no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name: fmsVer, STRING: FMS/3,0,1,123>
DEBUG: Property: <Name: capabilities, NUMBER: 31.00>
DEBUG: (object end)
DEBUG: Property: <Name: no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Success>
DEBUG: Property: <Name: description, STRING: Connection succeeded.>
DEBUG: Property: <Name: objectEncoding, NUMBER: 3.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <connect>
DEBUG: sending ctrl, type: 0x0003
DEBUG: Invoking createStream
DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
DEBUG: (object begin)
DEBUG: Property: <Name: no-name, STRING: _result>
DEBUG: Property: <Name: no-name, NUMBER: 2.00>
DEBUG: Property: NULL
DEBUG: Property: <Name: no-name, NUMBER: 1.00>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <createStream>
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: 694.low.stream
DEBUG: Invoking play
DEBUG: sending ctrl, type: 0x0003
DEBUG: Socket closed by server, nBytes: 0
DEBUG: Invoking deleteStream
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
DEBUG: Closing connection.
C:\>pause
Press any key to continue . . .
j_cool
11-05-2016, 03:45 AM
lajvguy,
you may ask people to crack FilmonPlayer.swf, if filmon is using token may be inside there.
Or simply ask, is filmon using token ?
This is how to get rtmp parameters with livestreamer:
set var=http://www.filmon.com/channel/cbeebiesbbc-four
livestreamer --stream-url %var% worst
C:\>set var=http://www.filmon.com/channel/cbeebiesbbc-four
C:\>livestreamer --stream-url http://www.filmon.com/channel/cbeebiesbbc-four worst
rtmp://live-889.ld5.edge.filmon.com/live/?id=0ad5aac39bb13fbe74bd318650bebe57c87a46cd8ee7a9 658668f3b21cfb1bce6975795dc96
28a51c13027d3aeecb6b518b3861c9e18e7be10acacdeeeb29 4bc414b9cd8c4dde9bedc15dc577f41b595823efb83860b5c7 cac185a26e38b43a7ebf
918aa3af1d3c5ea5c420eb294b189f9321dcd27e1bca2e7dba 6a46dcbb5641d4e50e6aad128f2dac4367157b2e295d1720ff ff9e946b8 pageUrl=ht
tp://www.filmon.com/channel/cbeebiesbbc-four swfUrl=http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/Film
onPlayer.swf app=live/?id=0ad5aac39bb13fbe74bd318650bebe57c87a46cd8ee7a9 658668f3b21cfb1bce6975795dc9628a51c13027d3aeecb6
b518b3861c9e18e7be10acacdeeeb294bc414b9cd8c4dde9be dc15dc577f41b595823efb83860b5c7cac185a26e38b43a7eb f918aa3af1d3c5ea5c42
0eb294b189f9321dcd27e1bca2e7dba6a46dcbb5641d4e50e6 aad128f2dac4367157b2e295d1720ffff9e946b8 playpath=103.low.stream live=
1
C:\>pause
Press any key to continue . . .
What I have not figured out yet is how to get stream recorded with livestreamer with resized window.
Can be done with FFMPEG with these parameters, but at a price of getting new ID every 24 hours.
( won't be hard to me to script it given livestreamer's generous output )
When resizing windows, FFMPEG / FFPLAY return best looks.
tcUrl=
pageUrl=
swfUrl=
app=
playpath=
live=
-vf scale=864:480
lajvguy
11-07-2016, 09:39 AM
@ j cool,
I found a way to get the token that works:
livestreamer "rtmp://live-1130.la2.edge.filmon.com/live/?id=0ad5aac39bb13fbeebcf86db1cd226fcacc18b82883cf1 f546dca95fe264fa92154e3a7883cca6b654c781cda01d3b57 79f967d6fec65ad8ce9f687344f8b352720c8b856b4ce2affa f4acdcbb3b7e3cc7e3ead58f267e7c011af15d02d645d23052 1b0c79e55e351311c5016058e642c1416786cb94537c99ecf7 2785eab7ec8a1cf1a79e10ab20cb786292c8af7620b927d1bf 129a4e12/694.high.stream live=1 swfUrl=http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf pageUrl=http://www.filmon.com/" best
j_cool
11-07-2016, 11:32 AM
I tried your code and it works. There is no token= there.
Professional use of livestreamer.
rtmpdump does not work with the same parameters. Hangs.
Troller posted this a few years ago and still works, looks contrary to ordinary though.
rtmpdump -r "rtmp://publish.thewebstream.co/ppv//passionxxx" -W "http://iptv.firestormmedia.tv/flash/player/player.20160518.swf" | "vlc.exe" -
http://stream-recorder.com/forum/showpost.php?p=84657&postcount=2
I will look at this all, but more I look more sad I get because I cannot understand all I want to.
ihryjfbd
11-07-2016, 02:24 PM
Remove word wrap format and leave no spaces, posted for easyier reading, each --http-header is a new &
livestreamer
"url|User-Agent=
&Accept=
&Accept-Language=
&Accept-Encoding=
&DNT=
&Referer=
&Connection="
best
I had to remove the hlsvariant:// part and just leave the url.
https://rtmpdump.mplayerhq.hu/rtmpdump.1.html
j_cool
11-07-2016, 03:35 PM
Ihry,
I ran rtmpdump with rtmpdump params with no success ( laj's librtmp params ).
I did not run rtmpdump with librtmp params, but know how to do that as well.
You posted some code and from that I see you know something more than me because
I could not post the same code and talk about that.
Now I tried to replicate laj's code and it doesn't work any more.
ID expired or stream not existing. If ID lasts for a day it is a success.
C:\>livestreamer "rtmp://live-1130.la2.edge.filmon.com/live/?id=0ad5aac39bb13fbeebcf86db1cd226fcacc18b82883cf1 f546dca95
e264fa92154e3a7883cca6b654c781cda01d3b5779f967d6fe c65ad8ce9f687344f8b352720c8b856b4ce2affaf4acdcbb3b 7e3cc7e3ead58f267e7
011af15d02d645d230521b0c79e55e351311c5016058e642c1 416786cb94537c99ecf72785eab7ec8a1cf1a79e10ab20cb78 6292c8af7620b927d1b
129a4e12/694.high.stream live=1 swfUrl=http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf
pageUrl=http://www.filmon.com/" best
[cli][info] Found matching plugin stream for URL rtmp://live-1130.la2.edge.filmon.com/live/?id=0ad5aac39bb13fbeebcf86db
cd226fcacc18b82883cf1f546dca95fe264fa92154e3a7883c ca6b654c781cda01d3b5779f967d6fec65ad8ce9f687344f8b 352720c8b856b4ce2af
af4acdcbb3b7e3cc7e3ead58f267e7c011af15d02d645d2305 21b0c79e55e351311c5016058e642c1416786cb94537c99ecf 72785eab7ec8a1cf1a7
e10ab20cb786292c8af7620b927d1bf129a4e12/694.high.stream live=1 swfUrl=http://www.filmon.com/tv/modules/FilmOnTV/files/f
ashapp/filmon/FilmonPlayer.swf pageUrl=http://www.filmon.com/
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (rtmp)
[cli][error] No data returned from stream
C:\>pause
Press any key to continue . . .
Does this work for you now ?
If yes, can you post full code you were talking about it would be easier to figure it out.
I did not post full ffmpeg code when I was talking about it because I don't use it yet,
but if somebody asked for it I can convert rtmpdump code into ffmpeg code easily.
johng
11-08-2016, 01:12 AM
I think they now require a unique ID= ***** for each channel
before you could use ID=**** of one channel for all of the .low.stream channels for 86500 seconds (24 hours)
j_cool
11-08-2016, 01:56 PM
You are right about each channel's it's own ID.
I tried these 2 one line urls for simplicity and swapping IDs does not work. It did some time ago.
BBC NEWS
vlc http://live-997.ld5.edge.filmon.com/live/27.low.stream/playlist.m3u8?id=0ad5aac39bb13fbe932ba3ede5d4ef20c 1f3bfa5cbae8b153aba31611e4d1e7907e0ff6d1c1d63c4dd2 75abbea132505a986ad51480335f45e52d09e6479d79221067 e079d4e53a5fb35b401ba0567347bb2455a7a90713b808fa53 544adf893f293d2942223bf2c3c4c7bd811a7d4548d06ff870 a47f65646a89c70c060fdae1e13b4e1cefd3a619aff2546f67 3ed647a4127f2c6cbfff7
BBC 4
vlc http://live-889.ld5.edge.filmon.com/live/103.low.stream/playlist.m3u8?id=0ad5aac39bb13fbefe61bd4ff89b1dc40 ce6d5b30734a87ae102b0ef654e0e1b2b641a591e0b3669554 dc7525c5c7cc0799818f316db46d20b3624c30fa32edefa16b ce65fbd0d265f5d964c6e96c2873622f5fd93ac93997f90eb9 3c820cd3cff46cabe7ea21955d55b270cd0ac73a7bcbba5601 ae7eccd4191477b2f0b52ee46b6358b9f793668f9d1ba22b85 155a13597f0f29f25dc36
lajvguy
11-09-2016, 09:57 PM
@ j cool,
BBC NEWS:
http://live-997.ld5.edge.filmon.com/live/27.low.stream/playlist.m3u8?id=0ad5aac39bb13fbe99b44ca18704be931 d1f27d88e9abc044ff24a2a1e65756ce28f47fb55ecbf9935c cc30ee5e0edd9933f4ff762e5f9d1899902bfcc70473ba439a 5bebc7482daa2b2dfce7436597fc33c99dcd7a25eaadea7756 9c83f8cce3ce43593bcac4e2b28c9e9e066170af7b44484727 c94bbb6962178d98335ae76fb14bbaf01508d5f27e86df13f4 64197aa112197e98f180271e87cca0710b275d99343956ae81 89b0de88ab0f2a2449e
j_cool
11-10-2016, 11:05 AM
laj,
I still run my old batch files, they work though livestreamer can do that all with only one line.
BBC is not worth pulling my middle leg to change something.
This is how it works for me for now:
first batch file calls second batch file so I never see CMD window, just BBC once in a month in FFPLAY.exe.
first batch file:
@title BBC_NEWS
start /min bbc_news1.bat ^& exit
second batch file:
title BBC_NEWS1
set url=http://www.giniko.com/watch.php?id=27
xidel %url% -e //@src > %TEMP%\URL.txt
giniko_url.exe
@FOR /f %%a IN ('CLB') DO set var=%%a
set agent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
start wmove %var%
start /min ffplay -user-agent %agent% -i %var%
xidel:
http://www.videlibri.de/xidel.html
giniko_url.exe: ( delphi )
program GINIKO_URL;
{$APPTYPE CONSOLE}
uses windows,StrUtils,SysUtils,clipbrd,ShellApi;
var s,tmp: ansistring;
f: text;
found: boolean;
p: Pchar;
begin
tmp:=GetEnvironmentVariable('TEMP');
assign( f, tmp + '\URL.txt' ); reset(f);
found:= false;
while ( not eof(f) ) AND ( found=false ) do
begin
readln(f,s);
if ( AnsiContainsStr(s,'playlist.m3u8') ) then found:=true;
if ( AnsiContainsStr(s,'index.m3u8') ) then found:=true;
end;
P:=@s[1];
Clipboard.AsText:=p;
close(f);
end.
CLB:
program CLB; ( delphi )
{$APPTYPE CONSOLE}
uses ClipBrd;
begin
writeln(Clipboard.AsText);
end.
wmove.exe: ( autoit )
winwait($CmdLine[1], "", 6)
winactivate($CmdLine[1], "")
If WinExists($CmdLine[1]) Then
Select
Case $CmdLine[0] = 3
WinMove($CmdLine[1], "", $CmdLine[2],$CmdLine[3])
Case $CmdLine[0] = 5
WinMove($CmdLine[1], "", $CmdLine[2],$CmdLine[3],$CmdLine[4],$CmdLine[5])
EndSelect
EndIf
FFPLAY.exe output:
Input #0, hls,applehttp, from 'http://nimlive1.giniko.com/bbcnews/bbcnews.stream
/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTEvMTAv MjAxNiA2OjAxOjAxIFBNJmhhc2hfd
mFsdWU9SVNzSnpuZlZGTEwwUm9aNzhmNkUxQT09JnZhbGlkbWl udXRlcz0xNDQw':
Duration: N/A, start: 18201.112400, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 904134
Stream #0:0: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 904134
Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 832x480 [
SAR 1:1 DAR 26:15], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 904134
Stream #0:2: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, flt
p
nguyenthanhtam9723
11-10-2016, 07:15 PM
http://caobanlong.org/cong-dung-cua-cao-ban-long/
j_cool
11-13-2016, 02:38 PM
laj,
you started this thread filmon, rtmp code, livestreamer...
this is how this works for me on BBC 4:
PLAYING:
@title BBC_4
set var=http://www.filmon.com/channel/cbeebiesbbc-four
start /min livestreamer --player "ffplay.exe -vf scale=864:480" %var% worst
CMD window:
[cli][info] Found matching plugin filmon for URL http://www.filmon.com/channel/cbeebiesbbc-four
[cli][info] Available streams: low (worst), high (best)
[cli][info] Opening stream: low (rtmp)
[cli][info] Starting player: ffplay.exe -vf scale=864:480
RECORDING:
simplest:
@title ~BBC_4
set var=http://www.filmon.com/channel/cbeebiesbbc-four
FOR /f %%a IN ('livestreamer --stream-url %var% worst') DO set var2="%%a/103.low.stream"
ffmpeg -i %var2% -c:v h264 -c:a aac -vf scale=864:480 "c:\BBC_4.flv"
my original batch file:
@title ~BBC_4
set var=http://www.filmon.com/channel/cbeebiesbbc-four
:START
@FOR /f %%x IN ('DT') DO @set d=%%x
@FOR /f %%a IN ('livestreamer --stream-url %var% worst') DO set var2="%%a/103.low.stream"
ffmpeg -i %var2% -c:v h264 -c:a aac -vf scale=864:480 "c:\%d%_BBC_4.flv"
SLEEP 10
goto START
DT.exe ( delphi )
program DT;
{$APPTYPE CONSOLE}
uses SysUtils;
var dtime: string;
begin
dtime:= FormatDateTime('yyyy-mm-dd_hh-nn-ss', Now);
writeln(dtime);
end.
SLEEP.exe
http://www.computerhope.com/dutil.htm
CMD window:
C:\MISC\~>set var=http://www.filmon.com/channel/cbeebiesbbc-four
C:\MISC\~>set var2="rtmp://live-889.ld5.edge.filmon.com/live/?id=0ad5aac39bb13fbe1f5ae3a72e5dfd4c0ad4df9982bfb8 716aca0ee
d81b3bafb4b9fc891f4ca95e4efd167688e5b8e2eef0f15206 30d997a43e181e35f05a4279757406bd4cd91e3cb263509ef2 04d17eed0a7cf46c4f5b
552486307e4b226aabb843aeb2d52ba7d002883028e68659ac 08d5e34136bf150226a64a065d8afd19e465f5ed64ebd153e8 17d6a28d96c9cc19fdc9
77547fc8b/103.low.stream"
C:\MISC\~>ffmpeg -i "rtmp://live-889.ld5.edge.filmon.com/live/?id=0ad5aac39bb13fbe1f5ae3a72e5dfd4c0ad4df9982bfb8 716aca0e
ed81b3bafb4b9fc891f4ca95e4efd167688e5b8e2eef0f1520 630d997a43e181e35f05a4279757406bd4cd91e3cb263509ef 204d17eed0a7cf46c4f5
b552486307e4b226aabb843aeb2d52ba7d002883028e68659a c08d5e34136bf150226a64a065d8afd19e465f5ed64ebd153e 817d6a28d96c9cc19fdc
977547fc8b/103.low.stream" -c:v h264 -c:a aac -vf scale=864:480 "c:\2016-11-13_21-24-52_BBC_4.flv"
ffmpeg version 3.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --ena
ble-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --ena
ble-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --e
nable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib
openh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-lib
soxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvo
rbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-li
bxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
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
[flv @ 032a81e0] video stream discovered after head already parsed
[flv @ 032a81e0] audio stream discovered after head already parsed
Input #0, flv, from 'rtmp://live-889.ld5.edge.filmon.com/live/?id=0ad5aac39bb13fbe1f5ae3a72e5dfd4c0ad4df9982bfb8 716aca0e
ed81b3bafb4b9fc891f4ca95e4efd167688e5b8e2eef0f1520 630d997a43e181e35f05a4279757406bd4cd91e3cb263509ef 204d17eed0a7cf46c4f5
b552486307e4b226aabb843aeb2d52ba7d002883028e68659a c08d5e34136bf150226a64a065d8afd19e465f5ed64ebd153e 817d6a28d96c9cc19fdc
977547fc8b/103.low.stream':
Duration: N/A, start: 8762.687000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(progressive), 568x320 [SAR 640:639 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tb
c
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp
[libx264 @ 057c0460] using SAR=80/81
[libx264 @ 057c0460] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 057c0460] profile High, level 3.0
[libx264 @ 057c0460] 264 - core 148 r2721 72d53ab - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.or
g/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m
e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_thr
eads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 r
c=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'c:\2016-11-13_21-24-52_BBC_4.flv':
Metadata:
encoder : Lavf57.56.100
Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 864x480 [SAR 80:81 DAR 16:9], q=-1--1, 25 fps,
1k tbn, 25 tbc
Metadata:
encoder : Lavc57.64.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc57.64.100 aac
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
frame= 340 fps= 28 q=28.0 size= 837kB time=00:00:13.93 bitrate= 492.1kbits/s speed=1.13x
Cheers,
Johnny.
lajvguy
11-13-2016, 04:07 PM
@ j cool,
Will this work with http://www.filmon.com/tv/hrtv?
j_cool
11-14-2016, 04:09 PM
Laj,
I can get 90 seconds at a time like this:
ffplay.exe -i "http://live-1130.la2.edge.filmon.com/live/694.high.stream/playlist.m3u8?id=035bca1a71b11fce016d28acd3dbea51c bc96ddfe5b9ed3f8fe3286df6a738d399a8f02efdb782d24fe b4a6292724eef95bc9d0d9dc44007f0fc3d10a2a509fe502eb 9567d102f1c13973ffa83a5769aca72e660b8a1ec525af7462 8f1f0bd4ad8d32ed6e1d6657cbd87edb952f7cc781efb5213f 8a88a4bea46dc9678b51e277998f860d86b1dcf6f0223ef56c 40d2dca6e89aa1903c92e"
ID expires after 90 seconds. There is new ID every 90th second from:
http://www.filmon.com/api-v2/channel/694?protocol=hls
Members who know more than me welcome with tips how to make the stream continuous.
http://live-1130.la2.edge.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d28acd3dbea51c bc96ddfe5b9ed3f8fe3286df6a738d399a8f02efdb782d2e31 9b82727c1a35efe07bf172522790352a92c015c0df863d0c1d 475ece24d0314431d750735b8c68449fd0727a13777cbea1d5 564291cb08908ac4a7c88ffb095acb58e946527c29a2c47ff9 ce6c9593201f361cee70963757744ac5649798875859c13f26 f50fee7b5c2bba7d31107
ffplay version 3.2 Copyright (c) 2003-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dx
va2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-lib
ebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --ena
ble-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfree
type --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enab
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib
openh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschr
oedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheor
a --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvo
rbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --ena
ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --e
nable-decklink --enable-zlib
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
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
Input #0, hls,applehttp, from 'http://live-1130.la2.edge.filmon.com/live/694.low
.stream/playlist.m3u8?id=035bca1a71b11fce016d28acd3dbea51c bc96ddfe5b9ed3f8fe3286
df6a738d399a8f02efdb782d2e319b82727c1a35efe07bf172 522790352a92c015c0df863d0c1d47
5ece24d0314431d750735b8c68449fd0727a13777cbea1d556 4291cb08908ac4a7c88ffb095acb58
e946527c29a2c47ff9ce6c9593201f361cee70963757744ac5 649798875859c13f26f50fee7b5c2b
ba7d31107':
Duration: N/A, start: 2345.587678, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 568x320 [
SAR 640:639 DAR 16:9], 29.97 tbr, 90k tbn, 59.94 tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, flt
p
Metadata:
variant_bitrate : 0
Stream #0:2: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 0
2373.54 A-V: -0.006 fd= 17 aq= 19KB vq= 26KB sq= 0B f=0/0
http://live-1130.la2.edge.filmon.com/live/694.high.stream/playlist.m3u8?id=035bca1a71b11fce016d28acd3dbea51c bc96ddfe5b9ed3f8fe3286df6a738d399a8f02efdb782d24fe b4a6292724eef95bc9d0d9dc44007f0fc3d10a2a509fe502eb 9567d102f1c13973ffa83a5769aca72e660b8a1ec525af7462 8f1f0bd4ad8d32ed6e1d6657cbd87edb952f7cc781efb5213f 8a88a4bea46dc9678b51e277998f860d86b1dcf6f0223ef56c 40d2dca6e89aa1903c92e
ffplay version 3.2 Copyright (c) 2003-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dx
va2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-lib
ebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --ena
ble-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfree
type --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enab
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib
openh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschr
oedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheor
a --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvo
rbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --ena
ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --e
nable-decklink --enable-zlib
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
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
Input #0, hls,applehttp, from 'http://live-1130.la2.edge.filmon.com/live/694.hig
h.stream/playlist.m3u8?id=035bca1a71b11fce016d28acd3dbea51c bc96ddfe5b9ed3f8fe328
6df6a738d399a8f02efdb782d24feb4a6292724eef95bc9d0d 9dc44007f0fc3d10a2a509fe502eb9
567d102f1c13973ffa83a5769aca72e660b8a1ec525af74628 f1f0bd4ad8d32ed6e1d6657cbd87ed
b952f7cc781efb5213f8a88a4bea46dc9678b51e277998f860 d86b1dcf6f0223ef56c40d2dca6e89
aa1903c92e':
Duration: N/A, start: 2480.799911, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p, 720x4
80 [SAR 40:33 DAR 20:11], Closed Captions, 29.97 tbr, 90k tbn, 59.94 tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, flt
p
Metadata:
variant_bitrate : 0
Stream #0:2: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 0
2509.37 A-V: -0.003 fd= 9 aq= 19KB vq= 94KB sq= 0B f=0/0
johng
11-14-2016, 07:11 PM
.low.stream will give you 86500 seconds or 24 hours
lajvguy
11-14-2016, 07:34 PM
@ j cool,
The low.stream only lasts about 2 minutes for me. Thanks for all of your help but I don't think anybody on this forum can figure it out.
nguyenthanhtam9723
11-14-2016, 10:09 PM
http://caobanlong.org/cao-ban-long-la-gi/
j_cool
11-14-2016, 11:57 PM
Laj,
you are terribly wrong about nobody on this forum can figure it out.
Moonspell
11-15-2016, 05:03 PM
Laj,
you are terribly wrong about nobody on this forum can figure it out.
let people believe what they wanna :D Is always funny to read such ungry statements, though! :)
lajvguy
11-15-2016, 06:42 PM
@ j cool,
Misunderstanding. What I meant to say is that I don't think anybody on this thread can figure it out. Only one of the real Senior Members.
j_cool
11-16-2016, 01:31 PM
Moonspell,
let's think constructive.
There is new ID every 90th second from here:
http://www.filmon.com/api-v2/channel/694?protocol=hls
I can write a piece of code to read ID every 90th second and send it to clipboard.
Batch file can read ID from clipboard every 90th second and run it with ffmpeg.
Loop it every 90th second and all we need is simple ffmpeg switch to append to saved stream, rather than overwrite it and we're done.
It makes no sense to loop a player this would mean restarting it every time.
ihryjfbd
11-16-2016, 03:43 PM
Try something like this??? not sure if it'd keep adding to the output.mp4 though or overwrite it.
@echo off
:loop
echo Setting current segment timestamp.
SET hour=%time:~0,2%
IF "%hour:~0,1%" == " " SET hour=0%hour:~1,1%
SET min=%time:~3,2%
IF "%min:~0,1%" == " " SET min=0%min:~1,1%
SET secs=%time:~6,2%
IF "%secs:~0,1%" == " " SET secs=0%secs:~1,1%
SET year=%date:~-4%
SET month=%date:~3,2%
IF "%month:~0,1%" == " " SET month=0%month:~1,1%
SET day=%date:~0,2%
IF "%day:~0,1%" == " " SET day=0%day:~1,1%
SET _my_datetime=%day%-%month%-%year%_%hour%-%min%-%secs%
SET file=%_my_datetime%
-o "%file%_stream.tmp"
echo Join segments into one single stream file.
(for %i in (*.tmp) do @echo file '%i') > mylist.txt
ffmpeg -f concat -i mylist.txt -c copy output.mp4
echo Delete previous tmp segments and mylist.txt
for /f %%F in ('dir /b /a-d ^| findstr /vile ".mp4"') do del "%%F"
goto loop
j_cool
11-16-2016, 04:42 PM
You use CMD only, I am limited with CMD only.
:START
save web page as txt ( every 90 sec new ID )
.exe reads txt file, finds ID, sends it to clipboard
@FOR /f %%a IN ('CLB') DO set var=%%a batch file reads ID from clipboard ( " parameter passing " )
ffmpeg -i ... %var% ...
stream stops or 90 seconds later, here I have to see what ffmpeg does, hangs or goes,
and to find right ffmpeg switch to keep appending to saved flv
GOTO START
similar sample code: ( delphi )
write from clipboard:
program CLB;
{$APPTYPE CONSOLE}
uses ClipBrd;
begin
writeln(Clipboard.AsText);
end.
send to clipboard:
program GINIKO_URL;
{$APPTYPE CONSOLE}
uses windows,StrUtils,SysUtils,clipbrd,ShellApi;
var s,tmp: ansistring;
f: text;
found: boolean;
p: Pchar;
begin
tmp:=GetEnvironmentVariable('TEMP');
assign( f, tmp + '\URL.txt' ); reset(f);
found:= false;
while ( not eof(f) ) AND ( found=false ) do // read text file, find string
begin
readln(f,s);
if ( AnsiContainsStr(s,'playlist.m3u8') ) then found:=true; // this would be something longer
if ( AnsiContainsStr(s,'index.m3u8') ) then found:=true;
end;
P:=@s[1];
Clipboard.AsText:=p; // send to clipboard
close(f);
end.
ihryjfbd
11-18-2016, 11:44 AM
Been a while since I used Delphi, do Delphi5 win32 exes still work on win10 x64?
j_cool
11-18-2016, 03:44 PM
Good question.
I use delphi 7 to compile this.
Free pascal ( lazarus ) does not have clipbrd unit.
I cannot install delphi 7 on windows 7 so this is what I do:
install delphi 7 as minimal as you can on XP and manually backup ( copy )
command line compiler only. ( bin, lib, and 2 registry files )
registry files you "export" after minimal delphi installation:
[HKEY_LOCAL_MACHINE\SOFTWARE\Borland]
[HKEY_CURRENT_USER\Software\Borland]
This is content of "installation" pack:
Bin
Lib
hkcu.reg
hklm.reg
SETUP.bat
"Installation":
SETUP.bat:
xcopy *.* C:\"Program Files"\Borland\Delphi7 /S /I /Y
regedit /s hkcu.reg
regedit /s hklm.reg
Use:
D7.bat:
"C:\Program Files\Borland\Delphi7\BIN\DCC32.EXE" -cc %1
pause
Example:
C:\MISC\D7>D7 GINIKO_URL.dpr
C:\MISC\D7>"C:\Program Files\Borland\Delphi7\BIN\DCC32.EXE" -cc GINIKO_URL.dpr
Borland Delphi Version 15.0
Copyright (c) 1983,2002 Borland Software Corporation
GINIKO_URL.dpr(32) Warning: Text after final 'END.' - ignored by compiler
GINIKO_URL.dpr(48)
49 lines, 0.03 seconds, 318932 bytes code, 7873 bytes data.
C:\MISC\D7>pause
Press any key to continue . . .
Why not C, this would be the best ?
C code is not so appealing, though being the best and portable everywhere.
j_cool
11-18-2016, 06:19 PM
Say that I need 1 day for each line of my proposed 4 line batch file ...
yes if I was superman.
This all has to be done invisible and to loop.
Now I look at 1st line "save web page as txt" and I look at curl...
xidel can do that but advanced use of xidel is beyond me.
Laj gave us:
http://www.filmon.com/api-v2/channel/694?protocol=hls
{"code":200,"message":"OK","data":{"id":694,"title":"HRTV","alias":"hrtv","description":"HRTV is a 24-hour television based multimedia network dedicated to horseracing which features racing action from many of the sport's greatest racetracks around the world. HRTV also features other forms of equestrian competition, as well as original programming and award-winning documentaries covering a variety of racing and general equestrian topics.","group":"PAY TV - CHANNELS","group_id":37,"group_alias":"local-tv","type":"standard","is_free":false,"is_free_sd_mode":false,"is_adult":false,"is_interactive":false,"is_vod":false,"is_vox":false,"is360":false,"watch_free_time":0,"is_local":false,"seekable":false,"user_subscribed":false,"streams":[{"is_free":false,"name":"694.low.stream/playlist.m3u8","quality":"low","url":"http://live-1130.la2.edge.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d28acd3dbea51c bc96ddfe5b9ed3f8fe3286df6a738d313d6ee9ef0cd5913441 8dd131ea7d6f1505c1fa252b971687a03a80768d72df2eb43c 3ad52f2074a9d2e866386b2cbd210b026183061ebc1209f59c 8f54e2b3e24fe3c5610d8ff2ceb083195d6eb35a3f6caf93a5 d3823e634553ad05fe097d6239b7cc1d02facffadc29e53472 de0d0b394a5969c670636","watch-timeout":0},{"is_free":false,"name":"694.high.stream/playlist.m3u8","quality":"high","url":"http://live-1130.la2.edge.filmon.com/live/694.high.stream/playlist.m3u8?id=035bca1a71b11fce016d28acd3dbea51c bc96ddfe5b9ed3f8fe3286df6a738d313d6ee9ef0cd5913441 8dd131ea7d6f1505c1fa252b971687a03a80768d72df2eb43c 3ad52f2074a9d2e866386b2cbd210b026183061ebc1209f59c 8f54e2b3e24fe3c5610d8ff2c0df2bff6addd1a2e611d4feb2 36ac885ae2166ed75436089691b5025580d1a9e3388a47587c 054d5e7eb443464f249ca","watch-timeout":0}],"server_time":1479517803}}
the most efficient use of this would be to set ID variable in batch file as output from curl or xidel.
I don't know how (to get ID with curl) so I will save this as txt file, read txt file and send ID to clipboard, read from clipboard, snail mail.
j_cool
12-30-2016, 11:40 AM
Laj,
are you still alive and well?
Here are HRTV chunks recorded in sequence one after the other.
@title hrtvRDump.bat
:START
@if "%time:~0,1%" == " " (set d=%date:~-4%-%date:~3,2%-%date:~0,2%_0%time:~1,1%-%time:~3,2%-%time:~6,2%) ^
else (set d=%date:~-4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%)
@FOR /f %%x IN ('HRTV.exe') DO @set var=%%x
rtmpdump.exe -v -r %var% -o %d%_hrtv.flv
@FOR %%I in (%d%_hrtv.flv) do @if %%~zI LSS 1 del "%%I"
:LOOP
@FOR /f %%a IN ('HRTV.exe') DO @set var2=%%a
if "%var%"=="%var2" goto LOOP
goto START
For this to work you need these files in the same location or on the path:
hrtvrdump.bat
hrtv.exe
curl.exe
rtmpdump.exe
hrtv.au3:
RunWait( 'cmd.exe /c curl -A Mozilla/5.0 -s http://www.filmon.com/api-v2/channel/694?protocol=rtmp | CLIP','', @SW_HIDE )
$sData = ClipGet()
$first = StringInStr( $sData, '"quality":"high","url":"' ) + 23
$sData = StringTrimLeft( $sData, $first )
$last = StringLen( $sData ) - ( StringInStr( $sData, '","watch-timeout":0}]' ) - 1 )
$sData = StringTrimRight( $sData, $last ) & '/694.high.stream'
ConsoleWrite( $sData & @CRLF )
you need to compile .au3 with autoit to get .exe
Aut2Exe.exe /in hrtv.au3
https://www.autoitscript.com/site/autoit/downloads/
autoit-v3.zip
If you want to see the output from hrtv.exe on its own you need to enter on command line: hrtv|more
curl:
http://www.paehl.com/open_source/?CURL_7.51.0
curl_751_0.zip
After you run hrtvrdump.bat for some time you will find chunks looking like this:
2016-12-30_17-24-14_hrtv.flv
2016-12-30_17-26-22_hrtv.flv
2016-12-30_17-28-31_hrtv.flv
2016-12-30_17-30-37_hrtv.flv
2016-12-30_17-32-46_hrtv.flv
you can concatenate them and get continuous stream.
You can play the stream directly, player will be restarting every 2 minutes,
.bat file looping sometimes until the next chunk starts.
@title hrtvFF.bat
:START
@FOR /f %%x IN ('HRTV.exe') DO @set var=%%x
rtmpdump.exe -v -r %var% |ffplay.exe -autoexit -
:LOOP
@FOR /f %%a IN ('HRTV.exe') DO @set var2=%%a
if "%var%"=="%var2" goto LOOP
goto START
This can be improved upon if we knew how to get rtmpdump or ffmpeg
keep appending chunks instead of overwriting them, other members welcome with feedback.
lajvguy
01-02-2017, 09:29 PM
Laj,
are you still alive and well?
Here are HRTV chunks recorded in sequence one after the other.
@title hrtvRDump.bat
:START
@if "%time:~0,1%" == " " (set d=%date:~-4%-%date:~3,2%-%date:~0,2%_0%time:~1,1%-%time:~3,2%-%time:~6,2%) ^
else (set d=%date:~-4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%)
@FOR /f %%x IN ('HRTV.exe') DO @set var=%%x
rtmpdump.exe -v -r %var% -o %d%_hrtv.flv
@FOR %%I in (%d%_hrtv.flv) do @if %%~zI LSS 1 del "%%I"
:LOOP
@FOR /f %%a IN ('HRTV.exe') DO @set var2=%%a
if "%var%"=="%var2" goto LOOP
goto START
For this to work you need these files in the same location or on the path:
hrtvrdump.bat
hrtv.exe
curl.exe
rtmpdump.exe
hrtv.au3:
RunWait( 'cmd.exe /c curl -A Mozilla/5.0 -s http://www.filmon.com/api-v2/channel/694?protocol=rtmp | CLIP','', @SW_HIDE )
$sData = ClipGet()
$first = StringInStr( $sData, '"quality":"high","url":"' ) + 23
$sData = StringTrimLeft( $sData, $first )
$last = StringLen( $sData ) - ( StringInStr( $sData, '","watch-timeout":0}]' ) - 1 )
$sData = StringTrimRight( $sData, $last ) & '/694.high.stream'
ConsoleWrite( $sData & @CRLF )
you need to compile .au3 with autoit to get .exe
Aut2Exe.exe /in hrtv.au3
https://www.autoitscript.com/site/autoit/downloads/
autoit-v3.zip
If you want to see the output from hrtv.exe on its own you need to enter on command line: hrtv|more
curl:
http://www.paehl.com/open_source/?CURL_7.51.0
curl_751_0.zip
After you run hrtvrdump.bat for some time you will find chunks looking like this:
2016-12-30_17-24-14_hrtv.flv
2016-12-30_17-26-22_hrtv.flv
2016-12-30_17-28-31_hrtv.flv
2016-12-30_17-30-37_hrtv.flv
2016-12-30_17-32-46_hrtv.flv
you can concatenate them and get continuous stream.
You can play the stream directly, player will be restarting every 2 minutes,
.bat file looping sometimes until the next chunk starts.
@title hrtvFF.bat
:START
@FOR /f %%x IN ('HRTV.exe') DO @set var=%%x
rtmpdump.exe -v -r %var% |ffplay.exe -autoexit -
:LOOP
@FOR /f %%a IN ('HRTV.exe') DO @set var2=%%a
if "%var%"=="%var2" goto LOOP
goto START
This can be improved upon if we knew how to get rtmpdump or ffmpeg
keep appending chunks instead of overwriting them, other members welcome with feedback.
Hey j cool,
Does it really work? Looks complicated. Thanks for the help!
j_cool
01-03-2017, 02:12 AM
This is ongoing work. You get chunks as I said.
If this worked for private shows on webcam sites it would be the biggest hit on this forum.
You have noticed well that it is not something sophisticated.
Idea of this is to see how it works and improve.
Improvement is not packing it all up in one EXE with autoit at this stage but get the stream play continuously with the player first.
Without the URL you posted I could not had started anything with HRTV and here are chunks for the start.
My Quote:
This can be improved upon if we knew how to get rtmpdump or ffmpeg
keep appending chunks instead of overwriting them, other members welcome with feedback.
ihryjfbd
01-04-2017, 12:10 AM
You might be able do it with a delayed loop or something
Create clip list file
(for %%i in (*.flv) do @echo file '%%i') > mylist.txt
Join all clips together once the stream has ended
ffmpeg -f concat -i mylist.txt -c copy output.flv
The thing is though even when you join files there's an offset between the two files because the second clip contains around 1-2 seconds from previous clip as it's starting point so you need to trim them otherwise you'll get jumps.
j_cool
01-04-2017, 03:41 AM
We will have to live with that jump between chunks.
You must be real hacker to get this playing straight.
If I can get the stream recorded as one continuous file it can be opened with player and played "as it goes".
( maybe piped without writting to disk )
Concatenating chunks "as it goes" makes that impossible.
There are more people working on ffmpeg than on rtmpdump, and if ffmpeg does not offer --append switch
it must be something hard to implement.
I do something similar to what you propose.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Folder\shell\dir /b /on /a-d > DIR.txt\command]
@="cmd.exe /c dir /b /on /a-d > DIR.txt"
Right click on any directory in "windows explorer" LEFT pane and get this option:
dir /b /on /a-d > DIR.txt
this gives me DIR.txt:
( go manually through DIR.txt and weed out what I need to concatenate )
2017-01-04_09-49-23_HRTV.flv
2017-01-04_09-49-55_HRTV.flv
2017-01-04_09-52-02_HRTV.flv
2017-01-04_09-54-10_HRTV.flv
2017-01-04_09-56-18_HRTV.flv
2017-01-04_09-58-27_HRTV.flv
2017-01-04_10-00-33_HRTV.flv
2017-01-04_10-02-42_HRTV.flv
2017-01-04_10-04-50_HRTV.flv
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\txtfile\Shell\concat.txt\command]
@="C:\\ap\\concat.exe %1"
Right click on DIR.txt
"drop down" menu shows this option:
concat.txt
This gives me concat.txt:
file '2017-01-04_09-49-23_HRTV.flv'
file '2017-01-04_09-49-55_HRTV.flv'
file '2017-01-04_09-52-02_HRTV.flv'
file '2017-01-04_09-54-10_HRTV.flv'
file '2017-01-04_09-56-18_HRTV.flv'
file '2017-01-04_09-58-27_HRTV.flv'
file '2017-01-04_10-00-33_HRTV.flv'
file '2017-01-04_10-02-42_HRTV.flv'
file '2017-01-04_10-04-50_HRTV.flv'
program concat;
{$APPTYPE CONSOLE}
uses sysutils;
var s,s2: string;
f,f2: text;
function filename(s:string): string; // CmdLine; //"C:\AP\mka.exe" "C:\New Text Document.mkv"
var str,str1: string; i: integer;
begin
str:='';
for i:= length( s ) downto 1 do
begin
if s[ i ] = '\' then break;
if s[ i ] <> '"' then str:= str + s[ i ]; // txt.ecnerefeR egaugnaL ihpleD
end;
str1 :='';
for i:= length( str ) downto 1 do str1:= str1 + str[ i ]; // Delphi Language Reference.txt
filename:= str1;
end;
begin
assign( f,filename(cmdline) );
reset( f );
rewrite( f2,'concat.txt' );
while not eof( f ) do
begin
readln( f,s );
s2:= 'file ' + chr(39) + s + chr(39);
if length( s ) > 0 then writeln( f2,s2 );
end;
close( f );
close( f2 );
end.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\txtfile\Shell\FMPEG concat.txt\command]
@="C:\\AP\\FF\\ffmpeg.exe -f concat -i %1 -c copy concat.flv"
Right click on concat.txt
"drop down" menu shows this option:
FMPEG concat.txt
And here is my:
concat.flv
Ignore yellow lines in CMD window, takes some time to run.
j_cool
01-04-2017, 04:36 AM
Ihry,
I was thinking about the gap between chunks.
I was not sure about how much we are missing there and you made it clear that it is nothing missing there but extra 1 sec or 2.
That can be trimmed before concatenation.
Somebody may answer how to know the number of extra seconds ( when is 1, when are 2 ) or how to find it out.
Jumps would irritate if that were few seconds chunks.
In 2 minutes chunks I personally don't mind the jump.
Some beta or irregular release of rtmpdump or ffmpeg that would write those 2 minutes chunks to ONE FILE without overwriting would work fine for me.
ihryjfbd
01-04-2017, 06:53 PM
The chunk overlap time seems to be the time taken to connect to the next stream clip in the sequence, you could probably dump a timed value into a txt file by setting timer to start on rtmp starting and then ending when the clip being is written to the hdd.
set time_start=%time%
set time_end=%time%
set time_taken=%time_end%-%time_start%
echo time_taken
confused.com
01-07-2017, 04:47 AM
Livestreamer
File output options:
-o FILENAME, --output FILENAME
Write stream data to FILENAME instead of playing it.
You will be prompted if the file already exists.
-f, --force
When using -o, always write to file even if it already exists.
-O, --stdout
Write stream data to stdout instead of playing it.
j_cool
01-13-2017, 12:43 PM
Laj,
here is HRTV recorded as one continuous file.
You can play it with a player "as it goes", but player may stumble or fall now and then.
Recorded file will be of acceptable standard.
@title hrtvVLCrtmp.bat
@if "%time:~0,1%" == " " (set d=%date:~-4%%date:~3,2%%date:~0,2%0%time:~1,1%%time:~3,2%%ti me:~6,2%) ^
else (set d=%date:~-4%%date:~3,2%%date:~0,2%%time:~0,2%%time:~3,2%%tim e:~6,2%)
:start
@for /f %%x in ('hrtv.exe') do @set var=%%x
vlc.exe %var% --sout=file{append}/ts:hrtv_%d%.mpg
:loop
@for /f %%y in ('hrtv.exe') do @set var2=%%y
if "%var%"=="%var2" goto loop
goto start
For this to work you need these files in the same location and vlc on the path,
and to make an effort and compile hrtv.au3 with autoit to get hrtv.exe.
hrtvVLCrtmp.bat
hrtv.exe
curl.exe
Recorded file will look something like this:
hrtv_201701131915.mpg
;hrtv.au3
RunWait( 'cmd.exe /c curl -A Mozilla/5.0 -s http://www.filmon.com/api-v2/channel/694?protocol=rtmp | CLIP','', @SW_HIDE )
$sData = ClipGet()
$first = StringInStr( $sData, '"quality":"high","url":"' ) + 23
$sData = StringTrimLeft( $sData, $first )
$last = StringLen( $sData ) - ( StringInStr( $sData, '","watch-timeout":0}]' ) - 1 )
$sData = StringTrimRight( $sData, $last ) & '/694.high.stream'
ConsoleWrite( $sData & @CRLF )
autoit:
https://www.autoitscript.com/site/autoit/downloads/
autoit-v3.zip
Aut2Exe.exe /in hrtv.au3
curl:
http://www.paehl.com/open_source/?CURL_7.51.0
curl_751_0.zip
https://wiki.videolan.org/Documentation:Streaming_HowTo/Receive_and_Save_a_Stream/
lajvguy
01-14-2017, 11:13 AM
j cool,
Thanks for working on this filmon code for me! I have never used autoit or curl before. What should I do first? Thanks again buddy!
j_cool
01-14-2017, 03:31 PM
It appears to be that you are the only one on the internet watching HRTV and me and Ihry
only ones interested about how it all works.
I find it amazing.
Confused says:
Livestreamer !
The only problem with livestreamer is that it's error messages are not so descriptive, it says only 403, forbidden.
FFplay is a little more explainatory saying: cookie missing, though it is questionable because I can play first chunk, and then break.
So with HLS.
RTMP can be done with livestreamer but it would require longer code to get parameters right.
It would be great to get this working in HLS as well, I started to look to spoof cookie on command line for the start,
but is it cookie or not, it would be great to hear from other members.
j_cool
01-14-2017, 03:40 PM
Back to VLC:
First thing to do is to make sure your VLC works everywhere in windows.
on command line type: path, press enter key.
You should see something like this:
C:\>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\Sys tem32\Wbem;C:\Windows\System32\WindowsPowerShell\v 1.0\;C:\P\GnuWin32\b
in;C:\AP;C:\AP\7Z;C:\AP\FF;C:\AP\RDUMP;C:\P\M;C:\P \VLC;C:\P\LIVESTR;C:\Program Files (x86)\Java\jre1.8.0_111\bin
If you don't see location of your vlc.exe here you will have to replace vlc.exe in batch file
with full path to wherever your vlc.exe is:
"C:\Program Files ...\vlc.exe"
To make this organized create directory C:\HRTV and copy to it all files required:
C:\HRTV>dir /b /on
curl.exe
HRTV.au3
HRTV.exe - this one you will get after you compile hrtv.au3 with autoit.
hrtvVLCrtmp.bat
Create txt file and name it: hrtvVLCrtmp.bat, copy code from below and paste it in.
:start
for /f %%x in ('hrtv.exe') do set var=%%x
vlc.exe %var% --sout=file{append}/ts:hrtv.mpg
:loop
for /f %%y in ('hrtv.exe') do set var2=%%y
if "%var%"=="%var2" goto loop
goto start
This is the simplest code possible it can be. Batch file will create hrtv.mpg file.
This batch file will start working only when you start it and stop only when you kill it.
If you let it run it will never stop, appending chunks untill your disk is full and PC stops working.
If you come in situation that you cannot stop it for some reason beyond me,
switch the power button on your PC off.
Restart the PC, and batch file will not run again unless you start it again.
After you finish with recording rename hrtv.mpg to something else or delete it.
If you leave it, next time you run batch file it will continue appending to saved hrtv.mpg.
To play the stream while it is being recorded, to get uninterupted play start playing when there is
some of this stream already saved on the disk, ideally after second chunk had started recording.
Download curl_752_1.zip from this link and unzip it, there will be only one file inside zip, curl.exe.
http://www.paehl.com/open_source/?CURL_7.52.1
CURL 7.52.1
Download WITHOUT SSL
create txt file, name it htrv.au3, copy code from below and paste it in.
RunWait( 'cmd.exe /c curl -A Mozilla/5.0 -s http://www.filmon.com/api-v2/channel/694?protocol=rtmp | CLIP','', @SW_HIDE )
$sData = ClipGet()
$first = StringInStr( $sData, '"quality":"high","url":"' ) + 23
$sData = StringTrimLeft( $sData, $first )
$last = StringLen( $sData ) - ( StringInStr( $sData, '","watch-timeout":0}]' ) - 1 )
$sData = StringTrimRight( $sData, $last ) & '/694.high.stream'
ConsoleWrite( $sData & @CRLF )
Download autoit from here:
https://www.autoitscript.com/site/autoit/downloads/
Download zip:
autoit-v3.zip
unzip it wherever you like and you will get directory: install:
C:\install>dir /b /on
Aut2Exe
AutoItX
Examples
Extras
Icons
Include
SciTe
Au3Check.dat
Au3Check.exe
Au3Info.exe
Au3Info_x64.exe
AutoIt v3 Website.url
AutoIt.chm
AutoIt3.exe
AutoIt3_x64.exe
AutoIt3Help.exe
change to directory Aut2Exe and copy to it hrtv.au3, content should look like this:
C:\install\Aut2Exe>dir /o/b
Icons
Aut2exe.exe
Aut2exe_x64.exe
HRTV.au3
upx.exe
on command line type this and press enter:
C:\install\Aut2Exe>Aut2exe.exe /in hrtv.au3
This will create hrtv.exe
Now, when you have it all together inside HRTV directory double click on hrtvVLCrtmp.bat and
cmd window and minimal vlc will pop up ( no stream to see ) and stream will be recording to hrtv.mpg.
After every chunk vlc will close and pop-up again every 2 minutes, and in between while waiting for next chunk to start.
This all can be made invisible and better and would require longer code.
So long for now, this post is Marathon, you can always ask for more details.
confused.com
01-15-2017, 03:00 AM
You are a...
VIRUS !
j_cool
01-16-2017, 09:03 AM
If you don't see the stream, don't panic.
HRTV is not on the air for 24 hours as they claim they are.
It can be seen if the stream is on the air or not.
title hrtvFFplayHLS.bat
:start
for /f %%x in ('hrtvhls.exe') do set var=%%x
ffplay.exe %var%
:loop
for /f %%a in ('hrtvhls.exe') do set var2=%%a
if "%var%"=="%var2" goto loop
goto start
;HRTVhls.au3
RunWait( 'cmd.exe /c curl -A Mozilla/5.0 -s http://www.filmon.com/api-v2/channel/694?protocol=hls | CLIP','', @SW_HIDE )
$sData = ClipGet()
$first = StringInStr( $sData, '"quality":"high","url":"' ) + 23
$sData = StringTrimLeft( $sData, $first )
$last = StringLen( $sData ) - ( StringInStr( $sData, '","watch-timeout":0}]' ) - 1 )
$sData = StringTrimRight( $sData, $last )
ConsoleWrite( $sData & @CRLF )
If the stream in not on the air HLS protocol will kindly display "no stream available".
If the stream is on the air, FFplay with play the first chunk and than close and cmd winow will display this:
Invalid cookie found, no value, path or domain specified
HTTP error 403 Forbidden
C:\MISC\NEWS\OLD>title hrtvFFplayHLS.bat
C:\MISC\NEWS\OLD>for /F %x in ('hrtvhls.exe') do set var=%x
C:\MISC\NEWS\OLD>set var=http://edge-1130-us-la.filmon.com/live/694.high.stream/playlist.m3u8?id=035bca1a71b11fce016d28a
cd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d375aa36816 6afe1c544fac31ebd9183124b6180e7293350017211533d3d9 5c1917da58560961e8ce
5fe018251de42102ef4e275dcb90600a49519c597eb2e0ff4f fc7d19f308722ebefab04390e61dba20d1a8dda36683cdff46 718d96f39537d3ebffb8
5c0d6c2725b1dd7d3d8ff05e6098f990831bd324c
C:\MISC\NEWS\OLD>ffplay.exe http://edge-1130-us-la.filmon.com/live/694.high.stream/playlist.m3u8?id=035bca1a71b11fce016d
28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d375aa36 8166afe1c544fac31ebd9183124b6180e7293350017211533d 3d95c1917da58560961e
8ce5fe018251de42102ef4e275dcb90600a49519c597eb2e0f f4ffc7d19f308722ebefab04390e61dba20d1a8dda36683cdf f46718d96f39537d3ebf
fb85c0d6c2725b1dd7d3d8ff05e6098f990831bd324c
ffplay version 3.2.2 Copyright (c) 2003-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable
-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-li
bbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enabl
e-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-li
bopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-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-decklink --enable-zl
ib
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
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
[http @ 04933140] Invalid cookie found, no value, path or domain specified
Input #0, hls,applehttp, from 'http://edge-1130-us-la.filmon.com/live/694.high.stream/playlist.m3u8?id=035bca1a71b11fce0
16d28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d375a a368166afe1c544fac31ebd9183124b6180e72933500172115 33d3d95c1917da585609
61e8ce5fe018251de42102ef4e275dcb90600a49519c597eb2 e0ff4ffc7d19f308722ebefab04390e61dba20d1a8dda36683 cdff46718d96f39537d3
ebffb85c0d6c2725b1dd7d3d8ff05e6098f990831bd324c':
Duration: N/A, start: 66479.104856, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p, 720x480 [SAR 40:33 DAR 20:11], Closed Caption
s, 29.97 tbr, 90k tbn, 59.94 tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 0
Stream #0:2: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 0
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 06820880] HTTP error 403 Forbidden= 78KB sq= 0B f=0/0
[hls,applehttp @ 0492e700] Failed to reload playlist 0
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 06820880] HTTP error 403 Forbidden= 49KB sq= 0B f=0/0
[hls,applehttp @ 0492e700] Failed to reload playlist 0
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 06820880] HTTP error 403 Forbidden= 11KB sq= 0B f=0/0
[hls,applehttp @ 0492e700] Failed to reload playlist 0
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 06820880] HTTP error 403 Forbidden= 0KB sq= 0B f=0/0
[hls,applehttp @ 0492e700] Failed to reload playlist 0
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 06820880] HTTP error 403 Forbidden= 0KB sq= 0B f=0/0
[hls,applehttp @ 0492e700] Failed to reload playlist 0 0B f=0/0
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 06820880] HTTP error 403 Forbidden= 0KB sq= 0B f=0/0
[hls,applehttp @ 0492e700] Failed to reload playlist 0
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 06820880] HTTP error 403 Forbidden= 0KB sq= 0B f=0/0
[hls,applehttp @ 0492e700] Failed to reload playlist 0
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 06820880] HTTP error 403 Forbidden= 0KB sq= 0B f=0/0
Terminate batch job (Y/N)? 2 aq= 0KB vq= 0KB sq= 0B f=0/0
j_cool
01-30-2017, 07:19 AM
Livestreamer is replaced with Streamlink.
Links to new filmon plug-in:
https://github.com/streamlink/streamlink/issues/507
https://github.com/beardypig/streamlink/blob/ff9fb595fd43238ea536107d240de5dfa7611c5c/src/streamlink/plugins/filmon.py
set url=http://www.filmon.com/channel/bbc-news
streamlink --http-header "User-Agent=Mozilla/5.0" --player "ffplay.exe -vf scale=854:480" %url% worst
j_cool
01-31-2017, 04:42 AM
Laj,
you can try solution for HRTV from here:
https://github.com/streamlink/streamlink/issues/510
May work for you.
Cheers,
Johnny.
j_cool
01-31-2017, 06:39 AM
Proven to work with solution #508
https://github.com/streamlink/streamlink/issues/510
lajvguy
01-31-2017, 02:38 PM
j cool,
Thanks for the help buddy. It's working for me only with low and keep getting the "Failed to reload playlist" warning. Is it the same for you?
C:\Users\Lenovo\Desktop>streamlink "http://www.filmon.com/channel/hrtv" low
[cli][info] Found matching plugin filmon for URL http://www.filmon.com/channel/h
rtv
[cli][info] Available streams: low (worst), high (best)
[cli][info] Opening stream: low (hls-filmon)
[cli][info] Starting player: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
[stream.hls][warning] Failed to reload playlist: Unable to open URL: http://edge
-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d
28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d39ace3c 6d1f7936a5b2f4f448f56db13bddbb
3b70e329714539074a8d507dda33cae4d1c4aa54319dec1891 5105928e4c421f9ff6e038db6613b5
a4a3495f7668723152984cfb8fd6069901dad2844544ea87aa 684d7d3b3559f562777be0d6a8d66d
1db564f967c1115ca2be53da10c19746bedeb5b364a3 (403 Client Error: Forbidden for ur
l: http://edge-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca
1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286d f6a738d39ace3c6d1f7936a5b2f4f4
48f56db13bddbb3b70e329714539074a8d507dda33cae4d1c4 aa54319dec18915105928e4c421f9f
f6e038db6613b5a4a3495f7668723152984cfb8fd6069901da d2844544ea87aa684d7d3b3559f562
777be0d6a8d66d1db564f967c1115ca2be53da10c19746bede b5b364a3)
[stream.hls][warning] Failed to reload playlist: Unable to open URL: http://edge
-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d
28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d39ace3c 6d1f7936a5b2f4f448f56db13bddbb
3b70e329714539074a8d507dda33cae4d1c4aa54319dec1891 5105928e4c421f9ff6e038db6613b5
a4a3495f7668723152984cfb8fd6069901dad2844544ea87aa 684d7d3b3559f562777be0d6a8d66d
1db564f967c1115ca2be53da10c19746bedeb5b364a3 (403 Client Error: Forbidden for ur
l: http://edge-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca
1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286d f6a738d39ace3c6d1f7936a5b2f4f4
48f56db13bddbb3b70e329714539074a8d507dda33cae4d1c4 aa54319dec18915105928e4c421f9f
f6e038db6613b5a4a3495f7668723152984cfb8fd6069901da d2844544ea87aa684d7d3b3559f562
777be0d6a8d66d1db564f967c1115ca2be53da10c19746bede b5b364a3)
[stream.hls][warning] Failed to reload playlist: Unable to open URL: http://edge
-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d
28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d39ace3c 6d1f7936a5572a9647312c1ea78519
c2001f601039af3417a5317aa62e84a13dee39df539bb782ff 3ce8575220854435f071d86ba6652c
f3c2aef8c23159d9affaa105e95fb9b5c27d915a353e3fba5a fbe57c410bedac5f1bf4b7a1bf4216
8a9e4ea23601f4f8e4ff97fa4c5740e2ca0c9c1fc2a4 (403 Client Error: Forbidden for ur
l: http://edge-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca
1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286d f6a738d39ace3c6d1f7936a5572a96
47312c1ea78519c2001f601039af3417a5317aa62e84a13dee 39df539bb782ff3ce8575220854435
f071d86ba6652cf3c2aef8c23159d9affaa105e95fb9b5c27d 915a353e3fba5afbe57c410bedac5f
1bf4b7a1bf42168a9e4ea23601f4f8e4ff97fa4c5740e2ca0c 9c1fc2a4)
[stream.hls][warning] Failed to reload playlist: Unable to open URL: http://edge
-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d
28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d39ace3c 6d1f7936a5572a9647312c1ea78519
c2001f601039af3417a5317aa62e84a13dee39df539bb782ff 3ce8575220854435f071d86ba6652c
f3c2aef8c23159d9affaa105e95fb9b5c27d915a353e3fba5a fbe57c410bedac5f1bf4b7a1bf4216
8a9e4ea23601f4f8e4ff97fa4c5740e2ca0c9c1fc2a4 (403 Client Error: Forbidden for ur
l: http://edge-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca
1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286d f6a738d39ace3c6d1f7936a5572a96
47312c1ea78519c2001f601039af3417a5317aa62e84a13dee 39df539bb782ff3ce8575220854435
f071d86ba6652cf3c2aef8c23159d9affaa105e95fb9b5c27d 915a353e3fba5afbe57c410bedac5f
1bf4b7a1bf42168a9e4ea23601f4f8e4ff97fa4c5740e2ca0c 9c1fc2a4)
[stream.hls][warning] Failed to reload playlist: Unable to open URL: http://edge
-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d
28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d39ace3c 6d1f7936a5572a9647312c1ea78519
c2001f601039af3417a5317aa62e84a13dee39df539bb782ff 3ce8575220854435f071d86ba6652c
f3c2aef8c23159d9affaa105e95fb9b5c27d915a353e3fba5a fbe57c410bedac5f1bf4b7a1bf4216
8a9e4ea23601f4f8e4ff97fa4c5740e2ca0c9c1fc2a4 (403 Client Error: Forbidden for ur
l: http://edge-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca
1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286d f6a738d39ace3c6d1f7936a5572a96
47312c1ea78519c2001f601039af3417a5317aa62e84a13dee 39df539bb782ff3ce8575220854435
f071d86ba6652cf3c2aef8c23159d9affaa105e95fb9b5c27d 915a353e3fba5afbe57c410bedac5f
1bf4b7a1bf42168a9e4ea23601f4f8e4ff97fa4c5740e2ca0c 9c1fc2a4)
[stream.hls][warning] Failed to reload playlist: Unable to open URL: http://edge
-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d
28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d39ace3c 6d1f7936a58f21fe15d7d8ebf3d12f
43599a5ed37057e018ba88661317cf177c30e66b3317a73cc2 d747784681bb9fc72ead1f6d8c4056
a3d29ba337e353591e884d295bbd4dc31f53b2403d8bcbb7ce a674de44a04f21a830b722e273aa8a
2af217567c837fb8c8407757c97eea5bd3933acad73a (403 Client Error: Forbidden for ur
l: http://edge-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca
1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286d f6a738d39ace3c6d1f7936a58f21fe
15d7d8ebf3d12f43599a5ed37057e018ba88661317cf177c30 e66b3317a73cc2d747784681bb9fc7
2ead1f6d8c4056a3d29ba337e353591e884d295bbd4dc31f53 b2403d8bcbb7cea674de44a04f21a8
30b722e273aa8a2af217567c837fb8c8407757c97eea5bd393 3acad73a)
[stream.hls][warning] Failed to reload playlist: Unable to open URL: http://edge
-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d
28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d39ace3c 6d1f7936a58f21fe15d7d8ebf3d12f
43599a5ed37057e018ba88661317cf177c30e66b3317a73cc2 d747784681bb9fc72ead1f6d8c4056
a3d29ba337e353591e884d295bbd4dc31f53b2403d8bcbb7ce a674de44a04f21a830b722e273aa8a
2af217567c837fb8c8407757c97eea5bd3933acad73a (403 Client Error: Forbidden for ur
l: http://edge-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca
1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286d f6a738d39ace3c6d1f7936a58f21fe
15d7d8ebf3d12f43599a5ed37057e018ba88661317cf177c30 e66b3317a73cc2d747784681bb9fc7
2ead1f6d8c4056a3d29ba337e353591e884d295bbd4dc31f53 b2403d8bcbb7cea674de44a04f21a8
30b722e273aa8a2af217567c837fb8c8407757c97eea5bd393 3acad73a)
[stream.hls][warning] Failed to reload playlist: Unable to open URL: http://edge
-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d
28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d39ace3c 6d1f7936a58f21fe15d7d8ebf3d12f
43599a5ed37057e018ba88661317cf177c30e66b3317a73cc2 d747784681bb9fc72ead1f6d8c4056
a3d29ba337e353591e884d295bbd4dc31f53b2403d8bcbb7ce a674de44a04f21a830b722e273aa8a
2af217567c837fb8c8407757c97eea5bd3933acad73a (403 Client Error: Forbidden for ur
l: http://edge-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca
1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286d f6a738d39ace3c6d1f7936a58f21fe
15d7d8ebf3d12f43599a5ed37057e018ba88661317cf177c30 e66b3317a73cc2d747784681bb9fc7
2ead1f6d8c4056a3d29ba337e353591e884d295bbd4dc31f53 b2403d8bcbb7cea674de44a04f21a8
30b722e273aa8a2af217567c837fb8c8407757c97eea5bd393 3acad73a)
[stream.hls][warning] Failed to reload playlist: Unable to open URL: http://edge
-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d
28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d39ace3c 6d1f7936a510d62044f95ffa26075b
2fe42c1dd0f535dc68271ac737ce94c2c3c14b6b6a4317380e 1cf7a4eb4e637895826a0f731567e9
3fb06f30cac9e571ff8aa130652b11902fb74cb7a2207749fd 0cebf62fb93e238a87f97aa17ea0fe
208672ae326c743969f37b1056100f9d0f945c15b45a (403 Client Error: Forbidden for ur
l: http://edge-1130-us-la.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca
1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286d f6a738d39ace3c6d1f7936a510d620
44f95ffa26075b2fe42c1dd0f535dc68271ac737ce94c2c3c1 4b6b6a4317380e1cf7a4eb4e637895
826a0f731567e93fb06f30cac9e571ff8aa130652b11902fb7 4cb7a2207749fd0cebf62fb93e238a
87f97aa17ea0fe208672ae326c743969f37b1056100f9d0f94 5c15b45a)
j_cool
01-31-2017, 05:06 PM
Yes, it works for me on low stream only. I ignore display in CMD window
and the stream is continuous and lasts long.
I resize ffplay window and it looks good to me.
I use streamlink to watch BBC low because streamlink starts the stream instantly
while my shity script takes 3 seconds or so to show the stream.
Streamlink gives you HRTV low in a player continuously, remarkable achievement.
High stream is luxury and if I cannot get it I am sort of a shy to ask beardypig to get it for me.
There is more technical talk on streamlink and livestreamer threads on github,
while on this forum it is more broad and wide.
You may sound just stupid here and you are just fine here, this forum is superb
for both knowledge and non-knowledge.
lajvguy
02-03-2017, 09:49 PM
j cool,
Does this mean that the filmon HRTV high stream should work now?
https://github.com/streamlink/streamlink/pull/508
https://github.com/streamlink/streamlink/pull/522
Can you figure it out? Thanks.
j_cool
02-04-2017, 04:39 AM
You can keep your eye on streamlink-latest.exe ( nightly ) here:
https://streamlink.github.io/install.html#windows-binaries
https://streamlink-builds.s3.amazonaws.com/nightly/windows/streamlink-latest.exe
I don't see any difference for now.
High stream actually works with what you already have, you just have to wait for breaks to end between chunks.
I am better off watching low with resized ffplay so breaks come less often,
my graphic card is Matrox C680 and monitor Eizo FlexScan S1923, so resized low looks like high.
Vaganza
02-06-2017, 11:19 AM
"....High stream is luxury and if I cannot get it I am sort of a shy to ask beardypig to get it for me. ....."
Have you tried -ldebug ?
[streamlink.exe -ldebug https://www.filmon.com/channel/bbc-news best]
It's an incredibly elegant solution !
j_cool
02-06-2017, 11:49 AM
Not yet.
At that time ffplay.exe worked somehow with some errors, post #57
[http @ 04933140] Invalid cookie found, no value, path or domain specified
[http @ 06820880] HTTP error 403 Forbidden= 49KB sq= 0B f=0/0
Later I discovered streamlink and beardypig wrote new filmon.py.
I missed -ldebug in livestreamer readme file back then.
I am curious what caused 403.
I did run livestreamer now for test:
C:\MISC\NEWS\HRTV>livestreamer.exe -ldebug https://www.filmon.com/channel/bbc-news best
[cli][info] Found matching plugin filmon for URL https://www.filmon.com/channel/bbc-news
error: No streams found on this URL: https://www.filmon.com/channel/bbc-news
C:\MISC\NEWS\HRTV>pause
Press any key to continue . . .
Running streamlink with -ldebug there is no error now.
C:\MISC\NEWS\HRTV>streamlink.exe -ldebug https://www.filmon.com/channel/bbc-news best
[cli][info] Found matching plugin filmon for URL https://www.filmon.com/channel/bbc-news
[cli][info] Available streams: low (worst), high (best)
[cli][info] Opening stream: high (hls-filmon)
[stream.hls][debug] Reloading playlist
[stream.hls-filmon][debug] Reloading FilmOn channel playlist: bbc-news
[stream.hls][debug] Adding segment 493927 to queue
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Adding segment 493928 to queue
[stream.hls][debug] Adding segment 493929 to queue
[stream.hls][debug] Download of segment 493927 complete
[cli][info] Starting player: C:\P\VLC\vlc.exe
[cli][debug] Writing stream to output
[stream.hls][debug] Download of segment 493928 complete
[stream.hls][debug] Download of segment 493929 complete
lajvguy
02-06-2017, 12:59 PM
@Vaganza,
Excellent incredibly elegant solution! Thanks buddy!
Vaganza
02-06-2017, 02:04 PM
Apparently a lucky strike.
Even beardypig wondered if it would work.
I thought this was what he meant by proposing using it.
I haven't used it for like watching films yet. So let's see.
j_cool
02-06-2017, 02:12 PM
Well,
Beardypig did actually work out something out of -ldebug HRTV.
lajvguy
02-06-2017, 02:18 PM
Beardypig is a very sharp guy. Using HRTV high with the nightly.
ihryjfbd
02-09-2017, 11:16 AM
Beardypig is a very sharp guy. Using HRTV high with the nightly.
Where can we get nightly builds?
j_cool
02-09-2017, 01:32 PM
https://streamlink.github.io/#
GitHub: https://github.com/streamlink/streamlink
Installers for Windows/Mac/Linux:
Windows ( link )
https://streamlink.github.io/install.html#windows-binaries
You can download the latest nightly Windows installer here. ( this link )
https://streamlink-builds.s3.amazonaws.com/nightly/windows/streamlink-latest.exe
Yesterday's was: 0.3.1.807
Today's is: 0.3.1.814
Vaganza
02-09-2017, 05:33 PM
Where can we get nightly builds?
Should this also concern the use of -ldebug your not dependent on the Nightly Builds,
the only thing for any reinstall is to uninstall first according to beardypig:
“...if you want the latest filmon fixes” (0.3.1), but obviously also for any coming (future) fixes.
Don't remember if that ever was the case with Livestreamer.
As j_cool has linked to Github I'm assuming it's okay:
"...updated plugin to match changes..." (https://github.com/streamlink/streamlink/pull/508)
By the way, my question about if this ever was available in Livestreamer
and his suggestion “--loglevel” isn't working for me so this must be totally new.
That's why I think it should be included in some documentation.
However, he/ (they) has made it possible to just download
the Nightly Builds, extract it and then replace or put in any new fixes.
My directory: C:\Program Files (x86)\Streamlink\pkgs\streamlink\plugins.
ihryjfbd
02-09-2017, 05:48 PM
https://streamlink.github.io/#
GitHub: https://github.com/streamlink/streamlink
Installers for Windows/Mac/Linux:
Windows ( link )
https://streamlink.github.io/install.html#windows-binaries
You can download the latest nightly Windows installer here. ( this link )
https://streamlink-builds.s3.amazonaws.com/nightly/windows/streamlink-latest.exe
Yesterday's was: 0.3.1.807
Today's is: 0.3.1.814
Thanks :cool:
I don't suppose there is anyway to make it support player pausing for tea breaks? like a temporary created cache record file if it detects the player has been paused, i'm using MPC-BE x64 and it loses the stream if paused it'll play for like 3-5mins after the paused time then go off, maybe via ffplay.
j_cool
02-09-2017, 06:14 PM
This one works fine:
set url=http://www.filmon.com/channel/bbc-news
start /min streamlink --http-header "User-Agent=Mozilla/5.0" --player "ffplay.exe -vf scale=854:480" %url% worst
This one not so fine:
set url=http://www.filmon.com/channel/bbc-news
start /min streamlink --http-header "User-Agent=Mozilla/5.0" --player "ffplay.exe" %url% best
You can dump the stream on disk, wait for some stream to get saved on disk, and play the stream from disk with any player.
Mplayer, FFplay ...
This way there are no tea breaks, but one second more or less between chunks.
Python guys know how to sort it out or somebody like rtmpdump team.
Look at Vaughnlive.py, one example of excellence of stramlink/livestreamer team.
j_cool
02-11-2017, 08:20 AM
Ihry,
This reading may answer your last post:
streamlink -h
--player-no-close
By default Streamlink will close the player when the stream ends.
This is to avoid "dead" GUI players lingering after a stream ends.
It does however have the side-effect of sometimes closing a player
before it has played back all of its cached data.
This option will instead let the player decide when to exit.
--player-continuous-http
Make the player read the stream through HTTP, but unlike
--player-http it will continuously try to open the stream if the
player requests it.
ihryjfbd
02-12-2017, 08:15 PM
hmmm getting file not found in MPC-BE x64.
streamlink -ldebug http://www.filmon.com/channel/cbs-action best --player-continuous-http
[cli][info] Found matching plugin filmon for URL http://www.filmon.com/channel/cbs-action
[cli][info] Available streams: low (worst), high (best)
[cli][info] Starting player: "C:\Program Files\MPC-BE x64\mpc-be64.exe"
[cli][info] Got HTTP request from MPC-BE
[cli][info] Opening stream: high (hls-filmon)
[stream.hls][debug] Reloading playlist
[stream.hls-filmon][debug] Reloading FilmOn channel playlist: cbs-action
[stream.hls][debug] Adding segment 704317 to queue
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Adding segment 704318 to queue
[stream.hls][debug] Adding segment 704319 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 704320 to queue
[stream.hls][debug] Download of segment 704317 complete
[cli][debug] Writing stream to player
[cli][info] HTTP connection closed
[stream.hls][debug] Closing worker thread
[stream.hls][debug] Closing writer thread
[cli][info] Stream ended
[cli][info] Got HTTP request from MPC-BE
[cli][info] Opening stream: high (hls-filmon)
[stream.hls][debug] Reloading playlist
[stream.hls-filmon][debug] Reloading FilmOn channel playlist: cbs-action
[stream.hls][debug] Adding segment 704320 to queue
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Adding segment 704321 to queue
[stream.hls][debug] Adding segment 704322 to queue
j_cool
02-13-2017, 02:30 AM
I have not tried mpc-be yet.
Here are streamlink players, and what they do and don't do.
Scroll the page to see Known issues and workarounds, MPC-HC reports “File not found”.
https://streamlink.github.io/players.html
Note the absence of ffplay, to people this is no player at all, and can do it all.
This works perfectly fine:
start /min streamlink --player "ffplay.exe" http://www.filmon.com/channel/cbs-action best
ihryjfbd
02-13-2017, 03:55 AM
I have not tried mpc-be yet.
Here are streamlink players, and what they do and don't do.
Scroll the page to see Known issues and workarounds, MPC-HC reports “File not found”.
https://streamlink.github.io/players.html
Note the absence of ffplay, to people this is no player at all, and can do it all.
This works perfectly fine:
start /min streamlink --player "ffplay.exe" http://www.filmon.com/channel/cbs-action best
Ok thanks I'll try with VLC, ffplay and MPC-HC.
I was running v1.4.6 (build 1478) beta of MPC-BE.
ihryjfbd
02-14-2017, 02:00 PM
Ok MPC-HC is playing back fine :)
Recording though is intermittent though it looses the stream 1-2mins in and sometimes repeats the same section in the recording, I guess it has do with it timing out and reloading the playlist instead of just adding / playing the next segment.
Also without adding the following I kept getting 403 client forbidden errors.
--http-header "Referer=http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf" --http-header "Accept-Encoding=gzip, deflate" --http-header "User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
Streamlink is now Recording... channel-4
[cli][info] Found matching plugin filmon for URL https://www.filmon.com/tv/channel-4
[cli][info] Available streams: low (worst), high (best)
[cli][info] Opening stream: high (hls-filmon)
[stream.hls][debug] Reloading playlist
[stream.hls-filmon][debug] Reloading FilmOn channel playlist: channel-4
[stream.hls][debug] Adding segment 980191 to queue
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Adding segment 980192 to queue
[stream.hls][debug] Adding segment 980193 to queue
[cli][debug] Checking file output
[stream.hls][debug] Download of segment 980191 complete
[cli][debug] Writing stream to output
[download][..7_20-42-03_channel-4.ts] Written 1.9 MB (2s @ 801.9 KB/s)[stream.hls][debug] Download of segment 980192 complete
[stream.hls][debug] Download of segment 980193 complete
[download][..7_20-42-03_channel-4.ts] Written 3.4 MB (4s @ 794.2 KB/s) [
stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 980194 to queue
[stream.hls][debug] Download of segment 980194 complete
[download][..7_20-42-03_channel-4.ts] Written 4.8 MB (12s @ 397.6 KB/s) [
stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 980195 to queue
[stream.hls][debug] Download of segment 980195 complete
[download][..7_20-42-03_channel-4.ts] Written 6.8 MB (21s @ 323.4 KB/s) [
stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 980196 to queue
[stream.hls][debug] Download of segment 980196 complete
[download][..7_20-42-03_channel-4.ts] Written 7.5 MB (33s @ 230.0 KB/s) [
stream.hls][debug] Reloading playlist
[stream.hls-filmon][debug] Reloading FilmOn channel playlist: channel-4
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Reloading playlist
[stream.hls-filmon][debug] Reloading FilmOn channel playlist: channel-4
[cli][error] Error when reading from stream: Read timeout
[stream.hls][debug] Closing worker thread
[stream.hls][debug] Closing writer thread
[stream.hls][debug] Closing writer thread
[cli][info] Stream ended
j_cool
02-14-2017, 03:39 PM
Params you posted here are something I am looking for for future reference, filmon or not.
Some sites want a cookie on top of that, and I have yet to look at how to fit a cookie there as well.
As I said before, if this worked for private shows on webcam sites it would be the biggest hit on this forum,
never mind jumps and missing chunks.
ihryjfbd
02-14-2017, 04:42 PM
Params you posted here are something I am looking for for future reference, filmon or not.
Some sites want a cookie on top of that, and I have yet to look at how to fit a cookie there as well.
As I said before, if this worked for private shows on webcam sites it would be the biggest hit on this forum,
never mind jumps and missing chunks.
Here's a example from TVPlayer.
--http-header "Cookie=CloudFront-Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDo vL2xpdmUudHZwbGF5ZXIuY29tLyoiLCJDb25kaXRpb24iOnsiR GF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0Njg3MjM 4MTl9fX1dfQ__;
CloudFront-Signature=Q1DA4M0hclf8tjbemqYmP7sPXD2pZiRQ7g0wP1~O xKBD8H4lgZKD75AS9nTFbMs2CeZcSuKOiGHZ3ATUoESum~k90M tzY8cep4XJvfJye~Ax3NqNP1kh8VNoXkS49UhW51Hrq0-yLZnnh-wT0zsbjTfBCOz7OhyZdBZumODDK0nMPWThS4fihc1PtYk6u6gd 2N3MfmbX4RHS8fDv~KTb-wcLbaIZsq84PSMY1SnBwWLsU-JlS58izsQ~foNOSFSXkZOKaD986SDTnllPwVJyQnvcNgpkaFnI 0jX5C8mrEz1OTa58xIUI-37UHgw9DeLP3AdpXbPSFAb3KkmbxNrboQ__;
CloudFront-Key-Pair-Id=APKAJGWDVCU5SXAPJELQ"
j_cool
02-14-2017, 04:52 PM
Thank you for this, we'll need it soon.
Nobody likes guys watching streams without browser.
ihryjfbd
02-15-2017, 02:49 AM
hmmm I wonder why this isn't affecting filmon too, remember the bs that happened with tvcatchup.
http://tvplayer.com/blackouts
j_cool
02-15-2017, 03:49 AM
So far I have few sites that work for news channels.
There is not one site with all news channels where you have one way to see it all.
Here are few "high" news channels and you need url, wmsauthsign and useragent, for now.
http://www.giniko.com/country.php?id=217
FOR /f %%a in ('wmsAuth.exe') do set url=http://nimlive1.giniko.com/bbcnews/bbcnews.stream/playlist.m3u8?%%a
start wmove %url%
start /min ffplay -user-agent Mozilla/5.0 -i %url%
program wmsAuth;
{$APPTYPE CONSOLE}
uses windows,StrUtils,SysUtils,ShellApi,clipbrd;
var auth,s,s2,str,subs: ansistring;
i,j:integer;
procedure execw(CommandLine: string; CommandShow: Longint);
var pi: TProcessInformation;
si: TStartupInfo;
begin
FillChar(si, sizeof(si), #0);
si.cb := sizeof(si);
si.dwFlags := STARTF_USESHOWWINDOW;
si.wShowWindow := CommandShow;
CreateProcess(nil, PChar(CommandLine), nil, nil, False, NORMAL_PRIORITY_CLASS, nil, nil, si, pi);
WaitForSingleObject(pi.hProcess, INFINITE);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
end;
begin
execw( 'cmd.exe /C xidel -s -e //@src http://www.giniko.com/watch.php?id=27 | CLIP', SW_SHOWNORMAL);
str:= Clipboard.AsText;
subs:='wmsAuthSign=';
i:=ansipos( subs,str );
auth:='';
while str[i] <> chr(13) do
begin
auth:= auth + str[i];
inc( i );
end;
writeln(auth);
end.
http://www.videlibri.de/xidel.html
program CLB;
{$APPTYPE CONSOLE}
uses ClipBrd;
begin
writeln(Clipboard.AsText);
end.
C:\>xidel -s -e //@src http://www.giniko.com/watch.php?id=27 | CLIP
C:\>clb
http://c.statcounter.com/9849145/0/bb1b1fb0/1/
js/jquery.min.js
http://code.jquery.com/jquery-1.11.2.min.js
http://swf.livestreamingcdn.com/fplayer/flowplayer.min.js
http://swf.livestreamingcdn.com/fplayer/flowplayer.hlsjs.min.js
http://swf.livestreamingcdn.com/swfobject/jquery.jqplugin.1.0.2.min.js
js/hasflash.js
images/logo.png
images/rokulogo.jpg
logos/190x110/27.jpg
//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2FGin ikoTV&width&layout=button_count&action=like
&show_faces=true&share=true&height=21
http://nimlive1.giniko.com/bbcnews/bbcnews.stream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Mi8xNS8y MDE3IDEwOjQ2OjQ0IEFN
Jmhhc2hfdmFsdWU9VUlhdVFDZkoyNTgyTWdwSE9HbEgzQT09Jn ZhbGlkbWludXRlcz0xNDQw
logos/190x110/27.jpg
images/lscdn2.jpg
js/jquery.min.js
jsCarousel.js
/logos/190x110/216.jpg
/logos/190x110/26.png
/logos/190x110/460.png
/logos/190x110/217.jpg
/logos/190x110/93.jpg
/logos/190x110/188.jpg
/logos/190x110/74.jpg
/logos/190x110/102.jpg
/logos/190x110/24.png
/logos/190x110/2.jpg
/logos/190x110/297.png
/logos/190x110/68.jpg
/logos/190x110/675.jpg
/logos/190x110/461.png
/logos/190x110/635.png
/logos/190x110/205.jpg
/logos/190x110/186.jpg
/logos/190x110/394.png
/logos/190x110/228.jpg
/logos/190x110/363.png
http://billing.giniko.com/img/google_play_available-a.png
http://billing.giniko.com/img/and.png
http://billing.giniko.com/img/google_play_available-g.png
http://billing.giniko.com/img/gtv1.png
images/facebook-giniko.png
http://www.statswebtown.com/includes/webstat.js
js/jquery.superfish.js
js/jquery.tipsy.js
js/script.js
http://www.statswebtown.com/includes/webstat.js
C:\>wmsauth
wmsAuthSign=c2VydmVyX3RpbWU9Mi8xNS8yMDE3IDExOjE2Oj E2IEFNJmhhc2hfdmFsdWU9eEVDdEZlVnNoU2o4QVIrckZvNnFP dz09JnZhbGlkbWludXRl
cz0xNDQw
confused.com
02-15-2017, 05:57 AM
c2VydmVyX3RpbWU9Mi8xNS8yMDE3IDExOjE2Oj E2IEFNJmhhc2hfdmFsdWU9eEVDdEZlVnNoU2o4QVIrckZvNnFP dz09JnZhbGlkbWludXRl
cz0xNDQw
https://www.base64decode.org/
server_time=2/15/2017 11:16:16 AM&hash_value=xECtFeVshSj8AR+rFo6qOw==&validminutes=1440
j_cool
02-17-2017, 03:07 PM
Ihry,
Look at this:
set url=http://live.tvplayer.com/cnn/5/prog_index.m3u8
streamlink --http-header "Cookie=CloudFront-Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDo vL2xpdmUudHZwbGF5ZXIuY29tLyoiLCJDb25kaXRpb24iOnsiR GF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0ODczODE 3ODJ9fX1dfQ__; CloudFront-Signature=aWc67QDE2vYFHi95pmQgtBU7h0QhvG~o-p8vb3O5Jh7~O2Ksecgyp-cL4KENfRvYgSVN39fb~SSVdCKXHcDiUJIX-1K~zL9lzWKjvXAg7ZEuMXAjjnIfR2RhzGN6Pf2KbOxLpjYp4zC 0STBskqrOKq-MvcrB49ZzItf6VS4k1Tmqv8ZUPgdOfhx-217REV0GZr8nFI2Ml4oQRDeyOvOXYv1sh-BpBxGyJlZWWvA4-kdCmeWXMnOvFUfNGrhj8CgxJwT4JW2dGTjC-jiaokd9bVDATLWA3CSVqoa6pdrgJ6GXRamEeMPFMDWw2wUqvcq uvdiOwmuovw6ayGkxYISiNQ__; CloudFront-Key-Pair-Id=APKAJGWDVCU5SXAPJELQ; _ga=GA1.2.2088142750.1487358541; __qca=P0-1081178523-1487358541153; _gat=1" --http-header "Referer=http://tvplayer.com/watch/cnninternationaleurope" --http-header "Accept-Encoding=gzip, deflate" --http-header "User-Agent= Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0" hls://%url% best
worked only after I provided "cookie" !
I got params from firefox extension Live HTTP Headers.
j_cool
02-17-2017, 03:35 PM
Here is how it works minimal:
It needs "cookie" only:
set url=http://live.tvplayer.com/cnn/5/prog_index.m3u8
streamlink --http-header "Cookie=CloudFront-Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDo vL2xpdmUudHZwbGF5ZXIuY29tLyoiLCJDb25kaXRpb24iOnsiR GF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0ODczODE 3ODJ9fX1dfQ__; CloudFront-Signature=aWc67QDE2vYFHi95pmQgtBU7h0QhvG~o-p8vb3O5Jh7~O2Ksecgyp-cL4KENfRvYgSVN39fb~SSVdCKXHcDiUJIX-1K~zL9lzWKjvXAg7ZEuMXAjjnIfR2RhzGN6Pf2KbOxLpjYp4zC 0STBskqrOKq-MvcrB49ZzItf6VS4k1Tmqv8ZUPgdOfhx-217REV0GZr8nFI2Ml4oQRDeyOvOXYv1sh-BpBxGyJlZWWvA4-kdCmeWXMnOvFUfNGrhj8CgxJwT4JW2dGTjC-jiaokd9bVDATLWA3CSVqoa6pdrgJ6GXRamEeMPFMDWw2wUqvcq uvdiOwmuovw6ayGkxYISiNQ__; CloudFront-Key-Pair-Id=APKAJGWDVCU5SXAPJELQ; _ga=GA1.2.2088142750.1487358541; __qca=P0-1081178523-1487358541153; _gat=1" --player "ffplay.exe -vf scale=854:480" hls://%url% best
C:\MISC\STREAMLINK>set url=http://live.tvplayer.com/cnn/5/prog_index.m3u8
C:\MISC\STREAMLINK>streamlink --http-header "Cookie=CloudFront-Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDo vL2xpdm
UudHZwbGF5ZXIuY29tLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxl c3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0ODczODE3ODJ9fX 1dfQ__; CloudFront-S
ignature=aWc67QDE2vYFHi95pmQgtBU7h0QhvG~o-p8vb3O5Jh7~O2Ksecgyp-cL4KENfRvYgSVN39fb~SSVdCKXHcDiUJIX-1K~zL9lzWKjvXAg7ZEuMXA
jjnIfR2RhzGN6Pf2KbOxLpjYp4zC0STBskqrOKq-MvcrB49ZzItf6VS4k1Tmqv8ZUPgdOfhx-217REV0GZr8nFI2Ml4oQRDeyOvOXYv1sh-BpBxGyJlZWWvA
4-kdCmeWXMnOvFUfNGrhj8CgxJwT4JW2dGTjC-jiaokd9bVDATLWA3CSVqoa6pdrgJ6GXRamEeMPFMDWw2wUqvcq uvdiOwmuovw6ayGkxYISiNQ__; Cloud
Front-Key-Pair-Id=APKAJGWDVCU5SXAPJELQ; _ga=GA1.2.2088142750.1487358541; __qca=P0-1081178523-1487358541153; _gat=1" --pl
ayer "ffplay.exe -vf scale=854:480" hls://http://live.tvplayer.com/cnn/5/prog_index.m3u8 best
[cli][info] Found matching plugin stream for URL hls://http://live.tvplayer.com/cnn/5/prog_index.m3u8
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)
[cli][info] Starting player: ffplay.exe -vf scale=854:480
j_cool
02-17-2017, 04:24 PM
And finally,
my way of doing the thing:
opens literally instantly, faster than streamlink.
set url=http://live.tvplayer.com/cnn/5/prog_index.m3u8
ffplay -headers "Cookie: CloudFront-Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDo vL2xpdmUudHZwbGF5ZXIuY29tLyoiLCJDb25kaXRpb24iOnsiR GF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0ODczODE 3ODJ9fX1dfQ__; CloudFront-Signature=aWc67QDE2vYFHi95pmQgtBU7h0QhvG~o-p8vb3O5Jh7~O2Ksecgyp-cL4KENfRvYgSVN39fb~SSVdCKXHcDiUJIX-1K~zL9lzWKjvXAg7ZEuMXAjjnIfR2RhzGN6Pf2KbOxLpjYp4zC 0STBskqrOKq-MvcrB49ZzItf6VS4k1Tmqv8ZUPgdOfhx-217REV0GZr8nFI2Ml4oQRDeyOvOXYv1sh-BpBxGyJlZWWvA4-kdCmeWXMnOvFUfNGrhj8CgxJwT4JW2dGTjC-jiaokd9bVDATLWA3CSVqoa6pdrgJ6GXRamEeMPFMDWw2wUqvcq uvdiOwmuovw6ayGkxYISiNQ__; CloudFront-Key-Pair-Id=APKAJGWDVCU5SXAPJELQ; _ga=GA1.2.2088142750.1487358541; __qca=P0-1081178523-1487358541153; _gat=1" -vf scale=854:480 %url%
C:\MISC\STREAMLINK>set url=http://live.tvplayer.com/cnn/5/prog_index.m3u8
C:\MISC\STREAMLINK>ffplay -headers "Cookie: CloudFront-Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDo vL2xpdmUudHZwbG
F5ZXIuY29tLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFu Ijp7IkFXUzpFcG9jaFRpbWUiOjE0ODczODE3ODJ9fX1dfQ__; CloudFront-Signature
=aWc67QDE2vYFHi95pmQgtBU7h0QhvG~o-p8vb3O5Jh7~O2Ksecgyp-cL4KENfRvYgSVN39fb~SSVdCKXHcDiUJIX-1K~zL9lzWKjvXAg7ZEuMXAjjnIfR2R
hzGN6Pf2KbOxLpjYp4zC0STBskqrOKq-MvcrB49ZzItf6VS4k1Tmqv8ZUPgdOfhx-217REV0GZr8nFI2Ml4oQRDeyOvOXYv1sh-BpBxGyJlZWWvA4-kdCmeW
XMnOvFUfNGrhj8CgxJwT4JW2dGTjC-jiaokd9bVDATLWA3CSVqoa6pdrgJ6GXRamEeMPFMDWw2wUqvcq uvdiOwmuovw6ayGkxYISiNQ__; CloudFront-Ke
y-Pair-Id=APKAJGWDVCU5SXAPJELQ; _ga=GA1.2.2088142750.1487358541; __qca=P0-1081178523-1487358541153; _gat=1" -vf scale=85
4:480 http://live.tvplayer.com/cnn/5/prog_index.m3u8
ffplay version 3.2.2 Copyright (c) 2003-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable
-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-li
bbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enabl
e-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-li
bopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-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-decklink --enable-zl
ib
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
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
[http @ 0301fa60] No trailing CRLF found in HTTP header. 0B f=0/0
Input #0, hls,applehttp, from 'http://live.tvplayer.com/cnn/5/prog_index.m3u8':
Duration: N/A, start: 80512.018144, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k
tbn, 50 tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 0
Stream #0:2: Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Metadata:
variant_bitrate : 0
No codec could be found with id 94215
[mpegts @ 049b31c0] PES packet size mismatch 275KB sq= 0B f=0/0
80565.93 A-V: -0.017 fd= 134 aq= 18KB vq= 329KB sq= 0B f=0/0
ihryjfbd
02-18-2017, 06:39 AM
I think streamlink is actually slower than livestreamer, it seems to take longer before it connects ands opens your player.
Any word on a kodi plugin for streamlink?
j_cool
02-18-2017, 09:07 AM
I am not using kodi, is there something you get with kodi that you don't get with PC ?
Streamlink is updated every day, I gave up on portable because it is worth geting new version every day.
We write about something here and they may fix it the next day.
Why not make a post on their page, if plugin would be of any use they would label it as an "enhancement" and "plugin request", and may be implemented.
ihryjfbd
02-19-2017, 09:43 AM
I use Kodi on Android
vBulletin® , Copyright ©2000-2025, Jelsoft Enterprises Ltd.