arthenica / ffmpeg-kit

FFmpeg Kit for applications. Supports Android, Flutter, iOS, Linux, macOS, React Native and tvOS. Supersedes MobileFFmpeg, flutter_ffmpeg and react-native-ffmpeg.
https://arthenica.github.io/ffmpeg-kit
GNU Lesser General Public License v3.0
4.53k stars 603 forks source link

TypeError: Cannot read property 'ffmpegSession' of null #762

Closed createrBywd closed 1 year ago

createrBywd commented 1 year ago

des: When I execute this code to push the selected video to my nginx-rtmp server, I encounter the error mentioned in the title. code: const result = await ImagePicker.launchImageLibraryAsync({ mediaTypes: ImagePicker.MediaTypeOptions.Videos, allowsEditing: true, quality: 1, });

const streamUrl = 'rtmp://192.168.31.210:1935/live/stream';
const ffmpegCommand = `-re -i ${result?.assets[0]?.uri} -c:v libx264 -preset ultrafast -tune zerolatency -crf 23 -c:a aac -f flv ${streamUrl}`;
FFmpegKit.executeAsync(ffmpegCommand, (session) => {
  console.log(session);
});
github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.