-
Notifications
You must be signed in to change notification settings - Fork 405
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
Get frames without setting the format #1494
Comments
Hi @LairCortex, The RtspMediaTrack method still needs to provide a Format, just not with the sps parameters provided by the processH264FmtpAttribute method. You would then need to update the format information in the RtpH264Reader class with those values you get from that first frame. It is difficult to provide advice without seeing how you are customizing the code. Would you be able to provide an example repo showcasing the changes you are making? |
Hi @microkatz, |
That's great! It would be in the processSingleNalUnitPacket(or other processing Nal unit method in
Do you have an sample RTSP server that we could use to test this as well? |
Good afternoon!
Our stream doesn't have sprop parameter attached so we can't pass processH264FmtpAttribute RtspMediaTrack check.
Found a similar problem and solution in google/ExoPlayer#10971 (comment) , but the video failed without setting default parameters instead of checking processH264FmtpAttribute - formatBuilder.setWidth(1920).setHeight(1080); We can get parameters from the first frame, but we need to set default format, how can we get frames without setting the format
The text was updated successfully, but these errors were encountered: