I followed this tut on muo and got the live streaming to youtube working great. In my use case however I would like the timeout feature to be set. The command I was given is

raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | 
avconv -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i 
/dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 
-strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/

After simply updating -t 60000 there was no timeout. So I tried moving it to before the -o but there was still no timeout. If I try a simple raspivid command like

raspivid -t 60000 -o test.h264

then the timeout is working great.

I also tried using the time and pause feature -td 30000,60000 found on this Comprehensive Raspberry Pi Camera Module Quick Reference but again doesn't work in conjunction when adding the codec only when using with simple commands.

Can anyone please help me understand what I am doing wrong?

Thank-you :D

| improve this question | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.