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
1 answer
19 views

ffmpeg re-encoding to h625 with video of Sea Water doubles file size

I know... there are a lot of questions out there already about reducing the file size with ffmpeg. But, here's why my question is a bit different, it addresses having difficult content. I think ...
1 vote
1 answer
58 views

Bash variable truncated when passed into ffmpeg

I have an album of 11 .flac audio files. (edit: since this issue has been resolved, it's now clear that the precise names and content of the files are irrelevant, so I've renamed them): > find . -...
0 votes
0 answers
47 views

Add image (cover art) to Opus (ogg) audio file using ffmpeg

Question I have 2 files: audio.opus (extension also possible: .opus.ogg), cover.jpg. How can I use ffmpeg to put cover.jpg as an embedded "cover" image into audio.opus? Constraints I don'...
  • 18.2k
0 votes
1 answer
28 views

Can "v4l2loopback" be installed/compiled for FreeBSD 13.1?

Wondering if anyone was able to compile v4l2loopback for FreeBSD 13.1 If so what are the steps. I need it for FFMPEG to convert a live USB cam MJPEG video stream from yuv422 to yuv420 on the fly and ...
  • 41
0 votes
1 answer
36 views

How can I loop over all directories and subdirectories and find files with a specific extension, then run FFMPEG on them, then copy them to a new lib

Ive been researching all of today and yesterday trying to find a solution, none have worked for me so far. For example: https://stackoverflow.com/questions/5784661/how-do-you-convert-an-entire-...
0 votes
1 answer
75 views

Why does the execution of these functions break out of this while loop?

The following script is meant to trim all media files in the current working directory. #!/usr/bin/bash trimmer() { of=$(echo "${if}"|sed -E "s/(\.)([avimp4kvweb]{3,3}$)/\1trimmed\.\...
0 votes
3 answers
51 views

How to rename files recursively with a specific extension to remove unwanted characters in audio files

I want to rename files with a .m4a extension recursively in child directories to remove unwanted characters in audio files such as [ ' ]. That's because that this below happened to this file 04 Tears ...
0 votes
1 answer
18 views

Create MP4 or another playable video format from frame series of JPEG in a directory

So I have frame series of JPEG in a folder let's say folder cctv where inside of that folder is only series of JPEG with unix timestamp named in nanosecond. I mean like this ( I used tail because too ...
0 votes
0 answers
22 views

Making a video from separate audio mp3 and background video using ffmpeg, adding artist picture and text

I am trying to make a video from: a music mp3 a background video as mp4 an overlay with artist picture Text with song information The script I have works fine for the image/text overlay and if the ...
  • 141
0 votes
0 answers
19 views

Pulseaudio default parameter not applied

I am trying to capture the audio generated by my browser with pulseaudio (14.2). So far no problem, except that the sample-format in /etc/pulse/daemon.conf is not taken into account. The file is ...
0 votes
2 answers
132 views

Convert .ts videos to .mp4 with find piped into while and ffmpeg?

I'm trying to convert a bunch of video .ts files to .mp4, but the way I think I have to go, is that while finding the files with find pipe the results into a while loop, execute ffmpeg on each file ...
  • 339
0 votes
0 answers
46 views

FFMPEG equivalent to Gstreamers "shmsink"?

I would like to replace this Gstreamer command: gst-launch-1.0 -v !\ filesrc location="VideoFile.mp4" !\ qtdemux name=demux !\ demux.video_0 !\ h264parse v4l2h264dec !\ v4l2convert ...
  • 401
1 vote
0 answers
544 views

AMD GPU Hardware acceleration possible for FFMPEG encoding H.265 on FreeBSD 13.0?

I am trying to record my live webcam video using FFMPEG to encode and record it in H.265 using my AMD Radeon RX 580 GPU. Are there any AMD AMF drivers which works for FreeBSD? Have no idea how to get ...
  • 41
0 votes
1 answer
135 views

FLAC encoders – any difference in output between the command-line tools?

I would like to know if there is any difference in the final output between the various command-line tools for encoding FLAC files, like ffmpeg, sox, the “official” flac etc. In some contexts, I have ...
  • 53
1 vote
1 answer
47 views

Maintain parallel lossy and lossless music collections

I have a large music collection. Some of it is lossless files, and some is lossy. I would like to maintain a copy of the collection that consists of the original collection's lossy files, and lossy ...
  • 1,131
1 vote
0 answers
124 views

ffmpeg; video duration is longer than the actual recording time

I'm using the following command to record the screen with ffmpeg. ffmpeg -nostdin -video_size 720x878 -framerate 24 -f x11grab -i :0.0+720,0 -vf setpts=N/FR/TB -vcodec libx264 -y -loglevel quiet ...
2 votes
1 answer
211 views

What does mediainfo mean when it says a video is truncated?

I have two ways of checking for damaged video files. The first is using mediainfo and runs instantly: mediainfo "$1" | grep --color 'IsTruncated' The second is manually going through the ...
  • 9,723
0 votes
0 answers
125 views

FFMpeg Join mp4 Files Without Re-encoding but Keep Original Frame Rate

I tried adding the -vsync vfr as a post suggested on https://superuser.com/a/1514949/1348487 but the original frame rate is not kept. find *.mp4 | sed 's:\ :\\ :g'| sed 's/^/file /' > list.txt; ...
0 votes
0 answers
230 views

Use v4l2loopback in docker, /dev/video0 missing in docker

I have installed v4l2loopback in the docker container using the following commands apt update apt install -y apt-utils apt install sudo sudo su root - apt-get install -y module-assistant m-a prepare m-...
0 votes
1 answer
346 views

ffmpeg dash playback stream ends too 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 ...
1 vote
1 answer
197 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 ...
  • 349
1 vote
1 answer
220 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 ...
2 votes
2 answers
94 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 ...
  • 23
0 votes
0 answers
245 views

yt-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) ...
0 votes
0 answers
184 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 ...
  • 169
0 votes
1 answer
60 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 ...
  • 169
1 vote
2 answers
327 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/...
0 votes
0 answers
111 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 ...
0 votes
1 answer
54 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" -...
1 vote
1 answer
175 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 ...
  • 317
1 vote
1 answer
63 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. ...
  • 180
0 votes
0 answers
716 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 ...
  • 23
1 vote
1 answer
909 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: ...
0 votes
0 answers
48 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, ...
  • 26
0 votes
0 answers
337 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 ...
1 vote
0 answers
305 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, ...
1 vote
1 answer
141 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) ...
  • 11.2k
1 vote
1 answer
165 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 ...
  • 113
0 votes
1 answer
400 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 ...
  • 731
3 votes
2 answers
109 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 ...
  • 185
0 votes
1 answer
85 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.
0 votes
0 answers
118 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 ...
0 votes
0 answers
229 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 ...
  • 177
1 vote
1 answer
114 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 ...
1 vote
1 answer
331 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 ./...
2 votes
1 answer
4k 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 ...
1 vote
1 answer
314 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 ...
0 votes
2 answers
305 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 ...
  • 101
0 votes
0 answers
101 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 @ ...
0 votes
0 answers
49 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 ...
  • 183

1
2 3 4 5
12