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

orangpelupa

Well-Known Member
OP
Member
Joined
Aug 7, 2009
Messages
388
Trophies
1
XP
1,183
Country
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

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,787
Trophies
1
Age
44
XP
6,516
Country
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)
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
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,

notimp

Well-Known Member
Member
Joined
Sep 18, 2007
Messages
5,779
Trophies
1
XP
4,419
Country
Laos
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,

orangpelupa

Well-Known Member
OP
Member
Joined
Aug 7, 2009
Messages
388
Trophies
1
XP
1,183
Country
Indonesia
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.

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
 

SimonMKWii

Professional Idiot
Member
Joined
Nov 18, 2017
Messages
666
Trophies
0
Location
Melbourne, Victoria
XP
2,760
Country
Australia
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)
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.
 
  • Like
Reactions: lordelan

orangpelupa

Well-Known Member
OP
Member
Joined
Aug 7, 2009
Messages
388
Trophies
1
XP
1,183
Country
Indonesia
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.

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
 

UltiGC

Member
Newcomer
Joined
Jul 17, 2018
Messages
12
Trophies
0
Age
29
XP
275
Country
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.
 
  • Like
Reactions: orangpelupa

orangpelupa

Well-Known Member
OP
Member
Joined
Aug 7, 2009
Messages
388
Trophies
1
XP
1,183
Country
Indonesia
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.

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
 

orangpelupa

Well-Known Member
OP
Member
Joined
Aug 7, 2009
Messages
388
Trophies
1
XP
1,183
Country
Indonesia
Sorry still can't find the time for making a new update that would properly clean its own files after combining videos.

Currently you would need to remove the app files by yourself
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: @Psionic Roshambo, Thats pretty cool.