iphone ios 示例 ffplay main.c --> FFmpeg.c修改输入参数,出现以下错误请指教

发布于 2024-11-02 23:06:56 字数 878 浏览 2 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魂牵梦绕锁你心扉 2024-11-09 23:06:56

您必须指定文件的完整路径。如果它在您的资源中,则类似于: [[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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文