Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

Livestreamer question

(http://stream-recorder.com/forum/showthread.php?t=19433)

cerncern 03-01-2015 03:42 AM

Livestreamer question


 
Hi everyone, I have two questions on using livestreamer:


Is there a way to get livestreamer saves a stream in a file changing final letter of file instead of overwritten it:

e.g. I have video001.flv and livestreamer detect that file and then saves as video002.flv automatically.



Is it possible to specify a time of recording? e.g 1 hour, 2 hours, etc.



Thanks in advance.

biezom 03-01-2015 10:38 AM

Re: Livestreamer question


 
Quote:

Originally Posted by cerncern (Post 74571)
Hi everyone, I have two questions on using livestreamer:


Is there a way to get livestreamer saves a stream in a file changing final letter of file instead of overwritten it:

e.g. I have video001.flv and livestreamer detect that file and then saves as video002.flv automatically.



Is it possible to specify a time of recording? e.g 1 hour, 2 hours, etc.



Thanks in advance.

on linux you can use timeout and $(date +%Y-%m-%d_%H-%M)

but i don't know the equivalent on windows

e.g. download for one hour and Write stream data to video.flv with date

Code:

timeout 1h livestreamer "hds://http://dsn6jqegjeixj.cloudfront.net/ondaazul-live/video/manifest.f4m" best -o video$(date +%Y-%m-%d_%H-%M).flv


All times are GMT -6. The time now is 06:20 PM.