Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg - "Fixing malformed AAC bitstream" eventually corrupts the audio or deletes it #15802

Closed
FoxMcloud5655 opened this issue Mar 8, 2018 · 9 comments

Comments

@FoxMcloud5655
Copy link

@FoxMcloud5655 FoxMcloud5655 commented Mar 8, 2018

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.03.03. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.03.03

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ffmpeg-location', 'ffmpeg\\bin', '--cache-dir', 'cache', '--sub-lang', 'enUS', '--write-sub', '--embed-subs', '-a', 'download.txt', '-o', '%(uploader)s/%(title)s.%(ext)s', '-v']
[debug] Batch file urls: ['http://www.crunchyroll.com/my-hero-academia/episode-8-bakugos-start-line-730741']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.03.03
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: ffmpeg 3.2, ffprobe 3.2, rtmpdump 2.3
[debug] Proxy map: {}
[Crunchyroll] 730741: Downloading webpage
[Crunchyroll] 730741: Downloading media info for 360p
[Crunchyroll] 730741: Downloading stream info for 360p
[Crunchyroll] 730741: Downloading m3u8 information
[Crunchyroll] 730741: Downloading media info for 480p
[Crunchyroll] 730741: Downloading stream info for 480p
[Crunchyroll] 730741: Downloading m3u8 information
[Crunchyroll] 730741: Downloading media info
[Crunchyroll] 730741: Downloading subtitles for English (US)
[Crunchyroll] 730741: Downloading subtitles for Español
[Crunchyroll] 730741: Downloading subtitles for Português (Brasil)
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video subtitles to: Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk
[debug] Invoking downloader on 'https://v.vrv.co/evs/dc471c23d036198ed4cbf85ac4fa172b/assets/be815e002421ab5e1fde2581f2a2d449_3123419.mp4/index-v1-a1.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly92LnZydi5jby9ldnMvZGM0NzFjMjNkMDM2MTk4ZWQ0Y2JmODVhYzRmYTE3MmIvYXNzZXRzLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MjA3MTE0NTJ9fX1dfQ__&Signature=mOk3qzrkfmQHIBm5qcWETQiceYjT3ZTAGg8zrrTiQtZAMHNOvWto4dz9tGG7BawawJsizVM-CSnSSs0C-mYpjd0vq0KczjxAZcQJU-bbWP35SSx~al5FHkrgtj~~0QXZv70I6k1OLNkXqJh01~41-mDekX~SMY8KZhf79OmbUM2~R6iSjS89VMoD5Aej49YQj4r6DSyP-BQQvIFC43bo9U9MhsOu~7nln3MU2YmBUkdZaDGpkFx2YExlMkyA5wF9Egypcc8ety5Bfwsww-3O3QyQUTsixR9QhMmcCKZu01AFCE90zTrSn~vkaOg0iGo2oJHG6uONe84DviE3gZDiCg__&Key-Pair-Id=APKAJKQQ2INNHTYFB44A'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 147
[download] Destination: Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4
[download] 100% of 161.95MiB in 02:27
[debug] ffmpeg command line: "ffmpeg\bin\ffprobe" -show_streams "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4"
[ffmpeg] Fixing malformed AAC bitstream in "Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4"
[debug] ffmpeg command line: "ffmpeg\bin\ffmpeg" -y -i "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4" -c copy -f mp4 "-bsf:a" aac_adtstoasc "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.temp.mp4"
[ffmpeg] Embedding subtitles in 'Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4'
[debug] ffmpeg command line: "ffmpeg\bin\ffmpeg" -y -i "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4" -i "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk" -map 0 -c copy -map "-0:s" "-c:s" mov_text -map "1:0" "-metadata:s:s:0" "language=eng" "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.temp.mp4"
Deleting original file Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk (pass -k to keep)

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ffmpeg-location', 'ffmpeg\\bin', '--cache-dir', 'cache', '--sub-lang', 'enUS', '--write-sub', '--embed-subs', '-a', 'download.txt', '-o', '%(uploader)s/%(title)s.%(ext)s', '-v']
[debug] Batch file urls: ['http://www.crunchyroll.com/my-hero-academia/episode-8-bakugos-start-line-730741']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.03.03
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: ffmpeg 3.2, ffprobe 3.2, rtmpdump 2.3
[debug] Proxy map: {}
[Crunchyroll] 730741: Downloading webpage
[Crunchyroll] 730741: Downloading media info for 360p
[Crunchyroll] 730741: Downloading stream info for 360p
[Crunchyroll] 730741: Downloading m3u8 information
[Crunchyroll] 730741: Downloading media info for 480p
[Crunchyroll] 730741: Downloading stream info for 480p
[Crunchyroll] 730741: Downloading m3u8 information
[Crunchyroll] 730741: Downloading media info
[Crunchyroll] 730741: Downloading subtitles for English (US)
[Crunchyroll] 730741: Downloading subtitles for Español
[Crunchyroll] 730741: Downloading subtitles for Português (Brasil)
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video subtitles to: Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk
[debug] Invoking downloader on 'https://v.vrv.co/evs/dc471c23d036198ed4cbf85ac4fa172b/assets/be815e002421ab5e1fde2581f2a2d449_3123419.mp4/index-v1-a1.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly92LnZydi5jby9ldnMvZGM0NzFjMjNkMDM2MTk4ZWQ0Y2JmODVhYzRmYTE3MmIvYXNzZXRzLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MjA3MTE0NTJ9fX1dfQ__&Signature=mOk3qzrkfmQHIBm5qcWETQiceYjT3ZTAGg8zrrTiQtZAMHNOvWto4dz9tGG7BawawJsizVM-CSnSSs0C-mYpjd0vq0KczjxAZcQJU-bbWP35SSx~al5FHkrgtj~~0QXZv70I6k1OLNkXqJh01~41-mDekX~SMY8KZhf79OmbUM2~R6iSjS89VMoD5Aej49YQj4r6DSyP-BQQvIFC43bo9U9MhsOu~7nln3MU2YmBUkdZaDGpkFx2YExlMkyA5wF9Egypcc8ety5Bfwsww-3O3QyQUTsixR9QhMmcCKZu01AFCE90zTrSn~vkaOg0iGo2oJHG6uONe84DviE3gZDiCg__&Key-Pair-Id=APKAJKQQ2INNHTYFB44A'
[download] Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4 has already been downloaded
[download] 100% of 154.30MiB
[debug] ffmpeg command line: "ffmpeg\bin\ffprobe" -show_streams "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4"
[ffmpeg] Fixing malformed AAC bitstream in "Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4"
[debug] ffmpeg command line: "ffmpeg\bin\ffmpeg" -y -i "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4" -c copy -f mp4 "-bsf:a" aac_adtstoasc "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.temp.mp4"
[ffmpeg] Embedding subtitles in 'Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4'
[debug] ffmpeg command line: "ffmpeg\bin\ffmpeg" -y -i "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4" -i "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk" -map 0 -c copy -map "-0:s" "-c:s" mov_text -map "1:0" "-metadata:s:s:0" "language=eng" "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.temp.mp4"
Deleting original file Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk (pass -k to keep)

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ffmpeg-location', 'ffmpeg\\bin', '--cache-dir', 'cache', '--sub-lang', 'enUS', '--write-sub', '--embed-subs', '-a', 'download.txt', '-o', '%(uploader)s/%(title)s.%(ext)s', '-v']
[debug] Batch file urls: ['http://www.crunchyroll.com/my-hero-academia/episode-8-bakugos-start-line-730741']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.03.03
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: ffmpeg 3.2, ffprobe 3.2, rtmpdump 2.3
[debug] Proxy map: {}
[Crunchyroll] 730741: Downloading webpage
[Crunchyroll] 730741: Downloading media info for 360p
[Crunchyroll] 730741: Downloading stream info for 360p
[Crunchyroll] 730741: Downloading m3u8 information
[Crunchyroll] 730741: Downloading media info for 480p
[Crunchyroll] 730741: Downloading stream info for 480p
[Crunchyroll] 730741: Downloading m3u8 information
[Crunchyroll] 730741: Downloading media info
[Crunchyroll] 730741: Downloading subtitles for English (US)
[Crunchyroll] 730741: Downloading subtitles for Español
[Crunchyroll] 730741: Downloading subtitles for Português (Brasil)
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video subtitles to: Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk
[debug] Invoking downloader on 'https://v.vrv.co/evs/dc471c23d036198ed4cbf85ac4fa172b/assets/be815e002421ab5e1fde2581f2a2d449_3123419.mp4/index-v1-a1.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKi9ldnMvZGM0NzFjMjNkMDM2MTk4ZWQ0Y2JmODVhYzRmYTE3MmIvYXNzZXRzLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MjA3MTE3Njd9fX1dfQ__&Signature=KY-KzGxS4BrVoyMrbFMvPWc4Q7KWd~DebX6brsxN4TRPbwT6g9QpTr~BELYdJOA2upqtkPbvmYhcAxVVgl7HYKD9EX5NgAgoW-4peWWEu6zBFnmgJy0PO5ED8IcI-BHXobgZUZ62PNfbZPBMR5cqfYM5X~zvbP7qVMPFWwM9xUkNLstXmX4UFM5aFmAaBjDPjMo5GOskwzhgn52DV8gVT1SnCgN4vllxm6NkYLLxLvJqbMbXAuYLYpTCTGrs3eVHRUDNzQEvqQKwiplO2g7dryJjqqOgQDDP9hKVUUpM3KxQiLNhVn5bhWswv9KxTa-F4RoGiiVc5TWc6TAOybKvfQ__&Key-Pair-Id=APKAJKQQ2INNHTYFB44A'
[download] Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4 has already been downloaded
[download] 100% of 154.30MiB
[debug] ffmpeg command line: "ffmpeg\bin\ffprobe" -show_streams "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4"
[ffmpeg] Fixing malformed AAC bitstream in "Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4"
[debug] ffmpeg command line: "ffmpeg\bin\ffmpeg" -y -i "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4" -c copy -f mp4 "-bsf:a" aac_adtstoasc "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.temp.mp4"
[ffmpeg] Embedding subtitles in 'Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4'
[debug] ffmpeg command line: "ffmpeg\bin\ffmpeg" -y -i "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4" -i "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk" -map 0 -c copy -map "-0:s" "-c:s" mov_text -map "1:0" "-metadata:s:s:0" "language=eng" "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.temp.mp4"
Deleting original file Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk (pass -k to keep)

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ffmpeg-location', 'ffmpeg\\bin', '--cache-dir', 'cache', '--sub-lang', 'enUS', '--write-sub', '--embed-subs', '-a', 'download.txt', '-o', '%(uploader)s/%(title)s.%(ext)s', '-v']
[debug] Batch file urls: ['http://www.crunchyroll.com/my-hero-academia/episode-8-bakugos-start-line-730741']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.03.03
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: ffmpeg 3.2, ffprobe 3.2, rtmpdump 2.3
[debug] Proxy map: {}
[Crunchyroll] 730741: Downloading webpage
[Crunchyroll] 730741: Downloading media info for 360p
[Crunchyroll] 730741: Downloading stream info for 360p
[Crunchyroll] 730741: Downloading m3u8 information
[Crunchyroll] 730741: Downloading media info for 480p
[Crunchyroll] 730741: Downloading stream info for 480p
[Crunchyroll] 730741: Downloading m3u8 information
[Crunchyroll] 730741: Downloading media info
[Crunchyroll] 730741: Downloading subtitles for English (US)
[Crunchyroll] 730741: Downloading subtitles for Español
[Crunchyroll] 730741: Downloading subtitles for Português (Brasil)
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video subtitles to: Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk
[debug] Invoking downloader on 'https://v.vrv.co/evs/dc471c23d036198ed4cbf85ac4fa172b/assets/be815e002421ab5e1fde2581f2a2d449_3123419.mp4/index-v1-a1.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKi9ldnMvZGM0NzFjMjNkMDM2MTk4ZWQ0Y2JmODVhYzRmYTE3MmIvYXNzZXRzLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MjA3MTE3Njd9fX1dfQ__&Signature=KY-KzGxS4BrVoyMrbFMvPWc4Q7KWd~DebX6brsxN4TRPbwT6g9QpTr~BELYdJOA2upqtkPbvmYhcAxVVgl7HYKD9EX5NgAgoW-4peWWEu6zBFnmgJy0PO5ED8IcI-BHXobgZUZ62PNfbZPBMR5cqfYM5X~zvbP7qVMPFWwM9xUkNLstXmX4UFM5aFmAaBjDPjMo5GOskwzhgn52DV8gVT1SnCgN4vllxm6NkYLLxLvJqbMbXAuYLYpTCTGrs3eVHRUDNzQEvqQKwiplO2g7dryJjqqOgQDDP9hKVUUpM3KxQiLNhVn5bhWswv9KxTa-F4RoGiiVc5TWc6TAOybKvfQ__&Key-Pair-Id=APKAJKQQ2INNHTYFB44A'
[download] Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4 has already been downloaded
[download] 100% of 137.34MiB
[debug] ffmpeg command line: "ffmpeg\bin\ffprobe" -show_streams "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4"
[ffmpeg] Embedding subtitles in 'Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4'
[debug] ffmpeg command line: "ffmpeg\bin\ffmpeg" -y -i "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.mp4" -i "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk" -map 0 -c copy -map "-0:s" "-c:s" mov_text -map "1:0" "-metadata:s:s:0" "language=eng" "file:Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.temp.mp4"
Deleting original file Funimation\My Hero Academia Episode 8 – Bakugo's Start Line.enUS.tree trunk (pass -k to keep)

Description of your issue, suggested solution and other information

If one tries to download a file, whether it be from YouTube, Crunchyroll, or otherwise, successive downloads will delete the audio after some time. I believe it is from ffmpeg trying to fix a "corrupt" AAC audio stream when it's actually just fine, as you can see from the logs above. The 3rd run will remove the audio (or corrupt it, not sure which) of the downloaded video, upon which you can see in the 4th run that it no longer exists or sees that it's there.

Does youtube-dl run ffprobe to see if the downloaded files are fine? If so, maybe a simple solution would be to add an option to disable verification of downloaded streams. I'm not sure on how most of this works, but that's my two cents.

@Mr-Jake
Copy link

@Mr-Jake Mr-Jake commented Mar 9, 2018

Try to upgrade ffmpeg 3.2 to the newer 3.4.2.

To disable fixing the aac stream use: --fixup warn

@FoxMcloud5655
Copy link
Author

@FoxMcloud5655 FoxMcloud5655 commented Mar 9, 2018

I will try both of these and test again. Thank you for the quick reply!

I was hesitant to turn this into a bug report, but I do have one question. I know it may not be a widespread issue, but would it be prudent to include this parameter as a default option instead of fixing it up by default?

EDIT: I guess I should have taken more action on my part by upgrading ffmpeg before submitting this. Sorry about that. Again, I'll test and see if either of these suggestions help me.

@FoxMcloud5655
Copy link
Author

@FoxMcloud5655 FoxMcloud5655 commented Mar 9, 2018

Updating ffmpeg to 3.4.2 still makes it detect the AAC stream as malformed and will eventually delete it.

The option --fixup warn does work and prevents the stream from being fixed, whether it actually fixes it or not. Since this option does warn the person that a stream may be corrupt or formed incorrectly, maybe it would be good to set warn as a default option in the next update instead of automatically fixing it? Your call, doesn't matter to me.

Either way, this has solved my problem. Thank you for the information. This program is probably the best one I've ever found, so thank you for your hard work and for keeping it up-to-date!

@Nii-90
Copy link
Contributor

@Nii-90 Nii-90 commented Mar 9, 2018

A) The deletion of the video/audio streams at the end of processing has absolutely nothing to do with FFmpeg. It's youtube-dl that cleans up the streams after having FFmpeg mux them together. The deletion message even tells you that if you want to keep the original streams around, you have to use the -k parameter.

B) The AAC fixup is not autodetected by probing anything. It's required whenever certain types of remuxing occur, because the AAC bitstream has to be manipulated in order to correctly mux into MP4 and related containers. Right from the FFmpeg documentation:

2.1 aac_adtstoasc

Convert MPEG-2/4 AAC ADTS to an MPEG-4 Audio Specific Configuration bitstream.

This filter creates an MPEG-4 AudioSpecificConfig from an MPEG-2/4 ADTS header and removes the ADTS header.

This filter is required for example when copying an AAC stream from a raw ADTS AAC or an MPEG-TS container to MP4A-LATM, to an FLV file, or to MOV/MP4 files and related formats such as 3GP or M4A. Please note that it is auto-inserted for MP4A-LATM and MOV/MP4 and related formats. 

Note the requirement when copying from MPEG-TS. HLS streams use MPEG-TS as their payload container (not sure if DASH does as well, but it wouldn't surprise me). There is no way to escape that, and even if youtube-dl wasn't passing -bsf:a aac_adtstoasc by default, FFmpeg would still automatically insert it whenever the output format is MP4 or related.

The problem (whatever it is here; why are you re-running the process four times?) is more that youtube-dl does all of these steps - applying the bitstream filter to the AAC stream, embedding subtitles, embedding metadata) in extra consecutive passes instead of in one pass at the very end when all the data has been collected. Doing it the way youtube-dl currently does adds needless extra time to the entire process, because it remuxes the output file two or three times in a row. And if audio somehow is going missing during this process, it's likely because of all these extra remuxing steps, not anything FFmpeg is doing.

@FoxMcloud5655
Copy link
Author

@FoxMcloud5655 FoxMcloud5655 commented Mar 9, 2018

Let me start out by explaining why I re-run the process multiple times. When downloading videos from Crunchyroll, I input a playlist. Instead of finding every single video URL and putting it into a text file for processing, I just put in the name of the anime that I want to download, and youtube-dl does the rest. I start the download at work, and it gets through about 1/4 of them before I either have to leave or pack up my laptop to go somewhere else, hence why I just re-run my batch file full of parameters whilst I do other things and it processes files multiple times.

I may not know much about video and audio formats, but I can tell you that Crunchyroll does not use DASH and it does not have to mux the video and audio streams as separate files together, as it is served as one file, but you should know this already by looking at my logs posted above.

Also, after testing by making FFmpeg remux the file about 20 times using youtube-dl (very unnecessary, I know, it's just for testing) and telling youtube-dl to not fix up the AAC bitstream using --fixup warn, the audio was not deleted or corrupt, so somewhere along the line, FFmpeg eventually makes the audio unplayable with multiple passes of it trying to fix something.

Regardless, my issue was fixed by using --fixup warn in my parameters.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 9, 2018

Use --download-archive.

@FoxMcloud5655
Copy link
Author

@FoxMcloud5655 FoxMcloud5655 commented Mar 9, 2018

Ah, so that's what that option is for... I guess I should have experimented with it. Does this require any other params to store the ID's, or does this option store the ID's inside the file without any further params?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 9, 2018

No, only a filename for an archive file. Archive file stores everything needed.

@FoxMcloud5655
Copy link
Author

@FoxMcloud5655 FoxMcloud5655 commented Mar 9, 2018

Very good to know. Thank you very much for this information! Sorry that it had to be in a bug report, and my first one at that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.