VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Member
    Join Date
    Aug 2017
    Location
    México
    Search PM
    Hello friends I have a problem, I need to join two videos while I download them, I can download them without problems with the following code ffmpeg -i urlm3u8 here -c copy -bsf: a aac_adtstoasc output.mp4 but there are videos that are in 2 parts and I would like to join them while I downloaded them, try with the following code but it did not work ffmpeg -i url1 -i url2 -c copy -bsf: a aac_adtstoasc output.mp4
    Quote Quote  
  2. Originally Posted by cx430 View Post
    Hello friends I have a problem, I need to join two videos while I download them, I can download them without problems with the following code ffmpeg -i urlm3u8 here -c copy -bsf: a aac_adtstoasc output.mp4 but there are videos that are in 2 parts and I would like to join them while I downloaded them, try with the following code but it did not work ffmpeg -i url1 -i url2 -c copy -bsf: a aac_adtstoasc output.mp4
    You can't. You have to download and concatenate afterwards

    Think about it - the end of the 1st is concatenated to the beginning of the 2nd. But you haven't downloaded end of the 1st video ; you start downloading with the beginning
    Quote Quote  
  3. I think you can use the concat option with a list file:

    https://trac.ffmpeg.org/wiki/Concatenate

    That will download sequentially, not simultaneously, but the second file should be concatenated onto the first.

    <edit>
    Maybe not. It didn't work when I tried it.

    You might be able to build your own concatenated m3u8 file. But that's probably more work than just downloading them individually and concatenating them.
    </edit>
    Last edited by jagabo; 31st Aug 2017 at 11:28.
    Quote Quote  
  4. I was able to get it to work with this ffmpeg command line:

    Code:
    ffmpeg.exe -y -safe 0 -protocol_whitelist "file,http,https,tcp,tls,hls,concat" -f concat -i list.m3u8.txt -c copy output.mp4
    and a list.m3u8.txt file that looks like:

    Code:
    file 'http://ga.video.cdn.pbs.org/videos/nature/e1a35d94-fd17-4615-99c3-f22db7f5cc41/123507/hd-mezzanine-16x9/naat-mybionicpet-0516x9-16x9-hls-64-800k.m3u8'
    file 'http://ga.video.cdn.pbs.org/videos/nature/e1a35d94-fd17-4615-99c3-f22db7f5cc41/123507/hd-mezzanine-16x9/naat-mybionicpet-0516x9-16x9-hls-64-800k.m3u8'
    I didn't have links to two m3u8 files so I used the same one twice.
    Quote Quote  
  5. Member
    Join Date
    Aug 2017
    Location
    México
    Search PM
    hi jagabo thanks for you help bro but i have this error failed to open segment of playlist 0 and the final show this error list.m3u8 invalid data found when prossesing input
    Quote Quote  
  6. Does the exact list I use work for you? Did you verify that you can download each video individually? Can you give links to the m3u8 files you're trying to download/concat?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!