Questions tagged [ffmpeg]

Media tool with support for multiple codecs, filters, and containers. Include your actual command and the complete console output when asking questions involving FFmpeg tools. An easy way to do this is by adding `-report` to your command and pasting the contents of the logfile generated. For help with CLI use only of ff* binaries - ffmpeg, ffprobe, ffplay. For help with API usage, post on Stack Overflow.

Filter by
Sorted by
Tagged with
0 votes
1 answer
183 views

Ffmpeg on Mac OSx: cannot see Firewire cameras

I am trying to use ffmpeg on Mac Os x (High Sierra and Mojave: makes no difference) with a camcorder attached to a Firewire port (more precisely, I have a MacMini and the Firewire is attached to a ...
lucabo's user avatar
  • 1
0 votes
1 answer
734 views

What are FFmpeg Video/Audio Stream parameters in order

Sometime a video stream looks like this: Video: h264 (avc1 / 0x31637661), yuv420p(tv, smpte170m), 640x360, 935 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Sometimes it is different: Video: flv1,...
Mehran's user avatar
  • 13
2 votes
2 answers
3k views

FFmpeg X11 Grab Black Screen on Ubuntu Server

I've been trying to grab the output of a second display server with FFmpeg, however when I open the video in VLC on my PC it appears to be a black screen. I've tried both with FFmpeg from apt and one ...
RetractedRedacted's user avatar
0 votes
0 answers
54 views

Save 3 images per second from a live stream

I'm attempting to use streamlink and ffmpeg to save 3 images per second from a twitch livestream. The goal is to be able to analyze the images as quickly as possible. So far, I've tried the following:...
RyanB's user avatar
  • 113
0 votes
1 answer
521 views

Reducing command-line shortcomings caused by excessive number of FFmpeg inputs

I have for a long time used a script that does concatenation for different codecs using complex filters as described here. This wiki gives the following example command: ffmpeg -i input1.mp4 -i ...
Stigma's user avatar
  • 286
1 vote
1 answer
583 views

Copy audio stream, while also re-encoding with filters?

I'm using this command to copy the video & audio streams while also encoding the first audio stream to a stereo AAC track as well: ffmpeg -y -i in.mkv -map 0:v -c:v copy -map 0:a:0? -c:a:0 copy -...
Saxon Rix's user avatar
0 votes
1 answer
706 views

ffmpeg -vf: command not found

I am still a semi-novice at ffmpeg. I can do the basics with 1-pass crf encoding but as I am venturing into 2-pass encoding, I am running into an error I cannot solve. Any help is appreciated. In ...
Brian's user avatar
  • 1,007
1 vote
1 answer
324 views

MPEG video not pausing at accurate timestamp

We are using xuggle API to create MP4 file with variable duration between images. Following is the sample code final com.xuggle.mediatool.IMediaWriter writer = com.xuggle.mediatool.ToolFactory....
ram4sof's user avatar
  • 121
0 votes
1 answer
818 views

Correct Version of ffmpeg

I'm having issues replicating a centos 6 instance. It looks like I have 2 versions of ffmpeg on my old server: ffmpeg -version gives me: ffmpeg version 1.2.5 built on Jan 30 2014 19:45:47 with gcc 4....
user3783243's user avatar
1 vote
1 answer
11k views

Use ffmpeg to download stream from m3u8 file with a particular resolution

I recently found how to download 'HLS' from a site and that works. But one thing I could not find is if a particular site has available video in more than one resolution, say 1280x720 and 1920x1080. ...
C.J.'s user avatar
  • 13
1 vote
1 answer
745 views

Record from two devices, and failing to record from hardware device, ffmpeg

I realize that asking two questions at once is likely a breach of normal protocol, but since I think perhaps my two problems are related (and I only really need to fix the first one if the second isn'...
Toby Eggitt's user avatar
0 votes
1 answer
139 views

How to simulate the viewer skipping through the video by tapping right arrow key in ffmpeg?

I'd like it to be obvious. Thinking either skip N frames after every M frames or modulate the frame rate like the jitter effect in some video editors. I've tried something like this, but there still ...
Worse_Username's user avatar
2 votes
1 answer
2k views

Concatenation of m4a files is either too long or too short

I want to concatenate two m4a files, one 20:49 long and the other 10:23 long. Following this page, the first option is: ffmpeg -i 'concat:file1.m4a|file2.m4a' -c copy output.m4a It only processes ...
miguelmorin's user avatar
  • 2,047
1 vote
0 answers
552 views

How to run a ffmpeg code on a GPU?

we have written a short code in C code to read a video file, using common libraries as libavcodec, libavformat etc.. The code is running smoothly but only using the CPU resources. We'd need to run the ...
Gilberto Ugolini's user avatar
1 vote
0 answers
272 views

How to install mencode with libmp3lame support on a mac?

On a mac (OS 10.13.6) I like to convert a video file with mencoder as follows: mencoder input.mkv -sub subtitle.srt -o output.avi -oac mp3lame -ovc x264 However, I get the error message: MEncoder 1....
Alex's user avatar
  • 674
1 vote
3 answers
5k views

FFMPEG - Make a watermark in random position

I'm trying to implement the following loop: Place logo.png in a random (x ,y) position of the video. Make the logo fade out after 2 secods. Wait 30 seconds and repeat. After research in google I ...
gbvisconti's user avatar
1 vote
0 answers
729 views

Create thumbnail images at some interval from a video without reading whole video [FFMPEG]

Short Problem: I want to take some screenshots image from a video url at some specific times but I don't want to read the whole video. Let's say I have a video stored in some url (like https://www....
TigerCoder's user avatar
1 vote
2 answers
7k views

Fraunhofer FDK AAC in FFmpeg

The FFmpeg AAC guide says, Fraunhofer FDK AAC codec library is currently the highest-quality AAC encoder available with ffmpeg. Pre-built ffmpeg does not support it. This can be resolved by ...
RvidD's user avatar
  • 404
3 votes
1 answer
3k views

FFMPEG Image Zoom to a Position X Y

I need to zoom to a special point of an image. What do i have to change in this existing Script for example Y:81% X:27%? ffmpeg -r 25 -i image.jpg -vf "zoompan=z='zoom+0.001':x='if(gte(zoom,1.5),x,...
S. Kr.'s user avatar
  • 143
5 votes
1 answer
1k views

Scale images into a square with ffmpeg: EXIF orientation lost

I'd like to use this command to scale, pad and rotate several jpeg images into a common 1000x1000 output resolution: ffmpeg -i image.jpg -vf "scale=1000:1000:force_original_aspect_ratio=decrease, pad=...
mins's user avatar
  • 989
0 votes
1 answer
1k views

How should I record multichannel (quad) with ffmpeg?

I recently got a four-channel USB input device (Behringer UMC404HD). The device is working and Linux sees it; I know this because I can record four independent channels using Audacity. However, I can'...
Toby Eggitt's user avatar
1 vote
0 answers
595 views

How to convert 3F2M DTS-MA file to opus

I extracted a mkv file from BDMV with MakeMKV, using this config. I only keep the main audio file. The output mkv has the following tracks: How can it be 5.0 when the cover says 2.0 stereo? bluray....
Minh Nghĩa's user avatar
1 vote
1 answer
820 views

FFMPEG scale video according to image height when overlaying video on image

I am trying to overlay a video over an image in FFMPEG. For this I am using the below command. -i C:\Users\Vivek\Desktop\SAM\Effects\bubbles.mp4 -i C:\Users\Vivek\Desktop\selfie.jpg -filter_complex "[...
Vivek Mishra's user avatar
0 votes
0 answers
45 views

Where in the FFmpeg source can I change the output text format?

I want to fork FFmpeg and change the output to be streamable, machine-readable EDN instead of the current text format. Where should I look in the source code to change this? I'm willing to go through ...
Petrus Theron's user avatar
0 votes
1 answer
950 views

combine the video creation and draw text commands in a single instruction in ffmpeg

I have the following two commands which I sequentially execute in order to create a video from an image and then draw text on it from a text file. To create a video from a singe image i use: ffmpeg -...
Amin Baig's user avatar
  • 127
2 votes
1 answer
1k views

add an audio loop to a video file with a fade out ffmpeg

I have two file, video.mp4 and audiotrack.mp3. I am using the following command to insert the audio with the video to create an audio track in the video, and it's working. ffmpeg -y -i video.mp4 -i ...
Amin Baig's user avatar
  • 127
0 votes
0 answers
494 views

How to convert single image to 10 second AVI file with ffmpeg with high quality and small file size?

I tried using FFMPEG to convert a single 640x480 image (in my case, an 8bpp PNG image, though I'll likely have to do this with other image types and qualities) to a 10second XVID AVI file with no ...
GuyWithDogs's user avatar
0 votes
1 answer
170 views

FFmpeg Substitute channel in audio using external audio files

I have 2 audio files in ac3 format, and both contain only one channel (audio1.ac3 and audio2.ac3) On the other hand I have a mkv file that contains the video and 2 audio streams (video.mkv) Audio ...
tom_len's user avatar
0 votes
1 answer
218 views

How to add audio input to video FFMPEG

please note that I'm really really new to these things, I'm streaming a blank black video with text as you can see here: ffmpeg -re -f lavfi -i color=c=black:s=360x360 -vf drawtext="fontfile='/usr/...
MrGyt's user avatar
  • 1
0 votes
1 answer
1k views

NVENC HVEC in FFMPEG unsharp on fast movement

I use FFMPEG with NVENC HVEC and tried several options the last days but finally i was not able to reach the same quality as CPU Encoding. The main issue here is that fast scenes are getting unsharp. ...
Deex's user avatar
  • 175
0 votes
1 answer
2k views

Ffmpeg scroll text from right to left position top

I want run text over video, i have try this command ffmpeg -i "test.mp4" -vf "drawtext=text='Test Test':fontfile=arial.ttf:y=h-line_h-10:x=w-mod(max(t-4.5\,0)*(w+tw)/5.5\,(w+tw)):fontcolor=white:...
uLike's user avatar
  • 3
2 votes
1 answer
2k views

Overlay a video over an image using ffmpeg

I am trying to overlay a video on an image using the below command. -y -loop 1 -i snowflake.png -i crack.mp4 -filter_complex "[0][1]scale2ref[i][m];[m][i]overlay[v]" -map [v] -map 0:a? -ac 2 ...
Vivek Mishra's user avatar
0 votes
1 answer
275 views

When ffmpeg creates an error what does hex in [h264 @ hex ] ... represent?

I've been trying to get a better understanding the error messages while doing stream/video analysis with ffmpeg, however I cannot find a document that goes over ffmpeg error message structure. For ...
Alex D's user avatar
  • 103
0 votes
1 answer
606 views

Minimal CPU and memory usage during concatenation, future advice need

I'm joining two 4K Prores422 HQ MOV files, a short spot (1GB) and a feature film (220GB). My current fps is around 9.0 and according to activity monitor my CPU usage is at 0.34% and only 5GB memory ...
elbatron's user avatar
  • 151
2 votes
0 answers
787 views

ffmpeg looping audio on slideshow the best way

I am trying to get an audio stream to loop over a slide in the background of a slideshow I've made with ffmpeg. I currently have the following: ffmpeg -loop 1 -t 15 -i img_1.jpg \ -loop 1 -t 15 -i ...
Shadowmancer's user avatar
1 vote
1 answer
2k views

overlaying .png without loosing transparency of .mov using FFMPEG

I am trying to overlay .png(transparent image) over .mov (transparent video) using this blog. I am using basic command like, ffmpeg -i inputVideo.mov -i overlay.png -filter_complex "overlay=100:...
drexdelta's user avatar
6 votes
1 answer
5k views

Crossfade many audio files into one with FFmpeg?

Using FFmpeg, I am trying to combine many audio files into one long one, with a crossfade between each of them. To keep the numbers simple, let's say I have 10 input files, each 5 minutes, and I want ...
setouk's user avatar
  • 63
1 vote
1 answer
2k views

FFmpeg: Remove Unsupported Subtitle Streams (MKV)

I'm making a script which loops through a list of media files and then re-encodes them using FFmpeg. My issue is that I need to remove any subtitles that the MKV container doesn't support. This should ...
Wolveix's user avatar
  • 31
13 votes
1 answer
42k views

FFmpeg 2 Pass Encoding

I a trying to convert my high quality movie collection to save some disk space. And I learned that 2 Pass encoding will do the job better. And this is the command line that I am using to encode videos ...
RvidD's user avatar
  • 404
2 votes
1 answer
4k views

ffmpeg throwing "Non-monotonous DTS in output stream"

So I'm trying to concatenate 3 video files. I'm running Linux, and the command line looks like this: ffmpeg -f concat -safe 0 -i blist.txt -c copy output.mp4 blist.txt contains this: file 'btest/00 ...
cwinthrop's user avatar
1 vote
2 answers
3k views

ffmpeg : CPU, ram or SSD? [closed]

I want to know what is the most important to convert a mp4 file to mp3 thanks to ffmpeg. CPU ? RAM ? SSD ? The threes ? My server will convert 3-5 mp4 videos to mp3 at the same time. Duration of the ...
Baraque Obahamas's user avatar
0 votes
1 answer
1k views

How to mix multiple images with audio with ffmpeg?

When mixing multiple images with an audio with ffmpeg, I read the photos from a folder containing repeated photos equal to the number of frames in the output video. ffmpeg -f concat -safe 0 -i ...
Googlebot's user avatar
  • 1,042
3 votes
0 answers
1k views

FFMPEG Permission denied on file in NTFS

FFMPEG won't read a file on my NFTS partition, even with sudo, giving the error "Permission denied". Something to do with whitelist and crypto? Full log: $ cp a.mp3 b.mp3 $ ls -l ?.mp3 -rwxrwxrwx 1 ...
Ricardo Fodra's user avatar
11 votes
2 answers
13k views

What is fps, tbr, tbn, tbc in `ffmpeg`?

What do the following acronyms mean in ffmpeg and ffprobe? >ffprobe -hide_banner logo.gif Input #0, gif, from 'logo.gif': Duration: N/A, bitrate: N/A Stream #0:0: Video: gif, bgra, 320x314, ...
Chloe's user avatar
  • 5,946
11 votes
1 answer
17k views

How do I resize an animated GIF and keep transparency?

I tried to resize an animated GIF with transparency, but it turned the background a solid white. How do I keep the transparency? I read https://superuser.com/a/556031/130929 and tried >set ...
Chloe's user avatar
  • 5,946
22 votes
6 answers
22k views

How to trim silence only from beginning and end of mp3 files using FFMpeg?

After investigating to find a solution to the problem, I ended up empty-handed. I want a context menu option in Windows 10 so that whenever I right click on a MP3 file I have this option to trim ...
acman123's user avatar
  • 763
1 vote
1 answer
6k views

libx265 & ffmpeg: the better compression, the larger files?

Trying to squeeze the last bit, I made the finding, that my files get larger then smaller. Unfortunately I must have misinterpreted some parameters. Maybe you can help me. The reference is -preset ...
Thomas R.'s user avatar
  • 121
1 vote
0 answers
722 views

Cannot get lossless compression to work with ffmpeg with upscaling on windows 10

I am trying to convert a sequence of png images to a lossless video while upscaling (keeping the same aspect ratio). I have attached one png image . However, every lossless option I use either is ...
Jack's user avatar
  • 111
3 votes
2 answers
3k views

FFMPEG command to SpeedUp/SlowDown a video to a specific time

I've been trying to figure out how to write a filter for ffmpeg to take a set of videos and make them all the same time length. For example I have a video that is 35 seconds and a video 15 seconds, ...
Pyromanci's user avatar
  • 131
0 votes
1 answer
3k views

RTMP to HLS conversion frame rate issues with ffmpeg/nginx

Currently, I'm pushing a RTMP stream to nginx 1.15.3 running on Ubuntu 18.04 LTS from a raspberry pi 3 camera (which seems to be working well on its own, I can pull the stream with no issues on VLC ...
tommy61157's user avatar

1
71 72
73
74 75
141