我试图在分屏中叠加多个视频,具有不同的偏移(音频,视频都偏移),最初我尝试偏移和覆盖如下
avconv -i 1.webm -itsoffset 2 -s 640x480 -vf "movie=1.webm, scale=320:480 [vid2]; [vid2] overlay=0:0 [basis1]; [basis1][1] overlay=320:0" splitScreenOut.mp4
Run Code Online (Sandbox Code Playgroud)
&叠加的视频被偏移:
movie=overlay.avi:seek_point=1.4
Run Code Online (Sandbox Code Playgroud)
但是这种方法并没有在我的方面起作用,-itsoffset抵消整个视频输出seek_point并且我的avconv构建无法识别.
然后我尝试单独抵消每个视频.
avconv -itsoffset 4 -i 1.webm -c copy tmp1.webm
Run Code Online (Sandbox Code Playgroud)
简单地覆盖
avconv -i tmp1.webm -s 640x480 -vf "[in] scale=640/3:480, pad=3.01*iw:ih [video0]; movie=tmp2.webm, scale=640/3:480 [video1];[video0][video1] overlay=(640)/3:0 [VidO1]; movie=tmp3.webm, scale=640/3:480 [video2];[VidO1][video2] overlay=(640/3)*2:0 [out]" -b:v 768k Output.webm<
Run Code Online (Sandbox Code Playgroud)
问题是所有视频从分屏开始,从第一个视频的偏移开始,好像单独的偏移没有奏效.
我试图让以下截屏视频命令工作:
avconv -f alsa -ar 44100 -ac 2 -i default -acodec aac -strict experimental -ab 320k -f x11grab -s 1024x600 -r 24 -i :0.0 -vcodec rawvideo screencast.mp4Run Code Online (Sandbox Code Playgroud)
但我仍然收到以下错误:
编码器'aac'是实验性的,可能会产生不良结果.如果要使用它,请添加'-strict experimental'
其他网站建议确保-atrict实验在aac参数之后立即显示,我已经完成,但没有效果.
我正在编写一个命令行工具,将具有各种格式的输入音乐库(flac/ogg/mp3/...)转换为给定格式的输出音乐库(flac/ogg/mp3).我将它基于avconv(或ffmpeg,如果avconv不可用),因为它是我发现的最完整的命令行转换器.我的脚本可从此URL(GitHub)获得:
https://github.com/biapy/howto.biapy.com/blob/master/various/mussync-tools
我正在尝试将元数据从输入库文件传递到输出/转换的库文件.
我想出了这段代码:
local MAP_METADATA=' 0:g'
# Specific needs for some input formats/
case "${INPUT_FILE_MIMETYPE}" in
'application/ogg' )
# Get input metadata from first audio stream and direct it to global.
MAP_METADATA=' 0:s:0'
;;
* )
# Do nothing.
# MAP_METADATA=' 0:g'
;;
esac
# Specific needs for some output formats/
local OUTPUT_OPTIONS=""
case "${OUTPUT_FORMAT}" in
'flac' )
# No encoding options needed.
ENCODING_OPTIONS=""
;;
'ogg' )
# Set vorbis as default codec for ogg.
OUTPUT_OPTIONS="-codec:a libvorbis -f ${OUTPUT_FORMAT}" …Run Code Online (Sandbox Code Playgroud) 我在OS X Mavericks上没有运气安装libav.我尝试了一切.
我正在遵循本指南:http://earthwithsun.com/questions/568464/install-latest-libav-avconv-on-osx
在完成macport依赖性检查后,我会运行
./configure \
--enable-gpl --enable-libx264 --enable-libxvid \
--enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb \
--enable-nonfree --enable-libfaac \
--enable-libmp3lame --enable-libspeex --enable-libvorbis --enable-libtheora --enable-libvpx \
--enable-libopenjpeg --enable-libfreetype --enable-doc --enable-gnutls --enable-shared
Run Code Online (Sandbox Code Playgroud)
此操作失败,并显示以下错误:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
ERROR: gnutls not found
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report …Run Code Online (Sandbox Code Playgroud) Ubuntu 12.04
nginx 1.2.4
avconv -version
avconv version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Feb 6 2014 20:56:59 with gcc 4.6.3
avconv 0.8.10-4:0.8.10-0ubuntu0.12.04.1
libavutil 51. 22. 2 / 51. 22. 2
libavcodec 53. 35. 0 / 53. 35. 0
libavformat 53. 21. 1 / 53. 21. 1
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 15. 0 / 2. 15. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 52. 0. 0 / 52. …Run Code Online (Sandbox Code Playgroud) 我想avconv用来将一系列PNG图像转换为WebM视频,保持透明度.
我知道输出视频中使用的像素格式必须支持透明度.所以我尝试过:
$ avconv -framerate 25 -f image2 -i frames /%03d.png -pix_fmt yuva420p output.webm
不幸的是avconv抱怨:
Incompatible pixel format 'yuva420p' for codec 'libvpx-vp9', auto-selecting format 'yuv420p'
我在用ffmpeg version 2.8.4-1+b1 Copyright (c) 2000-2015 the FFmpeg developers.
我正在尝试使用avconv为一系列jpg文件制作动画.基于众多示例,我正在尝试使用%d.jpg来指定文件.或%05d.jpg.但是,我得到了:
avconv -i %d.jpg a.avi
avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers built on Jun 12 2012 16:37:58 with gcc 4.6.3
%d.jpg: No such file or directory
Run Code Online (Sandbox Code Playgroud)
这是我目录列表的一个片段:
10380.jpg
10390.jpg
10400.jpg
1040.jpg
10410.jpg
10420.jpg
10430.jpg
10440.jpg
Run Code Online (Sandbox Code Playgroud)
有从00000.jpg到14400.jpg的jpeg
我不太了解通配符系统,但这就是示例中的内容.
(注意:我将其标记为ffmpeg,因为avconv的标签不存在,而avconv取代ffmpeg)
更新 我正在根据@ av501的答案更新问题.
首先,我有一个按顺序排序10的png文件列表.它们的文本在5位整数之前.例如:
SkinMattekNutrient_py_00000.png
SkinMattekNutrient_py_00010.png
SkinMattekNutrient_py_00020.png
...
SkinMattekNutrient_py_10440.png
Run Code Online (Sandbox Code Playgroud)
批量转换为jpg的方法是什么?我试过了
convert ...
SkinMattekNutrient_py_%05d.png %05d.jpg
Run Code Online (Sandbox Code Playgroud)
和
convert ...
SkinMattekNutrient_py_%5d.png %5d.jpg
Run Code Online (Sandbox Code Playgroud)
但我得到:
convert SkinMattekNutrient_py_%05d.png %05d.jpg
convert: missing an image filename `%05d.jpg' @ error/convert.c/ConvertImageCommand/3011.
Run Code Online (Sandbox Code Playgroud) 我试图让 ffmpeg (或 avconv)采用某种表示 rtp 转储的文件作为输入源并将其输出到视频。
ffmpeg -i rtp://<ip_addr>:<port> <outputfile>在我指定类似或 之类的内容ffmpeg -i sdp.sdp <outputfile>,然后流式传输(使用rtpplay来自 an rtpdump)到该地址/端口的情况下,我可以让它正常工作。但是,我想将实际rtpdump本身作为输入,或者表示可以作为文件(而不是流式传输)输入的 rtp 或 rtp 有效负载的东西。
到目前为止,rtpdump我尝试输入到 ffmpeg 的任何类型似乎都不起作用(通常抱怨无法找到我实际未使用的有效负载类型的编解码器参数,这让我质疑输入文件的格式) 。
有人知道有办法做到这一点吗?我不太关心输入本身rtpdump,但从wiresharkpcap 派生的东西会很好。
谢谢
我正在寻找一种方法来为MediaSourceExtension (Chrome)生成适当的碎片 *.mp4 文件。
我从这里尝试了这个例子:http : //people.mozilla.org/~jyavenard/tests/mse_mp4/paper.html并且使用给定的视频文件它工作得很好。
所以我尝试了一些 avconv / MP4 框的设置来让我自己的视频文件工作,但我只是收到视频错误......
avconv -i file -c:v libx264 -c:a aac -f mp4 -movflags frag_keyframe+empty_moov output.mp4
MP4Box -rap -frag-rap -dash 30000 -segment-name out.mp4 output.mp4
Run Code Online (Sandbox Code Playgroud)
Chrome 媒体内部说:错误跳过无法识别的顶级框:ftyp
那么有谁知道如何正确转换它们?
我在 ubuntu 目录中有多个 mkv 文件。我已经安装了“avconv”工具并且它工作正常。我的目标是简单地连接所有这些文件并生成一个 mkv 文件。我参考了很多文章,发现这个命令应该可以达到目的:
avconv -i "concat:1-1.mkv|1-2.mkv|1-3.mkv" -c copy 1.mkv
Run Code Online (Sandbox Code Playgroud)
但是,当我运行它时,出现错误:
concat:1-1.mkv|1-2.mkv|1-3.mkv: 没有那个文件或目录
我什至用 mp4 文件尝试过,但仍然是同样的错误。
谁能指出我在做什么错?或者还有其他方法吗?