- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试将具有 alpha 透明度的 mov 转换为具有 alpha 透明度的 webm,如所见 here .我按照解释的步骤 here无济于事。
来自 this answer我能够删除视频中的所有黑色,从而使其透明,但这不是我需要的,因为我已经有一个透明的 mov 并且想将其转换为透明的 webm 格式。
ffmpeg -i input.mp4 -c:v libvpx -vf "colorkey=0x000000:0.1:0.1,format=yuva420p" out.webm
这是视频的 ffprobe
输出,我想透明地转换为 webm。
built with Apple LLVM version 7.0.2 (clang-700.1.81)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/1.5.2_1/include/openjpeg-1.5 --enable-nonfree --enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2016-01-17 16:04:07
encoder : Mac OS X v? (AVF 1046.9.1, CM 1731.15.20, x86_64)
encoder-eng : Mac OS X v? (AVF 1046.9.1, CM 1731.15.20, x86_64)
Duration: 00:00:06.63, start: 0.000000, bitrate: 63966 kb/s
Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuva444p10le(bt470bg/smpte240m/bt709), 1920x1080, 63963 kb/s, 25.03 fps, 25 tbr, 600 tbn, 600 tbc (default)
Metadata:
creation_time : 2016-01-17 16:04:07
handler_name : Core Media Data Handler
encoder : Apple ProRes 4444
我还尝试了以下命令,但对我也不起作用。
ffmpeg -y -i input.mov -c:v libvpx-vp9 -b:v 2000k -pass 1 -an -f webm output.webm
我在 Mac 上使用 2.8.4 版的 ffmpeg,安装了 brew。 2.8.5 为最新版本。
最佳答案
自 2016-07-13 , 可以使用 alpha channel (VP9a) 对 VP9/webm 视频进行编码。但是,您在此处使用的命令将创建一个 VP8a 视频。假设您获得了在该日期之后编译的 ffmpeg 副本,您只需将 libvpx
更改为 libvpx-vp9
。您也不需要 yuva420p
转换(默认选中)。
关于video - 使用 ffmpeg 将带有 Alpha 的 mov 转换为带有 Alpha 的 VP9 Webm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34856236/
以下代码在gcc中没有问题。在 VS 2010 Express 中,它无法给出 ------ Build started: Project: helium, Configuration: Debug
我有一个我不明白的光线生成问题。我的光线方向计算错误。我将这段代码从 DirectX 11 移植到 Vulkan,在那里它运行良好,所以我很惊讶我无法让它运行: vec4 farPos = inver
我需要从依存分析树中提取形式为 NP-VP-NP 的三元组,作为 Stanford Parser 中词汇化分析的输出。 执行此操作的最佳方法是什么。例如如果解析树如下: (ROOT (S
我正在为我正在开发的项目制作序列图。没有什么太复杂,只是一些来回调用的生命线。 问题是,在近距离时,我的消息描述的白色背景框会盖住我的生命线框和虚线之类的东西。您可以在下图中看到问题,尽管我尝试将它们
实际上,我使用 Java 从西类牙语文本中提取三元组。我需要提取 NP-VP-NP 形式的三元组。我也在使用斯坦福解析器 CoreNLP v 3.7.0 和西类牙语模型 v 3.7.0。接下来我的问题
我想根据连词和逗号分割树。例如,当我有 VP 和 VP 或 NP 和 NP 或 VP, VP 或 NP,NP 时,我想分别提取每个 VP 或 NP。我有以下代码: List subtrees = c
#include #include #include int mms; int ps; int rp; struct node{ int *pf; int *vp; } *pt=NULL; vo
我有一个示例,其中斯坦福 NLP 为句子输出了一个奇怪的解析树: Clean my desk (ROOT (NP (NP (JJ Clean)) (NP (PRP$ my) (NN
我的 ERD 是 alt text http://files.getdropbox.com/u/175564/db/db-8.png 我现在使用 integer(2) 来表示数据类型是 boolean
我无法启动android模拟器,它总是退出并出现错误:WHPX: Unexpected VP exit code 5 . 我使用了 Android Studio 3.6.2 和最新的 AVD,并安装了
我想计算文本中 pp/np/vp 的数量,但我不知道如何在 openNLP chunker 中识别 PP-tags/NP-tags/VP-tags?我已经尝试过这段代码,但它不起作用。 Chunker
我需要表示这样的重载方法: +setAttribute(int) +setAttribute(float) +setAttribute(boolean) 在单个 Java 类中。 VP UML 不允许
我正在使用 Stanford CoreNLP,我知道它不支持句子分块。我正在寻找的是,给定一个输入句子,将类似这样的内容作为输出: [NP He ] [VP reckons ] [NP the cu
当我想创建散点图矩阵时,出现错误 Error in grid.Call.graphics(C_downviewport, name$name, strict) : Viewport 'plot_01.
输出中有 Give me 0 0 #include #define fsv(i , n) for(int i = 0 ; i > n ; vector > > vp(n); vector v
我正在使用 vimeo 播放器在我的页面上嵌入视频。 由于某些原因,视频的缩略图在 Safari 中有 vp-preview-invisible 类(这使得缩略图不可见),但在 Chrome 中没有这
我正在使用 vimeo 播放器在我的页面上嵌入视频。 由于某些原因,视频的缩略图在 Safari 中有 vp-preview-invisible 类(这使得缩略图不可见),但在 Chrome 中没有这
我是一名优秀的程序员,十分优秀!