DEV Community

Cover image for How to quickly download Streaming Blob Video
Javid Mougamadou
Javid Mougamadou

Posted on

14 1

How to quickly download Streaming Blob Video

Prerequesites

  • Browser with DevTools (Chrome, Firefox, etc)

  • VLC

  • ffmpeg

Step 1 : Find the file which looks like to playlist.m3u8

First of all, go to the website with the streaming video and launch it.

If you inspect with the Chrome Devtools, you will see a blob link (which is not allowed to directly download)

Alt Text

Go to the Network panel and find a file which looks like to playlist.m3u8 and download it.

Alt Text

Step 2 : Find segment track files URL

Stay at the Network panel and find at least two segment files.

Sometimes you could find one segment for the audio track and one for the video track.

Alt Text

Alt Text

Step 3 : Edit the playlist.m3u8 file

Open the file with a Text Editor (Notepad, Sublime Text, etc)

Alt Text

You will see several lines with the relative URL chop/segment. Append the full URL of the segment track.

Alt Text

You need to do it twice. (audio track / video track)



seg-1-v1-a1.ts → http://videosource.site/seg-1-v1-a1.ts

Enter fullscreen mode Exit fullscreen mode




Step 4 : Open and convert with VLC

  • Open VLC and go the File > Convert/Stream .

  • Drag&Drop the playlist.m3u8 file as the media source.

Alt Text

  • Select Customize profile and set Encapsulation: MP4/MOV, Video and Audio: "Keep original …".

Alt Text

  • Apply and then specify the output filename.

  • Click to Save as File and wait until the converted file finished.

Step 5 : Merge the audio and video track together

After converted with VCL (twice if you have the audio and video track splitted)

Run this command with ffmpeg :



./ffmpeg -i video.m4v -i audio.m4a -acodec copy -vcodec copy merged-output.mp4

Enter fullscreen mode Exit fullscreen mode




Alternatives

Links

https://stackoverflow.com/questions/29876518/how-to-download-video-from-m3u8-file

Sentry blog image

Identify what makes your TTFB high so you can fix it

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

Read more

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay