nginx-rtmp-module
nginx-rtmp-module copied to clipboard
Pushing interlaced fragments to RTMP
Hi, i got a bash script which pushes .ts files to rtmp then served as .m3u8 streams.
This is the command i use
ffmpeg -re -i "path to ts file" -movflags +faststart -y -f h264 -c:v copy -map 0:0 -c:a aac -map 0:1? -f flv -flvflags no_duration_filesize "rtmp://server_url/hls/stream_name"
Since the server doesnt have a gpu and cpu doesnt have transcoding abilities i cant transcode the video, i can only copy video stream. This code works most of the time but on some streams i only get audio.
I tried checking why this is happening and only difference i found is that those streams that doesnt work are yuv420p(tv, bt709, top first) , the ones that work are yuv420p(progressive) . Appearently "top first" means stream is interleaved, is there a way to get this working without transcoding the stream?