Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#21
|
|||
|
|||
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. |
#22
|
|||
|
|||
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 |
#23
|
|||
|
|||
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. |
#24
|
|||
|
|||
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) |
#25
|
|||
|
|||
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 |
#26
|
|||
|
|||
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 |
#27
|
|||
|
|||
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 |
#28
|
|||
|
|||
Re: Can somebody help get filmon rtmp code to play with livestreamer? |
#29
|
|||
|
|||
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. Last edited by j_cool : 11-13-2016 at 04:25 PM. Reason: BBC's original high resolution: 854:480, original text not edited |
#30
|
|||
|
|||
Re: Can somebody help get filmon rtmp code to play with livestreamer? |
Tags: filmon, livestreamer |
Thread Tools | |
Display Modes | |
|
|