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

How to prevent messages from clogging terminal?

Recently, I have been programming a small game to run in the Linux Terminal. The game involves running an MP3 file from the terminal. However, when this runs using FFMPEG, it sends messages into the ...
CookedTurtle's user avatar
0 votes
0 answers
36 views

what's the fastest way of writing data to ffmpeg for video streams?

I'm live streaming my x11 screen to a v4l2 webcam device (/dev/video0) with FFmpeg through stdin : ffmpeg -re -probesize 32 -analyzeduration 0 -i pipe:0 -s 1280x720 -vf scale=1280:720 -preset veryfast ...
Hackermon's user avatar
1 vote
1 answer
97 views

How to remove unneeded languages from video files using ffmpeg?

I have a number of video files (500+) with lots of audio and subtitle streams for languages that I don't need and would thus like to remove to conserve storage space. I tinkered around with ffmpeg, ...
KTorrentNG's user avatar
0 votes
1 answer
51 views

How to copy all FLAC tags using ffmpeg?

I'm using ffmpeg to perform audio filtering on my music library. However, it is not copying all FLAC tags (in particular, it's dropping chapter information). Copy all tags from one FLAC file to ...
Matthew's user avatar
  • 119
0 votes
1 answer
45 views

Chromium cannot read camera: Dequeued v4l2 buffer contains invalid length #561

I installed the v4l2loopback kernel module on my machine and enabled it with sudo modprobe v4l2loopback exclusive_caps=1. I created a camera on /dev/video0 with the rust bindings and started piping a ...
Hackermon's user avatar
0 votes
0 answers
51 views

FFMPEG converting FLAC to OPUS with cover image

I got a gigantonormic script to convert my FLACs to OPUS files but I'm struggling with one specific issue. When converting and trying to copy the cover image, it throws an error. Preamble, this is the ...
LukeChriswalker's user avatar
0 votes
0 answers
63 views

High CPU usage from ffmpeg decoding rtsp to v4l2loopback

I got a orangepi5 that has hardware decoders for h264,hevc and other formats. I am using armibian Armbian 23.5.5 Jammy CLI kernel legacy 5.10.160. I've installed a custom ffmpeg that uses RockChip MPP ...
imbr's user avatar
  • 103
1 vote
1 answer
41 views

How to extend sustain in batch wav files?

I have a batch of sound samples which are too short (2.15 sec), and I want to extend the sustain to a total of about 10 seconds, meaning stretch the last 0.50 second of the file to 10 seconds. I can ...
black-clover's user avatar
0 votes
1 answer
129 views

Internal Data Stream Error Reading v4l2 Virtual Cameras with Gstreamer Pipeline

I'm using v4l2loopback to create 2 virtual cameras that I can then stream an mp4 into and simultaneously read from those cameras with a gstreamer pipeline as if the mp4 was the video being recorded by ...
dan178's user avatar
  • 113
0 votes
0 answers
180 views

ffmpeg doesn't record RTSP stream

I'm trying to record RTSP stream from Dahua IP camera which is located on 10.10.10.10 (for example purpose), on Windows it works well and on previous ubuntu version I had (18) it was also working well....
zcoderx's user avatar
1 vote
1 answer
98 views

Create a file for writing with controlled flushing to disk in large chunks

On Linux I have a process (ffmpeg) that writes very slowly (even slower than 1kb / s sometimes) to disk. Ffmpeg can buffer this to 256kb chunks that get written infrequently but ffmpeg hangs ...
Pete's user avatar
  • 133
6 votes
1 answer
435 views

ffmpeg: record screen area selected by mouse

I have found a ffmpeg command to record area of my screen: ffmpeg -video_size 2000x1600 -framerate 25 -f x11grab -i :0.0+2140,280 output.mp4 But to find the correct area, I had to do multiple trial/...
Martin Vegter's user avatar
0 votes
1 answer
127 views

Recursively fix corrupted video files with ffmpeg

I think I'm pretty close to having a code which will start at a directory, then spit out a fixed copy, using fd (instead of find) and ffmpeg. I have written the if statement here as psudo-code: for i ...
1toneboy's user avatar
  • 101
3 votes
2 answers
310 views

How to watch video while still downloading including audio?

If I download a video using youtube-downloader I can watch the part file while downloading (in my case using mpv). Suppose I cannot or don't want to select a format containing both video and audio ...
student's user avatar
  • 18k
0 votes
0 answers
66 views

Using ALSA with dmix and multi plugins together for recording

I'm trying to set up ALSA for recording some videos with ffmpeg, so I need to both hear the application sound and be able to record it (I actually probably need to record 1 specific application). ...
chimjim126's user avatar
0 votes
0 answers
42 views

V4L buffer doesn't get cleaned properly

I've been trying to write a c program to capture photos from a uvc camera using v4l. I've managed to gt it to work for the most part but every second time i run the program i get a zero-filled yuv ...
Hristos's user avatar
2 votes
0 answers
295 views

How to record audio device with more than 2 channels using SoX?

I have multiple USB audio interfaces that each have 10, 18 or even 32 input channels. Mainly used to record every instrument of a band into a separate track. I record in raw wav format (s32le @48kHz) ...
Forivin's user avatar
  • 857
1 vote
0 answers
105 views

ffmpeg: Get video that contains only every 30th frame and which plays at 30x the original speed

I am trying to use ffmpeg to extract every 30th frame from a video stream. For this, I have consulted all of https://superuser.com/questions/573747/drop-every-even-or-odd-frames-using-ffmpeg How to ...
performancematters's user avatar
0 votes
0 answers
120 views

Change the fingerprint of a video file with ffmpeg without re encoding it

I am searching for a way to edit a video file to not have the same fingerprint anymore. It should not have a high CPU impact and all the tracks of the original file should be copied (so it needs map 0)...
Leon D's user avatar
  • 136
0 votes
1 answer
76 views

ffmpeg played AVI video faster than the video is recorded

I am working an embedded Linux system (kerne-5.10.24). Now I am testing the video recording and playing. I recorded a video with command, ffmpeg -f v4l2 -s 640x480 -r 30 -vcodec mjpeg -i /dev/video3 -...
wangt13's user avatar
  • 387
1 vote
0 answers
248 views

How to play media file in embedded Linux with ffplay?

I am currently working on an embedded Linux system (kernel-5.10.24) that includes an LCD and a speaker. At the moment, I am testing the playback of media files using ffmpeg and ffplay, without ...
wangt13's user avatar
  • 387
0 votes
0 answers
54 views

find/change audio format and avi version of a given avi file

I have an overhead projector that supports playing data from USB sticks. For videos it has the following limitations (quotes from the user manual): file type: AVI The audio format can only playback ...
Kjara's user avatar
  • 131
2 votes
0 answers
269 views

ffmpeg: symbol lookup error (Linux mint MATE 21.1, Kernel 6.1.0-1010-oem )

I'm currently struggling to get ffmpeg working again and it cripples my ability to either use discord or watch mp4s in firefox. Trying to use ffmpeg in the console returns: cla@CLAX1:~$ ffmpeg ffmpeg: ...
GrossKahn's user avatar
1 vote
1 answer
818 views

How to merge multiple mp4 files as chapters in a final mp4?

I have folder with files named like 0001.mp4, 0002.mp4, ... I want to merge all these files to a combined.mp4, and I want it to have an internal chapter marks. It is convenient when playing for ...
Ashark's user avatar
  • 819
0 votes
0 answers
114 views

FFMPEG replace specific place in a video

I have a show on my drive. In that series, there is a intro which starts randomly, one time at 2:00, second at 1:33, etc. However, I have a "custom intro" in a file. I want to replace that ...
FaboThePlayer's user avatar
1 vote
1 answer
122 views

Adjust content of yad script for kdialog or other better KDE solution (python etc)

I use this script to cut media files at selected time: #!/bin/bash INPUT=$(yad --width=600 --height=400 --file-selection --file-filter='*.m4a *.ogg *.mp3 *.mp4 *.avi *.aac *.flac *.avi *.mkv *.mp4') ...
cipricus's user avatar
  • 1,398
0 votes
1 answer
447 views

libx264.so.155: cannot open shared object file: No such file or directory

While the above is true, I have: $ sudo apt install libx264-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done libx264-dev is already the newest ...
Daniel's user avatar
  • 339
0 votes
0 answers
97 views

v4l2 Cannot recognize MPEG-4 as an input_format for ffmpeg processing

I'm on an old version of ubuntu (12.0.4) that cannot be updated / not possible to connect to internet. It comes with a bluecherry encoding compression card https://www.bluecherrydvr.com/product/...
Jason Beaudin's user avatar
0 votes
0 answers
73 views

ffmpeg -ss and -to options seem to affect av synchronity

up until now I used the following script for cutting significant parts of video out of a larger video while also selecting the most a/v synchrone audio track amongst several ones present in the input ...
der bender's user avatar
0 votes
2 answers
2k views

ffmpeg "-pix_fmt yuv420p" option when streaming on Youtube

The official tutorial https://trac.ffmpeg.org/wiki/StreamingGuide uses the -pix_fmt yuv420p option. I used it too, copied it from the tutorial, and streaming from FFmpeg to Youtube works for me. ...
Francesco Galgani's user avatar
0 votes
0 answers
331 views

Correct syntax to record mp3 from m3u url with ffmpeg

I would like to record the stream from http://www.dradio.de/streaming/dlf.m3u with ffmpeg. When accessing the file with the browser, a file gets downloaded with the following contents: http://st01.dlf....
user146500's user avatar
0 votes
0 answers
30 views

How to simple record the full application window like obs does in ffmpeg / other programs?

In obs there is a feature capture window feature that can record the application in full without cutting parts, I have read the ffmpeg instructions but it is not easy what I want is simple how can ...
noobdev's user avatar
  • 33
2 votes
1 answer
97 views

Muxing a JPEG bitstream inside a TIFF container?

On my Linux system (Debian) I can decode and then re-encode JPEG to TIFF using: % ffmpeg -i input.jpeg -pix_fmt rgba output.tiff Or even using libtiff-tools: % convert -size 256x256 -depth 8 xc:white ...
malat's user avatar
  • 2,850
1 vote
1 answer
138 views

I want to install few libraries on rhel8 distro but not sure how to find which repo or package have them

I want to install few ffmpeg libraries like libavformat, libavutil, libavcodec, libswscale`. I can install it by installing ffmpeg package as a whole by follwing link. When I install ffmpeg it install ...
Sachin's user avatar
  • 11
1 vote
2 answers
2k views

I can't install ffmpeg

When installing ffmpeg with sudo apt install ffmpeg I get this error Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be ...
Travis Games's user avatar
0 votes
1 answer
21 views

how to insert audio from video A into video B (no audio)?

Id like to create a video C with audio from video A but video from video B. Video A and video B have nearly the same length in seconds. Since the videos are a couple GBs, I guess it would be slower if ...
user avatar
0 votes
0 answers
452 views

How can record audio and video with ffmpeg at the same time?

I want to record with the hard device in my os: lsusb | rg -i camera Bus 001 Device 003: ID 2bdf:0284 SN0002 HIK 1080P CAMERA It is a web-camera. video can be recorded in my os with the ffmpeg ...
newview's user avatar
  • 205
1 vote
0 answers
158 views

Passing ffmpeg options to a bash function

Am writing a bash script where I can supply parameters for ffmpeg. What would be a good way to pass the parameters to the function? Using a string perhaps. script.sh "-aq 1" *.mp4 One ...
Vera's user avatar
  • 1,183
0 votes
0 answers
38 views

Speeding up video playing speed to avoid funny audio during playback at half speed

Have converted a video with ffmpeg to get a video running at twice the playing speed using the command (without audio) ffmpeg -i e02.mp4 -an -filter:v "setpts=2.0*PTS" -...
Vera's user avatar
  • 1,183
0 votes
0 answers
33 views

Extracting audio and video at twice the playing speed

I want to output the audio from an mp4 file as an ogg file. And have a webm video at twice the playing speed without audio. Would be using the following commands for the task ffmpeg -i input.mp4 \ ...
Vera's user avatar
  • 1,183
0 votes
0 answers
216 views

split audios into X seconds chunks with sox

I have multiple audios with different durations and I want to get audio cuts of 10 seconds. That is to say, if an audio has a duration of 30 seconds the result would be: 3 audios of 10 seconds and if ...
mrf8's user avatar
  • 1
0 votes
0 answers
725 views

Downloading a segment of a youtube video and cropping it precisely

I have an interesting little problem. I want to download a specific section of a youtube video, this is easy enough to do with the magic of yt-dlp: yt-dlp -f "(bestvideo+bestaudio)[protocol!*=...
Acorn's user avatar
  • 835
0 votes
0 answers
121 views

How to convert video file TIMESTAMP to timecode with bash and ffmpeg

I want to inject timecode into a videofile with ffmpeg. Therefore I need to be able to convert the timestamp in the video file name to timecode. read filename timestamp VID20230110_211633.mp4----put ...
robin reso's user avatar
1 vote
0 answers
279 views

GUI Video transcoder with VA-API (Handbrake alternative)

I'm looking for an alternative to Handbrake. Sadly, it doesn't support VA-API, so you have to install separate support for QSV/VCN/NVENC. While I don't know how bad the situation with Intel and NVIDIA ...
Richard Rosner's user avatar
1 vote
1 answer
369 views

ffmpeg smooth transition between frames

I have a videos with low framerates (1 to 3). And I want make video 30 fps from it. I search proper video filter. And this is not motion interpolate, but corresponding pixel to pixel interpolate of ...
Broshward's user avatar
2 votes
1 answer
163 views

How to tell if a MP4 has video data and then convert it to an MP3 if there is only audio data in the file

I have a mix of MP4 files some of them only have audio data while the others have video and audio data. I want to find a way to convert the ones that don't have any video data to MP3 without checking ...
wesley's user avatar
  • 23
2 votes
0 answers
391 views

add/edit custom metadata fields to video files without remuxing?

TL;DR - Looking for a way to edit/add CUSTOM metadata fields to video files without remuxing. I have some media files that I add custom metadata fields to (mostly mkv files downloaded with yt-dlp but ...
zpangwin's user avatar
  • 641
4 votes
1 answer
518 views

What is the "native" frame rate of an Xvfb screen?

I am emulating a screen with Xvfb, and I want to capture it with ffmpeg. In order to prevent frame dropping or duplication, I would like to capture at the exact refresh rate of the screen, but it ...
slhck's user avatar
  • 463
2 votes
1 answer
221 views

Nautilus Script for multiple files (ffmpeg)

I have little background in programming and need to create a batch to extract the audio of multiple video files. Execution is done through the context menu in Nautilus/Gnome Files, stored in Nautilus' ...
Domingo's user avatar
  • 33
0 votes
0 answers
97 views

How to hard multiple subtitles with one command in Ubuntu FFmpeg

I need a command that when it is executed, you can paste the subtitles to the video files. This operation must be hard sub and include all the videos in a folder. Example video 1 ---- .ass1 video2-----...
Ahmad moosavi's user avatar

1
2 3 4 5
13