-
-
Save dmthomas/315e0929c799a4965a9bce0619f568f3 to your computer and use it in GitHub Desktop.
#I broke the audio out separately because it's the same stream regardless of which video resolution you choose. | |
#Audio for all | |
ffmpeg -i https://events-delivery.apple.com/1402uekefjejgldkvaqrqxgjmtehwhez/vod_main_FmkzTaRUQHbdgFMjhhirKrarNznPoHEC/audio_main_en_2ch_aac_128/prog_index.m3u8 -c copy "Apple Special Event, March 2022 temp.aac" | |
#Dolby Atmos Audio... wut? Audio file must end in .mp4 for ffmpeg to download it correctly. If you want to use Dolby Atmos audio modify the second line of any video format section to use the .mp4 audio file in the merge command. | |
ffmpeg -i https://events-delivery.apple.com/1402uekefjejgldkvaqrqxgjmtehwhez/vod_main_FmkzTaRUQHbdgFMjhhirKrarNznPoHEC/audio_main_en_16ch_atmos_640/prog_index.m3u8 -c copy "Apple Special Event, March 2022 temp atmos.mp4" | |
#h264 1080p | |
ffmpeg -i https://events-delivery.apple.com/1402uekefjejgldkvaqrqxgjmtehwhez/vod_main_FmkzTaRUQHbdgFMjhhirKrarNznPoHEC/sdr_avc_1080p_8500/prog_index.m3u8 -c copy "Apple Special Event, March 2022 (1080p) temp.mp4" | |
ffmpeg -i "Apple Special Event, March 2022 (1080p) temp.mp4" -i "Apple Special Event, March 2022 temp.aac" -c copy "Apple Special Event, March 2022 (1080p).mp4" | |
#h265 1080p | |
ffmpeg -i https://events-delivery.apple.com/1402uekefjejgldkvaqrqxgjmtehwhez/vod_main_FmkzTaRUQHbdgFMjhhirKrarNznPoHEC/sdr_hvc_1080p_7000/prog_index.m3u8 -c copy "Apple Special Event, March 2022 (1080p) temp.mp4" | |
ffmpeg -i "Apple Special Event, March 2022 (1080p) temp.mp4" -i "Apple Special Event, March 2022 temp.aac" -c copy "Apple Special Event, March 2022 (1080p).mp4" | |
#h265 1440p | |
ffmpeg -i https://events-delivery.apple.com/1402uekefjejgldkvaqrqxgjmtehwhez/vod_main_FmkzTaRUQHbdgFMjhhirKrarNznPoHEC/sdr_hvc_1440p_8100/prog_index.m3u8 -c copy "Apple Special Event, March 2022 (1440p) temp.mp4" | |
ffmpeg -i "Apple Special Event, March 2022 (1440p) temp.mp4" -i "Apple Special Event, March 2022 temp.aac" -c copy "Apple Special Event, March 2022 (1440p).mp4" | |
#h265 2160p | |
ffmpeg -i https://events-delivery.apple.com/1402uekefjejgldkvaqrqxgjmtehwhez/vod_main_FmkzTaRUQHbdgFMjhhirKrarNznPoHEC/sdr_hvc_2160p_16800/prog_index.m3u8 -c copy "Apple Special Event, March 2022 (2160p) temp.mp4" | |
ffmpeg -i "Apple Special Event, March 2022 (2160p) temp.mp4" -i "Apple Special Event, March 2022 temp.aac" -c copy "Apple Special Event, March 2022 (2160p).mp4" | |
#If you want both stereo and Atmos audio tracks, replace 2160p with your resolution of choice | |
ffmpeg -i "Apple Special Event, March 2022 (2160p) temp.mp4" -i "Apple Special Event, March 2022 temp atmos.mp4" -i "Apple Special Event, March 2022 temp.aac" -map 0 -map 1 -map 2 -metadata:s:a:0 title="Dolby Atmos" -metadata:s:a:0 language=eng -metadata:s:a:1 title="Stereo" -metadata:s:a:1 language=eng -c copy "Apple Special Event March 2022 (2160p).mp4" |
I didn't think of adding both audio streams! It works beautifully in IINA. Lists the type of audio track you're selecting.
Thanks Casey, I only dared to get into ffmpeg at all from listening to you talk about it on ATP.
Aww, that's awesome! Seems like the student is on the verge of becoming the master! :)
Does the sdr_hvc_2160p_16800
in the URL imply there's an HDR version of the video somewhere as well...? (tried just changing the URL, but didn't work)
Does the
sdr_hvc_2160p_16800
in the URL imply there's an HDR version of the video somewhere as well...? (tried just changing the URL, but didn't work)
No. This format for the name they use because there are some HDR videos. There were a few WWDC sessions produced in HDR. If you search my project for "HDR" you can find them.
https://github.com/dmthomas/AppleVideoDownloadScripts/search?q=hdr
Why not add both audio streams to the resulting
mp4
?Unfortunately, QuickTime Player doesn't seem to read the title; only the language:
But at least they're both there.