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
  #1  
Old 07-23-2016, 01:32 AM
arrache88 arrache88 is offline
Junior Member
 
Join Date: Jul 2016
Posts: 3
arrache88 is on a distinguished road
Default

Rtmpdump in loop for


Hello guys

Suppose I know that the following rtmpdump command works :

rtmpdump -r rtmp://5.10.77.106/hls-vod/links -a vod -W http://www.website.com/flowplayer-3.2.12.swf -p "http://www.website.com/" -y mp4:/links/number12.mp4 -o %fileName%

Now what I want to do to use loop for to find the working playlist like this :

Code:
FOR /L %%A IN (1,1,20) DO (
 rtmpdump -r rtmp://5.10.77.106/hls-vod/links -a vod -W http://www.website.com/flowplayer-3.2.12.swf -p "http://www.website.com/" -y mp4:/links/number%%A.mp4 -o %fileName%
)

I noticed when the counter reach number 12 , it doesnt start downloading why ?? please help me . I want look for correct playlist with loop for

Cheers
Reply With Quote
  #2  
Old 07-23-2016, 04:40 AM
-D3n1s- -D3n1s- is offline
Member
 
Join Date: Feb 2015
Location: http://futur3design3r.wixsite.com/d3n1s
Posts: 74
-D3n1s- is on a distinguished road
Default

Re: Rtmpdump in loop for


Code:
@echo off

set firstchannel=1
set lastchannel=30

:loop

echo.
echo Downloading Stream ^#%firstchannel%
echo.

rtmpdump -r "rtmp://5.10.77.106/hls-vod/links" -a "vod" -W "http://www.website.com/flowplayer-3.2.12.swf" -p "http://www.website.com/" -y "mp4:/links/number%firstchannel%.mp4" -o "Video%firstchannel%"

set /a firstchannel=%firstchannel%+1

cls

if not #%firstchannel%#==#%lastchannel%# goto loop

goto end

:end

exit
Reply With Quote
  #3  
Old 07-24-2016, 12:45 AM
arrache88 arrache88 is offline
Junior Member
 
Join Date: Jul 2016
Posts: 3
arrache88 is on a distinguished road
Default

Re: Rtmpdump in loop for


Thank you sir ! I found the solution with the command FOR /L %%A IN (1,1,20) DO (
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:20 AM.


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