I have videos in a folder unprocessed and i’m also using inotifywait
to check the folder for new sub folders for videos and process them automatically….
Problem i have is with ffmpeg
and stuttering audio in segments while video is smooth. I notice it’s just a small stutter like gibberish for 0.1ms in random segments but no desync. It’s annoying to have this small stutter. Also source MP4 file has smooth audio and video.
I have 100K+ Videos pending HLS processing and files have different dimensions i added the checks for it in the script but ffmpeg keeps messing with me :(. I’m quiet new to ffmpeg…
ffmpeg -y -loglevel error -i "$mp4_file"
-threads "$CPU_THREADS"
-c:v copy -c:a copy
-hls_time 4 -hls_segment_type mpegts
-hls_segment_filename "$variant_dir/segment.720.%03d.ts"
-hls_playlist_type vod
-hls_flags independent_segments
-f hls "$variant_dir/index.m3u8" 2>> "$ffmpeg_log"
2