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

Finalize a .mp4 movie after simplescreenrecorer crashed? #221

Open
ronneber opened this issue Jul 18, 2014 · 3 comments
Open

Finalize a .mp4 movie after simplescreenrecorer crashed? #221

ronneber opened this issue Jul 18, 2014 · 3 comments

Comments

@ronneber
Copy link

First a big thanks for providing this excellent piece of work. I use simplescreenrecorder every week to record my lectures. But today it crashed and left an .mp4 file which is not playable. Is there a way to fix this file? I think the content is in it (it has a size of 28MB for approx. half an hour slides with audio).
Best regards,
Olaf

@ronneber ronneber changed the title finalze an mp4 after simplescreenrecorer crashed? Finalize a .mp4 movie after simplescreenrecorer crashed? Jul 18, 2014
@iamgreaser
Copy link

My advice in future would be to use Matroska (MKV) for your container format - it's still H264, but it doesn't require some crap at the end of your file. I've had SSR crash on me before, but at least I was able to play the resulting MKV file.

As for recovering the mp4 data, I'm not sure what to do - I guess you could try to play it as raw AAC (or whatever .mp4 can handle for audio / whatever you used for audio) and that would at least get the audio out of it... there will be a fair bit of garbage, but it might just do the trick.

@MaartenBaert
Copy link
Owner

Have you any idea why SSR crashed? Which version are you using, and which distribution? This is not normal. Did it actually crash, or did you just get an error message? SSR saves logs in ~/.ssr/logs, did those show anything unusual?

Regarding MP4 repair, the thing you should look for is recovering the mp4 'moov atom'. Some googling turned up this:
http://vcg.isti.cnr.it/~ponchio/untrunc.php
Not tested, I have no idea how well this works. As iamgreaser suggested, use MKV whenever possible to avoid problems like this.

@MaartenBaert
Copy link
Owner

For future reference, there is now a fork of untrunc which works quite well at least in my tests:

https://github.com/anthwlock/untrunc

Even if it works, you may find that the file has issues, e.g. video and audio may be out of sync. The tool has some options to try to correct this.

Still, the best way to avoid this problem is to use MKV instead, then the repair process is much easier and more reliable.

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