- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一系列具有透明度的 PNG 文件 - 我想将它们屏幕混合到视频之上
ffmpeg -i video.mp4 -i "Images/%03d.png" -filter_complex "blend=all_mode='screen':all_opacity=0.7" output.mp4
图像确实合并在视频之上,但带有粉红色覆盖层?!
我还尝试添加“-vcodec png”和“-vcodec libx264”并尝试使用 .mov 视频,但得到了相同的结果。
ffmpeg version N-58061-g5231eec Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 14 2013 05:35:15 with gcc 4.6 (Debian 4.6.3-1)
configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-
static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static'
--extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-
ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-
cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-
libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --
enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --
enable-libvpx
libavutil 52. 52.100 / 52. 52.100
libavcodec 55. 41.101 / 55. 41.101
libavformat 55. 21.100 / 55. 21.100
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 91.100 / 3. 91.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.2.100
Duration: 00:00:18.88, start: 0.000000, bitrate: 595 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480, 461 kb/s,
25.16 fps, 25 tbr, 1000k tbn, 2000k tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
(default)
Metadata:
handler_name : SoundHandler
Input #1, image2, from 'Dots2/%03d.png':
Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
Stream #1:0: Video: png, rgba, 640x480, 25 fps, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 0x292ad60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 @ 0x292ad60] profile High, level 3.0
[libx264 @ 0x292ad60] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft
2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0
analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16
chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0
rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4
ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output_Dots.mp4':
Metadata:
major_brand : isom
Stream #0:1(und): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo,
s16, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 (h264) -> blend:top (graph 0)
Stream #1:0 (png) -> blend:bottom (graph 0)
blend (graph 0) -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (aac -> libvo_aacenc)
Press [q] to stop, [?] for help
frame= 475 fps=105 q=-1.0 Lsize= 1660kB time=00:00:18.92 bitrate= 718.7kbits/s
video:1349kB audio:295kB subtitle:0 global headers:0kB muxing overhead 0.993598%
[libx264 @ 0x292ad60] frame I:2 Avg QP:19.79 size: 33501
[libx264 @ 0x292ad60] frame P:176 Avg QP:23.16 size: 5651
[libx264 @ 0x292ad60] frame B:297 Avg QP:27.76 size: 1074
[libx264 @ 0x292ad60] consecutive B-frames: 13.3% 8.8% 3.8% 74.1%
[libx264 @ 0x292ad60] mb I I16..4: 1.7% 69.9% 28.4%
[libx264 @ 0x292ad60] mb P I16..4: 3.3% 8.1% 1.0% P16..4: 47.1% 14.7% 7.5% 0.0%
0.0% skip:18.3%
[libx264 @ 0x292ad60] mb B I16..4: 0.1% 0.0% 0.0% B16..8: 44.4% 2.6% 0.8%
direct: 0.9% skip:51.2% L0:46.0% L1:50.5% BI: 3.5%
[libx264 @ 0x292ad60] 8x8 transform intra:64.9% inter:74.0%
[libx264 @ 0x292ad60] coded y,uvDC,uvAC intra: 47.0% 50.4% 13.1% inter: 11.8% 12.7% 0.5%
[libx264 @ 0x292ad60] i16 v,h,dc,p: 50% 18% 9% 23%
[libx264 @ 0x292ad60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 15% 22% 4% 6% 6% 7% 5% 5%
[libx264 @ 0x292ad60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 19% 19% 4% 6% 6% 6% 4% 4%
[libx264 @ 0x292ad60] i8c dc,h,v,p: 55% 17% 25% 2%
[libx264 @ 0x292ad60] Weighted P-Frames: Y:29.0% UV:23.9%
[libx264 @ 0x292ad60] ref P L0: 63.5% 20.9% 13.2% 2.3% 0.2%
[libx264 @ 0x292ad60] ref B L0: 96.8% 2.8% 0.4%
[libx264 @ 0x292ad60] ref B L1: 98.4% 1.6%
[libx264 @ 0x292ad60] kb/s:581.24
最佳答案
尝试在使用 format=yuva422p10le 输出之前转换色彩空间(可能是类似的色彩空间,但这对我有用),也许您需要将覆盖(或两部电影)的输入色彩空间转换为 rgba(格式=rgba)。像这样:
ffmpeg -i ttt.jpg -vf "movie=fix2.png [fix]; [in] setsar=sar=1,format=rgba [inf]; [inf][fix] blend=all_mode=overlay:all_opacity=1,format=yuva422p10le [out]" -q:v 1 -y xxx.jpg
此解决方法帮助我避免了粉红色覆盖。
ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
built on Sep 15 2013 12:22:11 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
关于video - ffmpeg屏幕混合模式使透明png变成粉红色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20045413/
我正在寻找一种经济合理的解决方案来长时间存储图片。我读到 PNG 文件格式,它与 JPEG 相比具有优越的特性,即在这些类别中: 无专利、无许可、无版税 无质量损失 尚未压缩 我有很多来自 Photo
关闭。这个问题是off-topic .它目前不接受答案。 想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。 9年前关闭。 Improve this q
我怎么能用 FFMEG 做到这一点? 输入 : 背景图片:background.png 图片帧列表:image_001.png,image_002.png ...(每张图片为一帧) 输出:所有帧都有背
$ cat png.ll ./packages/apps/Mms/res/mipmap-hdpi/ic_launcher_smsmms.png ./packages/apps/Mms/res/draw
这个问题在这里已经有了答案: Natural Sort Order in C# (18 个答案) 关闭 7 年前。 这是我的代码: private void Method1() { int
我一直在考虑用 Webp 图像替换我的 Android 应用程序中的 png 文件以减小 APK 大小。 虽然结果不错,但我想知道我是否使用了一些 png 转换器/压缩器,并且能够将尺寸减小到比我为
在 gnuplot-4.2.6 中,我可以使用 set term png medium x000000 xffffff set output 'file.png' plot x 这将生成一个带有黑色背
背景: 我正在努力使一堆 PNG 尽可能小。我正在使用诸如 PngOut、PngCrush 和 OptiPng 之类的工具。 问题: 我遇到了一个大小为 1434 KB 但只有 230 x 230 像
我正在使用 ImageMagick 调整图像大小。如果我传递 -resize WxH 选项,它会按预期运行。但是如果我通过 -resize WxH! (在调整大小时忽略纵横比),一些图像,尤其是 PN
如何访问/删除 PNG 元数据? 我正在寻找 Mac 应用程序或 PHP 代码段。 最佳答案 抱歉发布了一个 Windows 软件,但如果你没有找到任何对 MAC 有用的东西,那就是 TweakPNG
到目前为止似乎没有任何效果。我看到了 pnginfo以下消息: concept_Sjet_dream6.png... Image Width: 200 Image Length: 240 Bi
我有一个带有 Alpha channel (即透明度)的 PNG 图像,我需要创建将图像层合成到白色背景上的版本。我想使用可编写脚本的命令,使用 CLI 工具(例如 Image Magick)将 PN
我是初学者。我昨天问了一个类似的问题,但不知何故被否决了。所以这次我尽量简化问题。 带有 alpha png 的 24 位与 32 位 png 相同吗? 非常感谢您的一些提示。 最佳答案 没有“24
我有这个带点的荷兰 pdf 图像: pdf image of the netherlands with dots 当我尝试将此 pdf 转换为 png 图像时,使用 pdftools和 png像这样:
我在我的启动图像通用项目中添加了“Default.png,Default-568h@2x.png,Default@2x.png”这三个文件,我有三个不同的图像,分辨率与苹果中提到的完全相同文档,适用于
我在 Python 中使用 google app engine 并有几个静态 .png 图像文件,但它们都以“image/x-png”内容类型提供。这是一个问题,当我使用像 chrome 这样的浏览器
我做了一个 python 脚本,该脚本设法根据特定模式解散乱序(png)图像,该 python 脚本使用 ffmpeg 并进行 12 次编码来解乱它(通过裁剪特定部分并将其粘贴到现有图片上)。 因此,
我有一个 PNG 图像文件。我想将其转换为 GeoTiff。我安装了 QGIS 软件,但无法使用它,也不知道如何对图像进行地理配准。请帮我。有没有在线软件? 最佳答案 这是一个非常好的教程,其中包含有
我有一堆使用我编写的 Java 图表工具创建的图表 - 它们主要是黑白图表,带有浅绿色的块,偶尔还有其他颜色。它们当前被保存为 JPG 文件,我想将它们插入到我准备按需打印的书中。 这本书是一个 Op
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 7年前关闭。 Improve thi
我是一名优秀的程序员,十分优秀!