Score
0
Watch 38 Star 91 Fork 25

pkuvcl / xavs2CGPL-2.0

xavs2在交叉编译时,输出错误,播放撕裂

Open
南海  Opened this issue

Describe the bug
同一视频,MinGW的xavs2.exe与VC++的xavs2.exe编码输出不同。
只有VC++的xavs2.exe的输出在ffplay中正常无撕裂。xavs2在交叉编译时,输出少数错误字节。

To Reproduce
1.编译生成xavs2
MinGW编译生成xavs2_x64_mingw.exe。VS2K19编译生成xavs2_x64_vc2k19.exe。

2.编码AVS视频:
xavs2_x64_vc2k19.exe -p InputFile=BQMall_832x480_60_ra.yuv --FramesToBeEncoded=500 --fps=50 --SourceWidth=832 --SourceHeight=480 --InputSampleBitDepth=8 --SampleBitDepth=8 --thread_frames=1 --thread_rows=1 --preset=0 --initial_qp=32 --OutputFile=BQMall_832x480_60_ra_vc2k19.avs
xavs2_x64_mingw.exe -p InputFile=BQMall_832x480_60_ra.yuv --FramesToBeEncoded=500 --fps=50 --SourceWidth=832 --SourceHeight=480 --InputSampleBitDepth=8 --SampleBitDepth=8 --thread_frames=1 --thread_rows=1 --preset=0 --initial_qp=32 --OutputFile=BQMall_832x480_60_ra_mingw.avs

3.播放视频。
ffplay BQMall_832x480_60_ra_vc2k19.avs 正常
ffplay BQMall_832x480_60_ra_mingw.avs 画面撕裂正常
输入图片说明
4.比较输出文件内容,可见少数字节不同:
I:\temp\avs>comp BQMall_832x480_60_ra_vc2k19.avs BQMall_832x480_60_ra_mingw.avs
Comparing BQMall_832x480_60_ra_vc2k19.avs and BQMall_832x480_60_ra_mingw.avs...
Compare error at OFFSET 972A
file1 = 45
file2 = 46
Compare error at OFFSET 972B
file1 = A4
file2 = 24
Compare error at OFFSET A365
file1 = 45
file2 = 46
Compare error at OFFSET A366
file1 = A8
file2 = 28
Compare error at OFFSET DA1F
file1 = 45
file2 = 46
Compare error at OFFSET DA20
file1 = C1
file2 = 41
Compare error at OFFSET 126C3
file1 = 45
file2 = 46
Compare error at OFFSET 126C4
file1 = A8
file2 = 28
Compare error at OFFSET 184D6
file1 = 45
file2 = 46
Compare error at OFFSET 184D7
file1 = A8
file2 = 28
10 mismatches - ending compare

Expected behavior
两个输出文件内容相同,且正常播放,

Desktop (please complete the following information):

OS: Window 10(x64)先启用Linux子系统,再从微软商店安装Ubuntu到该Windows.
Compiler Visual Studio 2019, x86_64-w64-mingw32-gcc (GCC) 10.1.0
yasm 1.3.0

total 1 participants

Comments (1)

南海 2020-07-15 16:24

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority