Score:0

ffmpeg add watermark out of memory

sm flag
wen

we want to add watermark to video using ffmpeg. When the video is relatively large, there will be out of memory. Below is our code, how can I go about eliminating this problem. enter code here

        filter_args = '[1][0]scale2ref=oh*mdar:ih*0.06[logo][video];[video][logo]overlay=0:(main_h-overlay_h)'
        cmd = [
            'ffmpeg',
            '-i', mp4_done_path,
            '-i', './watermark.png',
            '-filter_complex', filter_args,
            videoPath
        ]
        process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.