RELEASE Switch Video Combiner - combine those 30s chunks of videos into one in seconds with no quality loss

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by orangpelupa, Nov 9, 2018.

  1. orangpelupa
    OP

    orangpelupa Advanced Member

    Newcomer
    3
    Aug 7, 2009
    Indonesia
    video tutorial



    (just watch the first 1 minute)

    1. simply copy the app to the same folder as your 30s video chunks you get from using Switch's SHARE button.
    2. run the app, and it will combine them all into one with no quality loss.

    file too large to attach https://bramantya.org/apps/

    (this is basically just a batch script running FFMPEG to merge the videos without reencoding)
     
    lordelan likes this.
  2. lordelan

    lordelan GBAtemp Psycho!

    Member
    9
    Jan 4, 2015
    Germany
    Handy tool although this could be done by the simple CMD command (Windows obviously)
    Code:
    copy /b *.mp4 result.mp4
    
    (didn't test that, I only remember it that way)
     
  3. Csmrcc

    Csmrcc Advanced Member

    Newcomer
    1
    Sep 13, 2018
    Spain
    Nice
     
  4. Thetoto

    Thetoto GBAtemp Advanced Fan

    Member
    4
    May 10, 2018
    France
    Edit : Oops, Yes it works
     
    Last edited by Thetoto, Nov 9, 2018
    lordelan likes this.
  5. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    21
    Oct 27, 2002
    France
    Engine room, learning
    using a wildcard might not merge them in the correct order.
    I didn't know we could concatenate containers in binary format, the container header is not an issue when found in the middle of the video's? that's an mp4 format specification?
    or maybe the switch mp4 has no container and are just raw Mpeg video stream.
     
    Last edited by Cyan, Nov 9, 2018
  6. notimp

    notimp GBAtemp Maniac

    Member
    7
    Sep 18, 2007
    If you have ffmpeg installed, make a textfile named mylist.txt with the following content:
    Code:
    file './1.mp4'
    file './2.mp4'
    file './3.mp4'
    file './4.mp4'
    file './5.mp4'
    in the folder where your .mp4 files are residing (named like in the list above :) ) - then run the following

    Code:
    ffmpeg -f concat -i mylist.txt -c copy output.mp4
     
    Last edited by notimp, Nov 9, 2018
  7. orangpelupa
    OP

    orangpelupa Advanced Member

    Newcomer
    3
    Aug 7, 2009
    Indonesia
    yeah, when i made this i just assume simply copying the chunks into one wont work due to MP4 headers in each chunks.

    i should have tried the simple copying-merge command beforehand hahaha. im dumb
     
  8. SimonMKWii

    SimonMKWii GBAtemp Advanced Fan

    Member
    9
    Nov 18, 2017
    Australia
    Melbourne, Victoria
    I wouldn't recommend this, while modern players such as VLC may be smart enough to recognise it, it's not advised to concatenate files with their headers and footers, use ffmpeg as it'll copy only the raw streams.
     
    lordelan likes this.
  9. lordelan

    lordelan GBAtemp Psycho!

    Member
    9
    Jan 4, 2015
    Germany
    Good point.
     
  10. orangpelupa
    OP

    orangpelupa Advanced Member

    Newcomer
    3
    Aug 7, 2009
    Indonesia
    Thanks for the explanation. So basically the resulting mp4 merged by ffmpeg will be like a real mp4 from start to finish. Just like something of it was recorded properly from start to finish
     
  11. UltiGC

    UltiGC Member

    Newcomer
    1
    Jul 17, 2018
    United States
    Somewhat unrelated but would anyone know if it’s possible to create a homebrew or mod that captures gameplay footage every 30 secs? Something like that and a program like this could be great for people who don’t have capture devices.

    Not sure how the Switch will handle the constant spam of recording though lol.
     
    orangpelupa likes this.
  12. orangpelupa
    OP

    orangpelupa Advanced Member

    Newcomer
    3
    Aug 7, 2009
    Indonesia
    theoretically, its really possible thru system service or whatever the name is on switch. so you will enable it just like sysftpd that provides background FTP server.

    to capture in best possible "stitches" the app should
    * record every 30s
    * then go to home screen
    * after finished saving, go back to game again

    it will be annoying to play, but the stitches will relatively be smooth-continuous.

    the simples way would be
    * simulate hold share button for 1s every 31s

    unfortunately im too stupid to do any of those hahaha
     
Loading...