question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

-tov/--transparentvideoovervideo: invalid <lambda> value:

See original GitHub issue

Hi, I tried multiple way to get a -tv working an example video to work with a background and it always throws the error in the title.

For instance, backgroundremover -i "./stress.mp4" -tov "vert.mp4" -o "output.mp4" results in: backgroundremover: error: argument -tov/--transparentvideoovervideo: invalid <lambda> value: 'vert.mp4'

Weirdly enough backgroundremover -i "./stress.mp4" -tov -o "output.mp4" “works” … but there’s no overlay video input so I get: /<stdin>: No such file or directory Process finished

Any idea?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
celikmustafa89commented, Mar 30, 2022

The following command generates a video that scale-up the video for the background image. It may help in some cases. At least work for me. I spent some time writing this command, just want to share it to save your time if you need it.

ffmpeg -i test_fightclub.mp4 -i fight_matte_image.mov -i green.png -filter_complex '[1][0]scale2ref[mask][main];[main][mask]alphamerge[vid];[vid][2:v]scale2ref[fg][bg];[bg][fg]overlay[out]' -map [out] fight_image_complete_scale2ref.mp4

my output was like this: image

now I can generate following output with the code: image

2reactions
nadermxcommented, Mar 30, 2022

I had this open on superuser as I had gotten stuck. I’ll fix the ‘-tov’ ffmpeg command and close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Your Video Skill and Lambda Function (VSK Echo Show)
In this step, you will set up a video skill through the Alexa developer console ... Skill ID value when you create the...
Read more >
Fixing Browser Compatibility Issues With CSS Opacity & RGBA
This is a LambdaTest Experiment on CSS opacity for background color where we will learn how to fix the browser compatibility issues with...
Read more >
Classes of Video Clips — MoviePy 1.0.2 documentation
In the following newclip a 100 pixels-high clip whose video content scrolls from the top to the bottom of the frames of clip...
Read more >
Blending - LearnOpenGL
Transparent objects can be completely transparent (letting all colors through) or partially transparent (letting colors through, but also some of its own colors) ......
Read more >
Overlay video on video in MoviePy - python - Stack Overflow
I am using python MoviePy library to overlay video with transparent background in .mov format on video in .mp4. Here is the code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found