Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dmthomas/507bf1c9f4e68fd88995b05027ebabe8 to your computer and use it in GitHub Desktop.
Save dmthomas/507bf1c9f4e68fd88995b05027ebabe8 to your computer and use it in GitHub Desktop.
Apple February 2021 Tech Talks 1080p, 1440p, 2160p
#I broke the audio out separately because it's the same stream regardless of which video resolution you choose.
#Convert PyTorch models to Core ML
#audio for all
ffmpeg -i https://devstreaming-cdn.apple.com/videos/tech-talks/10154/1/98B3FF7B-F39A-43C3-BF80-D8C112A8B393/tech-talks-10154/aac/lc_192/aac_lc_192.m3u8 -c copy "Convert PyTorch models to Core ML temp.aac"
#h265 1080p Your mileage may vary, this video stream (1080p) seems to have an error on part 181 and the video freezes there
ffmpeg -i https://devstreaming-cdn.apple.com/videos/tech-talks/10154/1/98B3FF7B-F39A-43C3-BF80-D8C112A8B393/tech-talks-10154/hvc/1080p_5800/hvc_1080p_5800.m3u8 -c copy "Convert PyTorch models to Core ML (1080p) temp.mp4"
ffmpeg -i "Convert PyTorch models to Core ML (1080p) temp.mp4" -i "Convert PyTorch models to Core ML temp.aac" -c copy "Convert PyTorch models to Core ML (1080p).mp4"
#h265 1440p
ffmpeg -i https://devstreaming-cdn.apple.com/videos/tech-talks/10154/1/98B3FF7B-F39A-43C3-BF80-D8C112A8B393/tech-talks-10154/hvc/1440p_8100/hvc_1440p_8100.m3u8 -c copy "Convert PyTorch models to Core ML (1440p) temp.mp4"
ffmpeg -i "Convert PyTorch models to Core ML (1440p) temp.mp4" -i "Convert PyTorch models to Core ML temp.aac" -c copy "Convert PyTorch models to Core ML (1440p).mp4"
#h265 2160p
ffmpeg -i https://devstreaming-cdn.apple.com/videos/tech-talks/10154/1/98B3FF7B-F39A-43C3-BF80-D8C112A8B393/tech-talks-10154/hvc/2160p_16800/hvc_2160p_16800.m3u8 -c copy "Convert PyTorch models to Core ML (2160p) temp.mp4"
ffmpeg -i "Convert PyTorch models to Core ML (2160p) temp.mp4" -i "Convert PyTorch models to Core ML temp.aac" -c copy "Convert PyTorch models to Core ML (2160p).mp4"
#Improve Object Detection models in Create ML
#audio for all
ffmpeg -i https://devstreaming-cdn.apple.com/videos/tech-talks/10155/1/E4357EE9-AB03-470C-ADF1-500E3177195C/tech-talks-10155/aac/lc_192/aac_lc_192.m3u8 -c copy "Improve Object Detection models in Create ML temp.aac"
#h265 1080p
ffmpeg -i https://devstreaming-cdn.apple.com/videos/tech-talks/10155/1/E4357EE9-AB03-470C-ADF1-500E3177195C/tech-talks-10155/hvc/1080p_5800/hvc_1080p_5800.m3u8 -c copy "Improve Object Detection models in Create ML (1080p) temp.mp4"
ffmpeg -i "Improve Object Detection models in Create ML (1080p) temp.mp4" -i "Improve Object Detection models in Create ML temp.aac" -c copy "Improve Object Detection models in Create ML (1080p).mp4"
#h265 1440p
ffmpeg -i https://devstreaming-cdn.apple.com/videos/tech-talks/10155/1/E4357EE9-AB03-470C-ADF1-500E3177195C/tech-talks-10155/hvc/1440p_8100/hvc_1440p_8100.m3u8 -c copy "Improve Object Detection models in Create ML (1440p) temp.mp4"
ffmpeg -i "Improve Object Detection models in Create ML (1440p) temp.mp4" -i "Improve Object Detection models in Create ML temp.aac" -c copy "Improve Object Detection models in Create ML (1440p).mp4"
#h265 2160p
ffmpeg -i https://devstreaming-cdn.apple.com/videos/tech-talks/10155/1/E4357EE9-AB03-470C-ADF1-500E3177195C/tech-talks-10155/hvc/2160p_16800/hvc_2160p_16800.m3u8 -c copy "Improve Object Detection models in Create ML (2160p) temp.mp4"
ffmpeg -i "Improve Object Detection models in Create ML (2160p) temp.mp4" -i "Improve Object Detection models in Create ML temp.aac" -c copy "Improve Object Detection models in Create ML (2160p).mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment