Quote:
Originally Posted by napretep
hi, the code you posted assumes livestreamer is in the same dir as php.exe, so I had to edit the path for livestreamer.
BUT how do u hard-interrupt the recording (force stop it)? Ctrl + C gives an error
Code:
php recme1.php
Warning: date(): It is not safe to rely on the system's timezone settings. You a
re *required* to use the date.timezone setting or the date_default_timezone_set(
) function. In case you used any of those methods and you are still getting this
warning, you most likely misspelled the timezone identifier. We selected the ti
mezone 'UTC' for now, but please set date.timezone to select your timezone. in C
:\php\recme1.php on line 4
Starting livestreamer...
[download][..0-09-2015-hanoi-cab2.ts] Written 5.0 MB (32s @ 158.3 KB/s) T
raceback (most recent call last):
File "<string>", line 6, in <module>
File "__main__.py", line 128, in <module>
^C
File "__main__livestreamer__.py", line 9, in <module>
c:\php>^X File "livestreamer_cli\main.py", line 890, in main
File "livestreamer_cli\console.py", line 45, in msg
IOError: [Errno 22] Invalid argument
thanx
|
for time zone warning you can download PHP.ini here
PHP.ini
and save it in php folder
to interrupt recording Ctrl+C several times or close command prompt
i think if you want to make task schedule you can create .bat file like this
Code:
@ echo on
call "C:\PHP\php.exe" "C:\php-scripts\recme1.php"
pause
:end
and use task scheduler but i'm not an expert on windows