Skip to content

播放 ftp 协议视频 #274

Closed
Closed

Description

@chanywn

ffmpeg 是支持 ftp 协议的,fvp 是否支持 ftp 协议播放视频。通过 video_player 播放报错。我需要怎么做

Activity

  1. wang-bin commented on Jul 5, 2025

    @wang-bin
    Owner

    fvp打包进去的ffmpeg是裁减过的,把我觉得不常用的功能都去掉了。你可以在 https://sourceforge.net/projects/avbuild/files/ 下载没裁剪过的ffmpeg替换就行,包名没有lite的。我也可以考虑ftp加到裁剪版本里去,有其他协议要支持的你都一并提出来

  2. chanywn commented on Jul 5, 2025

    @chanywn
    Author

    不换 ffmpeg 也可以播放 ftp,希望可以支持 smb 和 nfs 协议。

  3. wang-bin commented on Jul 5, 2025

    @wang-bin
    Owner

    smb不能加,依赖第三方库,编译是个问题,对二进制体积影响是个问题,更重要的是依赖的是gpl的库会导致你整个程序都得开源。nfs没看到ffmpeg有支持

  4. wang-bin commented on Jul 5, 2025

    @wang-bin
    Owner

    裁剪版的ffmpeg确实已经加了ftp。最新代码对network类型的data source不设置白名单。当初加白名单是因为有用户播放m3u8本地文件会受限制,但白名单设置不全会影响其他协议播放,所以不应该无条件设置白名单

  5. added a commit that references this issue on Aug 3, 2025
    78bddb6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions