View Single Post
  #57  
Old 01-16-2017, 09:03 AM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

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


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/li...1a71b11fce016d
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
Reply With Quote