Skip to content

Parufito/Raspberry-Cam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Raspberry-Cam - Scripts per a la Raspberry Cam

Scripts for the raspberry cam Tested on Raspberry Pi A+ and PiNoir Camera

start_mjpg.sh

Start stream based in pictures with MJPG

start_youtubelive.sh

creates stream for a Youtube live event

Steps

Use the cross compiled ffmpeg for arm, here is the instruction and the download for the compiled ffmpeg:
  1. Install Raspbian and download the crosscompiled ffmpeg to your Computer: https://drive.google.com/file/d/0B0OC20ApqKZ_YVB3NHF6VU9XTUE/edit?usp=sharing
  2. Transfer the arm.tar to raspberry PI and Untar with

    # tar -xvf arm.tar.gz

  3. move to the new folder

    cd ./arm/bin

  4. Start the Livestream 720p:

    raspivid -o - -t 0 -w 1280 -h 720 -fps 25 -b 4000000 -g 50 | ./ffmpeg -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://http://a.rtmp.youtube.com/live2/XXyourIDhereXX

Adjust the bitrate with -b 4000000..whatever you like (1500-4000kbit/s wants youtube for 720p)

Source: https://plus.google.com/+WolfgangSchlatter/posts/2L5fRou17AX

About

Scripts per a la Raspberry Cam

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages