Videos like
- https://{ORGID}.sharepoint.com/personal/{USERID}/_layouts/15/stream.aspx?id={VIDEOID}%2Emp4&ga=1
- https://{ORGID}.sharepoint.com/:v:/p/{USERID}/{VIDEOID}
- Run video from SharePoint corporate account or OneDrive,
- In Chrome open
Web inspector
and inNetwork
filter byvideomanifest
- Copy this url
- Run
ffmpeg -i "%URL%" -codec copy outputvideo.mp4
For anyone using ffmepg by default ffmpeg automatically picks the first or lowest index, stream. SharePoint has the lowest quality streams being the first index and the highest quality streams are the higher indexes.
If you'd like higher quality streams use ffprobe then ffmpeg.
ffprobe -i "VIDEO_MANIFEST_URL" -show_streams
Identify the best video and audio stream indexes
then
ffmpeg -i "VIDEO_MANIFEST_URL_HERE" -map 0:3 -map 0:7 -c copy output.mp4
(Replace 3 and 7 with your desired video and audio stream indexes)