mp4 file repair

Michael MacIntosh mmacintosh at linear-systems.com
Wed Nov 8 18:36:21 UTC 2017


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
> 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/afe18bdb/attachment-0001.html>


More information about the gstreamer-devel mailing list