MP4 Video & audio lost after angle change & Save Metadata

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
xanda
Blank Cone
Blank Cone
Posts: 16
Joined: 04 Sep 2011 14:54

MP4 Video & audio lost after angle change & Save Metadata

Postby xanda » 22 Jun 2020 17:35

We have managed to bork an MP4 video after saving it with new metadata and while the angle transform geometry was applied.

The file still 'plays' with VLC reporting that there are H264 video & AAC audio streams present but with nothing of either being displayed in the statistics. Other players exhibit the same.

Running it through ffprobe/ffmpeg yields the following (partial report):-
[h264 @ 0000000000398200] Invalid NAL unit size (2029866413 > 192170).
[h264 @ 0000000000398200] Error splitting the input into NAL units.
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003854c0] decoding for stream 0 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003854c0] Could not find codec parameters for stream 0
(Video: h264 (avc1 / 0x31637661), none(tv, bt709), 1920x1080, 20005 kb/s): unspecified pixel format
We've tried tinkering with the angle/geometry to see if this forces anything back but without success.

Is there a way to recover this video?

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: MP4 Video & audio lost after angle change & Save Metadata

Postby Rémi Denis-Courmont » 23 Jun 2020 17:47

It really depends how the tool involved broke it. I don't think anybody here can give an answer.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

xanda
Blank Cone
Blank Cone
Posts: 16
Joined: 04 Sep 2011 14:54

Re: MP4 Video & audio lost after angle change & Save Metadata

Postby xanda » 23 Jun 2020 18:22

Thank you for responding.
It really depends how the tool involved broke it...
This is really the question. Is there anyway to determine what has taken place (even if with another tool)?

JohnyC
New Cone
New Cone
Posts: 5
Joined: 22 Nov 2019 15:06

Re: MP4 Video & audio lost after angle change & Save Metadata

Postby JohnyC » 24 Jun 2020 09:35

If you have a sample (playable) file recorded with the same camera and settings, you could extract metadata from it and then insert it into the corrupted MP4 file. There is a free tool, called "Recover MP4" that can do just that. Plus, you will need FFmpeg to merge the resulting video and audio streams into the final MP4 file. Both Recover MP4 and FFmpeg are command prompt tools, so you will have to run a few simple commands to get them working. There was a detailed guide on how to use them, which I can't find so far. If I recall where the guide is, I will update you here.

JohnyC
New Cone
New Cone
Posts: 5
Joined: 22 Nov 2019 15:06

Re: MP4 Video & audio lost after angle change & Save Metadata

Postby JohnyC » 25 Jun 2020 12:54

If you have a sample (playable) file recorded with the same camera and settings, you could extract metadata from it and then insert it into the corrupted MP4 file. There is a free tool, called "Recover MP4" that can do just that. Plus, you will need FFmpeg to merge the resulting video and audio streams into the final MP4 file. Both Recover MP4 and FFmpeg are command prompt tools, so you will have to run a few simple commands to get them working. There was a detailed guide on how to use them, which I can't find so far. If I recall where the guide is, I will update you here.
I found the guide: https://restore.media/blog/how-to-fix-c ... -mp4-files

You need to scroll down to the section where the Recover MP4 tool is described. Again, it's free, but you'll have to run it through the Command Prompt. In reality, this isn't that complicated. But if you get any troubles, you can also PM me the file and I will try to repair it myself.

xanda
Blank Cone
Blank Cone
Posts: 16
Joined: 04 Sep 2011 14:54

Re: MP4 Video & audio lost after angle change & Save Metadata

Postby xanda » 25 Jun 2020 14:22

Thank you for the tip. We have tried the utility but without success.

We tested Recover MP4 using a working/reference clip plus a copy of it in which to change the angle & metadata. Unfortunately the header transfer from reference to copy doesn't yield any useable result.

As far as we can tell the header is intact: metadata, resolution, audio bitrate and so forth are easily readable. When playing the broken file, VLC reports blocks of audio & video are decoded but none for playback/display.

It would be helpful to know what VLC does when saving a clip under these conditions.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests