Tiny Core Extensions > TCE Q&A Forum

Starting FFMPEG at boot

<< < (3/4) > >>

Rich:
Hi nygauk
Good job. That's one of the nice things about Linux. So many
ways of solving the same problem.

Rich:
Hi Leee
I fixed the typos in TC14 through TC17 for both x86 and x86_64.

nygauk:
Solved - thanks  Rich and Leee

Using  2>&1 I discovered the network is not up yet, i.e.
"[tcp @ 0x9570400] Connection to tcp://192.168.1.21:554?timeout=0 failed: No route to host"

As I mentioned I solved it via .profile. Works great!

Tinycore is a great distribution and a brilliant concept. I love it for all sorts of reasons.

Thanks again. David (from up North in the UK)

Rich:
Hi nygauk
Placing this at the end of your bootlocal.sh should work too:

--- Code: ---CNT=0
until ifconfig | grep -q Bcast
do
    [ $((CNT++)) -gt 60 ] && break || sleep 1
done

# Place your ffmpeg command here.
--- End code ---
It will wait up to 60 seconds or until your network is up
before executing your ffmpeg command.

Like I said "So many ways of solving the same problem."

nygauk:
I don't like waiting, but this snippet broadens my tc knowledge, and I have saved it for possible future use. I will try it out; thank you Rich; there doesn't seem to be a thumbs up emoji so (•‿•)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version