2017-04-21 4 views
0

Heute habe ich versucht, ffmpeg auf meinem Debian 8.3 Server zu Livestream 24/7 Stunden verwenden. Es funktioniert jedoch nicht.ffmpeg youtube Livestream funktioniert nicht

#! /bin/bash 

INRES="1280x1024" # input resolution (The resolution of the program you want to stream!) 
OUTRES="1024x790" # Output resolution (The resolution you want your stream to be at) 
FPS="60" # target FPS 
QUAL="ultrafast" 
# one of the many FFMPEG presets that can be used 
# If you have low bandwidth, put the qual preset on 'ultrafast' (upload bandwidth) 
# If you have medium bandwitch put it on normal to medium or fast 
STREAM_KEY="hidden" # this is your streamkey 




ffmpeg -f "file.avi" -s "$INRES" -r "$FPS" -i :0.0 \ 
-f alsa -ac 2 -i pulse -vcodec libx264 -s "$OUTRES" \ 
-acodec libmp3lame -ab 128k -ar 44100 -threads 0 \ 
-f flv "rtmp://a.rtmp.youtube.com/live2" 

es mir die Ausgabe

Unknown Eingabeformat gibt: 'file.avi'

Antwort

1

Diese

ffmpeg -f "file.avi" ... 

sollte

ffmpeg -i "file.avi" ... 
+0

Dank sein, funktioniert :) – Select

Verwandte Themen