MP4Boxのバージョンを上げたら?
MP4Boxのバージョンを上げたらおかしなことになった。MeGUIについてたやつなんだけど…
M:\MP4Box_045>mp4box -version MP4Box - GPAC version 0.4.5 (build 33 - Dec 11 2008) - compiled by Kurtnoise GPAC Copyright: (c) Jean Le Feuvre 2000-2005 (c) ENST 2005-200X
これで、元サイズ 960 * 720 のビデオを 16:9 で表示させようと思って以下のようにすると…
M:\MP4box_045>mp4box -fps 23.98 -add hayate.h264#video:par=4:3 hayate.mp4 M:\MP4box_045>mp4box -info hayate.mp4 (省略) Track # 1 Info - TrackID 1 - TimeScale 23980 - Duration 00:24:34.603 Media Info: Language "Undetermined" - Type "vide:avc1" - 35361 samples MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21 AVC/H264 Video - Visual Size 960 x 720 - Profile High @ Level 4 NAL Unit length bits: 32 Pixel Aspect Ratio 4:3 - Indicated track size 960 x 720 Self-synchronized
こんな感じになる。コレを再生しようとするとなんか解像度がおかしかったりする。
とくに、MPC + HaaliSplitter + XviD なやつだと、最初だけ 1280 * 720 で、途中 (次のシーンチェンジあたり) から解像度が 960 * 720 になるという気持ち悪いことが起きてしまう。
ちなみに、AviUtl関連でどっかから落としてきたバージョンだと…
M:\MP4Box_043>mp4box -version MP4Box - GPAC version - 0.4.3-DEV - Compiled by Kurtnoise - Nov 15 2006 GPAC Copyright: (c) Jean Le Feuvre 2000-2005 (c) ENST 2005-200X
M:\MP4box_043>mp4box -fps 23.98 -add hayate.h264#video:par=4:3 hayate.mp4 M:\MP4box_043>mp4box -info hayate.mp4 (省略) Track # 1 Info - TrackID 1 - TimeScale 23980 - Duration 00:24:34.603 Media Info: Language "Undetermined" - Type "vide:avc1" - 35361 samples MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21 AVC/H264 Video - Visual Size 960 x 720 - Profile High @ Level 4 NAL Unit length bits: 32 Pixel Aspect Ratio 4:3 - Indicated track size 1280 x 720 Self-synchronized
こっちだとちゃんとした解像度で再生される。
エンコードでなんか変な指定しちゃったかなぁと思って何度もエンコードしなおしたり、結構ハマりました。古いバージョン使い続ければ良さそうだけど、なんか指定が間違ってんのかな? コマンド変わったとか?