带有音频和视频过滤器的ffplay/ffmpeg设置表 [英] ffplay / ffmpeg setup table with audio and video filters

查看:142
本文介绍了带有音频和视频过滤器的ffplay/ffmpeg设置表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于,

我想用ffplay创建一个表,该表根据如下信号显示音频和视频监视:

I want to create a table with ffplay, that display the audio and video monitoring, from a signal like this:

不幸的是,我只能做视频部分:

Unfortunately I can do only the video section:

ffplay  -i bar.mxf -vf "split=4[a][b][c][d],[d]vectorscope=m=color3:g=color[dd],[a]waveform=m=1:d=0:r=0:c=7[aa],\[b]waveform=m=0:d=0:r=0:c=7[bb],[c][aa]vstack[V],[bb][dd]vstack[V2],[V][V2]hstack"

我无法将音频过滤器与视频过滤器放在一起,实际上我什至不能做音频部分,我具有独立的音频过滤器,但不能将其放在一起.

I can't put together an audio filters with video filters, actually I can't even do the audio section, I've audio filters independent but I can't put it together.

SHOWVOLUME

ffplay -f lavfi "amovie=input.mka, asplit [a][out1]; [a] showvolume=f=255:b=4:w=720:h=68 [out0]"

EBUR128余额

ffplay -f lavfi -i "amovie=55.mp4,ebur128=video=1:meter=18 [out0][out1]"

AVECTORSCOPE

 ffplay -f lavfi "amovie=input.mp3, asplit [a][out1]; 
    [a] avectorscope=zoom=1.3:rc=2:gc=200:bc=10:rf=1:gf=8:bf=7 [out0]"

  1. 如何在一行ffplay中设置上表(音频和视频)?

  1. How I can to set up the above table (audio and video) in a line of ffplay?

或者,如何在ffplay行中仅设置音频部分?

Or, How I can to set up only the audio section in a line of ffplay?

非常感谢

推荐答案

这是单个ffplay命令中的全部要求:

Here's the entire requirement in a single ffplay command:

ffplay -f lavfi  
         "amovie=in.mp4,asplit=3[sv][eb][av];
          [sv]showvolume=b=4:w=720:h=68[sv-v];
          [eb]ebur128=video=1:size=720x540:meter=18[eb-v][out1];
          [av]avectorscope=s=720x540:zoom=1.3:rc=2:gc=200:bc=10:rf=1:gf=8:bf=7[av-v];
          [sv-v][eb-v][av-v]vstack=3[1c];
          movie=in.mp4,split=4[v][wf][wfc][vs];
          [wf]waveform=m=1:d=0:r=0:c=7[wf-vus];
          [wf-vus][v]scale2ref=iw:1220-ih[wf-va][sig];
          [wf-va]setsar=1[wf-v];
          [wfc]waveform=m=0:d=0:r=0:c=7,scale=610x610,setsar=1[wfc-v];
          [vs]vectorscope=m=color3:g=color,scale=610x610,setsar=1[vs-v];
          [sig][wf-v]vstack[2c];
          [wfc-v][vs-v]vstack[3c];
          [1c][2c][3c]hstack=3,scale=1280:-1[out0]"

堆叠过滤器的基本原理是堆叠的尺寸应相同,因此已根据需要应用了比例过滤器. scale2ref用于中间波形窗口,以使[2c]的高度与[1c]的高度相匹配(在水平堆叠时).您必须确保视频的高度小于1220.否则,请缩放[v]并将其输入scale2ref.

The basic principle of the stack filters is that the dimension along which they are stacked should be the same, so scale filters have been applied as needed. The scale2ref is used for the middle waveform window so that the height of the [2c] matches that of [1c], when they are horizontally stacked. You'll have to make sure that the video's height is less than 1220. If not, scale [v] and feed that to scale2ref.

我建议您提供较小尺寸的过滤器和比例尺,否则您将无法接近实时速度.

I suggest you supply smaller sizes in filters and scale, else you won't get close to realtime speed.

这篇关于带有音频和视频过滤器的ffplay/ffmpeg设置表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆