Samsung LE40B650 and MP4 - A Solution

Help
Anonymous
2012-11-06
2013-05-29

  • Anonymous
    2012-11-06

    I spent the whole afternoon trying to figure out why some MP4-Videos wouldn't play on my Samsung LE40B650 when "mediainfo" brought me on the right track. The files that wouldn't play had corrupted headers.

    for i in *.mp4 do; mediainfo -f "$i" | grep Header; done
    

    gave me this:

    HeaderSize                               : 655523
    HeaderSize                               : 662471
    HeaderSize                               : 662515
    HeaderSize                               : 662543
    HeaderSize                               : 661451
    HeaderSize                               : 663923
    HeaderSize                               : 662871
    HeaderSize                               : 20
    HeaderSize                               : 665863
    HeaderSize                               : 670015
    HeaderSize                               : 662719
    HeaderSize                               : 665631
    

    Guess which file wouldn't play…

    To fix the corrupt header, use ffmpeg:

    ffmpeg -i FILENAME.mp4 -acodec copy -vcodec copy NEWFILENAME.mp4
    

    This just copies sound and video into a new MP4-file with correct headers. Since it just copies and doesn't transcode anything it finishes quite quickly.