maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   Problems Using FFMPEG to Convert Video (https://talk.maemo.org/showthread.php?t=4058)

rince 2007-01-14 22:23

Problems Using FFMPEG to Convert Video
 
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?

aflegg 2007-01-14 22:56

Re: Problems Using FFMPEG to Convert Video
 
Anything wrong with the existing solutions?


All times are GMT. The time now is 10:58.

vBulletin® Version 3.8.8