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 > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 07-07-2014, 05:20 AM
sebastian sebastian is offline
Member
 
Join Date: Jun 2007
Posts: 81
sebastian is on a distinguished road
Default

Batch file loop for retrying to record a stream


Hi guys,

I'd like to record unattendendly an m3u8 stream. During my last tries the stream went offline during its broadcast, but than went online again after a few minutes.

So I'd like to record it via a batch file loop, so that I don't have to restart it again:

Code:
@echo off
:start
ffmpeg -i http://streamlocation.m3u8 -c copy filename.ts
timeout 120
goto :start
This should work, but the batch file is missing an option to generate a new filename (maybe filename.ts added with a sequence number) each time the loop starts again. Anyone with an idea?

Best
Sebastian
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 11:19 PM.


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