mp4 file repair

William Salibrici bsalibrici at latticeinc.com
Wed Nov 8 18:55:25 UTC 2017


Thanks, Michael - I will check it out.

Bill


From: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of Michael MacIntosh
Sent: Wednesday, November 08, 2017 1:36 PM
To: gstreamer-devel at lists.freedesktop.org
Subject: Re: mp4 file repair


Hello,

You could try untrunc: https://github.com/ponchio/untrunc

But you need a reference file from the same source, and your mileage may vary with how much it will gather out of it.

In gstreamer land to get around this, you need to send the end of stream event.  I think sometimes the muxer might play nice with you and write the moov atom while going to null state, but it isn't something you should count on.  If you are using the command line, I believe you need the -e flag so it sends and waits for EOS when you hit CTRL+C.

Hope that helps!

Cheers,
Michael.

On 11/8/2017 7:46 AM, William Salibrici wrote:
I am creating mp4 recordings in a known format.
Below is the discover tool result [short version] for a test recording:

Topology:
  container: Quicktime
    audio: MPEG-4 AAC
    video: H.264 (Constrained Baseline Profile)

Properties:
  Duration: 0:00:48.000000000
  Seekable: yes
  Tags:
      audio codec: MPEG-4 AAC audio
      bitrate: 21346
      language code: en
      datetime: 2017-10-25T15:04:50Z
      container format: ISO MP4/M4A
      video codec: H.264 / AVC
      maximum bitrate: 5222160

The problem is that sometimes I will get a recording that was not finalized so the data is there but the recording is unreadable.
However, the audio and video formats are known.
The question is this: does anyone know of a repair tool that can go over the existing data in the recording file and create the proper moov atom at the end of the file?
Thank you for your help,

--Bill




--
This message has been scanned for viruses and dangerous content by
E.F.A. Project<http://www.efa-project.org>, and is believed to be clean.
Click here to report this message as spam.<http://lsefa1.linear-systems.com/cgi-bin/learn-msg.cgi?id=AC4A6100055.A6980&token=2e160facb7449abc020f656858c2db85>



_______________________________________________

gstreamer-devel mailing list

gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>

https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171108/c7fe84e0/attachment.html>


More information about the gstreamer-devel mailing list