Log in

View Full Version : Help! Bad h.264 file inside of mkv.. possible to re-encode and not lose much quality?


molitar
18th December 2005, 05:02
:confused: Ok here is what I have.. one mkv container containg a badly encoded h.264 file it seems. When I used mkvextract to extract the avi file and did a check on the file it is named track1. with no extension. Secondly the entire header seems to be missing. Except for the missing header the file is good because using nero video decoder in graphedit it will play back fine.

So It appears I need to re-encode it unless you all have some other suggestions? I tried using the saved graph with just the haali media splitter and nero decoder loaded into avisynth with directsource by the suggestion of manao but the default setting quality was so bad it looked like the entire video was in a smoke filled room. So how can I re-encode this or possibly fix the bad h.264 file so that I can still retain the quality of the video?

If you think you maybe able to help me out with this issue you may download a 20 meg clip of it from http://malaac.dnip.net/files/Seraphim-002.mkv

Hope someone is able to help me with this problem.

buzzqw
18th December 2005, 09:07
for extract run something like this

"mkvextract.exe" tracks "Seraphim-002.mkv" 1:"Seraphim-002_track1.h264" 2:"Seraphim-002_track2.aac" 3:"Seraphim-002_track3.srt"

all in one line

you have two choice

1) with mp4box transcode raw h264 to a regular mp4 file
2) with avc2avi trascode to avi ( avc2avi.exe -i Seraphim-002_track1.h264 -o Seraphim-002.avi)

i am not an anime fan but quality seems ok to me

hope that helps !

BHH