Hallo
ich bräuchte Hilfe sonst verwerde ich ganz langsam irre !!!!
Auf meinem PC ist ffmpeg und avconv installiert
USB webcam angeschlossen Test mit fswebcam und avconv bilder zu erzeugen funktioniert
Wie bekomme ich es jetzt hin ein Livestream über ffmpeg oder avconv
* auf meinem Raspi schiebe ich das per raspistill zu ffmepg
raspivid -n -o - -vs -ex auto -awb auto -t 0 -a 12 -ae 20,0x00,0x8080FF -a "Frondside" -e -fps 25 -w 1280 -h 720 -b 2000000 | ffmpeg -thread_queue_size 1024 -threads 0 -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 -metadata title="Raspicam" -f flv $RTMP_URL/$STREAM_KEY
das funktioniert 100%
aber bei Ubuntu /Debian finde ich keine lösung Beispiel
ffmpeg -s 640x420 -re -i plughw:1.1 -f alsa -i default -ab 96k -ac 2 -vcodec libx264 -acodec libmp3lame -ar 44100 -pix_fmt yuv420p -threads 0 -s 640x480 -g 50 -strict experimental -f flv $RTMP_URL/$STREAM_KEY
das mein letztes scripte
avconv -f video4linux2 -r 25 -i /dev/video0 -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec mpeg4 -acodec aac -ab 96k -pix_fmt yuv420p -g 50 -strict experimental -f flv $RTMP_URL/$STREAM_KEY
Hat jemand irgendeine IDEE?
danke
Broadcast livestream zu Youtube oder periscope
- Lord_Carlos
- Beiträge: 5578
- Registriert: 30.04.2006 17:58:52
- Lizenz eigener Beiträge: GNU Free Documentation License
- Wohnort: Dänemark
Re: Broadcast livestream zu Youtube oder periscope
Bekommst du eine Fehlermeldung?
Code: Alles auswählen
╔═╗┬ ┬┌─┐┌┬┐┌─┐┌┬┐╔╦╗
╚═╗└┬┘└─┐ │ ├┤ │││ ║║
╚═╝ ┴ └─┘ ┴ └─┘┴ ┴═╩╝ rockt das Forum!
Re: Broadcast livestream zu Youtube oder periscope
meldung YOUTUBE
14:55 Keine Daten Kein aktiver Stream
YouTube empfängt derzeit keine Daten für diesen Stream. Wenn du der Meinung bist, dass ein Fehler vorliegt, solltest du nachprüfen, ob dein Stream tatsächlich übertragen wird und ob der korrekte Streamschlüssel eingerichtet ist.
pi@tux:~ $ avconv -f video4linux2 -r 25 -i /dev/video0 -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec mpeg4 -acodec aac -ab 96k -pix_fmt yuv420p -g 50 -strict experimental -f flv $RTMP_URL/$STREAM_KEY
avconv version 11.9-6:11.9-1~deb8u1+rpi1, Copyright (c) 2000-2017 the Libav developers
built on Apr 26 2017 06:57:28 with gcc 4.9.2 (Raspbian 4.9.2-10)
[video4linux2 @ 0x10c39a0] The driver changed the time per frame from 1/25 to 30303/1000000
[video4linux2 @ 0x10c39a0] Estimating duration from bitrate, this may be inaccurate
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 1494334503.436416, bitrate: 162201 kb/s
Stream #0.0: Video: rawvideo, yuyv422, 640x480, 162201 kb/s, 33 fps, 1000k tbn
[s16le @ 0x10cf140] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, s16le, from '/dev/zero':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #1.0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
14:55 Keine Daten Kein aktiver Stream
YouTube empfängt derzeit keine Daten für diesen Stream. Wenn du der Meinung bist, dass ein Fehler vorliegt, solltest du nachprüfen, ob dein Stream tatsächlich übertragen wird und ob der korrekte Streamschlüssel eingerichtet ist.
pi@tux:~ $ avconv -f video4linux2 -r 25 -i /dev/video0 -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec mpeg4 -acodec aac -ab 96k -pix_fmt yuv420p -g 50 -strict experimental -f flv $RTMP_URL/$STREAM_KEY
avconv version 11.9-6:11.9-1~deb8u1+rpi1, Copyright (c) 2000-2017 the Libav developers
built on Apr 26 2017 06:57:28 with gcc 4.9.2 (Raspbian 4.9.2-10)
[video4linux2 @ 0x10c39a0] The driver changed the time per frame from 1/25 to 30303/1000000
[video4linux2 @ 0x10c39a0] Estimating duration from bitrate, this may be inaccurate
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 1494334503.436416, bitrate: 162201 kb/s
Stream #0.0: Video: rawvideo, yuyv422, 640x480, 162201 kb/s, 33 fps, 1000k tbn
[s16le @ 0x10cf140] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, s16le, from '/dev/zero':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #1.0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s