I've got a few fairly large (1-5GB) .mp4 files from xsplit from an event I recorded. They won't open in VLC or PotPlayer and attempting to reencode them with ffmpeg yields a "unspecified pixel format" error. I really need these recordings and any help would be greatly appreciated.
I saw a few threads about editing the header of the .mp4 file, but after looking at it in a hex editor, I don't know where the header ends and the body begins.
+ Reply to Thread
Results 1 to 27 of 27
-
-
If you're able to throw money instead of time at the problem, try mp4repair.org.
-
-
Have you tried run them through ffmpeg?
Code:c:\program\ffmpeg -i c:\video\video.mp4 -vcodec copy -acodec copy c:\video\newvideo.mp4
You could also try video repair tool. Try the trial(repair half video) and see if you get anything at all. You choose a working mp4 and the broken one. -
-
Use ffprobe on a known good file to use as a reference of what parameters to use.
Scott -
ffprobe on a known good video returns:
Code:Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 Duration: 01:00:02.17, start: 0.000000, bitrate: 4528 kb/s Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 98 kb/s (default) Metadata: handler_name : SoundHandler Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 4422 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default) Metadata: handler_name : VideoHandler
Code:ffmpeg -f rawvideo -vcodec rawvideo -s 1280x720 -r 30 -pix_fmt yuv420p -i inputfile.mp4 -c:v libx264 -preset medium -qp 23 output.mp4
-
What happens if you leave out all the rawvideo stuff and just specify pix_fmt as an input option? I.e.
ffmpeg -pix_fmt yuv420p -i inputfile.mp4 -c:v libx264 -preset medium -qp 23 output.mp4
-
Maybe you can use it with File Repair.
Or when I have that sort of problem, I convert the file in another format (avi, mp4, whatever you want) sometimes you can finally play the video after the conversion. -
-
-
-
-
Can you post the entire output of ffprobe?
ffprobe badfile.mp4
-
-
Does adding the -loglevel debug option before the filename produce anything?
Hate to say it, but your options are looking to be either paying someone else to recover the files, if possible, or studying the MPEG-4 Part 10 and Part 14 specifications until you have learned enough to hack the files in a byte editor. -
I just tried the tool mentioned in this stackoverflow question: http://stackoverflow.com/questions/23202611/repairing-a-corrupt-mp4-video-file
I was able to get a .h264 and a .acc file that both play fine in PotPlayer. Now I need to figure out how to combine the two into a .mp4 file with ffmpeg. Any ideas? -
-
-
You may need to specify -fflags +genpts before the input file (before the -i) that's causing the problem.
-
Code:
ffmpeg.exe -fflags +genpts -i "G:\recover tool\recovered.h264" -i "G:\recover tool\recovered.aac" -c copy -bsf:a aac_adtstoasc -map 0:v -map 1:a "G:\NE FIRST UMass District\2015-03-14_075202579_recovered_2.mp4"
-
I have no idea because you didn't post the output. I would guess audio because that's where you got the error message.
Similar Threads
-
repairing restored .mp4 files from a toshiba camcorder
By vxrandall in forum Video ConversionReplies: 2Last Post: 28th Mar 2014, 17:21 -
Repairing Corrupt MPG Files
By PharaohZ in forum RestorationReplies: 2Last Post: 12th Feb 2014, 04:55 -
Corrupt MP4 files
By rawkstarinjapan in forum Video ConversionReplies: 2Last Post: 21st Sep 2012, 13:24 -
MP4 Corrupt files help please
By TomoachiChan in forum Newbie / General discussionsReplies: 2Last Post: 18th Oct 2010, 11:06 -
Need help repairing mp4 files and willing to pay for your service!
By leangkean in forum Newbie / General discussionsReplies: 19Last Post: 25th Sep 2010, 00:30