Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function streaming() {
- INRES="1600x900" # input resolution
- OUTRES="640x360"
- FPS="15" # target FPS
- QUAL="fast" # one of the many FFMPEG preset
- STREAM_KEY="$1"
- URL="rtmp://live.justin.tv/app/$STREAM_KEY" #flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
- ffmpeg -f alsa -ac 2 -i hw:0,0 -acodec libmp3lame -ab 96k \ -f x11grab -s "$INRES" -r "$FPS" -i :0.0 \
- -vcodec libx264 -b:v 600k -minrate 300k -maxrate 700k -bufsize 1835k -s "$OUTRES" -level 30 -f mpegts \
- -f flv "$URL"
- }
- I am trying to 1. capture and stream video at a max bitrate of 600 KB/SEC - not sure if that is happening, secondly I get an error when I execute script:
- Input #0, alsa, from 'hw:0,0':
- Duration: N/A, start: 1323835311.943045, bitrate: N/A
- Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
- [NULL @ 0x10de640] Unable to find a suitable output format for ' -f'
- -f: Invalid argument
- TY FOR YOUR HELP! :D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement