qyz1
帖子: 15
注册时间: 2013-03-01 9:47

Re: x264 - 06_taro编译版(r2309+704)

r2309+704 试了一个上版不正常的MKV封装WMV9编码 这次正常了
digimoon
帖子: 49
注册时间: 2011-07-15 11:59

Re: x264 - 06_taro编译版(r2323+704)

问一下兼容性问题,版本x264 core 132 r2315+704+40 0b51699 tMod [8-bit@all X86]

youtube上下了RWBY Black Trailer 720p版本,html5用video标签PSV能正常播放,然后:

第一个文件用tmod的x264,编码参数x264 black.mp4 --acodec none --output out.mp4,不能播放。文件信息

代码: 全选

Format                         : MPEG-4
Format profile                 : Base Media / Version 2
Codec ID                       : mp42
File size                      : 69.4 MiB
Duration                       : 5mn 17s
Overall bit rate               : 1 833 Kbps
Encoded date                   : UTC 2013-06-18 13:21:27
Tagged date                    : UTC 2013-06-18 13:21:27

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L3.1
Format settings, CABAC         : Yes
Format settings, ReFrames      : 4 frames
Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 5mn 17s
Bit rate                       : 1 831 Kbps
Maximum bit rate               : 5 292 Kbps
Width                          : 1 280 pixels
Height                         : 720 pixels
Display aspect ratio           : 16:9
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.066
Stream size                    : 69.3 MiB (100%)
Writing library                : x264 core 132 r2315+704+40 0b51699 tMod [8-bit@all X86]
Encoding settings              : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / fade_compensate=0.00 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0000 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 / aq-sensitivity=10.00 / aq-factor=1.00:1.00:1.00 / aq2=0 / aq3=0
Encoded date                   : UTC 2013-06-18 13:21:27
Tagged date                    : UTC 2013-06-18 13:21:27
Matrix coefficients            : BT.709
第二个文件用ffmpeg,编码参数ffmpeg -i black.mp4 out2.mp4,能正常播放。文件信息

代码: 全选

Format                         : MPEG-4
Format profile                 : Base Media
Codec ID                       : isom
File size                      : 74.4 MiB
Duration                       : 5mn 17s
Overall bit rate               : 1 966 Kbps
Writing application            : Lavf55.3.100

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L3.1
Format settings, CABAC         : Yes
Format settings, ReFrames      : 4 frames
Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 5mn 17s
Bit rate                       : 1 831 Kbps
Width                          : 1 280 pixels
Height                         : 720 pixels
Display aspect ratio           : 16:9
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.066
Stream size                    : 69.3 MiB (93%)
Writing library                : x264 core 132 r2309 3b1f1f7
Encoding settings              : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                             : 2
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : 40
Duration                       : 5mn 17s
Duration_LastFrame             : -10ms
Bit rate mode                  : Constant
Bit rate                       : 128 Kbps
Channel(s)                     : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 44.1 KHz
Compression mode               : Lossy
Delay relative to video        : 67ms
Stream size                    : 4.85 MiB (7%)
第三个文件是用ffmepg直接remux第一个文件,编码参数ffmpeg -i out.mp4 -c copy out3.mp4,不能播放。文件信息

代码: 全选

ormat                         : MPEG-4
Format profile                 : Base Media
Codec ID                       : isom
File size                      : 69.4 MiB
Duration                       : 5mn 17s
Overall bit rate               : 1 833 Kbps
Writing application            : Lavf55.3.100

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L3.1
Format settings, CABAC         : Yes
Format settings, ReFrames      : 4 frames
Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 5mn 17s
Bit rate                       : 1 831 Kbps
Width                          : 1 280 pixels
Height                         : 720 pixels
Display aspect ratio           : 16:9
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.066
Stream size                    : 69.3 MiB (100%)
Writing library                : x264 core 132 r2315+704+40 0b51699 tMod [8-bit@all X86]
Encoding settings              : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / fade_compensate=0.00 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0000 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 / aq-sensitivity=10.00 / aq-factor=1.00:1.00:1.00 / aq2=0 / aq3=0
Matrix coefficients            : BT.709
第四个用x264.nl上下的,版本x264 0.133.2334 a3ac64b。编码参数x264 black.mp4 --output out4.mp4,能正常播放。文件信息

代码: 全选

Format                         : MPEG-4
Format profile                 : JVT
Codec ID                       : avc1
File size                      : 69.4 MiB
Duration                       : 5mn 17s
Overall bit rate               : 1 833 Kbps
Encoded date                   : UTC 2013-06-18 13:49:13
Tagged date                    : UTC 2013-06-18 13:49:13

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L3.1
Format settings, CABAC         : Yes
Format settings, ReFrames      : 4 frames
Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 5mn 17s
Bit rate                       : 1 831 Kbps
Maximum bit rate               : 5 292 Kbps
Width                          : 1 280 pixels
Height                         : 720 pixels
Display aspect ratio           : 16:9
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.066
Stream size                    : 69.3 MiB (100%)
Writing library                : x264 core 133 r2334 a3ac64b
Encoding settings              : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date                   : UTC 2013-06-18 13:49:13
Tagged date                    : UTC 2013-06-18 13:51:19
求解决方法。。。
264768502
核心会员
核心会员
帖子: 402
注册时间: 2010-09-23 17:38

Re: x264 - 06_taro编译版(r2323+704)

试试--device psv
digimoon
帖子: 49
注册时间: 2011-07-15 11:59

Re: x264 - 06_taro编译版(r2323+704)

264768502 写了:试试--device psv
无法播放
264768502
核心会员
核心会员
帖子: 402
注册时间: 2010-09-23 17:38

Re: x264 - 06_taro编译版(r2323+704)

本来以为是因为视频文件不含音频所以放不了(PSP时代,骚尼就有这问题)
不过官版的压制成品竟然可以...
还是敲taro来看看吧
digimoon
帖子: 49
注册时间: 2011-07-15 11:59

Re: x264 - 06_taro编译版(r2323+704)

264768502 写了:本来以为是因为视频文件不含音频所以放不了(PSP时代,骚尼就有这问题)
不过官版的压制成品竟然可以...
还是敲taro来看看吧
因为用tmod编音频最后会crash所以我才禁用了,ffmpeg禁用音频也能正常播的。
digimoon
帖子: 49
注册时间: 2011-07-15 11:59

Re: x264 - 06_taro编译版(r2323+704)

因为直接在psv的播放器里看是没问题的,只是用浏览器html5播的时候不能播放
所以我试试看用mp4box hint一下,hint后就能正常播了
难道官版和ffmpeg出来的都自带hint还是说有什么其他原因么?
264768502
核心会员
核心会员
帖子: 402
注册时间: 2010-09-23 17:38

Re: x264 - 06_taro编译版(r2323+704)

tmod默认是lsmash做mp4 muxer
官版是用啥来着...不记得了
mp4box默认带hint

html5里并不一定用rtp/rtsp方式做streaming,不知道psv内置的浏览器是用什么方式
hint应该是给rtp/rtsp用的,inter倒是用来分隔文件使之适应http
digimoon
帖子: 49
注册时间: 2011-07-15 11:59

Re: x264 - 06_taro编译版(r2323+704)

264768502 写了:tmod默认是lsmash做mp4 muxer
官版是用啥来着...不记得了
mp4box默认带hint

html5里并不一定用rtp/rtsp方式做streaming,不知道psv内置的浏览器是用什么方式
hint应该是给rtp/rtsp用的,inter倒是用来分隔文件使之适应http
现在一般的html5流用最多的是苹果那HLS吧?
我没有用到那个,只是简单的<video src="out.mp4">然后扔apache用psv打开看而已。
264768502
核心会员
核心会员
帖子: 402
注册时间: 2010-09-23 17:38

Re: x264 - 06_taro编译版(r2323+704)

不一定是水果的HLS,那种得把文件真的分割成好多个,然后弄个索引文件m3u8,嘛,这个不是讨论的重点啦,越扯越远啦

具体到你的情况,只是最简单的video标签的话,用的就是浏览器自带的播放器了,只是目前的情况的话,很难说是谁的问题,毕竟播放器的支持特性不一样
有兴趣的话可以在试试看PC上几个支持HTML5视频的浏览器,来看看情况.

回到 “视频编码器 / Video encoder discussion”