Closed JunioCalu closed 6 months ago
According to your config you mixing HLS mode with streaming rtmp output. That is not supported.
According to your config you mixing HLS mode with streaming rtmp output. That is not supported.
HLS mode works in combination with RTMP and live ingest when the HLS mode's ffplayout command line is executed directly in some command terminal. I conducted the following test:
ffmpeg command line used by the ffplayout process:
ffmpeg -hide_banner -nostats -v level+info -f live_flv -listen 1 -i rtmp://0.0.0.0:1942/live/stream -filter_complex "[0:v:0]fps=25,scale=1280:720,setdar=dar=1.778,zmq=b=tcp\\\\://'127.0.0.1\\:46410',drawtext@dyntext=text='',fade=in:st=0:d=0.5,null[v];movie=/usr/share/ffplayout/logo.png:loop=0,setpts=N/(FRAME_RATE*TB),format=rgba,colorchannelmixer=aa=0.7[l];[v][l]overlay=W-w-12:12:shortest=1[vout0];[0:a:0]anull,afade=in:st=0:d=0.5[aout0]" -map "[vout0]" -map "[aout0]" -c:v libx264 -crf 23 -x264-params keyint=50:min-keyint=25:scenecut=-1 -maxrate 6000k -bufsize 9600k -preset superfast -profile:v Main -level 3.1 -c:a aac -ar 44100 -b:a 128k -f flv rtmp://127.0.0.1/154c0b46-4b72-4387-b140-71f2f8dc48c8.stream
ffmpeg command line to stream to the ingestion server started:
ffmpeg -re -i filler.mp4 -vcodec libx264 -x264-params keyint=50:min-keyint=25:scenecut=-1 -acodec aac -ar 44100 -b:a 128k -crf 23 -preset superfast -tune zerolatency -profile:v Main -level 3.1 -f flv rtmp://127.0.0.1:1942/live/stream
Describe the bug
The live ingest function is not working when HLS mode is enabled, and I receive the sole error
[out#0/flv @ 0x560600731240] Error muxing a packet
. The live ingest function operates in stream mode; during a series of exhaustive tests in stream mode, I encountered some error results which can be summarized below and are expanded upon right after. I have also attached the complete log file and the ffplayout configuration file.Errors in stream mode:
"Conversion failed!"
"Encoder write error: broken pipe"
"Out of source loop"
"Error submitting a packet to the muxer: Broken pipe"
"timestamp discontinuity (stream id=257): -119071589, new offset= 8687972311"
Queue input is backward in time
Command line used to test the live ingest function in HLS mode and in stream mode:
ffmpeg -re -i filler.mp4 -vcodec libx264 -x264-params keyint=50:min-keyint=25:scenecut=-1 -acodec aac -ar 44100 -b:a 128k -crf 23 -preset superfast -tune zerolatency -profile:v Main -level 3.1 -f flv rtmp://127.0.0.1:1942/live/stream
Error log from the command line test:
Expanded error log for ffplayout stream mode:
Desktop/Server/Software (please complete the following information):
Config Settings:
Logging: