mp4 file repair

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

mp4 file repair

William Salibrici

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

 

 

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: mp4 file repair

Michael MacIntosh

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, and is believed to be clean.
Click here to report this message as spam.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: mp4 file repair

William Salibrici

Thanks, Michael – I will check it out.

 

Bill

 

 

From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Michael MacIntosh
Sent: Wednesday, November 08, 2017 1:36 PM
To: [hidden email]
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, and is believed to be clean.
Click here to report this message as spam.


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel