Answers.Body: <p>the answer to this question was posted by bukkojot as a comment to this question on 2017/10/12: <a href="https://github.com/bookkojot/mp4fixer" rel="nofollow noreferrer">https://github.com/bookkojot/mp4fixer</a></p>
  <p>This tool fixes exactly this problem. I tried it and it worked for me.
  There are a few simple steps involved, instructions are enclosed. You need a short properly saved video on the same machine with the same kazam to use as input so it knows what the headers should look like. And you get the mp4 from the temporary movie.mux.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-10T04:35:06.163Z
Answers.Text: Thanks Jmarina. Accepting it as answer.
Answers.UserDisplayName: Sandeep
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-09T16:13:22.197Z
Answers.LastActivityDate: 2021-06-11T19:30:51.963Z
Answers.LastEditDate: 2021-06-11T19:30:51.963Z
Answers.UserDisplayName: jmarina
Answers.Body: <p>If <strong>audio</strong> is enough to be recovered, use <strong>VLC</strong> directly.</p>
  <ul>
  <li>open VLC</li>
  <li>go to media convert/stream, select the mux file, then convert</li>
  <li>select profile audio-mp3 and then edit it, go to audio tab and check <code>keep original audio track</code></li>
  </ul>
  <p>I tried several attempts for video converting, but no success. At least the audio steps worked for me.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-18T11:48:50.483Z
Answers.LastActivityDate: 2020-10-18T11:48:50.483Z
Answers.UserDisplayName: angelito
Body: <h2>History :</h2>
  
  <p>Here is some background of this long lasting problem : <a href="https://answers.launchpad.net/kazam/+question/218308" rel="nofollow noreferrer">https://answers.launchpad.net/kazam/+question/218308</a></p>
  
  <p>I am posting it to get some valuable suggestions from video gurus here.</p>
  
  <h2>About Kazam :</h2>
  
  <p>kazam is a screen recording tool which also records audio. Once the recording is finished, a popup comes and then we can save the video into a mp4 file.</p>
  
  <h2>Problem :</h2>
  
  <p>Sometimes, in particular when the screen recording time is large like, 2~3 hrs, in those cases, the pop up does not come up. so, basically we cannot save the recorded data into a file.</p>
  
  <p>We find 2 residual files. with .movie and .mux</p>
  
  <ul>
  <li><code>kazam_5e8ob247.movie.mux</code> (~ 1.2 GB)</li>
  <li><code>kazam_5e8ob247.movie</code> (0 bytes)</li>
  </ul>
  
  <p>.movie file is of 0 bytes. So, this is just a temporary file.</p>
  
  <p>.mux contains the real data and is of ~1.2 gb.</p>
  
  <p>How can I recover the .mux file?</p>
  
  <h2>Notes :</h2>
  
  <p>I see from kazam source code (<a href="https://github.com/sconts/kazam" rel="nofollow noreferrer">https://github.com/sconts/kazam</a>) that it is using Gstreamer internally.</p>
  
  <p>So, can you please suggest an appropriate gst-pipeline that can convert .mux into a playable .mp4 file?</p>
  
  <p>To provide more details, I tried to get some information about the recorded stream using gst-discoverer-1.0. But it fails saying it cannot read any details.</p>
  
  <pre><code>gst-discoverer-1.0 kazam_5e8ob247.movie.mux
  Analyzing file:///home/sandeep/sw/samples/kazam_5e8ob247.movie.mux
  Done discovering file:///home/sandeep/sw/samples/kazam_5e8ob247.movie.mux
  An error was encountered while discovering the file
   Could not determine type of stream.
  </code></pre>
  
  <h3>First 1 MB :</h3>
  
  <p>To analyze, the first 1 MB of the file can be found <a href="https://drive.google.com/open?id=0B_ZonAmwyfqJb1hsVEgzQXhFMTg" rel="nofollow noreferrer">here</a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-07T19:14:47.457Z
Comments.Text: Please, post first 1mb of your file for analysis
Comments.UserDisplayName: bukkojot
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-08T04:52:07.473Z
Comments.Text: @bukkojot I just added the link for the 1 MB of the video in the description
Comments.UserDisplayName: Sandeep
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-08T05:34:37.310Z
Comments.Text: There's a baseline H.264 stream in there, so this was meant to be a MP4. Generate a short video with kazam using the same settings as the broken one. Then use recover_mp4 from http://slydiman.me/eng/mmedia/recover_mp4.htm
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-08T08:11:00.613Z
Comments.Text: Thanks @Mulvya.. Looks very promising. As it needs a windows PC, I will try it later and will share the result. Tank you again.
Comments.UserDisplayName: Sandeep
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-12T20:16:50.140Z
Comments.Text: I just finished my own tool for video recovering: https://github.com/bookkojot/mp4fixer - try it.
Comments.UserDisplayName: bukkojot
Tags: <video><video-editor><video-recording>
Title: Recover broken kazam video file (.mux)
UserDisplayName: Sandeep
ThreadText: # Recover broken kazam video file (.mux)
  
  (Asked by: username_0 on 2017-09-06)
  
  ## History :
  
  Here is some background of this long lasting problem : <https://answers.launchpad.net/kazam/+question/218308>
  
  I am posting it to get some valuable suggestions from video gurus here.
  
  ## About Kazam :
  
  kazam is a screen recording tool which also records audio. Once the recording is finished, a popup comes and then we can save the video into a mp4 file.
  
  ## Problem :
  
  Sometimes, in particular when the screen recording time is large like, 2~3 hrs, in those cases, the pop up does not come up. so, basically we cannot save the recorded data into a file.
  
  We find 2 residual files. with .movie and .mux
  
  * `kazam_5e8ob247.movie.mux` (~ 1.2 GB)
  * `kazam_5e8ob247.movie` (0 bytes)
  
  .movie file is of 0 bytes. So, this is just a temporary file.
  
  .mux contains the real data and is of ~1.2 gb.
  
  How can I recover the .mux file?
  
  ## Notes :
  
  I see from kazam source code (<https://github.com/sconts/kazam>) that it is using Gstreamer internally.
  
  So, can you please suggest an appropriate gst-pipeline that can convert .mux into a playable .mp4 file?
  
  To provide more details, I tried to get some information about the recorded stream using gst-discoverer-1.0. But it fails saying it cannot read any details.
  
  ```
  gst-discoverer-1.0 kazam_5e8ob247.movie.mux
  Analyzing file:///home/username_0/sw/samples/kazam_5e8ob247.movie.mux
  Done discovering file:///home/username_0/sw/samples/kazam_5e8ob247.movie.mux
  An error was encountered while discovering the file
   Could not determine type of stream.
  
  ```
  
  ### First 1 MB :
  
  To analyze, the first 1 MB of the file can be found [here](https://drive.google.com/open?id=0B_ZonAmwyfqJb1hsVEgzQXhFMTg)
  
  **Tags:** video, video-editor, video-recording
  
  > **Comments:**
  > **username_1**: Please, post first 1mb of your file for analysis  
  > **username_0**: @username_1 I just added the link for the 1 MB of the video in the description  
  > **username_2**: There's a baseline H.264 stream in there, so this was meant to be a MP4. Generate a short video with kazam using the same settings as the broken one. Then use recover_mp4 from http://slydiman.me/eng/mmedia/recover_mp4.htm  
  > **username_0**: Thanks @Mulvya.. Looks very promising. As it needs a windows PC, I will try it later and will share the result. Tank you again.  
  > **username_1**: I just finished my own tool for video recovering: https://github.com/bookkojot/mp4fixer - try it.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2020-05-09. Score: 0 | Accepted answer
  
  the answer to this question was posted by username_1 as a comment to this question on 2017/10/12: <https://github.com/bookkojot/mp4fixer>
  
  This tool fixes exactly this problem. I tried it and it worked for me.
  There are a few simple steps involved, instructions are enclosed. You need a short properly saved video on the same machine with the same kazam to use as input so it knows what the headers should look like. And you get the mp4 from the temporary movie.mux.
  
  > **Comments:**
  > **username_0**: Thanks username_3. Accepting it as answer.  
  
  ---
  
  ### Answer by username_4 on 2020-10-18. Score: 0
  
  If **audio** is enough to be recovered, use **VLC** directly.
  
  * open VLC
  * go to media convert/stream, select the mux file, then convert
  * select profile audio-mp3 and then edit it, go to audio tab and check `keep original audio track`
  
  I tried several attempts for video converting, but no success. At least the audio steps worked for me.
  
  
  ---
  
  