Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xatabhk opened this issue Jul 15, 2020 · 2 comments
Open

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

xatabhk opened this issue Jul 15, 2020 · 2 comments

Comments

@xatabhk
Copy link

xatabhk commented Jul 15, 2020

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

Additional context
见附件
mingw_xavs2_撕裂
附件_exe_avs.zip

@luofalei
Copy link
Member

@xatabhk 你好,我目前没有MinGW的环境。能否提供MinGW的版本、安装过程,以及利用MinGW进行编译的过程说明?

@xatabhk
Copy link
Author

xatabhk commented Jul 17, 2020

你好,附件是下载编译批文件。
quick_xavs2.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants