Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I merge the video.h264 and audio.raw? #104

Closed
Conan179 opened this issue Dec 9, 2020 · 6 comments
Closed

How can I merge the video.h264 and audio.raw? #104

Conan179 opened this issue Dec 9, 2020 · 6 comments

Comments

@Conan179
Copy link

Conan179 commented Dec 9, 2020

Hello, I have a question.

My switch are on 10.2.0 and i make a save to usb movie from Zelda bttw.
How can I merge the video.h264 and audio.raw?

Greetz

@Flyken271
Copy link

I'm not entirely sure but I'm confident there are some muxing tools on windows, there are as well
FFmpgeg CLI commands too.

@exelix11
Copy link
Owner

Yes you need ffmpeg. The command is along the lines of
ffmpeg -fflags +genpts -framerate 30 -i video.264 -f s16le -ar 48000 -ac 2 -i audio.raw -c:v h264 -c:a aac output.mp4
to convert just the video you can do ffmpeg -r 30 -i video.264 -vcodec copy video.mp4

@Conan179
Copy link
Author

@exelix11 Thanks.
Its working.
I converted a file of about 3 minutes.
The only problem is that the video is finished faster than the sound.
https://www.dropbox.com/s/35voxj9kcexwe43/output.mp4?dl=0

@exelix11
Copy link
Owner

i'm not sure. Maybe ffmpeg got the framerate or sample rate wrong. Try converting audio and video separately and then mux them together.
This save to file thing was intended mostly for debug, should probably look into implementing and actual mp4 file writer.

@exelix11
Copy link
Owner

Release 5.1 replaced video.h264/audio.raw file exporting with proper mp4 recording, this shouldn't be an issue anymore.

@Conan179
Copy link
Author

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants