Skip to main content

Questions tagged [ffmpeg]

FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Get blur effect inside a drawn box using ass format

I have created an backdrop with rounded corners using [drawing command]. Example of dialog for backdrop. Dialogue: 0,00:00:38.60,00:00:42.10,Default,,0,0,0,,{\p1\1a&HD8&\c&HE27FA4&\pos(...
Armen Sanoyan's user avatar
0 votes
0 answers
31 views

from DTS-ES "7 channels" to 7 mono wave channel files

I have this DTS-ES "Extended Surround" file: audio_dts_es.dts I need to have 7 mono channel wav files. Mediainfo shows this: Format : DTS ES Format/Info ...
buddhabas's user avatar
2 votes
2 answers
38 views

How to get frame number given a timestamp using ffmpeg

My question is based on the answer given here https://stackoverflow.com/a/69693602. The question asked was How can I get the frame number closest to a given time (relative to the start of the video) ...
Max Chr.'s user avatar
0 votes
1 answer
8 views

3 input videos - where vid2 follows vid1 whereas vid3 is full length - into 2 halves side-by-side video

There were two simultaneous shootings of the same event, and there was a break in the shooting with camera1, so there are 2 videos from camera1, one following another, with a few seconds missing in-...
Veraellyunjie's user avatar
0 votes
0 answers
24 views

Multiple trims to a video using ffmpeg generating video with shorter duration than expected

I have an application that given a video it trims multiple parts of that video using ffmpeg. Each part is cropped, scaled and then concatenated to generate a single video. To share an example, I have ...
Gerardo's user avatar
  • 101
1 vote
0 answers
20 views

Convert 50fps to 25fps by skipping frames but not changing speed

I have a 50p H264 video which was originally shot normally at 25p, but encoded by some idiot to 50p. So every frame is encoded twice. Is it possible to copy it by skipping every second frame, and ...
mivk's user avatar
  • 587
0 votes
1 answer
23 views

Generate HLS streams from pre-encoded videos without re-encoding using ffmpeg

I have three videos: low.mp4, mid.mp4 and high.mp4, all of which were generated from the same source file using ffmpeg with the following command: ffmpeg -y -i source.mp4 -c:v libx264 -crf SOMEVALUE -...
Gman's user avatar
  • 1
1 vote
0 answers
34 views

ffmpeg: How to preserve colour space automatically?

I currently have a source video with the following properties: Stream #0:0: Video: h264 (High 4:4:4 Predictive), yuvj444p(pc, bt709/bt709/iec61966-2-1, progressive), 2560x1440 [SAR 1:1 DAR 16:9], 60 ...
小太郎's user avatar
  • 111
0 votes
0 answers
6 views

Can some one help me how to make ffmpeg capturing with preview on PictureBox?

My system is Windows 10/11 I am making ffmpeg based video capturing software in VB6 with preview. I could deal ffmpeg.exe only by command line. Source is from Decklink card or Video file. I can't use ...
gaamaa's user avatar
  • 11
0 votes
0 answers
11 views

What ffmpeg parameters can be different between first and second pass?

I have attempted to encode a large video file with libvpx-vp9 with 2 pass encoding. The first pass took a surprisingly long time, while the second pass was unacceptably slow. Since libvpx-vp9 can, ...
Programmer S's user avatar
1 vote
1 answer
12 views

Using ffmpeg alphamerge to mask two images before calculating similarity index

I'm working on a script that removes duplicate frames from images stored on disk. I need to ignore certain irrelevant parts of the images. The following ffmpeg command line should work, but it returns ...
user2814357's user avatar
1 vote
0 answers
10 views

ffmpeg - convert MP4 to 2010 Lumix playable MJPEG

I'm new to ffmpeg and ffprobe, I started using it to convert videos to show on 3DS and DSi for an art project. Now I want to show my own videos on a Panasonic LUMIX digicam (DMC-FT2)(JPN), but have ...
user46009's user avatar
1 vote
0 answers
26 views

FFMPEG replace "no video" part with an image

Using FFMPEG, I have merged a video and audio file to WEBM. But the problem is: if there is audio and no video the video file has just some stuck and still images, because there is no video recorded ...
Toomas's user avatar
  • 11
1 vote
0 answers
14 views

ffmpeg hardware vaapi encoding VC1 to H.265

I am trying to transcode a video from VC1 to H.265 using hardware acceleration. VC1 by software decode and then encode by hardware acceleration. ffmpeg -i title_t01.mkv -map 0 -c:a copy -c:s copy ...
netzwanze's user avatar
0 votes
1 answer
25 views

ffmpeg: -hls_time and -hls_init_time not working

Source video: h264 mp4, 45 seconds, 30 fps, keyint 30, min keyint 16 I am trying to create an m3u8 playlist where the first chunk is smaller (2 seconds) and the rest are 10 seconds. when using this ...
apes-together-strong's user avatar
0 votes
0 answers
33 views

How to delete the last frame without reencoding the file using ffmpeg

I tried to use many variations of syntax but with no viable results. The frames in the original file are 213214 and I want to omit the last frame for the total frames to become 213213 but when I try ...
HSaber's user avatar
  • 1
0 votes
0 answers
14 views

How to make a decent video from a capture by an old Panasonic webcam?

I have about 30 minutes worth of video and audio captured 10+ years ago by an older Panasonic web-cam. The two streams are in separate files: The video-MP4V-ES-2. 640x480. mplayer says, it is 5 FPS, ...
Mikhail T.'s user avatar
0 votes
1 answer
79 views

ffmpeg cannot load an installed library - libavdevice.so.60

Environment: WSL Ubuntu 22.04. ([interop] appendWindowsPath = false) Ran git clone https://git.ffmpeg.org/ffmpeg.git Installed bunch of dependencies The command ./configure --enable-nonfree --enable-...
kal's user avatar
  • 11
0 votes
0 answers
14 views

Qstopmotion cannot find ffmpeg encoder on my computer, allthough it is installed

I just started working with Qstopmotion on an Ubuntu system and I am trying to export my video using the ffmpeg encoder. Qstopmotion keeps throwing the error message: The selected encoder is not ...
Daniel's user avatar
  • 1
0 votes
0 answers
18 views

Encode piped images as they arrive with real time timestamps

I'm encoding a video by piping images into ffmpeg using the -i pipe: input. However the images arrive sporadically, but are encoded as if they are sequential frames. I have tried using -...
Aviad P.'s user avatar
  • 101
0 votes
0 answers
15 views

ASS/SSA subtitles hard coded using ffmpeg are highly antialiased

I am using ASS/SSA format for hard coding captions on the video. These are relevant parts of my .ass file: Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, ...
Adorn's user avatar
  • 101
0 votes
0 answers
24 views

FFMPEG: Black background for transparent overlay

I'm trying to create some overlays over a video using c# but I can't get the overlay to be transparentOverlay to be transparent. for (int i = 0; i < textModelList.Count; i++) ...
Matthew's user avatar
1 vote
0 answers
21 views

ffmpeg: Start/stop recording a stream on black blue screens

I have about a hundred VHS tapes I'm trying to digitize. I've got a capture card hooked up to the VCR so I can play the tapes and record using ffmpeg using /dev/video0 as input, but I have to start/...
duckbrain's user avatar
  • 111
1 vote
1 answer
48 views

ffmpeg amerge/amix with itsoffset into single audio stream

I have video.mkv with 1 video and 1 audio stream. 34 minutes long. I have 3 audio files: 0-new.wav (10 mins), 1200-new.wav (10 mins), 1800-new.wav (4 mins) I want to discard the video's audio and ...
kal's user avatar
  • 11
0 votes
0 answers
30 views

Use ffmpeg to play UDP stream and also analyze with ffprobe simultaneously

I have a UDP stream that I have running using ffmpeg that I want to see video on the client/player side ffplay udp://127.0.0.1:51234?localaddr=127.0.0.1 along with the metrics using ffprobe. If I ...
kyrlon's user avatar
  • 103
0 votes
0 answers
16 views

FFMetrics for streaming video

I have come across this article and FFMetrics repo, and was wondering if it is even possible to grab such quality metrics for streaming such as udp or rdp?
kyrlon's user avatar
  • 103
0 votes
0 answers
23 views

FFMPEG burn subtitle to master.m3u8 file

Hey i use ffmpeg to process video into hls stream and generate screenshots using this command ffmpeg -y -i /tmp/input.mp4 \ -vf fps=1/10 thumbnails/thumbnail_%03d.jpg \ -preset slow -g 48 -...
Naveen Ravi's user avatar
1 vote
0 answers
10 views

How to convert 32-bit RGB bitmaps to video losslessly?

I have a number of images in RGB bitmap form (8 bits each for red, green, blue; each pixel is 32 bits). I want to convert these individual images to a video, showing each image for 1-2 seconds, using ...
Woody20's user avatar
  • 111
1 vote
1 answer
20 views

Can ffmpeg encode only the beginning part of a video for cutting?

I am a really beginner in video editing. Sorry if this question is silly. I heard videos consist of key frames (I-frames) and inter-frames (P-frames and B-frames). Say I have a video of 10 seconds, ...
Gqqnbig's user avatar
  • 131
2 votes
0 answers
23 views

How to cut a video by time into two pieces losssless and fast?

I have input.mp4 of length 30 minutes. I want to cut it at roughly 24:35, as losssless as possible, as fast as possible. So, the first output is from 0 inclusive to 24:35 exclusive. The second output ...
Gqqnbig's user avatar
  • 131
0 votes
1 answer
32 views

Compile ffmpeg 5.1 with libopenjpeg

I'm trying to enable libopenjpeg in ffmpeg 5.1. I have compiled openjpeg from OpenJPEG git repository, and it is installed in the system as per the instructions in Installation Guide. I can verify the ...
userDtrm's user avatar
  • 141
0 votes
1 answer
18 views

FFmpeg -itsoffset causes visual artifacts and time jumps in WMP and Movies & TV

I'm encountering visual artifacts (screen corruption) and unexpected time jumps when playing a video file generated by FFmpeg in Windows Media Player and Microsoft Movies & TV. The same video ...
aax Feng's user avatar
0 votes
0 answers
13 views

Extracting a part of a video with ffmpeg, without reencoding, the output is choppy, how to avoid this?

I extract the part from 2:00 to 3:30 of a video with ffmpeg: ffmpeg -i input.mp4 -ss 120 -t 90 -vcodec copy -acodec copy output.mp4 It works but the output video is jerky/choppy, i.e. not really ...
Basj's user avatar
  • 155
0 votes
0 answers
63 views

Resuming ffmpeg hls trancoding from an existing segment

I'm setting up a service to transcode input videos, generally MP4, for HLS. This currently works fine when starting from scratch, but I would like the transcode to be resumable in case the service ...
Fdebijl's user avatar
  • 101
0 votes
0 answers
18 views

ffmpeg - marking frames

I use this command to mark each frame with a green mark: ffmpeg -i "F:\Avatar\film3\film.mp4" -vf "drawbox=x=0:y=0:w=5:h=3:color=green:t=fill" "F:\Avatar\film3\...
Dmitry's user avatar
  • 1
0 votes
0 answers
14 views

Ffmpeg error: amv files only support 2 streams?

I'm using ffmpeg to convert videos to amv format. Most of the time it works fine. Sometimes I get the error: amv files only support 2 streams. How can I fix this? Thanks
Bmcaps's user avatar
  • 11
0 votes
2 answers
43 views

FFMPEG recorded video not playable in browser on mobile phone (Android/iPhone)

I am facing a problem which seems to be a common one; my recorded videos using ffmpeg on raspbian is not playable in any mobile browser (android and iphone). ffmpeg -loglevel quiet -input_format mjpeg ...
scdev's user avatar
  • 1
1 vote
0 answers
44 views

Green screen on RTSP stream from USB camera using mediamtx (ffmpeg)

I need to cast a stream from a USB camera via RTSP as stable as possible (at any moment i need to be able to get a static picture on a remote host, reflecting the real state of affairs in front of the ...
Pavel's user avatar
  • 11
1 vote
1 answer
49 views

How to get rid of recorded commercials from a video file, using ffmpeg or mlt?

I have a problem with video editing and unsynchronized sound. What I'd like to achieve: a) I have a TV tuner, with recording ability. So I have a long .mts file. b) The file consists of both movie, ...
Tomek's user avatar
  • 11
0 votes
0 answers
33 views

how to make ffmpeg process all images with gaps in the file names?

I have a bunch of jpg-images from a time lapse project in one directory. The file names have all the same patters, but there are gaps in the numbering. How can I make ffmpeg process all images in ...
Oliver Vornberger's user avatar
0 votes
0 answers
22 views

Some mp4 files converted with ffmpeg are off by .01 frames/second, how can I fix this (without resampling)

I have several mp4 files with a frame rate of 119.88 frames/second, I need to convert these to 29.97 frames/second without resampling. To do this, I ran ffmpeg -itsscale 4 -i input.mp4 -c copy ...
Jade's user avatar
  • 1
0 votes
0 answers
32 views

Ffmpeg 1080p x265 video keeps freezing when played on Raspberry Pi 4

I have some 1080p videos that I'd like to convert to x265 to reduce their size. The problem is that when I convert them using ffmpeg, I have problems playing the resulting video on Kodi running on ...
Petr's user avatar
  • 143
0 votes
0 answers
13 views

Video width&height is horizontal but video frames are vertical. How to fix it with ffmpeg?

I have a video, that when checked with ffmpeg/ffprobe shows a horizontal aspect ratio. ffprobe.exe my_video.mp4 -show_streams -of json Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'my_video.mp4': ...
sthlm58's user avatar
  • 101
2 votes
0 answers
46 views

To make 'trim' and 'atrim' work synchronously

The following command trims a video using the trim video filter: ffmpeg -y -i input.mp4 -vf "trim='00\:00\:05':'00\:00\:10',setpts=PTS-STARTPTS" output.mp4 But if the video also contains ...
jsx97's user avatar
  • 21
0 votes
0 answers
111 views

the "non-monotonic DTS in output stream " error while concatenation even after reencoded input files

hi I am trying to write a Python program that is trying to first edit different videos separately under the heading "intro" "story" and "byte" with the help of FFmpeg and ...
nish's user avatar
  • 1
0 votes
0 answers
38 views

Trimming a video using FFmpeg leads to black screen

I try to figure out how to use FFmpeg to trim videos. I have created a 30 second .mov screen capture using Apple's QuickTime player, and then tried to trim it using three different ways: Using -...
jsx97's user avatar
  • 21
0 votes
0 answers
136 views

How to encode aac_at with variable bit rate

What options are there to encode at variable bit rate with aac_at? aac_at seems to be the best aac encoder. I have used it to convert opus audio (because macOS older than Sonoma do not support opus) ...
wywh's user avatar
  • 61
0 votes
0 answers
19 views

Complex audio mixdowns and mappings with FFmpeg

Looking for a way to use FFmpeg to take a single video file with 10 - 20 audio tracks and generate a series of video copies each with a different configuration of audio mixing and mapping. For example ...
WhatsYourFunction's user avatar
0 votes
0 answers
83 views

Offsets in HLS video segments

I am streaming video from a camera to a process that monitors the stream for specific events. I am able to connect to the camera, download the m3u8 playlist, fetch the individual AVI video segments ...
A_A's user avatar
  • 101
0 votes
0 answers
27 views

FFmpeg padding with different colors

I have the following ffmpeg command: ffmpeg -f concat -i inputs.txt -vf "scale=iw*min(1920/iw\,1080/ih):ih*min(1920/iw\,1080/ih),pad=1920:1080:(1920-iw)/2:(1080-ih)/2:black" output.mp4 This ...
Aewd's user avatar
  • 1

1
2 3 4 5
44