Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (102)

Sur d’autres sites (23218)

  • using ffmpeg to live stream to Youtube

    6 septembre 2018, par Bruno Picardi

    I created an app in Windows to live stream the content of all the screen or only a portion of it (a Windows) to Youtube.
    I used this app but I still have a problem I’m not able to understand.
    I use different internet connections : ADSL at home 30Mbit, or ADSL router outside ad 2.5Mbit.
    In any case, after starting ffmpeg to live stream the fps strats growing from 300 to 2000 the transmission is perfect for some minutes, then the fps slowdown until a very low value for the bitrate of the Youtube streaming. The image is no more clear and disappears, the audio is still working. The CPU is still under the 35-40% of usage.
    ffmpeg must be restarted to get another 5-7 minutes of good transmission.
    I tryed changing the ffmpeg command line but nothing seams to influence this behaviour.
    This is because I still don’t undestand Where the problem is. Any suggestions ?
    A log of a single session (aprox. 20 minutes) is available here http://www.mbinet.it/public/ffmpeg-20180106-094446.txt
    Another (aprox. 5 min.) is available here http://www.mbinet.it/public/ffmpeg-20180106-105529.txt
    Thanks

  • ffmpeg streaming (mpegts vs rtmp) error

    7 octobre 2017, par Thomas

    This works :

    ffmpeg -i  test.mp4 -framerate 30 -video_size 1280x720 -c:v libx264 -preset veryfast -maxrate 1984k -bufsize 3968k -vf "format=yuv420p" -g 60 -f mpegts udp://x.x.x.x:1935/video/test

    but this doesn’t :

    ffmpeg -i  test.mp4 -framerate 30 -video_size 1280x720 -c:v libx264 -preset veryfast -maxrate 1984k -bufsize 3968k -vf "format=yuv420p" -g 60 -f flv rtmp://x.x.x.x:1935/video/test

    I get :

    RTMP_Connect0, failed to connect socket. 10061 (Unknown error)
    rtmp://x.x.x.x:1935/video/test: Unknown error occurred

    yes, I have a server (Nimble) that is actively listening to RTMP connections and it doesn’t see any RTMP streams incoming.

    Even when running ffmpeg on the server machine with 127.0.0.1, I get the same error.

    Does anyone have an idea why ?

  • Repeat RTMP with FFMPEG when stream already started

    1er avril 2017, par John Doee

    I have an NGINX RTMP Server setup, unfortunately the playback of the rtmp source is only possible for a few seconds after the specific stream has been published.

    Though connections that have already been opened e.g. Transcoding through FFMPEG works fine without any problems even for a few hours but they have to be started within a few seconds after the video signal is being published.

    So while the stream is transcoded and hence definitely available, FFProbe can’t find the specific stream ending with the following output (Debug mode) :

    [rtmp @ 0x7fadbdc0b5e0] Proto = rtmp, path = /live/4_9_lLV7GhFmTG0w, app = live, fname = 4_9_lLV7GhFmTG0w

    [rtmp @ 0x7fadbdc0b5e0] Server bandwidth = 5000000

    [rtmp @ 0x7fadbdc0b5e0] Client bandwidth = 5000000

    [rtmp @ 0x7fadbdc0b5e0] New incoming chunk size = 4096

    [rtmp @ 0x7fadbdc0b5e0] Creating stream...

    [rtmp @ 0x7fadbdc0b5e0] Sending play command for ’4_9_lLV7GhFmTG0w’

    [rtmp @ 0x7fadbdc0b5e0] Deleting stream...

    rtmp ://***:80/live/4_9_lLV7GhFmTG0w : Input/output error

    (Executing exactly the same command within two or three seconds after / before initial publishing of the video signal succeeds. Transcoding processes last for the whole duration of the stream) It seems that there is missing some header data that is used to identify the current stream after a few seconds.

    Any suggestions on this ? Thank you very much for your help in advance.