Results 1 to 10 of 12

Thread: FFMPEG streaming to Justin.tv/Twitch.tv

Threaded View

  1. #1
    Join Date
    Jul 2007
    Location
    Mount Pleasant, PA USA
    Beans
    19
    Distro
    Ubuntu 10.10 Maverick Meerkat

    FFMPEG streaming to Justin.tv/Twitch.tv

    Does anyone have any advice on how to make this work? I am using a modified script found using google.
    Running Ubuntu 11.10 with Unity

    Code:
    #Streaming screen to Justin.tv
    streaming() {
    INRES="1920x1080" # input resolution
    OUTRES="1280x720"
    FPS="30" # target FPS
    QUAL="medium"  # 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 x11grab -s "$INRES" -r "$FPS" -i :0.0 -ab 22050\
    # -f alsa -ac 2 -i pulse -vcodec libx264 -s "$OUTRES" -level 30 -f mpegts \
    # -acodec libmp3lame -ac 1  \
    # -f flv "$URL"
    
    
    
    
    ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0  -ab 96k \
        -f alsa -ac 2 -i pulse -vcodec libx264 -crf 30 -vpre "$QUAL" -s "1280x720" \
        -acodec libmp3lame -ar 44100 -threads 8 \
        -f flv "$URL"
    }
    After modifying slighly I have it working, somewhat, it doesn't throw errors in the command line, but I don't get any video coming through when I load my channel on Juistin.tv.

    Any sugestions? Pointers? and please don't say Webcamstudio, ffmpeg is far lighter weight, and all things considered easier to deal with. Aside from this little hiccup of course.
    Last edited by SAKeeler; April 7th, 2012 at 03:14 PM. Reason: Added OS version and desktop manager detail

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •