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

Compiling x264 with ffms2 support

I wonder how to compile x264 with ffms2 support under linux, specifically on CentOS 8. I'm able sucessfully compile ffmpeg with all available libraries under usual compilation (including x264), and ...
0
votes
0answers
18 views

ffplay fails to play certain files

There are certain files that fails to play when I try to play them with ffplay. Here is the error they throw when trying to play, ❯ ffplay /usr/share/lmms/samples/instruments/harpsichord01.ogg ffplay ...
0
votes
1answer
26 views

How to extract every 10th frame from a video?

I have a video and I want to extract every 10th frame as I am getting way too many images. ffmpeg -i out1.avi -r 1 -f image2 image-%3d.jpeg How to extract images from video file?
0
votes
0answers
14 views

How to get my Pi zero audio simultanusly on my hifiberry and on ffmpeg?

Hope you can help me. Got a Pi Zero and Hifiberry Module playing with raspoitify. Speaker sound is fine. My goal is to have the same (raspotify) audio on a ffmpeg stream from that Pi as well. I ...
0
votes
1answer
56 views

Why can't ffmpeg be used in process substitution?

Why doesn't this command line work: vim <(ffmpeg -i vid.mp4 2>&1) I'd expect it to have identical behaviour to the (working) vim <(ffprobe -i vid.mp4 2>&1) But actually the ...
0
votes
0answers
18 views

How do I remove fragments from audio?

I need to remove some parts of an audio file, but it doesn't work. I used this command: ffmpeg -ss 01:46:39.350 -i audio.thd -to 01:46:40.271 -c:a copy cut.thd — just to remove unnecessary 921ms ...
0
votes
2answers
58 views

Linux is there a way to wait for a file to be created to make a symlink

This question will seems very weird, please take the time to read 1- I have a .sh containing a ffmpeg command (this commands works, here it's all ok) 2- I trigger the .sh via a API call to start ...
0
votes
0answers
36 views

ffmpeg mkv -codec copy error: “incorrect codec parameters ?”

When I try to just copy a mkv file I got that error. What's the correct syntax? command: ffmpeg -i input.mkv -codec copy output.mkv error: Could not write header for output file #0 (incorrect codec ...
0
votes
1answer
36 views

Re-encoding mkv video (HEVC) to make it working in a LG CX smart TV

My LG CX TV can't play some mkv videos even if the codec (HEVC) is supported and working fine with other videos. I would like to copy the same settings from a working video and re-encode the "non ...
0
votes
1answer
53 views

FFmpeg cannot write file to /dev/shm: Permission Denied

Issue: I have an FFmpeg command that I've been running for months now to stream video into the /dev/shm directory. It had been working fine until relatively recently (e.g. within a week), now it ...
1
vote
2answers
55 views

How to trim first 8 secs & last 8 secs from the front and then the end of a m4a audio file and keep the rest of the file

I've an .m4a audio file and wish to take the front 8 secs away and keep the rest of the file intact, then once this first step is done discard the last 8 seconds of the file and keep the rest of the ...
0
votes
0answers
7 views

ffmpeg last few seconds of recorded audio are mute

I'm trying to record my desktop using the following command: ffmpeg -y -s 1920x1080 -r 25 -f x11grab -i :0.0 -f pulse -ac 2 -i default out.mp4 However, the last few (2 or 3) seconds of audio are mute....
0
votes
0answers
61 views

Recording screen with pulseaudio causes desyncs

Following the ffmpeg's Capturing Desktop guide for linux, when audio source is pulse format it causes frame freezes and desyncs, fps slows down, and video is delayed compared to audio. I have tried ...
0
votes
0answers
34 views

How to downgrade OpenSSL from 1.1.1 to 1.0.2? Mips32rl?

ffmpeg libraries does not support HTTPS protocol on my linux stp (mips32rl enigma2) Because, newer openssl 1.1.1.. so how downgrade from 1.1.1 to 1.0.2 ? thank you
0
votes
1answer
46 views

Scanning subfolders with BASH Script ${ROOTPATH}/${subdir}

Doing my best to make this work but have little knowledge of scripting. This script should be scanning my specified directory and all subdirs scanning video assets moving any corrupted/errored files ...
0
votes
1answer
22 views

efficient way to compose all frames in a video to a single image

I've got a 720p video file that is about 20 minutes long. I want to compose each frame in the video using a single operator (e.g. lighten, darken, etc.) to produce a single image output. My thought ...
0
votes
1answer
16 views

Trying to get FFMPEG to merge a file list with a numbering scheme that increments by 8

I have a directory of PNGs which I want to merge in to an .mp4. The first file is named 01992000.png, the second 01992008.png, and the naming continues in increments of 8, until the final, 02018000....
0
votes
0answers
56 views

Embed date/time in MJPEG-Streamer livestream and/or recording

Simply put: How do I record from a mjpg-streamer stream and add the current DATETIME as an overlay at the same time without re-encoding/using a lot of CPU power? I would like to have the current date/...
2
votes
1answer
477 views

Can't reinstall ffmpeg due to unmet dependencies in Debian / why did ffmpeg not use the specified bitrate in video conversions?

In Short: I tried to reinstall ffmpeg: sudo apt install ffmpeg: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable ...
1
vote
2answers
74 views

Install FFmpeg on Debian with 'apt'

I have a Debian Linux server (Debian GNU/Linux 8 (Jessie)) and want to install FFmpeg. I do the following steps: apt update apt install ffmpeg I then get the following error: Reading package lists... ...
0
votes
0answers
26 views

How to limit total amount of memory processes in for-loop use

I have a directory, and want to operate ffmpeg on each of the files. My command is something like this: $ find *|while read file; > do > ffmpeg -nostdin -i "$file" -vf "scale=iw/2:...
0
votes
1answer
19 views

Convert TTA file to MP3 or WAV file?

I have some .tta files I downloaded from internet. I can play them on VLC locally, but they cannot be played from certain media player app, for example, an android app. So here I need to convert "...
2
votes
1answer
47 views

split wav file into parts of equal duration, padding with silence if needed

I need to split wav files into multiple 10-second-long wav files, but each resulting wav file must be exactly 10 seconds in length, adding silence if needed – so if a wav file's duration in seconds ...
0
votes
0answers
21 views

How to extract the Videostream without audio from MP4? [duplicate]

how to xtract the Videostram from an MP4file with ffmpeg? I was lookig but did´nt find anything. All i founded was m4v to mp4 not otherwise. best regards
-1
votes
1answer
25 views

How can I reencode a video's audio when it was recorded in stereo with a mono source?

I have a video that I recorded with an interface using an XLR microphone (mono). The video recording software (Simple Screen Recorder), and my PulseAudio all saw that as a stereo source. Now I have a ...
0
votes
0answers
43 views

How to enable pulse in latest ffmpeg version?

Download the latest ffmpeg version from ffmpeg,to capture sound stream in sound card with ffmpeg: ffmpeg -f pulse -i alsa_input.usb-SN0002_HIK_1080P_CAMERA_SN0002-02.analog-mono -framerate 90 /tmp/...
0
votes
0answers
31 views

removing audio and chapters from multiple dual audio video at once

I have so many mkv files and all off them have dual audio and chapters with it. So I want only the audio that is in my language along with the video and remove the chapter files. there are so many ...
0
votes
0answers
122 views

ffmpeg connection to tcp://a.rtmp.youtube.com:1935 failed: connection timed out

I want to live stream using FFmpeg, when live on Facebook it runs normally, but when I live on YouTube there is an error, is there anything wrong with the command I entered? even though the command ...
0
votes
1answer
24 views

How to get two USB webcams to operate simultaneously on Raspberry Pi 4 running openSUSE Leap 15.2?

How do I get two USB webcams to operate simultaneously on a Raspberry Pi 4 running openSUSE Leap 15.2? I ultimately want this to work with Motion and seem to have eliminated that as I also fail with ...
1
vote
0answers
51 views

How to convert/understand video files with ffmpeg

background I have a bunch of video files that I would like to play on my roku through it's "Roku Media Player." However many of them simply do not appear in the list of available videos on ...
1
vote
0answers
18 views

Automating finding optimal parameters for re-encoding random video files with ffmpeg / avcov

I've done a bit of re-encoding of video with ffmpeg, mainly aimed at recompressing videos from assorted sources (youtube, twitch, tiktok, etc) to reduce file size with acceptable (subjective) amounts ...
0
votes
0answers
321 views

Using ffmpeg to convert only specific DTS file to AC3 while maintaining all other relevant streams

I'm struggling with a specific use case which's aspects have been addressed online but not combined (to my knowledge). I hope I came to the right place. I often have a m2ts/mkv blu ray rip with ...
0
votes
0answers
16 views

ffmpeg audio record crashes system

ffmpeg crashes the system (no ssh connection anymore, must cutoff power). Journalctl contains no related entries. What can I do? arecord works fine. ffmpeg -f alsa -channels 1 -sample_rate 44100 -i ...
1
vote
1answer
80 views

How to run ffmpeg to take x number of screenshots?

I am using ffmpeg to take screenshots of twitch streamers using this code: counter = 0 while counter <=5: os.system('ffmpeg -i ' + stream + f' -r 0.5 -f image2 {dir_path}/output_%09d.jpg') ...
0
votes
1answer
543 views

Output file #0 does not contain any stream [duplicate]

ffmpeg $(youtube-dl -g 'https://www.youtube.com/watch?v=zSyNOO_gvUY' | sed "s/.*/-ss 02:04 -i &/") -t 02:18 -c copy out.mkv from How to download portion of video with youtube-dl command? ...
3
votes
3answers
211 views

Trim last x seconds of audio files

I have a bunch of audio files from each of which I need to cut out the last 1 second. The audio files are of arbitrary lengths. What is the best tool/way to do this? I am somewhat familiar with ffmpeg,...
0
votes
1answer
31 views

Discard black/dark timelapse photos using a script

I'm capturing an rtsp stream using ffmpeg every minute (underwater) and only want to discard any photos that are captured which is less than 10% light. This is my very simple cron script, which I'd ...
0
votes
0answers
122 views

unmet dependencies error when I try to compile and install ffmpeg with apt-buid

I'm trying to use apt-build install ffmpeg to install a compiled from source version of ffmpeg rather than apt in order to have binaries optimized with machine specific instructions, rather than just ...
1
vote
1answer
494 views

How do I change the resolution/capabilities of a v4l2loopback device on the fly?

I'm trying to switch from one advertised resolution/framerate to a different one on the fly, preferably while other applications are consuming the v4l2loopback feed. As an example, I feed a 1920x1080 ...
0
votes
0answers
139 views

FFMPEG SCREEN RECORDING: How to get H265 (libx265) recording using ffmpeg?

I really would appreciate all the help I can get here. I'm trying to use the libx265 codec for recording an xorg dummy screen. The command that currently works for H264 (libx264 codec) is: ffmpeg -y -...
1
vote
0answers
47 views

H265 - a codec only for powerfull computers?

I have converted a video of mine with ffmpeg into H265 codec. Great: Much smaller at the same quality. But then I noticed the video is blocky. I thought there was an error during re-coding. But no: I ...
0
votes
0answers
17 views

I want to create an empty frame video of 10 seconds which have the size of 1280x720 and its color is red in ffmpeg-python

I am working on FFmpeg-python which is the wrapper of FFMPEG written in python. I want to create an empty frame of duration 10s with color red and size 1280 x 720. I have found the command in FFmpeg ...
0
votes
0answers
128 views

Use ffmpeg to split a file output by size

I can split an aid (or video) file by time, but how do I split it by file size? ffmpeg -i input.mp3 -ss S -to E -c copy output1.mp3 -ss S -to E -c copy output2.mp3 Which is fine if I have time codes, ...
1
vote
1answer
196 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
29 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
85 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
431 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
67 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
35 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
40 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) ...

1
2 3 4 5
11