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

HEVC: HevcAspectRatio seems to be not working #64

Closed
rigaya opened this issue Jan 28, 2017 · 3 comments
Closed

HEVC: HevcAspectRatio seems to be not working #64

rigaya opened this issue Jan 28, 2017 · 3 comments

Comments

@rigaya
Copy link

rigaya commented Jan 28, 2017

I was trying to set aspect ratio to the stream, which does not seem to work with HEVC encoding. (I'm using RX460 with Radeon Software 17.1.1)

When I try
VCEEncoderD3D.exe -output test.264 -WIDTH 1440 -HEIGHT 1080 -FRAMES 500 -usage transcoding -AspectRatio 4,3

The output of ffprobe is like below, I can get H.264 stream with aspect ratio applied.
Stream #0:0: Video: h264 (Main), yuv420p(tv, progressive), 1440x1080 [SAR 4:3 DAR 16:9], 30 fps, 30 tbr, 1200k tbn, 60 tbc

However, when I try
VCEEncoderD3D.exe -output test.hevc -WIDTH 1440 -HEIGHT 1080 -FRAMES 500 -CODEC HEVC -HevcUsage transcoding -HevcAspectRatio 4,3

I get HEVC stream, but the output of ffprobe is like below, aspect ratio not applied.
Stream #0:0: Video: hevc (Main), yuv420p(tv), 1440x1080, 25 fps, 25 tbr, 1200k tbn, 25 tbc

I also checked with MediaInfo, but it was the same. How can I make "HevcAspectRatio" working?

@MikhailAMD
Copy link
Collaborator

Aspect ratio is stored in the optional VUI header inside SPS NAL unit in AVC and HEVC, AVC encoder produces VUI header while HEVC is not. I already put a request to add VUI to HEVC.

@MikhailAMD
Copy link
Collaborator

Frame rate and aspect ratio info should be added to VUI header in 17.7.2 driver.

@MikhailAMD
Copy link
Collaborator

Tested by modifying SimpleEncoder sample with driver v17.8.1: aspect ratio is now available in VUI header

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