Category "ffmpeg"

Why doesn't FFmpeg work when using yt-dlp in python script?

I'm trying to download a video using yt-dlp in python. ydl_opts = {'format': 'bv+ba/b'} with YoutubeDL(ydl_opts) as ydl: ydl.download('https://www.reddit.c

ffmpeg H264 - How to add user unregistered SEI Message while encoding stream

I'm working on an application where I need to insert some user unregistered SEI data in every frame before encoding it. I can't seem to find any API to add the

Applescript to batch convert videos with ffmpeg

I'm trying to add padding to a large amount of videos in their folders. I created an app with AppleScriptEditor so I can drag and drop files and they're automat

Libav API: Filtering + Transconding

I need to process a list of several audio files (MP3 and WAV) and mix them to generate an audio stream (AAC codec / fltp) to be included into an mp4 file (using

Pipe opencv images to ffmpeg using python

How can I pipe openCV images to ffmpeg (running ffmpeg as a subprocess)? (I am using spyder/anaconda) I am reading frames from a video file and do some process

Python add audio to video opencv

I use python cv2 module to join jpg frames into video, but I can't add audio to it. Is it possible to add audio to video in python without ffmpeg? P.S. Sorry fo

FFMPEG: create a transparent background with lavfi?

I can create a transparent background using lavfi by setting colorkey - but that gives problems with edges around fonts, etc. ffmpeg.exe -y -f lavfi -i color=s

Image Video Thumbnail creating using PHP-FFmpeg

I am using PHP-FFmpeg for video thumbnail genaration. My code is below <?php $video = "a.mp4"; $image = "thumb.jpg"; $frame = $video->frame(FFMpeg\Coordi

ffmpeg - how to set histogram size?

I'm trying to add a histogram to a video using ffmpeg, I'm following this example, but I'm having trouble setting the size of the histogram, this is the code I'

How to live stream a local video using FFmpeg

I am trying to get used to the FFmpeg library, and currently, I have been trying to stream local video on VLC using FFmpeg. The command I have been using is:

Merge Multiple Videos using node fluent ffmpeg

requirement is to read all the files in the directory and merge them. I am using node fluent-ffmpeg to achieve this. First of all reading all th

Convert mp3 -> Video with static image ( ffmpeg/libav & BASH )

Some years ago I used the following bash script to get a video out of mp3's and one image (so the image in the video was freezed over the length of the mp3), wh

How can I place a still image before the first frame of a video?

When I encode videos by FFMpeg I would like to put a jpg image before the very first video frame, because when I embed the video on a webpage with "video" html5

OpenCV VideoWriter using ffmpeg with "Could not open codec 'libx264'" Error

I am new to OpenCV, and I want write Mat images into video using VideoWriter on Ubuntu 12.04. But when constructing VideoWriter, errors came out. It seems tha

OpenCV MP4 Creation

I've been trying to trying to write MP4 video files using OpenCV, in python. AVI creation works fine, both on linux and windows, when I use both: out = cv2.Vi

@ffmpeg/ffmpeg: Uncaught (in promise) ReferenceError: SharedArrayBuffer is not defined

I have a small react app with a node.js backend (monorepo). The client is using @ffmpeg/ffmpeg, and all works fine locally, but when deployed to Heroku I'm gett

how to use GPU in ffmpeg (mp4 to jpg): Device creation failed: -12

I have used option '-hwaccel cuvid'. sp.run(['ffmpeg','-hwaccel', 'cuvid', '-i', video_path, '-q:v','2', '-f','

FFMPEG build on Windows using MSVC - make fails

I am trying to build FFMPEG on Windows with MSVC. I am following this guide. I have managed to setup the environment in order to configure successfully, but mak

How to detect audio sampling rate with avprobe / ffprobe?

I am using libav 9.6, installed via Homebrew. $ avprobe -version avprobe version 9.6, Copyright (c) 2007-2013 the Libav developers built on Jun 8 2013 02:44

Set a subtitle language using ffmpeg

I tried googling a way to set the language of a subtitle stream with ffmpeg and found the -slang option. So I tried the following command but immediately receiv