Today, I found a contradiction to the "Stream with VLC to get it to play" rule. Here is the ffmpeg -i output for the stream that won't play, even after I run it through VLC:
- Code:
ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20180830
configuration: --enable-static --disable-shared --disable-ffplay --enable-libmp3lame --enable-libass --enable-librtmp --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --enable-libspeex --enable-libaom --disable-encoder=libaom_av1 --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --arch=x86_64 --enable-runtime-cpudetect --target-os=mingw64 --cross-prefix=x86_64-w64-mingw32- --enable-gpl --pkg-config=pkg-config --bindir='/jenkins/workspace/FFmpeg - Win64/target'
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Input #0, flv, from 'http://127.0.0.1:8080/livestream':
Metadata:
encoding_tool : VLC 3.0.23
encoder : Lavf58.76.100
Duration: 00:00:00.00, start: 1368.367000, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(progressive), 426x240 [SAR 1:1 DAR 71:40], 512 kb/s, 30.30 fps, 29.97 tbr, 1k tbn
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 64 kb/s
At least one output file must be specified
Update: I realized that I forgot to enable MPEG-TS transcoding. That's why it wouldn't work. This post can be ignored or deleted.