coursera-dl / edx-dl

A simple tool to download video lectures from edx.org (and other openedx sites)
GNU Lesser General Public License v3.0
1.93k stars 638 forks source link

Decode course files already downloaded in Android through edx app #549

Open hkn1304 opened 5 years ago

hkn1304 commented 5 years ago

Subject of the issue

I've got long-name files in android downloaded by edx app, however i can't extract mp4 files to view in my PC, Windows 10

Your environment

Steps to reproduce

If you download edx app and try to download files of a course, you will get file with long strange name in Android phone. If you try to get the file into Win 10, you will see you can't open and watch the file.

Expected behaviour

Ideally, i would like to decode and watch the video.

Actual behaviour

I can't watch the vides.

My question: which lines in the code can provide this conversion?

balta2ar commented 5 years ago

What do you mean by "edx app"? This script running on Android? Or edx official mobile app that also has download feature?

githubusar commented 2 years ago

there is no need to decoded or any thing else, if you want to get a downloaded video from edx mobile app, to get you have to go to this directory:

/Android/data/org.edx.mobile/videos/some_random_alpha_numeric_string

you will find the video download like this "agjkl50ljoiurw", what you have to do is to rename it, for example "introduction.mp4", and now you can watch it.

and the same apply to subtitle, you can find subtitle in: /Android/data/org.edx.mobile/videos/some_random_alpha_numeric_string/subtitles

I hope this may solve the issue.

Inglezos commented 1 year ago

there is no need to decoded or any thing else, if you want to get a downloaded video from edx mobile app, to get you have to go to this directory:

/Android/data/org.edx.mobile/videos/some_random_alpha_numeric_string

you will find the video download like this "agjkl50ljoiurw", what you have to do is to rename it, for example "introduction.mp4", and now you can watch it.

and the same apply to subtitle, you can find subtitle in: /Android/data/org.edx.mobile/videos/some_random_alpha_numeric_string/subtitles

I hope this may solve the issue.

No this is not usable of course for batch downloads. I have downloaded via the edx app the whole course, over 200 files. I can rename them yes but how do I know the chapters/titles they correspond to? I will have to manually check each video with the edx normal ones if I manage to even find them which one is what. This is devastating! This weird long string in hex, can't be decoded back to something useful like Intro, Chapter 1 etc? I mean the original information of the content could be somewhere inside that string?