Live Streaming showing "Stream has not started yet" from ffmpeg and OBS

Type

Live Streaming

What is the error message?

“Stream has not started yet.”

What is the issue you’re encountering

I am trying to stream to my Live Input using ffmpeg as well as OBS

What steps have you taken to resolve the issue?

I’ve tried to stream multiple times using ffmpeg as well as OBS but I am not able to see the streamed video even after 30 mins.

Streaming is not working for any of my liveinputs here is one ID: 4d57f4823ad8a0c4845a87b0a92617ff

It used to work find with ffmpeg using the same flags but it stopped working since last 20 hours and is causing a production outage

What are the steps to reproduce the issue?

FFmpeg Command:

(venv) ➜ load-tester git:(main) ✗ ffmpeg -i ‘path_to_file/EF2324C9-5784-4600-A7C8-EEA44D2F9670.mp4’
-c:v libx264 -b:v 3000k -c:a aac -b:a 128k -f flv
rtmps://live.cloudflare.com:443/live/LIVE_INPUT_KEY
ffmpeg version 7.1 Copyright (c) 2000-2024 the FFmpeg developers
built with Apple clang version 16.0.0 (clang-1600.0.26.4)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.1_3 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=‘-Wl,-ld_classic’ --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.100 / 61. 19.100
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘/Users/nitanshu/clutch/load-tester/EF2324C9-5784-4600-A7C8-EEA44D2F9670.mp4’:
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.76.100
Duration: 01:00:01.00, start: 0.000000, bitrate: 3135 kb/s
Stream #0:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, 2999 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0#0:0 (h264 (native) → h264 (libx264))
Stream #0:1#0:1 (aac (native) → aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x131006370] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x131006370] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 0x131006370] 264 - core 164 r3108 31e19f9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - x264, the best H.264/AVC encoder - VideoLAN - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=3000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to ‘rtmps://live.cloudflare.com:443/live/KEY’:
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf61.7.100
Stream #0:0(und): Video: h264 ([7][0][0][0] / 0x0007), yuv420p(tv, progressive), 1920x1080, q=2-31, 3000 kb/s, 30 fps, 1k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc61.19.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/3000000 buffer size: 0 vbv_delay: N/A
Stream #0:1(und): Audio: aac (LC) ([10][0][0][0] / 0x000A), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
encoder : Lavc61.19.100 aac
frame= 7781 fps= 49 q=29.0 size= 99101KiB time=00:04:19.30 bitrate=3130.9kbits/s speed=1.63x

Other that this I also tried streaming from OBS and facing the same problem. I used the exact config for OBS as mentioned in the cloudflare documentation.

Screenshot of the error

It seems to be working on it’s own after 20 hours.

But still when I am streaming from a US location, I am facing the same issue for live input ID: f445dc62cde456e4d54205fd4e76acb3

Though it is working fine now when streaming from Europe or India.