Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #31  
Old 11-14-2016, 05:09 PM
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?


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

Last edited by j_cool : 11-14-2016 at 06:02 PM.
Reply With Quote
  #32  
Old 11-14-2016, 08:11 PM
johng johng is offline
Junior Member
 
Join Date: Nov 2016
Posts: 2
johng is on a distinguished road
Default

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


.low.stream will give you 86500 seconds or 24 hours
Reply With Quote
  #33  
Old 11-14-2016, 08:34 PM
lajvguy lajvguy is offline
Senior Member
 
Join Date: Nov 2014
Posts: 203
lajvguy is on a distinguished road
Default

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.
Reply With Quote
  #34  
Old 11-14-2016, 11:09 PM
nguyenthanhtam9723 nguyenthanhtam9723 is offline
Member
 
Join Date: Oct 2016
Posts: 33
nguyenthanhtam9723 is on a distinguished road
Default

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


http://caobanlong.org/cao-ban-long-la-gi/
Reply With Quote
  #35  
Old 11-15-2016, 12:57 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?


Laj,

you are terribly wrong about nobody on this forum can figure it out.
Reply With Quote
  #36  
Old 11-15-2016, 06:03 PM
Moonspell Moonspell is offline
Senior Member
 
Join Date: Sep 2016
Posts: 227
Moonspell is on a distinguished road
Default

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


Quote:
Originally Posted by j_cool View Post
Laj,

you are terribly wrong about nobody on this forum can figure it out.
let people believe what they wanna Is always funny to read such ungry statements, though!
Reply With Quote
  #37  
Old 11-15-2016, 07:42 PM
lajvguy lajvguy is offline
Senior Member
 
Join Date: Nov 2014
Posts: 203
lajvguy is on a distinguished road
Default

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.
Reply With Quote
  #38  
Old 11-16-2016, 02:31 PM
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?


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.
Reply With Quote
  #39  
Old 11-16-2016, 04:43 PM
ihryjfbd ihryjfbd is offline
Senior Member
 
Join Date: Oct 2015
Posts: 212
ihryjfbd is on a distinguished road
Default

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
Reply With Quote
  #40  
Old 11-16-2016, 05:42 PM
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?


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.
Reply With Quote
Reply Post New Thread
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 01:04 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons