Samstag, 4. August 2012

MP4 Filme skalieren

Manchmal sind Filme, die ich mit meinem M750S aufgenommen habe, falsch skaliert. Mit mp4box lassen sie sich ziemlich einfach neu skalieren.

Zuerst mit mp4box die aktuellen Maße prüfen:


$ mp4box -info Ab\ durch\ die\ Hecke.mp4 
* Movie Info *
Timescale 1000 - Duration 01:17:24.880
Fragmented File no - 2 track(s)
File Brand isom - version 512
Created: GMT Thu Jan  1 00:00:00 1970


File has no MPEG4 IOD/OD


iTunes Info:
Name: Ab durch die Hecke
Comment: Convertified by iSquint - http://www.isquint.org
Encoder Software: Lavf50.5.0


Track # 1 Info - TrackID 1 - TimeScale 25 - Duration 01:17:24.880
Media Info: Language "Undetermined" - Type "vide:mp4v" - 116122 samples
Visual Track layout: x=0 y=0 width=640 height=480
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x20
MPEG-4 Visual Size 640 x 480 - Simple Profile @ Level 1
Pixel Aspect Ratio 1:1 - Indicated track size 640 x 480
Self-synchronized


Track # 2 Info - TrackID 2 - TimeScale 44100 - Duration 01:17:24.664
Media Info: Language "Undetermined" - Type "soun:mp4a" - 200029 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 44100
Synchronized on stream 1

Eigentlich sollte der Film in 16:9 sein. Am Einfachsten wird skaliert, indem man die gewünschte Breite errechnet: 480/9*16=853,333...

Ich wähle hier 856 als neue Breite.


$ mp4box -par 1=856:640 Ab\ durch\ die\ Hecke.mp4