snobu / destreamer

Save Microsoft Stream videos for offline enjoyment.
MIT License
2.36k stars 442 forks source link

Fatal Error - both destreamer and ffmpeg fails #456

Open gg4u opened 1 year ago

gg4u commented 1 year ago

First of all thank you for the tool!

Not yet able to get it to work, hope you can help.

Objective: I want to download a video while streaming. The video is shared on MS Teams, but the admin allowed for read only.

I cannot stay constantly online, and access to offline content is necessary in my situation (and also will consume less energy and be more environmentally friendly!)

I followed the steps here: https://vball.fun/2021/12/10/download-view-only-video-from-microsoft-sharepoint/index.html and, about the location where to fetch the url and using ffmpeg, here: https://www.reddit.com/r/sharepoint/comments/nuk8q0/is_there_any_way_to_download_view_only_videos/

Steps to reproduce:

The attempt with ffmpeg gives error:

ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
  built with clang version 4.0.1 (tags/RELEASE_401/final)
  configuration: --prefix=/Users/gg4u/Sites/miniconda3 --cc=x86_64-apple-darwin13.4.0-clang --disable-doc --enable-shared --enable-static --enable-zlib --enable-pic --enable-gpl --enable-version3 --disable-nonfree --enable-hardcoded-tables --enable-avresample --enable-libfreetype --disable-openssl --disable-gnutls --enable-libvpx --enable-pthreads --enable-libopus --enable-postproc --disable-libx264
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
  [LINK]
**Invalid data found when processing input**

The attempt with destreamer :


Created directory: videos

[FATAL ERROR] Unknown error: exit code 4 

Am I getting the right link ? Can you instruct how to solve the issue ?

The video link is found by browsing the sharepoint URL in the web console, filtering by "videomanifest", and copy the link with full parameters:

Example: https://[SUBDOMAIN].sharepoint.com/sites/PATC_CD2021_SM35_582SM_308946/Documenti%20condivisi/Forms/AllItems.aspx?id=%2Fsites%2FPATC%5FCD2021%5FSM35%5F582SM%5F308946%2FDocumenti%20condivisi%2FGeneral%2FRecordings%2FSolo%20visualizzazione%2FLab%206%2D20211220%5F091514%2DRegistrazione%20della%20riunione%2Emp4&parent=%2Fsites%2FPATC%5FCD2021%5FSM35%5F582SM%5F308946%2FDocumenti%20condivisi%2FGeneral%2FRecordings%2FSolo%20visualizzazione

Screenshot 2022-07-12 at 10 53 58 AM

The LINK will be something like this form (please note I masked the subdomain to avoid any property right issues):

[](https://northeurope1-mediap.svc.ms/transform/videomanifest?provider=spo&inputFormat=mp4&cs=fFNQTw&docid=https%3A%2F%2F[SUBDOMAIN].sharepoint.com%3A443%2F_api%2Fv2.0%2Fdrives%2Fb%211HNkfaNGmkSjhB5qZFeZzVtNUqXZgiRKsHIWhg6cWQdccBxtpOsMQpawau-fYTCp%2Fitems%2F01R2WNUUTNFZH5HS6GJFCIX2MWXPSX47KX%3Fversion%3DPublished&cTag=%22c%3A%7BD34F2E6D-C6CB-4449-8BE9-96BBE57E7D57%7D%2C2%22&action=Access&part=index&format=dash&useScf=True&altTranscode=1&altManifestMetadata=eyJBdWRpb0NvZGVjSW5mbyI6ImFhYyIsIkF1ZGlvRnJhbWVTaXplIjoxMDI0LCJBdWRpb1NhbXBsaW5nUmF0ZSI6MTYwMDAsIkF1ZGlvU3RyZWFtRHVyYXRpb24xMDBOYW5vIjo2MzAyMDE2MDAwMCwiQml0cmF0ZSI6Njc4ODYwLCJDb250YWluc0F1ZGlvIjp0cnVlLCJDb250YWluc1ZpZGVvIjp0cnVlLCJDb250ZW50QXdhcmVCaXRyYXRlIjpudWxsLCJDb250ZW50Q2F0ZWdvcnkiOiJ0ZWFtc19tZWV0aW5nIiwiQ3J5cHRvZ3JhcGhpY0RhdGFDcmVhdGVkRGF0ZVVuaXgiOjE2Mzk5OTUwNjgsIkNyeXB0b2dyYXBoaWNEYXRhSVYiOiIweEU3NTVFREM2MTA1NTgwM0Q0RUY2RUQ3QzkxRjFGRDU3I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ImV4cCI6IjE2NTc1OTQ4MDAiLCJlbmRwb2ludHVybCI6IjF2N2o5WGduLzVDK2RBOWRhNzFreit6T3Z4R3ErdXR2NVl2YWZ1UzBuUFk9IiwiZW5kcG9pbnR1cmxMZW5ndGgiOiIxMTIiLCJpc2xvb3BiYWNrIjoiVHJ1ZSIsInZlciI6Imhhc2hlZHByb29mdG9rZW4iLCJzaXRlaWQiOiJOMlEyTkRjelpEUXRORFpoTXkwME5EbGhMV0V6T0RRdE1XVTJZVFkwTlRjNU9XTmsiLCJzaWduaW5fc3RhdGUiOiJbXCJrbXNpXCJdIiwibmFtZWlkIjoiMCMuZnxtZW1iZXJzaGlwfHMyODEwNzZAZHMudW5pdHMuaXQiLCJuaWkiOiJtaWNyb3NvZnQuc2hhcmVwb2ludCIsImlzdXNlciI6InRydWUiLCJjYWNoZWtleSI6IjBoLmZ8bWVtYmVyc2hpcHwxMDAzMjAwMTc5YjhhMjY2QGxpdmUuY29tIiwic2lkIjoiNjJhZTk3YmMtODBhOS00OGIwLTgxNTEtNTQxY2ZlZGQ2MzIzIiwidHQiOiIwIiwidXNlUGVyc2lzdGVudENvb2tpZSI6IjMiLCJpcGFkZHIiOiIxNTEuNzEuMTM2LjAifQ.WlprWjJseUdiU0kyd3VWM0lFU1dML05JemtxMDRqREFnRmxzSE9Oc0V2Yz0

)

EDITED:

I tried to upgrade FFMPEG version, but same error:

current FFMPEG version

ffmpeg version N-107336-g59018254c7-tessus Copyright (c) 2000-2022 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
  libavutil      57. 27.100 / 57. 27.100
  libavcodec     59. 36.100 / 59. 36.100
  libavformat    59. 26.100 / 59. 26.100
  libavdevice    59.  6.100 / 59.  6.100
  libavfilter     8. 42.100 /  8. 42.100
  libswscale      6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
  libpostproc    56.  5.100 / 56.  5.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

downloaded binary from: https://evermeet.cx/ffmpeg/