我试图在分屏中叠加多个视频,具有不同的偏移(音频,视频都偏移),最初我尝试偏移和覆盖如下
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)
问题是所有视频从分屏开始,从第一个视频的偏移开始,好像单独的偏移没有奏效.
我添加了 maven 配置如下。
<plugin>
<groupId>com.github.os72</groupId>
<artifactId>protoc-jar-maven-plugin</artifactId>
<version>3.5.1</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.0.0</protocArtifact>
<inputDirectories>
<include>src/main/protobuf</include>
</inputDirectories>
<outputTargets>
<outputTarget>
<type>java</type>
<outputDirectory>src/main/java</outputDirectory>
</outputTarget>
<outputTarget>
<type>grpc-java</type>
<outputDirectory>src/main/java</outputDirectory>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.0.1</pluginArtifact>
</outputTarget>
</outputTargets>
</configuration>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
我通过“mvn protoc-jar:run”执行它,但是它跳过了grpc服务存根,只将“消息”转换为java代码。
输出是
[INFO] Protoc version: 3.5.1
protoc-jar: protoc version: 3.5.1, detected platform: osx-x86_64 (mac os x/x86_64)
protoc-jar: embedded: bin/3.5.1/protoc-3.5.1-osx-x86_64.exe
protoc-jar: executing: [/var/folders/9y/w8qrc__9513dv57323sjdlmw0000gn/T/protocjar320569499467403052/bin/protoc.exe, --version]
libprotoc 3.5.1
[INFO] Protoc command: /var/folders/9y/w8qrc__9513dv57323sjdlmw0000gn/T/protocjar320569499467403052/bin/protoc.exe
[INFO] Input directories:
[INFO] /Users/dev/learn/proto-java/src/main/protobuf
[INFO] Output targets:
[INFO] java: /Users/dev/learn/proto-java/target/generated-sources (add: main, clean: false, plugin: null, …Run Code Online (Sandbox Code Playgroud) 我正在尝试获取 AdCampaign 的报告,假设使用 xyz id,我拥有有效的访问令牌,包括 ads_read、read_insights 权限以及除 page_messaging 之外的所有其他内容。具有许可令牌的应用程序也归同一个广告帐户所有。
xyz/insights?fields=ad_name,....
Run Code Online (Sandbox Code Playgroud)
无论我要求哪个字段,它总是返回空数据集。
{
"data": [
]
}
Run Code Online (Sandbox Code Playgroud)