Last active
March 29, 2017 04:25
-
-
Save wanwanco/8d9a98b71706ee86c3deb66e56eec616 to your computer and use it in GitHub Desktop.
RaspberryPi3でKTV-FSUSB2/V3(K1508)を使った録画方法その2(recfsusb2i、cron) ref: http://qiita.com/JHiyama/items/af7813ed10bc3fd8eddb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cd ~/ | |
| $ mkdir recfsusb2i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cd recfsusb2i/src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ make B25=1 | |
| $ cp recfsusb2i /usr/local/bin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ recfsusb2i 27 10 test.ts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| /usr/local/bin/recfsusb2i 16 1800 `date "+%Y%m%d_%H%M%S"`.ts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ crontab -e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 29 23 * * 4 /home/pi/script.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment