SRT stream always 29.97Hz
Posted: 01 Oct 2021 00:02
I have an iPhone sending an SRT stream into my network. I have tried various resolutions and framerates and codecs. ffprobe running on a PC reports the correct resolutions and framerates and codecs. However, VLC on the PC reports the framerate is 29.97 ALWAYS. I have tried framerates of 25, 30, 50, and 60 fps. VLC always says it is 29.97.
This is the same with libVLC. The libvlc_media_track retrieved from libvlc_media_tracks_get() always has the i_frame_rate_num as 30000 and the i_frame_rate_den as 1001, regardless of the source's framerate and the frames also get delivered to the postrender callback at 29.97 Hz.
I have tried transcoding to the correct framerate but it looks like the frames are duplicated to achieve the transcoded framerate. This is not ideal.
I would like to be able to see the correct framerate in VLC and libVLC. I am not sure if this problem is specific to SRT or network streams in general.
Is there a setting in VLC that needs set? I am using 3.0.16
Thanks for any help.
This is the same with libVLC. The libvlc_media_track retrieved from libvlc_media_tracks_get() always has the i_frame_rate_num as 30000 and the i_frame_rate_den as 1001, regardless of the source's framerate and the frames also get delivered to the postrender callback at 29.97 Hz.
I have tried transcoding to the correct framerate but it looks like the frames are duplicated to achieve the transcoded framerate. This is not ideal.
I would like to be able to see the correct framerate in VLC and libVLC. I am not sure if this problem is specific to SRT or network streams in general.
Is there a setting in VLC that needs set? I am using 3.0.16
Thanks for any help.