-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[技术咨询] ZLM有支持Slice解码吗? #3551
Comments
test_player.cpp支持的 外部需要自己把时间戳相同的帧merge一下再解码。 不过新版的ffmpeg(6.0+) 好像已经不需要merge了 它内部会自己merge zlmediakit的Transcode.cpp中的FFmpegDecoder对象会对帧进行merge |
ts吐帧,我看是通过Decoder.cpp的onDecode把帧送上去的,在这个cpp里也看到有个FrameMerger,是不是稍作修改也能在_merger.inputFrame那里把多个Slice合成一个完整帧? |
是的,你可以这么做 |
针对我手上的H.264 ts流,刚试验了一种改法,成功了。在H264.cpp里的splitH264函数中,不去把I/P Slice分割开,一整个抛给上层播放器,画面就正常了。希望这能对其他人有帮助。
修改后的代码。
|
@iChenwin |
咨询的功能模块
咨询的具体内容和问题
The text was updated successfully, but these errors were encountered: