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
1 vote
0 answers
5 views

How to command ffmpeg to output metadata received on stream

I use ffmpeg to receive an RTSP stream from a security camera. There are 3 sub-streams from the camera: Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 2592x1944 [SAR 1887:1888 ...
user avatar
  • 11
1 vote
0 answers
8 views

ffmpeg never finishes encoding, instead starts dropping frames indefinitely after reaching the -vframes limit

I am trying to stitch together 5 view angles of a VR 180° video (camera pointed forward, pointed up, pointed left, etc.), which involves taking 5 video files, applying a mask, and overlaying them on ...
user avatar
0 votes
0 answers
12 views

FFmpeg command to loop an audio starting from a sample twice and add a fade out

I have some audio files and I want to use FFmpeg to loop them twice, but starting from a given sample (I have the sample numbers), and add a 5 seconds fade-out at the end. The output has to be a video:...
user avatar
0 votes
0 answers
24 views

ffmpeg, why down-conversion results in bigger file?

I usually reconvert my videos recorded on Android, because most of the time they can be well compressed. I mean, sometimes 150Mb becames 50Mb or even better, sometimes just a few megabytes gets saved. ...
user avatar
0 votes
0 answers
10 views

libfdk_aac -vbr 5 option not working

I am trying to use -vbr 5 the private option of libfdk but i am always getting 100k constant bitrate mode, on the other hand if I use -vbr 4 its giving perfect results. Is there any way I can get a ...
user avatar
  • 1
0 votes
0 answers
22 views

Trying to compress avi to mp4 with ffmpeg - files are corrupted

ffmpeg -i input.avi -vcodec libx264 -crf 20 output.mp4 This is the command I am using. Video is unplayable. Doing h264 without conversion to mp4 also doesn't work.
user avatar
  • 1
0 votes
0 answers
24 views

FFMPEG decrypt DFM Show "buffer overflow detected" Error

I have the drm key ,but use ffmpeg show buffer overflow detected error mpd link is the live ffmpeg -cenc_decryption_key key -i "mpd link" -c copy test.mp4 [mov,mp4,m4a,3gp,3g2,mj2 @ ...
user avatar
2 votes
1 answer
32 views

FFmpeg timelapse overwrites input images

I am doing a timelapse with my RPI in python. To take images and store them in folders: Zero problem. But to create a video with FFMPEG I have a problem. After X images, the script launches the ...
user avatar
0 votes
0 answers
12 views

Failed open av input:-825242872 Server returned 401 Unauthorized (authorization failed) after I modify the route table

I debug a board with two net cable connect with a web camera with a Switch. When one net cable is broken, I want the board can use another cable to connect the web camera use rtsp protocol. Because ...
user avatar
0 votes
0 answers
12 views

FFMPEG: video encoded with libvpx-vp9/yuva420p but loose transparency? [duplicate]

I've an issue on ffmpeg usage. Guess it's my fault, but I don't understand why. I tried to study the documentation and the mass of google stuff regarding ffmpeg, but I did not find any hints for it ...
user avatar
0 votes
0 answers
14 views

ffmpeg HLS add drawtext in one of the TS files

I'm trying to add a text to an mpegts file previously encoded. When I run the command below, it works fine but the resulting file cannot be added in the HLS VoD as the previous mpegts file. ffmpeg -y -...
user avatar
0 votes
0 answers
11 views

RTMP speed vlue never reaches 1 (100%), streamign fail in short time

i am trying streaming rtpm using ffmpeg but i have few problems. FPS has never reach 25fps, only 21 for example. So stream stopping and in short time (couple minutes) buffer overflow. Ffmpeg is ...
user avatar
0 votes
0 answers
22 views

Video appears green-ish when adjusting gamma & saturation with ffmpeg (eq) but NOT with mpv

I'm using mpv as a video player and ffmpeg as a video encoder. I have an original video which I am re-encoding with ffmpeg's eq filter to increase gamma & saturation. Before I do this, I use mpv ...
user avatar
  • 1,281
1 vote
1 answer
46 views

Accurately extract frames every N seconds using FFmpeg

The Usage I extract images from videos using ffmpeg. I dump one down-scaled image every 10 seconds, inclusive, that I combine into montages with imagemagick. These montages again are used to show a ...
user avatar
  • 113
0 votes
1 answer
8 views

ffmpeg: alpha merge with audio

I am alpha merging two videos for iOS/Apple devices (mov), the color.mp4 has audio, while alpha.mp4 has not. The end result has no audio ouput. What is the proper flag to grab audio from color.mp4 ...
user avatar
  • 121
0 votes
0 answers
16 views

ffmpeg. Replace range of frames with black frames without re-encoding

Let's say I don't want to see titles/credits at the end of a movie but like the music. Is there a way to set a range like with -ss and -to, but instead of trimming it would replace frames with ...
user avatar
1 vote
0 answers
29 views

How to export mestimate filter motion vectors into a separate file with ffmpeg binary?

So mestimate filter can be used to compute the motion vectors in a video. They can also be displayed. Is there a way to export them into a separate file using the ffmpeg binary? I would love to have ...
user avatar
  • 111
2 votes
1 answer
60 views

convert huge amount of mp4 videos to audio in short time

previously i used to think i can convert say 100G video to audio in matters of seconds because i thought video and audio are seperare in mp4 format and converting video to audio is like doing an easy ...
user avatar
0 votes
0 answers
23 views

ffmpeg run by https URL

can I use https://domain/input.mp4 in FFmpeg? for input or output. I am trying to use it by shell_exec in PHP. but not working. ffmpeg -i https://domain/input.mp4 -vf scale=1000:1000 -s 500x100 ...
user avatar
0 votes
0 answers
39 views

FFmpeg Record videos every second and save them in individual files

I am trying to create video every one second. I have the following code below. It creates the first video correctly but the following does not create them correctly. Anyone know what I may be missing, ...
user avatar
0 votes
1 answer
16 views

How to stop ffmpeg from recording faster frame rate than specified?

I'm trying to record a time lapse using ffmpeg. My input settings are: ffmpeg -y -f v4l2 -input_format yuyv422 -framerate 0.333 I have tried to create both x264 and x265 output in an mp4 file. But ...
user avatar
  • 2,464
0 votes
0 answers
27 views

How to set a ffmpeg timeout when downloading a hls stream?

I am downloading a video from a HLS stream like this: ffmpeg -i "http://example.com/stream.m3u8" -c copy -to "1:00:00" video.ts However from time to time the server will have ...
user avatar
0 votes
1 answer
35 views

Lossless concat overlapping videos (mp4) smoothly using ffmpeg & python?

I have a list of videos some of which overlap which I want to concatenate continuously and losslessly. What I mean by continuously is that the videos are stitched together with overlapping part being ...
user avatar
1 vote
0 answers
37 views

How to trim a stream from an rtsp camera with ffmpeg?

I need to crop the image of a stream coming from a camera on a Raspberry pi. The camera is placed in a door peephole and I need to crop and enlarge the area of interest to see it full screen. I have ...
user avatar
  • 139
0 votes
0 answers
14 views

OCR Extraction from FFmpeg timestamp frame?

I'm doing some precision experiments on trimming and looking to get the textual representation of the timestamp from the frame I export in FFmpeg. I'm looking for a sort of OCR thing I can run. I ...
user avatar
1 vote
1 answer
24 views

How can i set port for ffmpeg's output rtmp stream?

Can i set different ports for output rtmp streams using ffmpeg? For example, ffmpeg -listen 1 -i rtmp://server0:port/live/key -c copy -f flv rtmp://server1/live/key -f flv rtmp://server2/live/key I ...
user avatar
1 vote
1 answer
30 views

Synchronize recording of three cameras with ffmpeg

I am trying to make the video that is recorded from three usb webcams be synchronized, I am using this command, but I still have differences by milliseconds or seconds. Any idea how to achieve it? ...
user avatar
0 votes
0 answers
21 views

Most optimal way to cut and stitch clips of a video using FFmpeg?

I want to splice N segments of a video and stitch them together with FFmpeg. After reading, it makes sense that specifying a timestamp may not be super accurate because the segment time can land on a ...
user avatar
  • 121
0 votes
0 answers
26 views

Set FFPlay Output Device (Win+Mac)

I'd like to run multiple instances of FFPlay and play different audio files to different sound cards simultaneously. I'm primarily focused on Windows but I'd like to try to get this to work on Mac as ...
user avatar
0 votes
0 answers
11 views

Add multiple photo overlay at different timestamp quickly using ffmpeg

I have this background video which I download and is 1440p. I also have few screenshots along with some audio files. My main goal is to trim the background video (which is done) now I want to add ...
user avatar
  • 1
0 votes
0 answers
29 views

Consuming Media in an External Endpoint(RTP OUT)

I am working on a web application which has the feature of recording where i need to record the videos & audios of the users on the server who joins the multiparty video conference. I am using ...
user avatar
2 votes
1 answer
47 views

How do I disable SSL/TLS certificate verification in ffmpeg?

I was going to write out a long drawn-out question with tons of details about my circumstance, but figured even though questions are usually much more detailed on here, this one is pretty simple (...
user avatar
0 votes
1 answer
29 views

Encoding HEVC to HEVC to reduce file size

I'm trying to re-encode an HEVC/x265 file yet I'm getting an error. I used these commands and it's not working D:\FFmpeg\bin>ffmpeg -i output2.mkv -c:v libx265 -preset slow -b:v 3000k -x265-params ...
user avatar
  • 1
0 votes
0 answers
23 views

ffmpeg not working for URL input(directly like -i "https://ae01.alicdn.com/kf/Hfff52cf71f784d99ad93c73a334e7e37a/65x70.gif")

i've been facing issue with parsing URL input to ffmpeg executable. earlier i used to check the details for GIF such as FPS & resolution using "ffmpeg.exe"but now it has stopped working ...
user avatar
0 votes
0 answers
17 views

ffmpeg - Can't get video to play on LG TV [duplicate]

I am trying to come up with settings that will play properly on my LG TV via Twonky DLNA from my WD MyCloud NAS server. I have one video that works fine, and another that does not. Here is the ffprobe ...
user avatar
  • 101
0 votes
0 answers
78 views

how to fix mp4 file with missing moov atom?

I have a video file (mp4) and I want to load it in a video editor. However, it shows an error which says, "file format not recognized." So, I used the file command and the output is just ...
user avatar
0 votes
0 answers
9 views

Is there a ways extract image from video by frame and join in later with auto remove duplicate pixel area?

Is there a ways to extract image from video. but its not just extract image frame by frame. but the extract image automatically optimize by removing duplicate area pixel by 1 second? lets 1 second ...
user avatar
0 votes
1 answer
36 views

What ffmpeg video 'format' to use for video-capture, on Linux platform, using HDMI-USB adapter

I bought a HDMI-to-USB adapter, to use to capture video TV content from my TV's set-top box. (Xfinity, if it matters. My two settop boxes are: "XiD X1"...I have both the Pace and the Cisco ...
user avatar
2 votes
2 answers
35 views

Need a way to batch extract screen captures from a folder using ffmpeg

I have about 300 lectures in a folder, the last frame from each video is important I can use ffmpeg -sseof -3 -i input -update 1 -q:v 1 last.jpg to take a single file's last frame and save it to a ...
user avatar
0 votes
0 answers
12 views

After using segment, how to set the length and start time of the video to be separate and independent, and how to set the start time to start from 0

my order: ffmpeg -i rtsp://192.168.100.30:554/live/test -r 1/60 -c copy -map 0 -f segment -segment_time 120 -segment_format mp4 ".\\test\\out%03d.mp4" I get video segments that have a ...
user avatar
0 votes
0 answers
26 views

How to make audiovizualizere wave with ffmpeg

I have a ffmpeg comand: ffmpeg -y -i one_channel_youtube3.mp3 -loop 1 -i prep_image.png -filter_complex "[0:a]showwaves=s=1920x175:colors=White:mode=line,format=yuv420p[v];[1:v][v]overlay=0:800[...
user avatar
0 votes
0 answers
6 views

Ffmpeg error while holding last frame

I want to hold last frame for 60 seconds, which I do successfully with the following command: ffmpeg -i 'video_path' -vf "setpts='PTS-STARTPTS +gte(T,t)*(60/TB)'" -af "asetpts='PTS-...
user avatar
0 votes
0 answers
28 views

trying ffmpeg with intel quicksync, "Error initializing the encoder: invalid video parameters (-15)

Often I do ffmpeg without intel quicksync, e.g. having made a subdirectory called "a", ffmpeg -i IMG_0001.MOV -c:a libmp3lame -c:v libx264 -preset ultrafast ffff.mp4 (I know mp3 in mp4 ...
user avatar
  • 21.9k
0 votes
0 answers
66 views

FFmpeg concat messes up last frame of first segment

The Problem: I routinely need to cleanly concatenate two .MKV files with ffmpeg. About 10-20% of the time, the last 3-5 frames of the first video segment has issues in various video players (VLC and ...
user avatar
0 votes
0 answers
21 views

fix no such filter : '0' in ffmpeg ubantu

hello didn't get the proper solution to my question that no such filter: '0' in my FFmpeg command. I have already searched and applied the solutions in my code but it was never solved please help me ...
user avatar
0 votes
0 answers
25 views

Trim ffmpeg screen capture while recording

I am using ffmpeg to record my screen. Once the recording gets longer than 30 seconds I would like to start trimming the begining of the video while still recording to keep the total video length ...
user avatar
  • 1
0 votes
1 answer
25 views

Delete 4 empty audio channels from MOV with 6 channels in one stream

I have to work with video files obviously recorded with somekind of 5.1 setup where only two channels got filled with mono signals from two separate microphones. My idea is to use ffmpeg to delete the ...
user avatar
0 votes
1 answer
26 views

split flac track with ffmpeg

I'm trying to split a flac soundtrack into several files but it fails with Output file #0 does not contain any stream. The file is actually a flac encoded in an ogg container, but I have the same ...
user avatar
  • 302
0 votes
0 answers
29 views

ffplay full screen blank and window vanishes after exiting full screen

Trying to use ffplay along with window manager commands to build a CMS out of a Pi 4B. IP camera streams are delivered through rtsp with UDP transport and streams can be opened successfully and played ...
user avatar
0 votes
0 answers
26 views

ffmpeg with NVENC - too high latency

I have a 2560x1440 camera wired over ethernet, that I cannot get low enough latency to use properly. We're talking ~10 seconds delay with a Quadro P2000, but with my Ryzen 3900X I can get the same ...
user avatar

1
2 3 4 5
122