这是我的Xbox 360拒绝播放的视频文件:
$ MP4Box -info video.mp4
* Movie Info *
Timescale 90000 - Duration 02:18:33.365
Fragmented File no - 2 track(s)
File Brand mp42 - version 0
Created: GMT Sat Jul 21 07:08:55 2012
File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: ISO Reserved Profile (0x7f)
Audio PL: High Quality Audio Profile @ Level 2 (0x0f)
No streams included in root OD
iTunes Info:
Encoder Software: HandBrake 0.9.6 2012022800
Track # 1 Info - TrackID 1 - TimeScale 90000 - Duration 02:18:33.235
Media Info: Language "Undetermined" - Type "vide:avc1" - 199318 samples
Visual Track layout: x=0 y=0 width=1280 height=688
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1280 x 688
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 4.1
NAL Unit length bits: 32
Self-synchronized
Track # 2 Info - TrackID 2 - TimeScale 48000 - Duration 02:18:33.365
Media Info: Language "English" - Type "soun:mp4a" - 389689 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio MPEG-4 Audio AAC LC - 6 Channel(s) - SampleRate 48000
Synchronized on stream 1
$ avconv -i video.mp4
avconv version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Nov 6 2012 16:51:33 with gcc 4.6.3
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
creation_time : 2012-07-21 07:08:55
encoder : HandBrake 0.9.6 2012022800
Duration: 02:18:33.36, start: 0.000000, bitrate: 2299 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1280x688, 1973 kb/s, 23.98 fps, 90k tbr, 90k tbn, 180k tbc
Metadata:
creation_time : 2012-07-21 07:08:55
Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, s16, 319 kb/s
Metadata:
creation_time : 2012-07-21 07:08:55
At least one output file must be specified
我应该使用什么工具(例如ffmpeg或mencoder)以及什么样的魔术命令行咒语将此文件转码为Xbox 360可以播放的格式?我希望转码过程能够保持尽可能好的视频质量。
在slhck的帮助下,我设法创建了一个新的mp4文件,并将音频更改为两个通道。但是Xbox 360仍出于某种原因拒绝播放它。这是MP4Box和ffmpeg关于新文件的内容:
$ MP4Box -info final.mp4
* Movie Info *
Timescale 1000 - Duration 02:18:33.343
Fragmented File no - 2 track(s)
File Brand isom - version 512
Created: GMT Sat Jul 21 07:08:55 2012
File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: Not part of MPEG-4 Visual profiles (0xfe)
Audio PL: Not part of MPEG-4 audio profiles (0xfe)
No streams included in root OD
iTunes Info:
Encoder Software: Lavf53.21.0
Track # 1 Info - TrackID 1 - TimeScale 90000 - Duration 02:18:33.193
Media Info: Language "Undetermined" - Type "vide:avc1" - 199318 samples
Visual Track layout: x=0 y=0 width=1280 height=688
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1280 x 688
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 4.1
NAL Unit length bits: 32
Self-synchronized
Track # 2 Info - TrackID 2 - TimeScale 48000 - Duration 02:18:33.343
Media Info: Language "Undetermined" - Type "soun:mp4a" - 389688 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 48000
Synchronized on stream 1
Alternate Group ID 1
$ avconv -i final.mp4
avconv version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Nov 6 2012 16:51:33 with gcc 4.6.3
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'final.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2012-07-21 07:08:55
encoder : Lavf53.21.0
Duration: 02:18:33.34, start: 0.000000, bitrate: 2161 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1280x688, 1973 kb/s, 23.98 fps, 90k tbr, 90k tbn, 180k tbc
Metadata:
creation_time : 2012-07-21 07:08:55
Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 180 kb/s
Metadata:
creation_time : 2012-07-21 07:08:55
At least one output file must be specified
avconv
而不是时,它几乎可以工作ffmpeg
。但后来我得到错误:无法重新取样6个频道@ 48000赫兹到2个通道@ 48000赫兹