Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
What is the purpose of your issue?
currently FFmpegFixupM3u8PP will run if using hlsnative and audio is aac.
https://github.com/rg3/youtube-dl/blob/cdd1ce92c46167c12514a061609308112e79ea84/youtube_dl/YoutubeDL.py#L1947
https://github.com/rg3/youtube-dl/blob/cdd1ce92c46167c12514a061609308112e79ea84/youtube_dl/postprocessor/ffmpeg.py#L541
Thus the processor will be invoked on existing downloaded files even those have been already processed before (if youtube-dl is called with a list of urls, and not overwriting). This makes the url list not resume-able (logically can resume, skipping the download but the post process still run and takes time, thus make the skip useless).
Can this be prevented by some sort of file renaming/ADTS detection beforehand so that the post process is run only once when a list is being resumed?
attached the
ffprobeoutput of a fragment before and after running-bsf:a aac_adtstoascfragment
a.ts.gz
ffprobe -show_streams -print_format json a.tsa.ts.txt
ffmpeg -i a.ts -c copy -bsf:a aac_adtstoasc a.mp4ffprobe -show_streams -print_format json a.mp4a.mp4.txt