iphone ios 示例 ffplay main.c --> FFmpeg.c修改输入参数,出现以下错误请指教
FFmpeg 主 c 源
int main(int argc, char **argv)
{
int flags, i;
argv[1] = "-i";
argv[2] = "ipod-library://item/item.mp3?id=1218551163727305907";
//argv[2] = "mon.mp3";
argv[3] = "-acodec";
argv[4] = "libfaac";
argv[5] = "-ac";
argv[6] = "2";
argv[7] = "-ar";
argv[8] = "44100";
argv[9] = "-ab";
argv[10] = "128k";
argv[11] = "output.aac";
argv[3] = "-vn";
argv[4] = "-acodec";
argv[5] = "libfaac";
argv[6] = "-ac";
argv[7] = "2";
argv[8] = "-ar";
argv[9] = "44100";
argv[10] = "-ab";
argv[11] = "128k";
argv[12] = "output.aac";
// argv[14] = "rtsp://video.bouygtel.fr/50400/tf1.sdp";
argc += 12;
错误:ipod-library://item/item.mp3?id=1218551163727305907: 没有这样的文件或目录 如果 argv[2] = "mon.mp3"; ---> mon.mp3:没有这样的文件或目录,
请告知。
FFmpeg main c source
int main(int argc, char **argv)
{
int flags, i;
argv[1] = "-i";
argv[2] = "ipod-library://item/item.mp3?id=1218551163727305907";
//argv[2] = "mon.mp3";
argv[3] = "-acodec";
argv[4] = "libfaac";
argv[5] = "-ac";
argv[6] = "2";
argv[7] = "-ar";
argv[8] = "44100";
argv[9] = "-ab";
argv[10] = "128k";
argv[11] = "output.aac";
argv[3] = "-vn";
argv[4] = "-acodec";
argv[5] = "libfaac";
argv[6] = "-ac";
argv[7] = "2";
argv[8] = "-ar";
argv[9] = "44100";
argv[10] = "-ab";
argv[11] = "128k";
argv[12] = "output.aac";
// argv[14] = "rtsp://video.bouygtel.fr/50400/tf1.sdp";
argc += 12;
error : ipod-library://item/item.mp3?id=1218551163727305907: No such file or directory
and if
argv[2] = "mon.mp3"; ---> mon.mp3: No such file or directory
please advice.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须指定文件的完整路径。如果它在您的资源中,则类似于:
[[NSBundle mainBundle] pathForResource:@"mon" ofType:@"mp3"];问候
,
亚历山大
You have to specify the full path for the file. If it is in your resources, it would be something like:
[[NSBundle mainBundle] pathForResource:@"mon" ofType:@"mp3"];
Regards,
Alexandre