Kiiro_Yakumo

bashrc ffmpeg command 1

Oct 15th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. streaming() {
  2. INRES="640x480" # input resolution
  3. OUTRES="640x480"
  4. FPS="30" # target FPS
  5. QUAL="fast" # one of the many FFMPEG preset
  6. STREAM_KEY="$1"
  7. URL="rtmp://live.twitch.tv/app/$STREAM_KEY" #flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
  8.  
  9.  
  10. ffmpeg -f v4l2 -s "$INRES" -r "$FPS" -i /dev/video0 -ab 44100 \
  11. -f alsa -ac 2 -i default -vcodec libx264 -pix_fmt yuv420p -crf 30 -preset "$QUAL" -s "640x480" \
  12. -acodec libmp3lame -ar 44100 -threads 0 \
  13. -f flv "$URL"
  14. }
Advertisement
Add Comment
Please, Sign In to add comment