Skip to content
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

你好 ,ijkplayer的ffmpeg的codec源码有修改过? #61

Open
lingshigang opened this issue Nov 20, 2024 · 5 comments
Open

你好 ,ijkplayer的ffmpeg的codec源码有修改过? #61

lingshigang opened this issue Nov 20, 2024 · 5 comments

Comments

@lingshigang
Copy link

我这边rtsp流用av_read_frame读取到pkt了但avcodec_send_packet发过过去failed :Invalid data found when processing input(-1094995529),有的rtsp流可以正常发过去解码有的rtsp流报failed :Invalid data found when processing input(-1094995529),

报failed :Invalid data found when processing input(-1094995529) 的rtsp流用其他播放器可以正常播放,其他版本的ffmpeg也可以正常。

你的ijkplayer的ffmpeg的codec源码有修改过?

@debugly
Copy link
Owner

debugly commented Nov 20, 2024

是的,有修改,不过没有修改过 rtsp 相关逻辑。

@debugly
Copy link
Owner

debugly commented Nov 20, 2024

试下这个选项 [options setPlayerOptionIntValue:0 forKey:@"videotoolbox_hwaccel"];

@lingshigang
Copy link
Author

我在原有的demo上修改了解码代码打开解码器代码在demo可以正常播放,怎么打打包成.xcframework就播放不了了,下面是错误log信息[IJKMEDIA]Stream #0: not enough frames to estimate rate; consider increasing probesize
[IJKMEDIA]max_frame_duration: 10.000
[IJKMEDIA]Input #0, rtsp, from 'rtsp://192.168.1.254:554/xxx.mp4':
[IJKMEDIA] Metadata:
[IJKMEDIA] title : [IJKMEDIA]Nvt RTSP, streamed by the LIVE555 Media Server
[IJKMEDIA] comment : [IJKMEDIA]00000003
[IJKMEDIA] Duration: [IJKMEDIA]N/A[IJKMEDIA], start: [IJKMEDIA]0.000000[IJKMEDIA], bitrate: [IJKMEDIA]N/A
[IJKMEDIA] Stream #0:0[IJKMEDIA]: Video: h264, yuvj420p(pc, bt709, progressive), 640x368[IJKMEDIA], [IJKMEDIA]60 tbr, [IJKMEDIA]90k tbn
[IJKMEDIA]VideoCodec: avcodec, h264
[IJKMEDIA]auto decision max buffer size:27MB
[IJKMEDIA]Playback rate: 1.000000

[IJKMEDIA]max delay reached. need to consume packet
[IJKMEDIA]RTP: missed 18 packets

@debugly
Copy link
Owner

debugly commented Nov 26, 2024

跟打包应该没关系,主要是两次播放设置的option不一样导致的,可以对比下。

@debugly
Copy link
Owner

debugly commented Jan 7, 2025

现在怎么样了?有可供测试的流吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants