View Single Post
  #2  
Old 03-01-2015, 10:38 AM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Livestreamer question


Quote:
Originally Posted by cerncern View Post
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

Last edited by biezom : 03-01-2015 at 11:59 AM.
Reply With Quote