diff options
author | breadcat | 2020-06-19 12:23:15 +0100 |
---|---|---|
committer | breadcat | 2020-06-19 12:23:15 +0100 |
commit | 70bb5d5a801428b0fb390abf79f19ffcf5e29c67 (patch) | |
tree | b9fd7990156bd58bc38d58f91829c05933215102 /content/posts/manually-fixing-malformed-aac-bitstreams.md | |
parent | 0f9a31348079c0a061bcc194912e75cc1c07bc1f (diff) | |
download | blog.minskio.co.uk-70bb5d5a801428b0fb390abf79f19ffcf5e29c67.tar.gz blog.minskio.co.uk-70bb5d5a801428b0fb390abf79f19ffcf5e29c67.tar.bz2 blog.minskio.co.uk-70bb5d5a801428b0fb390abf79f19ffcf5e29c67.zip |
Simple migration of existing posts to hugo format
Diffstat (limited to 'content/posts/manually-fixing-malformed-aac-bitstreams.md')
-rw-r--r-- | content/posts/manually-fixing-malformed-aac-bitstreams.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/content/posts/manually-fixing-malformed-aac-bitstreams.md b/content/posts/manually-fixing-malformed-aac-bitstreams.md new file mode 100644 index 0000000..120a1aa --- /dev/null +++ b/content/posts/manually-fixing-malformed-aac-bitstreams.md @@ -0,0 +1,16 @@ +--- +title: "Manually fixing malformed AAC bitstreams" +date: 2019-10-22T09:21:00 +tags: ["formats", "guides", "media", "snippets", "software", "windows"] +--- + +Recently while running `youtube-dl` on Windows, `ffmpeg` wasn't found in `%PATH%`, so it was unable to automatically fix the AAC bitstream. The file will play fine, but in the interest of completeness I still wanted this to be applied to my new files. + +Not wanting to alter my path variable for a one-off fix, I investigated the source code a little and found the `FFmpegFixupM3u8PP` [function here](https://github.com/ytdl-org/youtube-dl/blob/3089bc748c0fe72a0361bce3f5e2fbab25175236/youtube_dl/postprocessor/ffmpeg.py#L577). + +With that, you can now run: +``` +ffmpeg -i "input_file.mp4" -c copy -f mp4 -bsf:a aac_adtstoasc "output_file.mp4" +``` + +And you're done.
\ No newline at end of file |