w***n 发帖数: 9040 | 1 请问heyihua,用ffmpeg overlay视频和技术数据(去掉黑色设置透明)
怎么设置的参数?
现在我用的如下参数:
ffmpeg -i 1.mov -vf "movie=2.mp4[clip2]; [in][clip2] overlay=0:0 [out]" -
sameq overlay.mp4
结果成这样了: |
h*****a 发帖数: 1992 | 2 我用png overlay的...movie overlay好像不太work
【在 w***n 的大作中提到】 : 请问heyihua,用ffmpeg overlay视频和技术数据(去掉黑色设置透明) : 怎么设置的参数? : 现在我用的如下参数: : ffmpeg -i 1.mov -vf "movie=2.mp4[clip2]; [in][clip2] overlay=0:0 [out]" - : sameq overlay.mp4 : 结果成这样了:
|
w***n 发帖数: 9040 | 3 怪不得呢,折腾半天都搞不定。
png overlay咋设置的呀?
【在 h*****a 的大作中提到】 : 我用png overlay的...movie overlay好像不太work
|
h*****a 发帖数: 1992 | 4 把2.mp4换成frame%05d.png? 好像是这样。
【在 w***n 的大作中提到】 : 怪不得呢,折腾半天都搞不定。 : png overlay咋设置的呀?
|
w***n 发帖数: 9040 | 5 png搞好了,请问用什么命令合成呢?,谢谢。
还有我的png里面为啥WATT是空的呢?
【在 h*****a 的大作中提到】 : 把2.mp4换成frame%05d.png? 好像是这样。
|
h*****a 发帖数: 1992 | 6 Try this:
ffmpeg -i yourmovie.mov -vf "movie=pngs/frame_%05d.png, setpts=PTS-xsecond [
teleo]; [teleo] setpts=25*PTS [tele]; [in][tele] overlay=0:0" -r 30 blend_
final.mp4
PTS-xsecond is to aline the first frame of the png with the video file.
E.g., PTS-5 or PTS+10
The command should be fine with all 720p movies.
Watt是要power meter来测量的吧。如果你没有power meter,那就是空的了。
【在 w***n 的大作中提到】 : png搞好了,请问用什么命令合成呢?,谢谢。 : 还有我的png里面为啥WATT是空的呢?
|
w***n 发帖数: 9040 | 7 多谢啦
[
【在 h*****a 的大作中提到】 : Try this: : ffmpeg -i yourmovie.mov -vf "movie=pngs/frame_%05d.png, setpts=PTS-xsecond [ : teleo]; [teleo] setpts=25*PTS [tele]; [in][tele] overlay=0:0" -r 30 blend_ : final.mp4 : PTS-xsecond is to aline the first frame of the png with the video file. : E.g., PTS-5 or PTS+10 : The command should be fine with all 720p movies. : Watt是要power meter来测量的吧。如果你没有power meter,那就是空的了。
|
h*****a 发帖数: 1992 | 8 不用谢! 回头多上视频哈
【在 w***n 的大作中提到】 : 多谢啦 : : [
|