Tiny Core Extensions > TCE Q&A Forum
Starting FFMPEG at boot
nygauk:
I am having trouble starting ffmpeg from bootlocal.sh, i.e. it will not start - leaving no evidence of attempted execution. It starts ok in .profile but I do not want another instance everytime I log in. Can anyone help? Thanks. (•‿•)
Rich:
Hi nygauk
You need to post more details than that to receive good answers.
For instance, if you are trying to stream over the network, are you
sure the network is already up?
Maybe if you post the command you are using, it will provide a clue.
Leee:
Remember that bootlocal.sh runs as root, whereas .profile (for user tc) runs as user tc. So, in addition to possible timing issues ("network not up yet" and such), the effective user might be an issue.
Rich:
Hi nygauk
Leees comment reminds me of something else. You might have
to specify the path when running from bootlocal.sh.
You may have to start it like this:
--- Code: ---/usr/local/bin/ffmpeg
--- End code ---
instead of just:
--- Code: ---ffmpeg
--- End code ---
nygauk:
Thanks for your helpful replies. I have tried all possibilities re users, absolute paths but to no avail. I am streaming video from an ip camera, and all that works fine. I have isolated down to a basic problem, i.e
If I add to the bottom of bootlocal.sh:
--- Code: ---ls -l /usr/local/bin/ffmpeg > /home/tc/test.txt
--- End code ---
- I can see ffmpeg in its directory.
However, if I add:
--- Code: ---/usr/local/bin/ffmpeg > /home/tc/test.txt
--- End code ---
- test .txt is empty when it should contain the ffmpeg info spiel. Alas nothing!
Thanks
[Edit]: Added code tags. Rich
Navigation
[0] Message Index
[#] Next page
Go to full version