(2021年3月) mpv 和 ffmpeg 的区别

2,169次阅读
没有评论

目的是什么?

(2021年3月) mpv 和 ffmpeg 的区别

如果要做一个视频播放器或音频播放器,应该用 mpv 还是 ffmpeg?

写这篇文章的意义?

我刚开始接触 mpv 和 FFmpeg 这两者时搞不清他们的关系,现在搞清楚了就记下来,给读者节省一点时间。

总结

没心情写长文,长话短说。

如果要做一个视频播放器,用 mpv 是最好的,比 ffmpeg 方便很多。
只需要把文件地址交给 mpv,让它来解析就行,怎么给参数 mpv 的网站写的很清楚:
https://mpv.io/manual/master/#command-interface

如果你用 ffmpeg,你需要用它的 API 去解析视频,解析音频,然后做音视频同步,等等,
更加细节的东西。
比如:https://github.com/rambodrahmani/ffmpeg-video-player

(2021年3月) mpv 和 ffmpeg 的区别

你需要了解 FFmpeg 里各种结构体的概念,怎么用 C 去写,等等。很费时间。

其他信息

  • macOS 上的 IINA 播放器用的就是 mpv
  • mpv 基于 MPlayer 和 mplayer2,而它们基于 FFmpeg 等一系列其他工具

mpv 文档开篇原话:

mpv is a media player based on MPlayer and mplayer2

结论

用 mpv。
在 macOS 上已经有 IINA 证明了用 mpv 是可行的。
Windows 那边的情况我暂时不了解。

目的是什么?

(2021年3月) mpv 和 ffmpeg 的区别

如果要做一个视频播放器或音频播放器,应该用 mpv 还是 ffmpeg?

写这篇文章的意义?

我刚开始接触 mpv 和 FFmpeg 这两者时搞不清他们的关系,现在搞清楚了就记下来,给读者节省一点时间。

总结

没心情写长文,长话短说。

如果要做一个视频播放器,用 mpv 是最好的,比 ffmpeg 方便很多。
只需要把文件地址交给 mpv,让它来解析就行,怎么给参数 mpv 的网站写的很清楚:
https://mpv.io/manual/master/#command-interface

如果你用 ffmpeg,你需要用它的 API 去解析视频,解析音频,然后做音视频同步,等等,
更加细节的东西。
比如:https://github.com/rambodrahmani/ffmpeg-video-player

(2021年3月) mpv 和 ffmpeg 的区别

你需要了解 FFmpeg 里各种结构体的概念,怎么用 C 去写,等等。很费时间。

其他信息

  • macOS 上的 IINA 播放器用的就是 mpv
  • mpv 基于 MPlayer 和 mplayer2,而它们基于 FFmpeg 等一系列其他工具

mpv 文档开篇原话:

mpv is a media player based on MPlayer and mplayer2

结论

用 mpv。
在 macOS 上已经有 IINA 证明了用 mpv 是可行的。
Windows 那边的情况我暂时不了解。

 

正文完
可以使用微信扫码关注公众号(ID:xzluomor)
post-qrcode
 0
评论(没有评论)

文心AIGC

2023 年 3 月
 12345
6789101112
13141516171819
20212223242526
2728293031  
文心AIGC
文心AIGC
人工智能ChatGPT,AIGC指利用人工智能技术来生成内容,其中包括文字、语音、代码、图像、视频、机器人动作等等。被认为是继PGC、UGC之后的新型内容创作方式。AIGC作为元宇宙的新方向,近几年迭代速度呈现指数级爆发,谷歌、Meta、百度等平台型巨头持续布局
文章搜索
热门文章
潞晨尤洋:日常办公没必要上私有模型,这三类企业才需要 | MEET2026

潞晨尤洋:日常办公没必要上私有模型,这三类企业才需要 | MEET2026

潞晨尤洋:日常办公没必要上私有模型,这三类企业才需要 | MEET2026 Jay 2025-12-22 09...
面向「空天具身智能」,北航团队提出星座规划新基准丨NeurIPS’25

面向「空天具身智能」,北航团队提出星座规划新基准丨NeurIPS’25

面向「空天具身智能」,北航团队提出星座规划新基准丨NeurIPS’25 鹭羽 2025-12-13 22:37...
商汤Seko2.0重磅发布,合作短剧登顶抖音AI短剧榜No.1

商汤Seko2.0重磅发布,合作短剧登顶抖音AI短剧榜No.1

商汤Seko2.0重磅发布,合作短剧登顶抖音AI短剧榜No.1 十三 2025-12-15 14:13:14 ...
跳过“逐字生成”!蚂蚁集团赵俊博:扩散模型让我们能直接修改Token | MEET2026

跳过“逐字生成”!蚂蚁集团赵俊博:扩散模型让我们能直接修改Token | MEET2026

跳过“逐字生成”!蚂蚁集团赵俊博:扩散模型让我们能直接修改Token | MEET2026 一水 2025-1...
10亿美元OpenAI股权兑换迪士尼版权!米老鼠救Sora来了

10亿美元OpenAI股权兑换迪士尼版权!米老鼠救Sora来了

10亿美元OpenAI股权兑换迪士尼版权!米老鼠救Sora来了 一水 2025-12-12 13:56:19 ...
最新评论
ufabet ufabet มีเกมให้เลือกเล่นมากมาย: เกมเดิมพันหลากหลาย ครบทุกค่ายดัง
tornado crypto mixer tornado crypto mixer Discover the power of privacy with TornadoCash! Learn how this decentralized mixer ensures your transactions remain confidential.
ดูบอลสด ดูบอลสด Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
Obrazy Sztuka Nowoczesna Obrazy Sztuka Nowoczesna Thank you for this wonderful contribution to the topic. Your ability to explain complex ideas simply is admirable.
ufabet ufabet Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
ufabet ufabet You’re so awesome! I don’t believe I have read a single thing like that before. So great to find someone with some original thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!
ufabet ufabet Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
热评文章
跳过“逐字生成”!蚂蚁集团赵俊博:扩散模型让我们能直接修改Token | MEET2026

跳过“逐字生成”!蚂蚁集团赵俊博:扩散模型让我们能直接修改Token | MEET2026

跳过“逐字生成”!蚂蚁集团赵俊博:扩散模型让我们能直接修改Token | MEET2026 一水 2025-1...
10亿美元OpenAI股权兑换迪士尼版权!米老鼠救Sora来了

10亿美元OpenAI股权兑换迪士尼版权!米老鼠救Sora来了

10亿美元OpenAI股权兑换迪士尼版权!米老鼠救Sora来了 一水 2025-12-12 13:56:19 ...
IDC MarketScape: 容联云位居“中国AI赋能的联络中心”领导者类别

IDC MarketScape: 容联云位居“中国AI赋能的联络中心”领导者类别

IDC MarketScape: 容联云位居“中国AI赋能的联络中心”领导者类别 量子位的朋友们 2025-1...