Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Can somebody help get filmon rtmp code to play with livestreamer?

(http://stream-recorder.com/forum/showthread.php?t=22496)

lajvguy 11-02-2016 01:57 AM

Can somebody help get filmon rtmp code to play with livestreamer?


 
Can somebody help get filmon rtmp code to play with livestreamer? Starts then cuts off after 30 seconds. Thanks in advance!

Code:

livestreamer "rtmp://live-1130.la2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d388022e9c04270a279056777b43ac166056d0c2876d8cdbdf224ec59313aca45a56e8c94bfbf2609b7e84d30079fbc7833abf3e32348e402d6b40427743755c107e5541702b3fed62f3e06ae0704422461d7ba108526e43b1dcee2ba73234156dbde5e3458d80105fbef588d4563372a30da75e704dce4271/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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Quote:

Originally Posted by ihryjfbd (Post 88431)
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Quote:

Originally Posted by j_cool (Post 88444)
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

Code:

livestreamer "hls://http://live-1183.gv2.edge.filmon.com/live/3191.low.stream/playlist.m3u8?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d3ea8e8f151e193bfaffd6e8f9fadcc78e80cadf8006c0b3076fbe9d488e0540c5bb87b3206e31b61d8ebee55c398a2e094469a5f78da0bf0317bd646a7c16eab52497798b095128bc8e7dc0b498e3246a21c5e4ad91fab1046ec19823f0cc2fd82c3e6daef4d8e8a9053c04735b276dac7725c9604fecbfe7" best

lajvguy 11-03-2016 12:47 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Can expert help get livestreamer filmon rtmp or hls code for HRTV (channel 694)? It starts but cuts off. Thank you in advance!

Code:

livestreamer "rtmp://live-1130.la2.edge.filmon.com/live/?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d39befbf192f1401c0d568d83f462b6c699513a3f395dd5023c9c133334797ca4f77db2302a4a06117715ca2e05454fbed8efffae5f28f8dcfcb5e7a41cbbe32dd12e3cde188c942296a05240b2a27ceee5c1b39cca9a2e1ba87104fb73f90035919fe166df0f34a5e52fc5167c856568b7c02eef76ddb9e38/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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
@ 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

Code:

livestreamer "hls://http://live-1130.la2.edge.filmon.com/live/694.low.stream/playlist.m3u8?id=035bca1a71b11fce016d28acd3dbea51cbc96ddfe5b9ed3f8fe3286df6a738d3168b62ad801308c5e8e867479d2a637b934c09c888545e718783e1498471b9efed4fac83fd0304f0c19e14244d3345de75d7c9a2a47d9e42811667d7d0dff9d61e8bcf846f412e0199a128268ce34bcbddd0df629bd72c6e15925cf4e80802132392ce60756f90e98d06240cda040281a60fd16ef22ab348" best

lajvguy 11-03-2016 03:48 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
@ 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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Quote:

Originally Posted by j_cool (Post 88474)
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
@ 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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
@ 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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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...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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
@ j cool,

I found a way to get the token that works:

Code:

livestreamer "rtmp://live-1130.la2.edge.filmon.com/live/?id=0ad5aac39bb13fbeebcf86db1cd226fcacc18b82883cf1f546dca95fe264fa92154e3a7883cca6b654c781cda01d3b5779f967d6fec65ad8ce9f687344f8b352720c8b856b4ce2affaf4acdcbb3b7e3cc7e3ead58f267e7c011af15d02d645d230521b0c79e55e351311c5016058e642c1416786cb94537c99ecf72785eab7ec8a1cf1a79e10ab20cb786292c8af7620b927d1bf129a4e12/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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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/sho...57&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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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/...4127f2c6cbfff7

BBC 4

vlc http://live-889.ld5.edge.filmon.com/...97f0f29f25dc36

lajvguy 11-09-2016 09:57 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
@ j cool,

BBC NEWS:

Code:

http://live-997.ld5.edge.filmon.com/live/27.low.stream/playlist.m3u8?id=0ad5aac39bb13fbe99b44ca18704be931d1f27d88e9abc044ff24a2a1e65756ce28f47fb55ecbf9935ccc30ee5e0edd9933f4ff762e5f9d1899902bfcc70473ba439a5bebc7482daa2b2dfce7436597fc33c99dcd7a25eaadea77569c83f8cce3ce43593bcac4e2b28c9e9e066170af7b44484727c94bbb6962178d98335ae76fb14bbaf01508d5f27e86df13f464197aa112197e98f180271e87cca0710b275d99343956ae8189b0de88ab0f2a2449e

j_cool 11-10-2016 11:05 AM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
http://caobanlong.org/cong-dung-cua-cao-ban-long/

j_cool 11-13-2016 02:38 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
@ j cool,

Will this work with http://www.filmon.com/tv/hrtv?

j_cool 11-14-2016 04:09 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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...b5c2bba7d31107


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...6e89aa1903c92e


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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
.low.stream will give you 86500 seconds or 24 hours

lajvguy 11-14-2016 07:34 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
@ 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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
http://caobanlong.org/cao-ban-long-la-gi/

j_cool 11-14-2016 11:57 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Laj,

you are terribly wrong about nobody on this forum can figure it out.

Moonspell 11-15-2016 05:03 PM

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Quote:

Originally Posted by j_cool (Post 88678)
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
@ 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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
Try something like this??? not sure if it'd keep adding to the output.mp4 though or overwrite it.

Code:

@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

Re: Can somebody help get filmon rtmp code to play with livestreamer?


 
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.


All times are GMT -6. The time now is 11:33 PM.