Can someone explain to me what is going on and how to merge these segments correctly?
I downloaded segments of a video from this site
"https://www.historyplay.tv/br/serie/trato-feito_uqrm5f"
I used InviDownloader to download the segments and join them. However, when joining the segments what I get is an m4s file with only 11 min of video. And not the full 40 minutes. I also noticed that the files even in numerical order are out of order when joining them.
It is the same with encrypted and unencrypted files
It never merges files correctly, and always generates an incomplete m4s file.
What I do to download the segments is: I go to the end of the video, see the last segment, and place the invidownloader to download from the last segment to the first. Am I doing something wrong? I tried with youtube-dl but it doesn't download from some sites, it always gives an error or says it can't read the url
![]()
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 3 of 3
-
-
Use curl to merge .m4s into init.mp4 if you wanna go this way (each audio and video separately will have init.mp4 file)
First download the init.mp4 (video) file to the curl folder,then execute this code:
Code:curl.exe -s -L https://.../video/seg-[01-XXX].m4s -o - >> init.mp4
Then download init.mp4 audio file to the curl folder,but rename it to like audio.mp4 so it doesn't duplicate with the video init.mp4
And again execute code
Code:curl.exe -s -L https://.../audio/seg-[01-XXX].m4s -o - >> audio.mp4
Then merge audio with video with any tool you like.
Streamlink should also get it (if it's not under authentication protection) by throwing the .mpd manifest at it:
Code:streamlink.exe dash://"https://...../playlist.mpd" best -o output_file.mp4
Last edited by Sviests; 18th Feb 2021 at 16:33.
-
Hello, sorry for the delay in responding. I was unable to use curl, but my solution was to rename all files with zeros.
example:
init.mp4> 00.mp4
01.m4s
02.m4s
03.m4s ...
Seg-01
seg-02..
Causes ffmpeg and invidownloader to merge files randomly and not in order, causing video problems.
Thanks a lot for the help.
Similar Threads
-
Download of dash video segments and conversion from m4s to mp4?
By luke5 in forum Video Streaming DownloadingReplies: 4Last Post: 12th Jan 2020, 11:06 -
m4s segments to mp4
By ghostrewel in forum Video Streaming DownloadingReplies: 4Last Post: 9th Dec 2018, 14:07 -
How to merge multiple .m4s and convert the video file
By Nixpeiler in forum Video Streaming DownloadingReplies: 0Last Post: 23rd Feb 2018, 01:17 -
How to merge multiple .m4s urls into a video file?
By danielko in forum Video Streaming DownloadingReplies: 7Last Post: 24th Oct 2017, 20:50 -
segments of m4s
By Anonymous in forum Video Streaming DownloadingReplies: 0Last Post: 1st Feb 2017, 14:37