You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RTSP streams causing "Fatal Exception" with AVProVideo #302
I'm using AVProVideo in Unity 2020.3.36 for Meta Quest video playback.
I seem to be hitting this Fatal Exception bug with some RTSP streams. I can't seem to narrow down what type of stream will cause it, but I can use a number of streams and won't get it but then will get it one that consistently crashes.
I can try to provide links that I'm hitting but I don't have a solid list.
For the stream in question, I just want to comment that the particular streamKey linked might be invalidated, but a free account can be made at https://rtsp.stream/
I suspect its taking issue with the response on the DESCRIBE command, particularly the audio portion.
It looks like RtspMediaTrack requires the profile-level-id parameter but RFC 6416 section 7.3 seems to indicate this parameter is optional with a default value of 30.
Over to @microkatz to see if I've understood the RTSP spec correctly.
For the stream in question, I just want to comment that the particular streamKey linked might be invalidated, but a free account can be made at https://rtsp.stream/
I've been using the free account to test those streams.
Does it seem like its possible that I should be able to gracefully handle this failure on my end or is this something that I can't protect against beyond from preventing users from providing rtsp streams?
I created a fix so that these mp4A-latm with missing profile-level-id attributes will use the default profile-level-id value. I'll update this page when that commit is entered into the main branch. This fix should allow your rtsp stream to be played.
In addition, I noticed that you are running an older version of Exoplayer, v2.18.2? There was a fix that went into 2.18.4, google/ExoPlayer@89acf3c. This commit will alleviate the "Fatal Exception" that is crashing the player. However, you'll have to wait for the new code for the rtsp stream to be playable.
This fix that I mentioned has been entered into the androidx/media main branch. Here is the commit: 165f4f2. This fix should allow your rtsp stream to be played.
Activity
Docteh commentedon Apr 7, 2023
For the stream in question, I just want to comment that the particular streamKey linked might be invalidated, but a free account can be made at https://rtsp.stream/
I suspect its taking issue with the response on the DESCRIBE command, particularly the audio portion.
From the "pattern" stream
From the "movie" stream
From my usual stream
I suspect its the
profile-level-idon the fmtp line that is being worried about.icbaker commentedon Apr 11, 2023
It looks like
RtspMediaTrackrequires theprofile-level-idparameter but RFC 6416 section 7.3 seems to indicate this parameter is optional with a default value of30.Over to @microkatz to see if I've understood the RTSP spec correctly.
tangentlab commentedon Apr 17, 2023
Thanks for the response.
I've been using the free account to test those streams.
Does it seem like its possible that I should be able to gracefully handle this failure on my end or is this something that I can't protect against beyond from preventing users from providing rtsp streams?
microkatz commentedon Apr 19, 2023
Hi @tangentlab.
I created a fix so that these mp4A-latm with missing profile-level-id attributes will use the default profile-level-id value. I'll update this page when that commit is entered into the main branch. This fix should allow your rtsp stream to be played.
In addition, I noticed that you are running an older version of Exoplayer, v2.18.2? There was a fix that went into 2.18.4, google/ExoPlayer@89acf3c. This commit will alleviate the "Fatal Exception" that is crashing the player. However, you'll have to wait for the new code for the rtsp stream to be playable.
microkatz commentedon Apr 26, 2023
Hello @tangentlab.
Thank you for reporting your issue!
This fix that I mentioned has been entered into the androidx/media main branch. Here is the commit: 165f4f2. This fix should allow your rtsp stream to be played.
tangentlab commentedon Apr 26, 2023
Great! Much appreciated. I'm excited to try it.