『漫游』酷论坛>『影音数码技术学习交流』>mp4box append bug?
mp4box append bug?
MeteorRain@2011-05-29 23:49
在压maihime的bdrip,24+30于是手动切开然后分别x264压成两段mp4,然后用mp4box做append。做出来的视频似乎有问题
- Part1
- Video: MPEG4 Video (H264) 960x720 23.98fps [GPAC ISO Video Handler]
- General
- Complete name : Y:\BDEncoding\MaiHime\01.v.mp4
- Format : MPEG-4
- Format profile : Base Media
- Codec ID : isom
- File size : 144 MiB
- Duration : 23mn 56s
- Overall bit rate : 842 Kbps
- Video
- ID : 1
- Format : AVC
- Format/Info : Advanced Video Codec
- Format profile : High@L4.1
- Format settings, CABAC : Yes
- Format settings, ReFrames : 6 frames
- Format settings, GOP : M=6, N=28
- Codec ID : avc1
- Codec ID/Info : Advanced Video Coding
- Duration : 23mn 56s
- Bit rate mode : Variable
- Bit rate : 840 Kbps
- Maximum bit rate : 5 110 Kbps
- Width : 960 pixels
- Height : 720 pixels
- Display aspect ratio : 4:3
- Frame rate mode : Constant
- Frame rate : 23.976 fps
- Color space : YUV
- Chroma subsampling : 4:2:0
- Bit depth : 8 bits
- Scan type : Progressive
- Bits/(Pixel*Frame) : 0.051
- Stream size : 144 MiB (100%)
- Writing library : x264 core 114 r1924 08d04a4
- Part2
- Video: MPEG4 Video (H264) 960x720 29.95fps [GPAC ISO Video Handler]
- General
- Complete name : Y:\BDEncoding\MaiHime\01.vsp.mp4
- Format : MPEG-4
- Format profile : JVT
- Codec ID : avc1
- File size : 3.63 MiB
- Duration : 1mn 4s
- Overall bit rate : 475 Kbps
- Video
- ID : 1
- Format : AVC
- Format/Info : Advanced Video Codec
- Format profile : High@L4.1
- Format settings, CABAC : Yes
- Format settings, ReFrames : 6 frames
- Format settings, GOP : M=1, N=32
- Codec ID : avc1
- Codec ID/Info : Advanced Video Coding
- Duration : 1mn 4s
- Bit rate mode : Variable
- Bit rate : 473 Kbps
- Maximum bit rate : 2 594 Kbps
- Width : 960 pixels
- Height : 720 pixels
- Display aspect ratio : 4:3
- Frame rate mode : Constant
- Frame rate : 29.970 fps
- Color space : YUV
- Chroma subsampling : 4:2:0
- Bit depth : 8 bits
- Scan type : Progressive
- Bits/(Pixel*Frame) : 0.023
- Stream size : 3.61 MiB (99%)
- Writing library : x264 core 114 r1924 08d04a4
- >mp4box -cat ../01.v.mp4 -cat ../01.vsp.mp4 ../01.vx.mp4
- Appending file ../01.v.mp4
- No suitable destination track found - creating new one (type vide)
- Appending file ../01.vsp.mp4
- Saving to ../01.vx.mp4: 0.500 secs Interleaving
- Video: MPEG4 Video (H264) 960x720 567.70fps [GPAC ISO Video Handler]
- General
- Complete name : Y:\BDEncoding\MaiHime\01.vx.mp4
- Format : MPEG-4
- Format profile : Base Media
- Codec ID : isom
- File size : 148 MiB
- Duration : 25mn 0s
- Overall bit rate : 826 Kbps
- Video
- ID : 1
- Format : AVC
- Format/Info : Advanced Video Codec
- Format profile : High@L4.1
- Format settings, CABAC : Yes
- Format settings, ReFrames : 6 frames
- Format settings, GOP : M=6, N=28
- Codec ID : avc1
- Codec ID/Info : Advanced Video Coding
- Duration : 25mn 0s
- Bit rate mode : Variable
- Bit rate : 824 Kbps
- Maximum bit rate : 5 110 Kbps
- Width : 960 pixels
- Height : 720 pixels
- Display aspect ratio : 4:3
- Frame rate mode : Variable
- Frame rate : 24.232 fps
- Original frame rate : 29.970 fps
- Minimum frame rate : 23.976 fps
- Maximum frame rate : 120.000 fps
- Color space : YUV
- Chroma subsampling : 4:2:0
- Bit depth : 8 bits
- Scan type : Progressive
- Bits/(Pixel*Frame) : 0.049
- Stream size : 147 MiB (100%)
- Writing library : x264 core 114 r1924 08d04a4
MPC-HC显示长度为1:04,画面卡顿完全没法看
- mp4box -add ../01.vx.mp4 -add ../01.ajp.mp4 -add ../01.aen.mp4 -add ../01.acn.mp4 -lang ja ../Mai\ Hime\ 01.mp4
- Video: MPEG4 Video (H264) 960x720 567.70fps [GPAC ISO Video Handler (jpn)]
- Audio: AAC 24000Hz stereo 138kbps [GPAC ISO Audio Handler (jpn)]
- Audio: AAC 24000Hz stereo 138kbps [GPAC ISO Audio Handler (jpn)]
- Audio: AAC 24000Hz stereo 140kbps [GPAC ISO Audio Handler (jpn)]
- General
- Complete name : Y:\BDEncoding\MaiHime\Mai Hime 01.mp4
- Format : MPEG-4
- Format profile : Base Media
- Codec ID : isom
- File size : 223 MiB
- Duration : 25mn 0s
- Overall bit rate : 1 247 Kbps
- Video
- ID : 1
- Format : AVC
- Format/Info : Advanced Video Codec
- Format profile : High@L4.1
- Format settings, CABAC : Yes
- Format settings, ReFrames : 6 frames
- Format settings, GOP : M=6, N=28
- Codec ID : avc1
- Codec ID/Info : Advanced Video Coding
- Duration : 25mn 0s
- Bit rate mode : Variable
- Bit rate : 824 Kbps
- Maximum bit rate : 5 110 Kbps
- Width : 960 pixels
- Height : 720 pixels
- Display aspect ratio : 4:3
- Frame rate mode : Variable
- Frame rate : 24.232 fps
- Original frame rate : 29.970 fps
- Minimum frame rate : 23.976 fps
- Maximum frame rate : 120.000 fps
- Color space : YUV
- Chroma subsampling : 4:2:0
- Bit depth : 8 bits
- Scan type : Progressive
- Bits/(Pixel*Frame) : 0.049
- Stream size : 147 MiB (66%)
- Writing library : x264 core 114 r1924 08d04a4
- 下略
MPC-HC显示长度为25:00(正确),画面卡顿完全没法看
使用的mp4box是kurtnoise最后编译版 MP4Box-0.4.6-rev2735.zip
求解或者求相关信息
MeteorRain@2011-05-29 23:55
顺带一下,解码器切成coreavc以后,虽然mpc-hc仍然报告567fps,但是至少不卡能看了……orz
MeteorRain@2011-05-30 02:49
补上修复方法:
在最终文件上,用ffmpeg的copy方法重写一遍流,然后用改动过的mp4fpsmod调整timescale重写一遍timecode就好了
第二步是可选的[ 此帖被MeteorRain在2011-05-30 03:27重新编辑 ]
06_taro@2011-05-30 03:07
刚刚想回复用mp4fpsmod试试的……
mp4box在我这儿对视频做append很少不RP的,不知道为啥……
还是老老实实等l-smash的standalone muxer出来吧……
MeteorRain@2011-05-30 03:30
前面花了些时间改了下mp4fpsmod的源码,编译了以后在第1话上用了一下发现成功了。以为自己已经搞定了,结果发现第2话开始mp4v2库出现内部错误了……
对比了一下基本数据,发现唯一有差别的就是major brand,第1话是isom(Base Media),而后面的全都是avc1(JVT)了……(发生什么事了?)
同一个脚本批量跑出来的竟然也会出这种问题……总之ffmpeg过一遍流似乎就好了……
06_taro@2011-05-30 04:02
gpac的东西真混乱……lsmash跑出来的清一色是Base Media / Version 2(mp42)……
upyzl@2011-05-30 18:19
涉及append都不敢去用mp4,一律弄mkv了...
ffmpeg的lavf封装比GPAC靠谱倒是真的
| TOP