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