How do you convert an entire directory with ffmpeg?

How do you convert an entire directory/folder with ffmpeg via command line or with a batch script?

Can you "stream" images to ffmpeg to construct a video, instead of saving them to disk?

My work recently involves programmatically making videos. In python, the typical workflow looks something like this: import subprocess, Image, ImageDraw for i in range(frames_per_second *...

How to convert any mp3 file to .wav 16khz mono 16bit

Please, help to choose solution for converting any mp3 file to special .wav - I'm a newbie with Linux command line tools, so It's hard for me right now. I need to get wav with 16khz mono 16bit...

Cutting the videos based on start and end time using ffmpeg

I tried to cut the video using the start and end time of the video by using the following command ffmpeg -ss 00:00:03 -t 00:00:08 -i movie.mp4 -acodec copy -vcodec copy -async 1 cut.mp4 By using...

convert from avi to mp4 using ffmpeg

I want to play an avi video format file in browsers using HTML5 video code. Since the avi format file doesn't play in browsers i have to convert it into mp4 format file. For conversion i am using...

How to Add Font size in subtitles in ffmpeg video filter

I'm using this command to crop,scale, and then add subtitles as overlay ffmpeg -i input.avi -vf "[in]crop=in_w:in_h-20:0:0 [crop]; [crop]scale=320:240 [scale];[scale]subtitles=srt.srt" -aspect...

How to create a video from images with FFmpeg?

ffmpeg -r 1/5 -start_number 2 -i img%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 This line worked fine but I want to create a video file from images in another folder. Image names in my...

How to compress mp3 file in php

I am doing a php project. In my project, I need to compress mp3 files to reduce the file size because I need to store a lot of mp3 files. How can I compress it in php? I am using laravel...

How to merge two videos?

I use https://github.com/Zulko/moviepy library for merge two videos with python. It merged successfully but sound of videos is not exists in merged.mp4. The python code : clip1 =...

How to send audio API HIKVISION for two-way-audio?

I need help to understand why when sending audio to the camera you hear ugly, very fast. The camera is configured audio codec G711Ulaw The process I am doing is the following: I download a wav...

FFMPEG How to zoom in and then zoom out in one command line

I'm making a video with zoom effects. I want put in zoom in and then zoom out like beat react...

OCI runtime exec failed: exec failed: (...) executable file not found in $PATH": unknown

I have dockerized an app which has ffmpeg installed in it via libav-tools. The app launches without problem, yet the problem occured when fluent-ffmpeg npm module tried to execute ffmpeg command,...

Different h264 encoders in FFmpeg

In ffmpeg 4.0, there are several h264 encoders. If you use ./configure --list-encoders | grep "h264", you can see...

how to use ffmpeg in laravel to compress video file size

This is my first time using ffmpeg. I don't know if there is a tutorial on how to use ffmpeg in laravel to compress videos. Can someone please help me please? $pro=new User; ...

Converting and Compressing a Video with FFmpeg

I'm using FFmpeg to convert and compress a video. Everything converts/compresses fine, but my video has no sound when I try to play it on a mobile device. But it has sound when I play it on a...

How to force "full range" flag on export

I have an ffmpeg command to remap audio tracks to discrete channels in a ProRes 4444 quicktime file. Even if the input video is copied to the output, the exported file is interpreted by a...

using puppeteer-recorder to record video of browser

I'm trying to record puppeteer to see what happens when i run it on server, as I understand this package does what i want. https://www.npmjs.com/package/puppeteer-recorder so here is simplified...

ffmpeg concat video size smaller than original videos

I'm trying to merge multiple videos using ffmpeg but the output of concat is half the size of original videos. Below is the ffmpeg command, ffmpeg -f concat -safe 0 -i input.txt -c copy...

How to install ffmpeg on Google App Engine?

I intend to install ffmpeg and ffprobe to my Google App Engine flex environment, how can I do this with requirements.txt as a package ? I am currently using ffmpeg-python yet, this is only a...

Video encoding with AV1 - FFmpeg

I was trying to encode a raw video with AV1. I used: ffmpeg -i netflixboxing720p.y4m -c:v libaom-av1 -b:v 500k -strict experimental netflix720p500AV1.mp4 I took 2 hours and when I open the created...

MoviePy smaller clip splitting causing glitches when concatenating files, mismatched audio, encoding

My code is below. The breaker file: from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip splits = [[1, 2], [5, 6], [7, 10]] for i, split in enumerate(splits): start, end = split ...

Getting error "CUDA backend requires cuDNN" when configuring OpenCV cmake build with cuda backend turned on

My goal: My goal is to configure a build of OpenCV 4.5.1-dev with support for cuda, tesseract and QT without any cmake error.. The problem I am having: I am getting the following error when I...

Prevent ffmpeg from changing the intensity of colors while downscaling the resolution of the video

I have a use case where I need to downscale a 716x1280 mp4 video to 358x640 (half of the original). Command that I used is ffmpeg -i ./input.mp4 -vf...

Create Panorama from Non-Sequential Video Frames

There is a similar question (not that detailed and no exact solution). I want to create a single panorama image from video frames. And for that, I need to get minimum non-sequential video frames...

Discord.py - Streaming Youtube Live into Voice

I'm back on the stacks, was banned from asking questions because they were terrible apparently, but I need help on something I've done a lot of research on but cannot find my answer; I need to be...

how to stream capture image frame to rtmp server using ffmpeg C#

I'm working on a task where I need to capture the stream from the IP camera and then I need to send the capture frame to the RTMP server. for capturing the image frame from the camera I'm using...

How to convert rtsp stream to mjpeg (http) using ffmpeg

I wish to capture an rtsp stream and convert it to an mjpeg (over http) stream using ffmpeg. I am running Ubuntu 20. I have searched and searched for the solution, and mostly find: a) solutions...

Overlay video on video in MoviePy

I am using python MoviePy library to overlay video with transparent background in .mov format on video in .mp4. Here is the code I have so far. from moviepy.editor import VideoFileClip,...

Can ffmpeg parse/decode packets in AVCC format?

According to https://stackoverflow.com/questions/23404403/need-to-convert-h264-stream-from-annex-b-format-to-avcc-format: AnnexB format: ([start code] NALU) | ( [start code] NALU) | AVCC...

How should I should I configure NGINX rtmp server so I can publish both a rtmp stream and hls at the same time

I currently have an ffmpeg bash script running that pulls an RTSP feed from a live camera feed and then publishes it as RTM` to my Nginx server. The requirements for the server is that uses can...