View Single Post
Posts: 3 | Thanked: 0 times | Joined on Jan 2007
#1
I'm having trouble using ffmpeg to convert video so that it'll be playable on the n800.

The test video I'm using was originally encoded by Quicktime 7 as a MP4 file using MPEG-4 Video and AAC
Code:
$ file input.mp4 
input.mp4: ISO Media, MPEG v4 system, version 2

Header:
....ftypmp42....
mp42mp41....moov
...lmvhd.....*..
When I encode it to a resolution that will work with the n800s media player using Quicktime 7, the file plays just fine
Code:
File:
$ file qt-attempt.mp4 
qt-attempt.mp4: ISO Media, MPEG v4 system, version 2
Header:
....ftypmp42....
mp42mp41..'*moov
...lmvhd......9.
But when I try to encode it using ffmpeg, using these options
Code:
/usr/local/bin/ffmpeg -i input.mp4 -b 512 -padleft 40 -padright 40 -padtop 32 -padbottom 32 -vcodec mpeg4 -ab 128 -acodec aac  attempt4.mp4
The file does not work in media player
Code:
File:
$ file attempt.mp4 
attempt.mp4: ISO Media, MPEG v4 system, version 1
Header:
....ftypisom....
mp41....wide..1O
mdat............
As you can see, the file header is different. Quicktime uses a different header - and that works on the n800. But ffmpeg's header is different so Media Player fails.

So how do I get ffmpeg to make files that will work on the n800?