Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To Download A Video from Hotstar which has more than 1 audio track #22732

Open
varunsridharan opened this issue Oct 16, 2019 · 4 comments
Open
Labels

Comments

@varunsridharan
Copy link

@varunsridharan varunsridharan commented Oct 16, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

How to download a video with more than 1 audio track from hotstar.com or any other website.
for example i am using hotstar.com here https://www.hotstar.com/in/movies/mangalyaan-indias-mission-to-mars/1770005017
This video has 3 or 4 audio track. but when i download i get only the first audio track.

@varunsridharan
Copy link
Author

@varunsridharan varunsridharan commented Oct 25, 2019

any update on this ?

@palashcode
Copy link

@palashcode palashcode commented Nov 26, 2019

use the following command to get a list of available formats "youtube-dl -F https://www.hotstar.com/in/movies/mangalyaan-indias-mission-to-mars/1770005017".
You will get something like this:
format code extension resolution note
hls-audio_aac131-English-0 mp4 audio only [eng]
hls-audio_aac131-English-1 mp4 audio only [eng]
hls-audio_aac131-English-2 mp4 audio only [eng]
dash-video_avc1_1-0 mp4 320x180 video only

Select the audio and video format code from above and use the following command to download:
"youtube-dl -f 'dash-video_avc1_1-0+hls-audio_aac131-English-0' --merge-output-format mp4 https://www.hotstar.com/in/movies/mangalyaan-indias-mission-to-mars/1770005017"

@varunsridharan
Copy link
Author

@varunsridharan varunsridharan commented Dec 1, 2019

@palashcode thanks for your answer. before posting here i tried to the same. but since i am using windows to download the unicode chars are not showing properly

What i get
image

What it should show.

hls-audio_aac131-हिन्दी-0   mp4        audio only [hin]
hls-audio_aac131-हिन्दी-1   mp4        audio only [hin]
hls-audio_aac131-हिन्दी-2   mp4        audio only [hin]
hls-audio_aac131-বাংলা-0    mp4        audio only [ben]
hls-audio_aac131-বাংলা-1    mp4        audio only [ben]
hls-audio_aac131-বাংলা-2    mp4        audio only [ben]
hls-audio_aac131-தமிழ்-0    mp4        audio only [tam]
hls-audio_aac131-தமிழ்-1    mp4        audio only [tam]
hls-audio_aac131-தமிழ்-2    mp4        audio only [tam]
hls-audio_aac131-తెలుగు-0   mp4        audio only [tel]
hls-audio_aac131-తెలుగు-1   mp4        audio only [tel]
hls-audio_aac131-తెలుగు-2

is there any way to download all audio files combined ?

@coderkar
Copy link

@coderkar coderkar commented Mar 8, 2020

The solution pointed by @palashcode works. For the case pointed out by @varunsridharan, I had to specify the format that starts with "dash*" (for eg. dash-audio_hi_mp4a_3-1 )instead the one that uses the characters from local languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.