Windows 下执行 ffmpeg 命令,
D:/tools/ffmpeg/bin>ffmpeg.exe -i "某视频文件下载URL" -f flv D:/1.flv
可以进行成功调用。
Linux 下执行 ffmpeg 命令,
/usr/local/ffmpeg/bin/ffmpeg -i "某视频文件下载URL" -f flv /usr/userfile/ffmpeg/tempfile/1.flv
FFmpeg 会报错:
No such file or directory:"某视频文件下载URL"。
stackoverflow 上有人遇到了类似的问题:
FFMPEG “no such file or directory” on Android
I am trying to use the ffmpeg binary and call it via a native linux command in android. Most of the commands work fine but the problem is that when i need to pass an http url as an input to the -i option i get "No such file or directory" for the url. The url however is existing and running the SAME command on a m
D:/tools/ffmpeg/bin>ffmpeg.exe -i "某视频文件下载URL" -f flv D:/1.flv
可以成功直接将下载链接输入源转为 1.flv。
String raw2flvCmd = "D:/tools/ffmpeg/bin/ffmpeg.exe -i \"某视频文件下载URL\" -f flv 1.flv";Runtime.getRuntime().exec(raw2flvCmd);
可以进行成功调用。
Linux 下执行 ffmpeg 命令,
/usr/local/ffmpeg/bin/ffmpeg -i "某视频文件下载URL" -f flv /usr/userfile/ffmpeg/tempfile/1.flv
也可以成功直接将下载链接输入源转为 1.flv。
String raw2flvCmd = "/usr/local/ffmpeg/bin/ffmpeg -i \"某视频文件下载URL\" -f flv /usr/userfile/ffmpeg/tempfile/1.flv";Runtime.getRuntime().exec(raw2flvCmd);
FFmpeg 会报错:
No such file or directory:"某视频文件下载URL"。
stackoverflow 上有人遇到了类似的问题:
FFMPEG “no such file or directory” on Android
I am trying to use the ffmpeg binary and call it via a native linux command in android. Most of the commands work fine but the problem is that when i need to pass an http url as an input to the -i option i get "No such file or directory" for the url. The url however is existing and running the SAME command on a m