befovy / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support. Backend for https://github.com/befovy/fijkplayer, fijkplayer 的播放内核
GNU General Public License v2.0
155 stars 92 forks source link

我在develop版本里面发现有视频录制的功能,编译出来录制失败 #86

Open zjyhll opened 1 year ago

zjyhll commented 1 year ago

在https://github.com/befovy/ijkplayer/tree/develop这里面,我发现视频录制的功能 编译之后 调用startRecord后报这个错,请问有人遇到过吗,如何解决 I/flutter (27362): [inf] 2023-06-08 14:37:31.821509 [fijk] FijkPlayer{id:6} takeStartRecord D/IJKMEDIA(27362): ijkmp_startRecord() E/IJKMEDIA(27362): Unable to find a suitable output format for '/data/user/0/com.befovy.fijkplayer.demo/cache/1.mp4' I/IJKMEDIA(27362): ===== 初始化一个用于输出的AVFormatContext结构体 ===== E/IJKMEDIA(27362): Could not create output context filename is /data/user/0/com.befovy.fijkplayer.demo/cache/1.mp4 D/IJKMEDIA(27362): ijkmp_startRecord()=-1 I/flutter (27362): ===》/data/user/0/com.befovy.fijkplayer.demo/cache/1.mp4 I/flutter (27362): [inf] 2023-06-08 14:37:32.387159 [fijk] FijkPlayer{id:6} takeStartRecord I/flutter (27362): [inf] 2023-06-08 14:37:34.485718 [fijk] FijkPlayer{id:6} takeStopRecord D/IJKMEDIA(27362): ijkmp_stopRecord() I/IJKMEDIA(27362): ===== 文件录制结束流程 ===== E/IJKMEDIA(27362): don't need stopRecord D/IJKMEDIA(27362): ijkmp_stopRecord()=0