FFCreator icon indicating copy to clipboard operation
FFCreator copied to clipboard

请问使用new FFVideo,如何合成有透明通道的视频

Open shaotianyu opened this issue 3 years ago • 8 comments

问题描述: 使用new FFVideo传入一个无背景的video,合成的视频,结果会带有黑色背景。请问有解决方案吗?

cacheFormat: 'png',
outputOptions: ['vcodec', 'png'],

配置测试下来不生效

shaotianyu avatar Feb 23 '22 10:02 shaotianyu

Transparent background can set mov, webm

drawcall avatar Feb 24 '22 03:02 drawcall

解决了吗,是如何设置的呢? const fvideo2 = new FFVideo({ path: video2, width: width, height: 560, x: width / 2, y: height / 2-5, background:'transparent' }); 这样吗?

mcl0626 avatar Mar 21 '22 10:03 mcl0626

解决了吗,是如何设置的呢? const fvideo2 = new FFVideo({ path: video2, width: width, height: 560, x: width / 2, y: height / 2-5, background:'transparent' }); 这样吗?

如此不行,请问您这个问题解决了吗。

u1s1hm avatar Jun 23 '22 05:06 u1s1hm

After setting the transparent background, it does not take effect, and the file format is mov

u1s1hm avatar Jun 23 '22 05:06 u1s1hm

After setting the transparent background, it does not take effect, and the file format is mov

请问您这个问题解决了么? @u1s1hm

DZwangbing avatar Aug 09 '22 08:08 DZwangbing

暂未解决

| | z403957883 | | @.*** | ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2022年8月9日 16:34 | | 收件人 | @.> | | 抄送人 | @.> , @.> | | 主题 | Re: [tnfe/FFCreator] 请问使用new FFVideo,如何合成有透明通道的视频 (Issue #186) |

After setting the transparent background, it does not take effect, and the file format is mov

请问您这个问题解决了么? @u1s1hm

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

u1s1hm avatar Aug 09 '22 08:08 u1s1hm

https://github.com/tnfe/FFCreator/blob/755121cc69ef1bf72d985cd575cf15e6d38e0f59/lib/node/video.js#L127

带有透明通道的视频需要指明decoder

windschaser avatar May 24 '23 03:05 windschaser

    感谢回复,
    
        
    

     
    
        
                    ***@***.***
        
    
 


---- 回复的原邮件 ----



  
    
     发件人 
    
    
        ***@***.***>
        
    
  
  
    
     发送日期 
    
    
    2023年5月24日 11:41
    
  
  
    
     收件人 
    
    
     
      
        ***@***.***>
        
      
    
  
  
    
     抄送人 
    
    
      
        ***@***.***>
        ,
      
      
        ***@***.***>
        
      
    
  
  
    
     主题 
    
    
          Re: [tnfe/FFCreator] 请问使用new FFVideo,如何合成有透明通道的视频 (Issue #186)
    
  

https://github.com/tnfe/FFCreator/blob/755121cc69ef1bf72d985cd575cf15e6d38e0f59/lib/node/video.js#L127 带有透明通道的视频需要指明decoder

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

u1s1hm avatar May 24 '23 04:05 u1s1hm