Advertisement
xtinaaaa

Untitled

Feb 16th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. sudo /sbin/sysctl fs.pipe-max-size=1048576
  2. rm -f /tmp/temp_audio.nut
  3. rm -f /tmp/temp_video.h264
  4. mkfifo /tmp/temp_audio.nut
  5. mkfifo /tmp/temp_video.h264
  6. /home/pi/special/ffmpeg/ffmpeg -re -f alsa -acodec pcm_s32le -i mic_sv -acodec aac -y -f nut /tmp/temp_audio.nut &
  7. /usr/bin/raspivid -w 640 -h 480 -v -fps 10 -b 1000000 -o /tmp/temp_video.h264 -t 0 &
  8. /home/pi/special/ffmpeg/ffmpeg -loglevel debug \
  9. -framerate 10 \
  10. -thread_queue_size 1024 \
  11. -i /tmp/temp_video.h264 \
  12. -thread_queue_size 1024 \
  13. -i /tmp/temp_audio.nut \
  14. -ab 24k \
  15. -c:v copy \
  16. -c:a copy \
  17. -max_interleave_delta 2000000 \
  18. -report \
  19. -f flv rtmp://209.85.230.23/live2/KEY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement