androidx / androidx/media

how to read sps and pps from the stream

Open
#1,012 0 comments 0 reactions 1 assignee View on GitHub

@microkatz is already working on this.

Since Jan 26, 2024.

needs triage question
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

hi , I read sps and pps from the stream like this :https://github.com/google/ExoPlayer/issues/10971#issuecomment-1431254450

I have a problem:
Comment out the line castNonNull(trackOutput).format(payloadFormat.format) in RtpH264Reader::createTracks.
then :
input.read(rtpPacketScratchBuffer.getData(), 0, RtpPacket.MAX_SIZE); return -1 in RtpExtractor::read
I cannot receive subsequent streams to parse sps,can you help me?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.