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: The codec information is incorrect. #3271

Closed
winlinvip opened this issue Nov 22, 2022 · 0 comments · Fixed by #3286
Closed

HEVC: The codec information is incorrect. #3271

winlinvip opened this issue Nov 22, 2022 · 0 comments · Fixed by #3286
Assignees
Labels
Codec HEVC, FFmpeg for ingesting, trascoding or codec. TransByAI Translated by AI/GPT.
Milestone

Comments

@winlinvip
Copy link
Member

winlinvip commented Nov 22, 2022

Description

For HEVC, the stream description is incorrect.

  1. SRS Version: 6.0.2

  2. SRS Log:

2457B video sh,  codec(12, profile=Other, level=Other, 0x0, 0kbps, 0.0fps, 0.0s)
  1. SRS Config: conf/hevc.flv.conf

Replay:

Please describe how to replay the bug? (Steps to reproduce the bug)

  1. ./objs/srs -c conf/hevc.flv.conf
  2. ./ffmpeg -re -i ~/srs/doc/source.flv -acodec copy -vcodec libx265 -f flv rtmp://localhost/live/livestream
  3. Check log of SRS.

Expect (Expected behavior)

Should show correct metadata about stream, such as the profile, resolution and fps, etc.

The HTTP API stream information is also incorrect: http://localhost:1985/api/v1/streams/

TRANS_BY_GPT3

@winlinvip winlinvip added the Codec HEVC, FFmpeg for ingesting, trascoding or codec. label Nov 22, 2022
@winlinvip winlinvip modified the milestones: 5.0, 6.0 Nov 22, 2022
winlinvip added a commit that referenced this issue Dec 4, 2022
* BitBuffer: add method to implement bit read operation.

* Codec: demux hevc sps for profile level resolution.

* Statistic: refine hevc profile level resolution.

* Kernel: return error code for demux hevc.

* Kernel: check bitstream length for hevc sps.

* UTest: add BitBuffer read bits utest.

* Kernel: refine print log and utest.

* Kernel: add comment for hevc sps.

Co-authored-by: winlin <winlin@vip.126.com>
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codec HEVC, FFmpeg for ingesting, trascoding or codec. TransByAI Translated by AI/GPT.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants