here is the code for file name initialization and video to audio conversion through ffmpeg
Directory direc = (await getApplicationDocumentsDirectory());
Directory directory = Directory(direc.path+"/check");
print(directory.path);
String command = "-i input_video.mp4 -vn -acodec copy output_audio.mp3";
print(HomePage.pickedvideo);
File file = File(directory.path+"/out.mp3");
print(file);
print(HomePage.pickedvideo);
final FlutterFFmpeg FFmpeg = FlutterFFmpeg();
FFmpeg.execute("ffmpeg -i ${HomePage.pickedvideo}"
" -map 0:a "
"-acodec ${file}")
.then((rc)=>{
print("FFmpeg process exited with rc $rc")
});
This code is causing error
File:: Protocol not found Did you mean file:File:?
how can i solve it?
can u try this code ?