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

Why has grayscale a higher bitrate than YUV with H.265/HEVC?

For compression purposes, I am re‐encoding a grayscale video to the H.265/HEVC codec. Although the input video is more or less perfectly grayscale in aspect, it is provided in the yuv420p pixel format....
0
votes
0answers
37 views

Changing FPS from 29.97 to 30 in ffpmeg creates short blank at end of video, audio is fine

I am trying to merge 5 parts of a continuous video using ffmpeg. For some reason, the 1st part is encoded at 29.97 FPS, while all the others are at 30 FPS. part #1 : 29.97 fps, 29.97 tbr, 19200 tbn, ...
0
votes
0answers
51 views

How to create widely readable video stream with ffmpeg?

As for test I use just a file with data as input and I would like to stream it as video. For this purpose I used ffmpeg: C:\tools\ffmpeg-20200523-26b4509-win64-static\bin\ffmpeg.exe -y -f rawvideo ...
0
votes
0answers
39 views

ffmpeg skip first or more segments

Commonly I try options in case of skip the begin of video: ffmpeg -i -ss 2 input.mkv -ss 4 (then 3 or 5) -codec copy output.mkv I can split video by segments, then skip first segment and concatenate ...
1
vote
1answer
37 views

ffmpeg log missing “dup” and “drop” key-value pairs

For some reason, my ffmpeg output log does not show dup and drop key-value pairs. expect: ... frame=563 fps=138 q=23.0 size=13056kB time=00:00:09.42 bitrate=11346.8kbits/s dup=0 drop=0 speed= 2.3x .....
0
votes
1answer
37 views

Using ffmpeg to convert files to OVG (libtheora) on Windows 10 results in corrupted Video Files

ffmpeg version 4.2.2 win64 static I'm using this command in Windows 10 to convert a file from mp4 to ogv: ffmpeg -i input.mp4 -c:v libtheora -q:v 10 -c:a libvorbis -q:a 10 output.ogv The result is ...
0
votes
2answers
57 views

Best strategy to keep aspect ratio consistent for all videos having any resolution

I am using the following ffmpeg command to create multiple resolutions for the same video content. ffmpeg -i ${f} -c:v libx264 -keyint_min 150 \ -g 150 -profile:v main -f h264 -dash 1 \ -an -vf scale=...
0
votes
0answers
9 views

FFMPEG Multiple Videos into single image sequence [duplicate]

I have multiple mp4s that I want to convert to a single jpg image sequence. Lets say I have 000000001.jpg, 000000002.jpg, 000000003.jpg from the first mp4. I want the second mp4 to name the first ...
0
votes
0answers
59 views

Forcing input video codec in ffmpeg for raw MPEGTS dump

I am trying to use ffmpeg to extract thumbnails from a partial dump of a MPEGTS, coming off a multicast network. The dump contains the video PID only, in MPEGTS format, but I am unable to get ffmpeg ...
0
votes
1answer
92 views

Remuxing a TS file to MP4 results in a less fluid video

I'm trying to convert a .ts file to an .mp4. I'm using the following ffmpeg command: ffmpeg -i all.ts -c copy all.mp4 This results in a noticeable loss in the fluidity of the video, which looks much ...
0
votes
0answers
19 views

Best ffmpeg configuration for universal video codec compatabiltiy across browsers

I intend to get a transcoding setting to support all browsers at the same time including, chrome, firefox and safari. Currently I am using following, yet this does not provide a valid video with ...
0
votes
0answers
302 views

Non-monotonous DTS in output stream… changing to 1 error

I'm trying to batch remux files to mp4, copying audio, video and subtitles streams. ffmpeg -i "$file" -map 0:a:m:language:por\? -map 0:a:m:language:eng\? -map 0:s:m:language:por\? -map 0:s:m:...
0
votes
2answers
188 views

FFMPEG: is it possible to offset output frames from a selection of specific frames?

I'm doing some ffmpeg (4.1.3) transcodings by extracting specific frames from the source, in this case, the source can be either a movie or an image sequence, all working fine with the following ...
0
votes
1answer
62 views

FFMPEG - Crop and Chromakey not working together?

Having an issue with the chromakey portion not working after the scale. Any ideas? ffmpeg -i background1080.png -i file.mp4 -filter_complex "[1]scale=1612:906[inner];[0][inner]overlay=154:170; [1:v]...
0
votes
1answer
19 views

With ffmpeg how do I imply spatial position when mixing mono to stereo

I have a range of mono audio samples and have worked out how to play them at specific time offsets but would like to give some indication of 'where the sound is coming from' I have the x and y centers ...
0
votes
0answers
21 views

How to drop blended fields from badly telecined movie

I have 24 fps movie content encoded to 50 interlaced fields per second using a method that would be equivalent to displaying the 24 fps footage on screen so that each frame is shown for its full ...
1
vote
1answer
112 views

ffmpeg - Draw a box and scale its size with time

I need to draw a box that grows in size horizontally over a video (scaling its width as time goes by) Since drawbox does not support the 't' (as in time) variable, I'm at a loss here. I've seen some ...
0
votes
0answers
70 views

Playing a 3D video with ffplay and Stereo3d filter, produces different playback than ffmpeg encoded version with same filter

I have a 3D video showing curved playback at the edges when playing it a on a flat screen. I'm trying to convert it to 2D using FFMPEG with the help of Stereo3d filter. By applying the filter to ...
1
vote
1answer
39 views

How to automate sync of 80-120 audio clips recorded at home on mobile phones?

I want to produce a virtual choir recording of an amateur choir. I want to give 80-120 members of the choir an accompaniment/click track of some kind. They will record themselves, on their mobile ...
1
vote
1answer
47 views

Record two audio sources as separate tracks?

I wrote a script to record my computer screen, my computer audio (The audio coming out of my speakers), and my microphone using ffmpeg: ffmpeg -video_size 1920x1080 -framerate 60 -f x11grab -i :0.0 -...
0
votes
0answers
31 views

FFMPEG: RTSP -> RTMP issue just before night and morning

I'm running FFMPEG to livestream my IP camera to Youtube Live. I'm having issues with the stream every evening ~10 minutes before the IR is turned on and every morning when the IR is turned off. I get ...
0
votes
0answers
24 views

How to apply smooth transition before and after an overlay video on top of the same video?

Basically I have a video and I want to show as smaller version of the same video as an overlay and also show an overlay image with some details. The code works, but the overlay appears suddenly, ...
0
votes
0answers
13 views

Create a jpg with ffmpeg when the content of a video is changing

Hello I want to extract JPGs of a mp4 file when the content in this video is changing. The video is a PowerPoint presentation recorded as a mp4. We need the JPGs as thumbnail for the chapter. The ...
0
votes
0answers
22 views

FFmpeg merge two files from different sources with different bitrates

I have created an intro video with Adobe Premiere Pro and I want to add the intro video to my downloaded Mixer stream videos before uploading them to YouTube, without reencoding the complete video ...
0
votes
0answers
47 views

Using FFMPEG to create video from images in sub folders

I know I can create a video from files in a folder like so: ffmpeg -f image2 -i %*.png out.avi But if the folder I am in have sub-folders can i use some sort of switch to read those image files in ...
0
votes
1answer
27 views

Encode a small proxy file with multiple audio streams for editing on Linux

After capturing 2K video in 444p with OBS, I need to transcode it to a low quality proxy version that's still easy to scrub and not a huge file. I capture 3 audio tracks in 32-bit PCM and the image ...
0
votes
0answers
77 views

FFMPEG Live stream loop with overlay - Errors

I'm trying to do a livestream with a video loop, sound from the desktop and an overlay image that updates when I replace the file and a text that also updates when a file is replace but I seem to be ...
0
votes
0answers
72 views

FFMPEG to YouTube: YT says “Unsupported resolution for latency configuration … The current resolution is (65535x65535)”

I've a facility that runs on a Windows machine, that records the screen to disk, and it works well. It takes audio streams from two virtual sound cards and a stream from the display and produces a ...
0
votes
0answers
27 views

ffmpeg Video zoompan In and Out

I would like to apply a pzoom effect with Video which mix both of them: the zoom will start with zoom in to exactly position x:y, then after a valuenable of time, the zoom continue with zoom out to ...
0
votes
0answers
22 views

ffmpeg pad and rotate - colour differential on upload to youtube

I'm using ffmpeg to rotate a square video to the desired angle, and then pad it from 1250x1250 to 2300 x 1293 (16:9). I use the following set of commands: ffmpeg -i input.mp4 -vf "rotate=-74*PI/180" ...
0
votes
1answer
26 views

Serving static video content directly vs. via adaptive streaming protocols (HLS, DASH)

Is there an advantage of serving static video content (not a live stream) via adaptive streaming protocols such as HLS or DASH over serving them directly as files using HTTP server in terms of speed? ...
0
votes
0answers
28 views

ffmpeg - Max size of filter_script file

I have been using the following command to successfully extract a list of frames from videos. I tried to use it to extract 12,227 frames and the command exits without generating any frames and error ...
0
votes
0answers
37 views

How do you use gamma_weight?

I'm trying to convert HEVCbt2020 clips into HEVCbt709 with ffmpeg, and I've made my own filters to do that. -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,...
0
votes
0answers
160 views

Another question on Non-monotonous DTS in output stream

I use ffmpeg to convert and join multiple mp3 files into m4a. BITRATE=128k find . -name "*.mp3" | parallel --lb -k "ffmpeg -y -i {} -map 0:a -c:a aac -b:a $BITRATE {.}.m4a" OUT_NAME=${OUT_NAME:=out....
1
vote
0answers
56 views

FFMPEG command to mix audio and video with adjustable volume, plays till Video length and loop audio entire video

I have: Video file of X length Audio of Y length I am trying to achieve an output video that has the following qualities: The volume level of the added audio should be adjustable The audio should ...
0
votes
0answers
24 views

FFmpeg overlay and combine videos with background with pauses in between videos

I'm a bit new to ffmpeg and I'm confused on what code to do. So basically I have 3 video files Video 1 - 10 secs long Video 2 - 5 secs long Video 3 - 8 secs long What I would like to do is have the ...
1
vote
0answers
46 views

Problems correcting perspective in video using FFmpeg

If I save a frame as a JPG using something like: ffmpeg -i /dev/video0 -frames:0 1 check.jpg I can get the coordinates to create an image with the perspective corrected using: ffmpeg -i check.jpg -...
0
votes
0answers
7 views

Extracting frames with ffmpeg with the exactly timecode [duplicate]

I am looking for a possibility to extract frames from a mp4 video. This is further no problem - the formula ffmpeg -i 17.47.30.mp4 output%d.bmp ist doing a good job with that. My main problem is, ...
0
votes
0answers
19 views

ffmpeg cancels extremely often with no apparent reason

I have a webcam running on my Wifi, and am saving its stream to my harddisc drive. This is called by a python script which continuously restarts the recording (I want to have 4h long video files, not ...
0
votes
1answer
67 views

What's the ffmpeg command to extract PPM files from an existing video?

What's the ffmpeg command to extract PPM (or Portable Pix Map) files from an existing video? Like the reverse of this https://askubuntu.com/questions/971119/convert-a-sequence-of-ppm-images-to-avi-...
0
votes
1answer
15 views

Same filter in different chains

I want to split input video, scale each stream using different parameters and add subtitles to each output, using the same parameters. I can do it repeating subtitles filter in each chain, can I avoid ...
0
votes
0answers
22 views

How to generate a silence audio file of accurate duration in milliiseconds using ffmpeg in Node JS?

I am using ffmpeg npm package in Node JS for processing my audio files. My application usecase is that there will be a meeting recording which will happen for every attendee who joins the meeting and ...
0
votes
1answer
80 views

FFMPEG how to add image and soundwaves to video

I have an mp3 song that I am making a video for, I also have a background image. My command that doesn't work. ffmpeg -i song.mp3 -i image.jpg -filter_complex \ "[0:a]showwaves=s=3840x200:mode=line[...
1
vote
0answers
194 views

ffmpeg rtmp server connection issues

I am trying to stream using ffmpeg rtmp using, ffmpeg -i out2.mp4 -c:v copy -c:a aac -listen 1 -ar 44100 -ab 64000 -f flv rtmp://localhost/live The process starts but nothing is happening after ...
0
votes
0answers
29 views

Extending the length of a video and overlaying an alpha PNG image sequence using FFMPEG

I’ve got several videos to which I’d like to add ‘outro’ animations to, using FFMPEG. The outro animation itself is a sequence of 41 frames of alpha PNG images named consecutively, from Outro.00000....
0
votes
1answer
56 views

Create one split screen video, separate audio streams and a thumbnail from the resultant split screen video - all in one pass

I'm using ffmpeg to create several single splitscreen videos out of 2 separate videos. The 2 videos have audio so I want to extract the 2 video's audio streams as 2 separate mp3s and also create a ...
0
votes
1answer
28 views

ffmpeg with h264 produces smaller file sizes for veryfast preset

I am experimenting with ffmpeg and x264 codec. And I have found some unexpected behaviour. I am encoding video with parameters CRF 23, high profile and changing preset. Documentation says: for ...
0
votes
0answers
85 views

Optimal ffmpeg input and settings for 1080p Youtube video from individually rendered frames (PNG files)

There may be multiple questions in here, so please bear with me ... I am experimenting with rendering animations (from scientific data / simulations). My code produces individual frames as PNGs - at ...
0
votes
0answers
29 views

Change starting dts by ffmpeg

I'd like to change starting dts of a media file. This is a result of ffprobe -select_streams v -show_entries packet -read_intervals %+#3 . Duration: 00:00:03.00, start: 0.000000, bitrate: 25805 ...
1
vote
1answer
145 views

Using FFmpeg -lavfi to calculate the SSIM of each frame

I would like to be able to take a single video, run it through ffmpeg, and have it spit out a log containing the SSIM of each frame with respect to the previous - that is, I want the SSIM scores ...

1 2 3
4
5
33