[FFmpeg-trac] #9766(avcodec:new): h264_qsv decoder does not work with RTSP
FFmpeg
trac at avcodec.org
Thu Mar 7 09:43:53 EET 2024
#9766: h264_qsv decoder does not work with RTSP
---------------------------------------+-----------------------------------
Reporter: Steve Sampson | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: avcodec
Version: git-master | Resolution:
Keywords: QSV RTSP | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------------+-----------------------------------
Comment (by wenbin,chen):
Tried to reproduce the error.
1. set up video server: using mediamtx :
https://github.com/bluenviron/mediamtx
2. push stream: ffmpeg -v verbose -re -stream_loop -1 -i input.mp4
-c:v hevc_qsv -bsf:v extract_extradata=remove=1 -f rtsp
rtsp://localhost:8554/mystream
3. ffmpeg -v verbose -f rtsp -i rtsp://localhost:8554/mystream -f null
- success
4. ffmpeg -v verbose -hwaccel vaapi -f rtsp -i
rtsp://localhost:8554/mystream -f null - success after skip many frames
(it relates to gop size)
5. ffmpeg -v verbose -hwaccel qsv -f rtsp -i
rtsp://localhost:8554/mystream -f null - fail ( error message
{{{
[hevc_qsv @ 0x559d42d69dd0] More data is required to decode header
Last message repeated 3850 times
}}}
)
"remove=1" means remove sps and pps from bitstream after extracting data.
If i set remove=0 when push stream, qsv can successfully decode video
stream.
VPL may not be able to deal with stream without SPS and PPS, so it Keeps
waiting for more data to decode header. I cannot reproduce the same error
as reporter's.
I suggest to use vaapi/d3d11va to decode video stream without SPS/PPS
header as they use ffmpeg build-in parser to parse stream.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9766#comment:15>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list