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
-1 votes
1 answer
18 views

Can I use abcde with FFmpeg?

Which formats can the command line audio CD ripper abcde produce, using FFmpeg as the encoder / tagger? Disclosure: I added support for FFmpeg to abcde when I was a co-developer...
user avatar
  • 209
0 votes
0 answers
19 views

ffmpeg dash playback stream ends to early

I am trying to play back a dash manifest using ffmpeg but I keep running into the issue of ffmpeg ending with the error [http @ 0x671e580] Stream ends prematurely at 2250, should be ...
user avatar
0 votes
1 answer
32 views

Is there a way to record the audio directly from the soundcard (e.g. using ffmpeg)?

I know there it is possible to record sound from the speaker of the computer using command such as: ffmpeg -f avfoundation -i ":0" -t 10 audiocapture.aiff But as the recorded sound is far ...
user avatar
  • 297
1 vote
1 answer
32 views

How can I use ffmpeg to split MPEG video into 2 gb chunks?

Im trying to split a larger video into bits that are a specific or equal size so that I may upload them to a file sharing site. I know you can split videos like this by time, ffmpeg -i input.mp4 -c ...
user avatar
2 votes
2 answers
65 views

Filtering file list to show only files alphabetically after certain file

I have a huge number of images from which I'd like to feed some to ffmpeg time to time. But I only want to feed ones that are alphabetically after certain image (last frame of previous run, name ...
user avatar
  • 23
0 votes
0 answers
21 views

ytp-dlp with external downloader has black frames

I have the following fish shell script for downloading a slice of a video using yt-dlp and ffmpeg function yt-dlp-trim -d "Download a slice of a video with yt-dlp" if test (count $argv) ...
user avatar
0 votes
0 answers
14 views

How to control webcam's exposure time (using V4L2) based on the certain pixel's value?

I'd like to control the exposure time such that certain average value of certain window (e.g. 10x10+230+70) always fall between 100 to 220. /p.s. Camera is monochrome/ Something like following: loop ...
user avatar
  • 97
0 votes
1 answer
16 views

How to make sure images captured by FFMPEG from USB is lossless?

I'm to capturing 10 images from camera. Like so: ffmpeg -hide_banner -loglevel error -f video4linux2 -i /dev/video0 -vframes 10 -video_size 640x480 test%3d.jpg Since JPG is lossly, at I need to ...
user avatar
  • 97
0 votes
1 answer
23 views

Resize Mp4 file into 9:16 YT short size using FFMPEG

I recently programmed a bot, which uses the Twitch API to scrape Twitch videos, and then post them on YouTube. This is my youtube channel if you want to see an example: https://www.youtube.com/channel/...
user avatar
0 votes
0 answers
35 views

How to record screen when using eglfs on Broadcom VideoCore IV

I have a full-screen Qt app running on a Raspberry Pi 3 using the "eglfs" platform. It draws using KMS/DRM and the /dev/dri/core0 GPU device. The GPU is a Broadcom VideoCore IV. I'd like to ...
user avatar
0 votes
1 answer
36 views

Move and rename video files (*.mp4) shorter than 3 min

I am trying to create a bash script that moves/renames (and / or creates a symbolic link) to all video files that are shorter than 3 min. So far I have this Find command: find "$findpath" -...
user avatar
1 vote
1 answer
75 views

OpenSuSE Leap 15.3: Update 2022-55 (1) (recommended update for audacity) fails due to missing ffmpeg-3

Every time I'd like to update my OpenSuSE Leap 15.3 (x86_64) system, the software updater in the systray stumbles upon a recommended update for audacity (2022-55 (1)). It always fails to get installed ...
user avatar
  • 315
1 vote
1 answer
34 views

Convert encode of audio files

I wish to convert the encoder of some audio files. The problem is that my car can't reproduce audio files encoded with LAME3.99.5; it's an issue with some Volvo cars. The problem is with USB and CD. ...
user avatar
  • 180
0 votes
0 answers
326 views

4K HEVC decoding and playback in MPV/ffmpeg

I am trying to play 4K HEVC videos in mpv but it gets really stuttery... I Have NVIDIAs proprietary drivers installed (NVIDIA GeForce MX150 ) on Artix Linux . When I start mpv , I press Ctrl-h to ...
user avatar
  • 23
0 votes
0 answers
223 views

Split video file into chunks using FFMPEG and exact number of frames

I am trying to split a video video.avi (with N being the total number of frames) into contiguous chunks according to a fixed number of frames (say M = 100). Specifically this process should yield: ...
user avatar
0 votes
0 answers
22 views

Can ffmpeg concatenate multiple formats in different aspect ratios into one consistent format?

I am building a wrapper for ffpmeg but the concatenate part has me a bit stuck. I am not entirely familiar with ffmpeg or which options and arguments I should be using. How can I concatenate a photo, ...
user avatar
  • 26
0 votes
0 answers
117 views

specify h264_vaapi profile in ffmpeg

When I use ffmpeg and vaapi encoder, I know I can specify "profile" in a commandline: ffmpeg ... -i input.wmv -c:v h264_vaapi -profile:v PROFILE_NUMBER output.mp4 Since this I am using ...
user avatar
0 votes
0 answers
75 views

Merge 2 videos side by side using ffmpeg and hardware acceleration

I know that the most basic syntax to horizontally stack two videos side-by-side is using the following syntax: ffmpeg -i left.mp4 -i right.mp4 -filter_complex hstack sideByside.mp4 How, if possible, ...
user avatar
1 vote
1 answer
50 views

Extracting video via ffmpeg gives incorrect duration

This is the ffmpeg version I am working with on Debian testing - $ ffmpeg -version ffmpeg version 4.4.1-2+b1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Debian 11.2.0-12) ...
user avatar
  • 10.7k
1 vote
1 answer
57 views

Are these threads in htop using any resources?

My node application spawns ffmpeg processes. In htop, there are a bunch of ffmpeg processes I would have expected to have ended but they are still shown in htop. The threads in green are the process ...
user avatar
  • 113
0 votes
1 answer
119 views

Speed up video by ffmpeg did not reduce file size

I'm following Speeding up playback speed https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video However, when I speed up my playback speed by 1.5, I'd anticipate a reduce of ...
user avatar
  • 485
3 votes
2 answers
89 views

Extrating timestamps from filename to split mp3s

I have a bunch of mp3 files in a folder. They are recorded from cassette tape, and the individual tracks need to be separated out. This is one one the filenames: Gobbolino the Witch's Cat, 10:52 The ...
user avatar
  • 185
0 votes
1 answer
27 views

Find large video files inside sub folders and compress them inside the folder

I want to find all the video files larger than some specific size and compress them and save them in the same directory where it present.
user avatar
0 votes
0 answers
56 views

Merge (not concatenate) a video file with audio file

I have a video file and an audio file. Video file: video.mp4 It has video It has audio Audio file: background.mp3 It only has audio. My OS: Ubuntu 16.04. I also have vlc After searching a lot on ...
user avatar
0 votes
0 answers
106 views

ffmpeg "Error initializing bitstream filter: h264_mp4toannexb"

I'm trying to combine two mp4 files using ffmpeg. As per the (rather abstruse) documentation, the following code should combine the files: ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f ...
user avatar
  • 155
1 vote
1 answer
51 views

Problem with utilizing a "while loop" and subsequently processing data in a bash script

I'm trying to create a script, which should read a video folder and create a list of video files to be processed by ffprobe to identify the codec. Videos NOT processed with a specific codec (in this ...
user avatar
1 vote
1 answer
194 views

Unable to run apps on Fedora 35 - libffmpeg.so: No such file or directory

I'm trying to run apps such as flipper and react-native-debugger by downloading the bundled linux app. However, when I try to run those from the CLI, I get this error :; ./react-native-debugger ./...
user avatar
1 vote
1 answer
1k views

Ffmpeg libx265 vs hevc_nvenc

I have an Nvidia graphics card, and am using the proprietary drivers. I looked into the ffmpeg H265 encoders available to me, and found hevc_nvenc. Using hevc_nvenc does in fact use the GPU to encode ...
user avatar
1 vote
1 answer
151 views

How do I use SSH to launch a nohup ffmpeg command and leave it running after disconnect?

I'm trying to launch a series of FFMPEG commands over SSH. My SSH client is the native openssh (7.7.2.1) client in Windows Server 2019 (ver 1809 build 17763.2114). The command I am trying to run is ...
user avatar
0 votes
0 answers
100 views

The fastest way to reduce video file size with ffmpeg?

There are several big video files(.mp4) and I want to reduce the size of them to at least half or even less in cost of losing quality, but I want to do this in the fastest way. I've tried with libx265 ...
user avatar
  • 101
0 votes
0 answers
70 views

recode internal audio with video in wayland ffmpeg

So far i have tried ffmpeg -f kmsgrab -i - -f pulse -i 0 -framerate 20 -vf 'hwmap=derive_device=vaapi,hwdownload,format=bgr0' -preset ultrafast out6.mkv but it gave me errors like [matroska @ ...
user avatar
0 votes
0 answers
29 views

What's the smallest lossless video codec supported by ffmpeg?

I recorded some 2k 60fps videos with libx264rgb losslessly using the ultrafast preset. They are about 3GB/min. Re-encoding libx264rgb with the veryslow preset only reduces it to 1.6GB/min. Is there a ...
user avatar
  • 173
0 votes
1 answer
77 views

ffmpeg recording slows down when audio inputs are added

I'm trying to record my screen, my mic, and my game audio with ffmpeg. This command records only my screen. ffmpeg \ -video_size 2560x1440 \ -framerate 60 \ -f x11grab -i :0 \ -map 0 \ -c:a copy \ -c:...
user avatar
  • 173
0 votes
1 answer
50 views

Why doesn't `eval` work in this code?

I wrote the following code which is meant to create a file with a list of low-resolution media files: #!/usr/bin/bash find "$PWD" -type f -iname "*.avi" -execdir ~/CS/...
user avatar
0 votes
2 answers
300 views

Hardware accelerated lossless recording on a 6700 XT using ffmpeg

I'm trying to record my screen losslessly (or at near lossless quality) with hardware acceleration on a 6700 XT with ffmpeg. I'm running Linux Mint with the 5.14.14-051414-generic kernel. I've tried: ...
user avatar
  • 173
0 votes
0 answers
50 views

ffmpeg get best quality

how do i use ffmpeg to encode slowly for better quality? I'm currently using this: ffmpeg -i "input" -c:v hevc_qsv -b:v 1M -preset veryslow -t 5:00 "output"
user avatar
0 votes
0 answers
18 views

How do I recursively cut an audio file automatically?

Okay so to begin. I'm developing a game however the sound engine that it uses is not advanced and dose not allow sounds to be paused, sounds can only played and stopped. I can not change this sound ...
user avatar
0 votes
0 answers
29 views

FFMPEG Multiple Filters (Scale Video + Scale / Apply Watermark)

Can someone please tell me the proper syntax for combining the following filters into a single command? I can't seem to figure it out. The following command is being used to scale the video. ffmpeg -i ...
user avatar
0 votes
0 answers
21 views

FFmpeg is not giving the accurate audio duration

I have an audio file that I want to trim/cut from 00:00:10.840 to 00:00:15.520, but instead of output the audio for the giving specific duration, it output the audio five seconds more (trimmed to: 00:...
user avatar
  • 1
0 votes
0 answers
19 views

How to download portion of video with ffmpeg.js in web

I want to download 10 sec of video without downloading the complete video in web using ffmpeg but it fetch the complete video and then trim the video. I'm using this let { createFFmpeg, fetchFile } = ...
user avatar
0 votes
1 answer
67 views

How to prepare a generic shell script which can identify video files and transcode them with FFmpeg according to a few rules?

I am trying to get a bare-bones (just running a few commands) script which should read a folder with sub-folders for video files, select the ones which are not HEVC encoded and pass them to ffmpeg, ...
user avatar
1 vote
0 answers
99 views

ffmpeg how to record a specific window (even when not visible)

I want to record a specific window even when its not visible(another window is above it) using ffmpeg is it possible? if so how?
user avatar
1 vote
0 answers
82 views

can't stat file more than once?

So I've got a bizarre error that occurs when I use ffmpeg.ffprobe on an MP4 file that is hosted my NAS. When I login to a shell and switch to any directory on my network storage that contains a MP4 ...
user avatar
  • 121
0 votes
1 answer
88 views

ffmpeg Unknown input format: 'gdigrab'

I'm trying to record a specific window, so I tried this answer. But it gave me this error: Unknown input format: 'gdigrab' I'm using ffmpeg version n4.4.
user avatar
0 votes
0 answers
35 views

ffmpeg to cut subtitle file in sync with the cut video

I managed to cut the video and keep subtitle in sync by embedding the subtitles in the video: $ ffmpeg -i sample-mp4-file.mp4 -hide_banner \ -vf subtitles=subtitles.srt -ss 0:30:00 -t 1:33:31 \ ...
user avatar
  • 485
0 votes
1 answer
227 views

How do I record just the internal audio with ffmpeg?

ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f alsa -i default -c:a aac -c:v libx264 -crf 18 -preset slower ~/Videos/recording-(date +%F-%I-%M).mp4 I'm using this command to record the screen and my ...
user avatar
0 votes
1 answer
203 views

Is there a way to check if the script in background process is crashed?

I am using Ubuntu 20.04 and I want to write a script that checks if ffmpeg command crashed in the background. After the crash happened it should reinitialize that command. Can anyone provide a bash ...
user avatar
0 votes
1 answer
39 views

get location from drone video with command line tools

How to extract location data from drone video (DJI Mavick Pro 2) by command line? I tried both ffprobe and exiftool, no result. But as for the videos shooted by Android phone all is well.
user avatar
0 votes
1 answer
203 views

Starting ffplay X-window without a window manager

I want what is essentially a kiosk, to display a video stream using ffplay, without a whole Desktop environment. I started with minimal CentOS7, and installed xterm and X11, per this simple guide: ...
user avatar
1 vote
0 answers
393 views

Tools to manipulate and generate apng with good compression in linux command line

I have recently working with apng. But apngs are larger than similar gif. Also I cannot find a good tool to manipulate apng. ImageMagick produces png for all modification, like (-color 124). To ...
user avatar

1
2 3 4 5
12