bookkojot / mp4fixer

Recover damaged/unfinished mp4 files with h264 video
GNU General Public License v3.0
358 stars 64 forks source link

Recover Kazam mux file to mp4 #6

Open rizmut opened 5 years ago

rizmut commented 5 years ago

From this question I see you to try your project. But actually I have zero undestanding about media format. How to do that exactly in command?

bartwr commented 5 years ago

If you did not finish your Kazam screen recording, you'll have an 0 bytes .movie file and a .movie.mux file with a bigger size. See screenshot below.

image

To make use of mp4fixer for recovering the video file from the .mux file, you need to do the following:

  1. Run Kazam again and this time finish the video.

Now you have three files:

Now, by following the README of this project, you can rebuild the movie file from the .movie.mux file:

perl fixer.pl goodexamplevideo.movie badvideo.movie.mux recovered

The new generated file recovered-out-video.h264 will be the recovered video file. Getting sound is explained in the README as well.

lamidesbetes commented 3 years ago

Don't forget to install ffmeg ;)

sudo apt install ffmpeg

(Moreover, using sudo for the perl command can make it works:VLC can't read it but youtube can upload it)

rizmut commented 3 years ago

Hello, I have encountered similar problem, but now I can not file the .mux file. The issue occured when I tried to save Kazam video but the Save button in file choose dialog did not work. I canceled the operation but Kazam window still opened with grayed out color. Then I close the dialog and got Kazam to the first state. I am not sure I have to report to Kazam dev or not but my question with regarding your amazing tools is there any chance I can recover my file?

This is my "saved" file. I can not open it with VLC

gambar

paulomp90 commented 3 years ago

Hello, I have encountered similar problem, but now I can not file the .mux file. The issue occured when I tried to save Kazam video but the Save button in file choose dialog did not work. I canceled the operation but Kazam window still opened with grayed out color. Then I close the dialog and got Kazam to the first state. I am not sure I have to report to Kazam dev or not but my question with regarding your amazing tools is there any chance I can recover my file?

This is my "saved" file. I can not open it with VLC

gambar

We're you able to recover? I had an error when i was recording, but I feel I will lose everything :/

Setigi3 commented 3 years ago

Hello!

I need some help. I followed the procedure step by step but the recovery.h264 file has 0 bytes which means I cannot convert it to mp4.

Can someone please suggest a solution? mp4fixer

rizmut commented 3 years ago

Hello, I have encountered similar problem, but now I can not file the .mux file. The issue occured when I tried to save Kazam video but the Save button in file choose dialog did not work. I canceled the operation but Kazam window still opened with grayed out color. Then I close the dialog and got Kazam to the first state. I am not sure I have to report to Kazam dev or not but my question with regarding your amazing tools is there any chance I can recover my file? This is my "saved" file. I can not open it with VLC gambar

We're you able to recover? I had an error when i was recording, but I feel I will lose everything :/

Yes, just simply convert this gambar file to MP4 with VLC, it solved my problem

vmlnayak commented 3 years ago

Hello!

I need some help. I followed the procedure step by step but the recovery.h264 file has 0 bytes which means I cannot convert it to mp4.

Can someone please suggest a solution? mp4fixer

Setigi3 commented 3 years ago

@vmlnayak , I wound up installing ffmpeg before running the perl command. sudo apt install ffmpeg

Make sure you do that first.

jguillem commented 3 years ago

I have been able to retrieve the video from kazam, but it has no audio. What have you done to get it back?

vmlnayak commented 3 years ago

I missed that video

On Tue, 30 Mar, 2021, 9:53 PM jguillem, @.***> wrote:

I have been able to retrieve the video from kazam, but it has no audio. What have you done to get it back?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bookkojot/mp4fixer/issues/6#issuecomment-810399694, or unsubscribe https://github.com/notifications/unsubscribe-auth/APIIAVONFCPMCWILBAQ6DGLTGH3JRANCNFSM4FQEQC6Q .

Setigi3 commented 3 years ago

First I have used this website https://h264-to-mp4.file-converter-online.com/ to convert h264 to mp4 thn I have used vlc to merge the video and audio (recored raw audio).

You can do so following this video: https://www.youtube.com/watch?v=3h_Iq3a7ul8

jguillem commented 3 years ago

In my case I only hear noises with the raw audio file recovered. I convert the h264 to mp4 with ffmpeg and I have the video without audio. The raw audio file (recovered-out-audio.raw) is inaudible (only noises). I'm not able the raw audio file recovered to mp3 with the aacfixer executable or change the extension to mp3, and if I try to merge the raw with the mp4 with VLC, I only hear noises.

Arof2 commented 2 years ago

Hi there. I followed the procedure but i encountered an Error saying: Only ACC streams can ne muxed by the ADTS muxer Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument I'm clueless of what to do next as no one else seems to have encountered this error. For some reason only 4 files were created which do not include the audio or video file i need. These files are: recovered-headers.acc, recovered-headers.h264, recovered-nals.txt, recovered-stat.mp4. My two original files are labeled: kazam_0l245qzg.movie kazam_0l245qzg.movie.mux I dont have any experience with corrupted files so i dont know what the error message means. I hope someone can help me. Thx

amzker commented 1 year ago

guys, i don't even have mux files in my save location

caiot5 commented 1 month ago

Yeah, it works, but the video gets artifacts where it was supposed to be static images, it shows where the image changes but the part of image which is static keeps frozen onscreen. So I guess that's something to do with mp4 compression, it should be fixable, but I don't know how.