WangBin
WangBin
vaapi again? show me the log. I can't see which function in my library crashes
recommend to use egl in wayland. can't know the reason from the log
the latest build should fix the crash, previously x11 display is used by vaapi, now drm is preferred. But I still recommend you to use egl, it's used on ubuntu...
第一个参数就是文件相对/绝对路径或推流地址
参考 https://github.com/wang-bin/fvp/blob/v0.26.1/lib/src/video_player_mdk.dart#L161 调用setLogHandler把日志传到dart,然后设置日志级别 https://github.com/wang-bin/mdk-examples/blob/master/flutter/simple/lib/main.dart#L25-L30
很奇怪录制没开始,我用 `glfwplay.exe -record test.mp4 $rtsp_url`跑了下没问题。你下载最新的mdk替换掉再贴下日志,glfwplay也可以测下
你的音频编码是pcm_mulaw,mp4不支持,实际保存的是flv格式,你后缀改成flv试试。你录一段发上来瞧瞧
一开始没画面是因为我从视频关键帧开始录制,从任意帧录制要`player.setProperty("reader.starts_with_key", "1")`. 录的视频没问题。你的音频是pcm_mulaw,支持这个的格式很少,flv是其中一个,但是你的视频编码是hevc,flv支持hevc是最近的事情,很多播放器没跟进。用ffplay、mpv这些基于ffmpeg版本新一点的都能播。也可以用mov、mkv进行录制,兼容性会更好