VideoHelp Forum


Try DVD-Fab Video Downloader and rip Netflix video! Or Try DVD-Fab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. 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

    Quote Quote  
  2. Average video editor Sviests's Avatar
    Join Date
    Sep 2018
    Location
    USA,Sweden
    Search Comp PM
    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
    (XXX is the last possible segment number)
    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
    (XXX is the last possible segment number) - note that in most cases # of segments in audio & video matches.

    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.
    Quote Quote  
  3. Originally Posted by Sviests View Post
    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
    (XXX is the last possible segment number)
    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
    (XXX is the last possible segment number) - note that in most cases # of segments in audio & video matches.

    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
    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.
    Quote Quote  



Similar Threads