vlc-4.0 video playback is not smooth
Posted: 19 Aug 2020 11:06
Hi, everybody.
I am using vlc-4.0 dev daily build version, and the development language is c++. When I play video in dx11 mode, if I switch the audio track, the video playback is not smooth.
The video information is as follows:
codec name = H264 - MPEG-4 AVC (PART 10), profile = 77, level = 51, width = 1920, height = 1080, frame_rate=30
The audio information is as follows:
codec name = MPEG AAC AUDIO, channels = 2, sample rate = 48000, bit_rate(kb) = 46
If use libvlc_media_player_set_hwnd when using qt, this situation will not happen.
For video, the api I call is libvlc_video_set_output_callbacks.
To switch audio tracks, the api I call is libvlc_media_player_select_track.
I am using vlc-4.0 dev daily build version, and the development language is c++. When I play video in dx11 mode, if I switch the audio track, the video playback is not smooth.
The video information is as follows:
codec name = H264 - MPEG-4 AVC (PART 10), profile = 77, level = 51, width = 1920, height = 1080, frame_rate=30
The audio information is as follows:
codec name = MPEG AAC AUDIO, channels = 2, sample rate = 48000, bit_rate(kb) = 46
If use libvlc_media_player_set_hwnd when using qt, this situation will not happen.
For video, the api I call is libvlc_video_set_output_callbacks.
To switch audio tracks, the api I call is libvlc_media_player_select_track.