Questions tagged [ffmpeg]

`ffmpeg` is a free software project aimed at producing tools (libraries and programs) for handling multimedia data.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

ffmpeg v4l2 driver changes framerate of Logitech c920 camera

I own a Logitech c920 camera which seems to be able to do at least 24fps for 1080p (although the specs say it should go up to 60), according to vlc -vvv --color v4l2:///dev/video0 --run-time 1 vlc://...
1
vote
1answer
14 views

Use ffmpeg to achieve uniform output volume levels across different video recordings

I record math lectures for my students using quicktime (audio and video). Quicktime does not offer much control over the input audio gain. I would like to make sure that all my recordings have the ...
0
votes
1answer
20 views

Lossless ffmpeg recordings with low resource usage

I'm trying to record lossless videos with ffmpeg of My screen My computer audio My microphone audio using this script: MIC="alsa_input.usb-Logitech_Logitech_USB_Headset-00.mono-fallback" ...
0
votes
0answers
49 views

I can't make ffmpeg work (error: XDG_RUNTIME_DIR not set in the environment.)

I installed ffmpeg this way: apt-get install ffmpeg My distribution is: Linux debian3 4.19.0-9-amd64 #1 Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux The issue is, when I want to run ...
0
votes
0answers
18 views

Pulseaudio record multiple xfbv screens with python

I’m trying to do something complicated and I need some help. I’m able to record a session (video and audio) with python using xvfb and ffmpeg. I just want to visit a page using selenium and record the ...
0
votes
1answer
29 views

Shell script to merge selected images to gif

I'm trying to write a simple shell script that I can use in my file manager Dolphin to merge selected images to GIF. The following don't work, and I can't figure out the reason: OUTPUT="$(kdialog ...
0
votes
0answers
10 views

FFmpeg for Marshall PTZ camera: fails at first, but works after running VLC media player once

/dev/video0 is a Marshall CV610-U3-V2 connected via USB 3; OS is Debian/testing. Trying to access with ffmpeg: $ ffmpeg -f v4l2 -list_formats all -i /dev/video0 ffmpeg version 4.3.1-4 Copyright (c) ...
0
votes
1answer
14 views

How to apply reverb effect to audio files using commandline tools only?

I'm used to the reverb effect in Audacity, and was wondering if the same or at least, similar effect would be done using ffmpeg alone (or at least, commandline tools only). Any ways to do this with ...
1
vote
0answers
37 views

Setting DISPLAY=:0 and XAUTHORITY=/home/pi/.Xauthority causes FFmpeg to run poorly

I've setup a webcam viewer that detects when a USB webcam is plugged in with a udev rule, then starts a systemd service that executes a script that starts an FFmpeg/FFplay webcam stream. I noticed ...
0
votes
0answers
26 views

How to compare two images?

I am having linux ubuntu Os . And use C language to do programming. I want to compare 2 images which are taken from the mp4 video file so that if the percentage similarity is above certain threshold ,...
0
votes
1answer
42 views

ffmpeg batch command to reduce file quality

I've got a directory with thousands of images (png, jpg, bmp, etc.) and thousands of videos (mp4, mpv, mpeg, etc.). The png images may be ~10 MB and I can open them one at a time in GIMP, reduce ...
0
votes
0answers
20 views

download part of video up to certain resolution

This command will download part of the video youtube-dl -g "https://www.youtube.com/watch?v=mFlrc16xjik" | awk '{ if(NR==1) print $0 }' | sed "s/^/'/;s/$/'/" | xargs -I {} ffmpeg -...
0
votes
1answer
20 views

How to prepare videos for Restream.io Scheduler streams with ffmpeg

Following this official restream.io guide, I would like a person with some ffmpeg experience to translate this page into an ffmpeg command in order to save us, linux users, from having to install ...
0
votes
1answer
56 views

How to sync different fps video inputs

I want to do something similar to the one on this guide but in that case both inputs have the same fps, I want to sync two distinct framerate inputs, here a sample: ffmpeg \ -f x11grab \ -...
0
votes
0answers
33 views

FFMPEG Permission denied when running on seperate volume

/mnt/volume_nyc3_01/tmp/input.mp4: Permission denied I receive a Permission denied error when trying to run this ffmpeg command: ffmpeg -i /mnt/volume_nyc3_01/tmp/input.mp4 -c:v libx264 -filter:v ...
0
votes
1answer
42 views

ffmpeg video rotation problem

I have a video clip recorded by a smartphone vertically, and I'm trying to rotate it 90 degrees clockwise using the usual ffmpeg command (because some players fail to read the EXIF rotation data and ...
0
votes
1answer
34 views

ffmpeg hangs with command that used to work

I'm attempting to record video (a screen capture) on a Debian 10.4 laptop. I'm using a command that used to work fine on Mint 19.3, on the same hardware. I'm guessing the version of ffmpeg is newer ...
0
votes
1answer
27 views

ffmpeg not copying FRONT_COVER image metadata during conversion

When doing an mp3 → mp3 (or flac → mp3) conversion, -map_metadata can be used to copy metadata from the input file to the output file: ffmpeg -hide_banner -loglevel warning -nostats -i "${source}&...
0
votes
0answers
124 views

Error: unable to open display :99 on FFMpeg

I installed FFmpeg on a Linux Ubuntu machine using "snap". When I run FFmpeg on the remote machine using SSH it seems to work fine. When I run FFMpeg from Java on the machine (Unit tests ...
3
votes
0answers
77 views

Why does specifying audio input before webcam video input in FFmpeg cause them to go out of sync?

I am using FFmpeg to stream from a webcam and a pulseaudio source to an RTMP server. I know that argument order has an effect in FFmpeg. But I have found that if I specify the audio input stream ...
0
votes
1answer
134 views

How to hardcode subtitles from stream with ffmpeg?

I am trying to hardcode subtitles into a new video. The original video contains a subtitle stream, i.e, in total there vide, audio and subtitles (among other streams): ... Stream #0:0(eng): Video: ...
0
votes
1answer
21 views

Convert selected audio files in vifm using ffmpeg

I'm trying to create a command for converting all audio files selected in vifm using ffmpeg. Here's what I've tried so far: command opus ffmpeg -i %f -q 7 %f:s|flac|opus| This has two problems, ...
0
votes
0answers
120 views

ffmpeg - merge multiple audio at DIFFERENT times?

I'm trying to write a script that will take an arbitrary number of of .wav files and create a single output .wav file from them. The tricky part is that each component .wav file must start n seconds ...
1
vote
1answer
34 views

YouTube Live Streaming doesn't work on CentOS

My laptop has Ryzen 2200U with a Radeon Vega 3 and I am using it with CentOS 8, KDE 5 and Chromium version 81. I installed x264 and gstreamer-plugin-blah stuffs, but still both Konqueror and Chromium ...
0
votes
2answers
74 views

sox command is automatically adding delay in the begining of mp3

I have a few video files which have "humm" sound in the audio. So, I created the following script for batch processing. I am using ffmpeg, to extract audio to .mp3, and sox to denoise, which ...
0
votes
1answer
57 views

How to get a larger format then 640x426 using modprobe and gphoto2

I am using the following command to use my Nikon as a webcam: sudo modprobe v4l2loopback && gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /...
0
votes
1answer
43 views

No video recorded when using x264 codec in ffmpeg

I use the following command for my script to record the entire screen : ffmpeg -f x11grab -y -r 24 -s 1366x768 -i :0.0 -f alsa -i default -vcodec libx264 out.avi But after running that , out.avi ...
0
votes
0answers
8 views

Create a livestream from images being periodically generated

I want to create a live stream using images that are being automatically generated every second. What I imagine is a tool like ffmpeg reading from an image file, creating a video stream from it. ...
0
votes
0answers
22 views

Crop an online video without downloading it

Telegram's video size limit is 1500MB.Is there a way to crop an online video "www.example.com/example.mp4" which is bigger than 1500MB to parts each less than 1500MB, without downloading it, so each ...
0
votes
0answers
17 views

How to set a specific timestamps on the first frame?

I need to simulate ffmpeg breakdown and repush stream, so I want to repush stream with the same timestamps. ffmpeg -ss make timestamp at zero, what should I do?
0
votes
1answer
20 views

ffmpeg: monitoring video being encoded from /dev/video* on screen

ffplay can nicely open e.g. /dev/video0 and monitor the incoming video frames (e.g. you can watch TV on a TV card). Giving /dev/video to ffmpeg also makes it easy to encode the video. Is it possible ...
0
votes
0answers
8 views

Stream Video with Audio to a virtual device

I am able to write my video to virtual video device with the help of V4l2. Though video plays, audio is not available in the other end in Google meet. How to get stream audio of the video also. I am ...
0
votes
0answers
23 views

FFMPEG : streaming two different videos using the same resource

I'm trying to use FFMPEG to stream a video to a web-server, I'm using Local-host for now,It works like a charm Both on MacOs and Ubuntu, But I want to try streaming two videos, on the same resource (...
0
votes
1answer
209 views

ffmpeg: Replace part of a video by a jpg file for 5 seconds

Sometimes I have a video in which I like to discard the video sequence for five seconds between second 11 and second 16 (as an example) and instead incorporate an image from a jpg file that is ...
9
votes
1answer
291 views

Why can multiple consumers access a *single* v4l2-loopback stream from a webcam

I recently needed a single webcam to be shared simultaneously by 3 applications (a web browser, a videoconferencing app, and ffmpeg to save the stream). It's not possible to simply share the /dev/...
1
vote
0answers
59 views

ffmpeg sources out of sync

When I run this ffmpeg command, it should record two identical audio channels from my microphone to output.mkv ffmpeg -f pulse -i default -f pulse -i default -map 0 -map 1 output.mkv Instead the ...
0
votes
3answers
81 views

How to get the total duration of all video files in current folder and sub-directories [duplicate]

I am trying to get the duration of a bunch of files in current directory and its sub-directories all ending in .mp4. I'm trying to use ffprobe. To make things simple, I am not using find, but ls. If ...
0
votes
0answers
69 views

Slow bash script for getting audio/video duration

I have created a bash script to generate a HTML file, which will have the duration of the audio/video files in the current folder. The script uses ffprobe to fetch the duration in the quiet mode and ...
0
votes
0answers
16 views

FFMPEG Split Live Audio Into Segments

I am looking to split live audio from an icecast2 server when they become over a certain length. I found this command: $ ffmpeg -i somefile.mp3 -f segment -segment_time 120 -c copy out%03d.wav This ...
0
votes
0answers
21 views

How to re-stream two webcam feeds & browser view to Twitch/Youtube

I would like to be able to stream the two views from my 3D printer and a web view to twitch. Currently I have a janky setup where my desktop streams the webcams into OBS and this handles the ...
0
votes
0answers
48 views

Reduce file size from a list of video files in a directory using ffmpeg

I have a series of video files in a directory whose file sizes need to be reduced. They all share the same container (.mp4). So, I would like a command that, for every individual input, an output ...
0
votes
0answers
21 views

Combine 2 videos into 1 seamless video

I have 2 videos - a first chunk and a second chunk - from the same project (I had export problems.) These two chunks have some overlap. But I need to combine these two chunks so that when the first ...
1
vote
2answers
54 views

ffmpeg across .avi files in subdirectories

Situation: Running macOS 10.13.6 and using bash 5.0.17(1) A lot of subdirectories which hold multiple files. Need to filter out files in subdirectories with a specific extension (.avi). Need to ...
0
votes
0answers
23 views

FFMPEG silence at end of clip when trimming

I'm using the following command to link generate a video with a thumbnail with some audio. ffmpeg -loop 1 -framerate 1 -i thumbnail.png -ss 2:20 -t 1 -i audio.mp3 -c:v libx264 -tune stillimage -...
0
votes
0answers
65 views

How can one record mic audio straight to a FLAC file?

Months ago I would occasionally record little snippets of audio as FLAC files using ffmpeg and ALSA. I used a command that looked more or less like this: ffmpeg -f alsa -ar 48000 -ac 1 -acodec flac -...
0
votes
1answer
53 views

Screencast script based on FFMPEG

I am trying to write my own screencast script based on FFmpeg. I want to be able to draw a rectangle on the screen and force FFmpeg to make a screencast of this area only, for that I would need the ...
2
votes
2answers
500 views

“Permission denied” with ffmpeg (via snap) on external drive

I got a new drive and I can copy files fine with simple cp on the drive. However for some weird reason I get Permission denied with ffmpeg. Permissions seem fine unless I'm missing something > ll ...
0
votes
0answers
16 views

Python - load a video in exactly one second chunks

I have several local videos which I am loading into Python by calling ffmpeg and loading the bytes into BytesIO object. The video is compressed so (I think) the bytes in one second may not equal the ...
0
votes
1answer
490 views

Stream video with ffmpeg to icecast?

Is there a simple way to stream video with ffmpeg into icesast? Source video is in video/x-matroska format. Streams themselves are in various formats (mpeg, vorbis, aac, etc.). I want ffmpeg to guess ...
0
votes
0answers
1k views

Download is performed unsandboxed as root as file 'ffmpeg_4.2.2-1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

I ran the following commands to get the ffmpeg in Kali Linux as root. I got the tutorial link from This Link sudo apt-get build-dep ffmpeg sudo apt-get install libfdk-aac-dev sudo apt-get source ...

1
2 3 4 5
11