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

FFMPEG Trying to make a 8K 30 FPS MP4 video out of several hundred 8K PNG images

I have been trying to make an 8K MP4 video @ 30 FPS out of a few hundred 8K PNG images using FFMPEG since forever, but to no avail. The PNG images are serially numbered, starting from 000000 and going ...
0 votes
1 answer
19 views

How to cut video, add audio and burn subtitle while cropping video all in one command - ffmpeg

Currently I have the following command, which cuts the video, adds audio and burns subtitle into the video. -ss 00:00:30 -t -i video.mp4 -i audio.wav -vcodec copy -acodec copy -map 0:0 -map 1:0 -vf ...
1 vote
0 answers
23 views

Setting dpi flag in image files generated using ffmpeg

We're using ffmpeg to batch out some TIFF images that are being resized and having white borders created to fit specific paper sizes. The resulting images default to 72dpi, even when the source is ...
0 votes
1 answer
18 views

Lossless masking of MP4/h.264

I am familiar with the UNIX command jpegtran which supports the wipe (1) command line option for JPEG (ITU.81) format. Using ffmpeg one can losslessly encode a jpg image sequence to a MJPEG video. I ...
  • 252
0 votes
0 answers
27 views

ffmpeg command to convert interlaced video to progressive without any loss of quality

Can anyone provide me with the ffmpeg code to convert deinterlaced 80's video to progressive video without any loss of quality - ideally where I could deinterlace only the interlaced fields(I use ...
0 votes
0 answers
11 views

What improvements can I make to my FFMPEG script?

I am trying to create an FFMPEG script for some of my emulated game captures. I normally use Virtualdub2 (formerly Virtualdubmod) to upscale and trim my game captures for YouTube. With my laptop gone ...
  • 51
0 votes
0 answers
27 views

Gray screen issue after recovered video with ffmpeg

After recovered ".mp4" videos from mobile phone, some videos were corrupt. I used the FFMPEG method to fix the videos. Some CMD commands below; First Code: recover_mp4.exe good.mp4 --analyze ...
  • 1
0 votes
1 answer
19 views

Codecs supporting variable resolution (y height of frame changes with time)?

I found a video posted on discord once that made the whole webpage underneath it bounce up and down when it was played. I assume it must have been encoded using a codec that supports a variable ...
0 votes
0 answers
28 views

Can't find the right video encoding setting to be able to send video over Messenger

I have been trying to transcode an existing video (let's call this input.mkv) to a new video file (output.mp4) in order to be able to send it over Facebook's messenger in the browser. So far, all my ...
  • 101
0 votes
0 answers
37 views

mpeg-2 422P@H-14 by ffmpeg

I want to convert videos to mpeg2 422P Profile H-14 Layer, (422P@H-14), with the use of ffmpeg. What arguments would i need to use? I followed the comments in this forum post to solve my problem. I ...
0 votes
0 answers
28 views

Why does FFMPEG crash on me?

I'm a complete noob, but I've managed to get simple encoding jobs performed. For example: ffmpeg64 -i "source.mpeg" -c:v libx265 -preset slow -crf 14 -pix_fmt yuv420p10le output.mkv works ...
0 votes
0 answers
14 views

ffmpeg works with laptop webcam but not with android camera

I am working on Macbook with M1 Chip with this ffmpeg version locally installed. ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers built with Apple clang version 14.0.0 (clang-1400.0....
0 votes
1 answer
18 views

ffmpeg how to change audio tbn

I changed my video container with: ffmpeg -hide_banner -y -i in.mkv -c copy -video_track_timescale 1k out.mp4 But video_track_timescale only changes video tbn, not audio tbn. To check it: ffprobe -...
  • 101
0 votes
1 answer
74 views

Why do I use ffmpeg to embed .ssa subtitles and ffprobe recognizes that the subtitle is ass format?

I use ffmpeg to embed .ssa subtitles into mkv, but ffprobe recognizes that the subtitle is ass format. ffmpeg -i input.avi -i input.ssa -map 0:0 -map 0:1 -map 1:0 -c copy demo.mkv Also, I learned ...
0 votes
1 answer
35 views

How to adjust video histogram using ffmpeg?

I have a dark video and'd like to adjust its histogram. In a graphical editor I've found the values of the color levels that enhance video contrast. How to set this level values in ffmpeg?
  • 101
0 votes
0 answers
17 views

FFMPEG hardware accelerated 10 bit downsampling to H264

I have a home setup where I use a Kubuntu 22 box as my home theater PC (HTPC) to play videos/movies/music in my living room. I also set up a raspberry Pi in the kitchen that receives a video stream (...
  • 1
0 votes
0 answers
30 views

FFmpeg - Cut video from the beginning until a certain pixel is colored at a specific color

I am new to working with FFmpeg and would like to automate video trimming but can't find a way to do it. So, what I would like to achieve is this: I want to delete the beginning of a video file until ...
  • 1
0 votes
0 answers
15 views

ffmpeg: Adding longer audio to shorter video, with video synced to end of audio

My audio file is longer than the video. I want to merge the two, but I want both audio and video to end at the same time, leaving black frames at the beginning of the video as the audio plays. How can ...
  • 101
0 votes
0 answers
57 views

ffmpeg to MXF OP-Atom for Avid: how to get audio and video linked in Avid

I'm trying to create MXF Op-Atom files for Avid with ffmpeg. It works, but when put into an Avid bin, the Audio and Video show as separate clips. Is there some metadata I need to add so that Avid ...
  • 547
0 votes
0 answers
18 views

How to make animation when composing mp4 with ffmpeg?

This code compose 3 mp4 into 1 with ffmepg, it works, but there is no animation: ffmpeg() .input(`./media/001.mp4`) .inputFormat('mp4') ....
  • 103
0 votes
0 answers
66 views

ffmpeg dash output for multiple resolutions to be in the same mpd file

I am using ffmpeg to convert an input stream into multiple resolutions and creating an mpd for each resolution. So far, so good. But I am trying to find a way to create a single mpd for all ...
0 votes
1 answer
17 views

Fade transition - fade vs. fadefast vs. fadeslow

In the xfade filter, the speed of transition may be controlled by the duration= parameter – longer duration implies slower transition and vice versa. So why are there – beside the fade value for the ...
  • 1,404
0 votes
1 answer
44 views

ffmpeg - inacurate overlay position

I am trying to add two overlays using ffmpeg as below: [v0][1:v] overlay=21:24:enable='between(t,0.000, 1.135)' [v1]; [v1][2:v] overlay=120:24:enable='between(t,0.000, 1.135)' " These two ...
  • 101
1 vote
1 answer
40 views

Can you fix videos with "error: more than 5 seconds of late video" without re-encoding with ffmpeg?

I have obtained a video, ffprobe for it shows: $ ffprobe test-000000.mp4 ffprobe version 4.2.7-0ubuntu0.1 Copyright (c) 2007-2022 the FFmpeg developers ... Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '...
  • 121
0 votes
0 answers
38 views

Fast method for adding text watermark to only first 25 frames using ffmpeg

I am looking to add a text watermark to the first 25 frames of a video using ffmpeg. I have already tried the following command but it takes a long time as it processes the entire video: ffmpeg -i ...
  • 101
0 votes
0 answers
54 views

Use same output file name from pipe as input name with ffmpeg

I'm trying to get the output name to be the same as the input name while using the pipe command in ffmpeg. The file is called 1-Minute Audio Test for Stereo Speakers & Headphones [2ZrWHtvSog4].m4a ...
  • 115
0 votes
1 answer
31 views

How do you convert an mxf file to wav using ffmpeg?

I am using a Mac, I've run this: ffmpeg -i source.mxf -map_channel 0.1.0 -map_channel 0.1.1 \ -af 'volume=volume=6dB:precision=fixed' target.wav but I keep getting 'no such file or directory' ...
0 votes
0 answers
15 views

Creating video using ffmeg

I have a sequence of the image files which are named as follows; AA_0000000.jpeg, AA_0001000.jpeg, AA_0002000.jpeg, ... , AA_0300000.jpeg. I would like to make a video out of these image files. I run ...
0 votes
0 answers
50 views

Change color and hue in video

I have an mp4 video with a 0x0000f6 background color, a grayscale subject with some areas highlighted in green. I'm attempting to set the background color to 0x111B40 and adjust the hue of the green ...
  • 101
0 votes
0 answers
20 views

Audio/Video sync issues in VLC but not in QuickTime

I have a HD video file - 422MB. When I open it with QuickTime everything is in sync. When I open it with VLC the audio is late by half a second. What may be the problem?
0 votes
0 answers
47 views

FFMPEG Seeking with concat demuxer out of sync

I have a very simple use case that's driving me bananas. My problem and question: I'm using ffmpeg version 5.1.2 on a MacOS and i'm using ffmpeg seeking and concat demuxer to cut many 1 minute videos ...
  • 101
0 votes
0 answers
30 views

How output multiple stats file for multiple output?

I'm launching encoding ffmpeg using GPU with 2 outputs: one using H264_NVENC and one using HEVC_ENV. To enable video stats output I'm putting -vstats before input file. To specify output of video ...
  • 101
1 vote
1 answer
58 views

ffmpeg seek position options not working with h264

I can use ss and sseof parameters with mp4 files and stream the result, but I get errors when I use same commands on h264 file (checked that it also works without seek parameters) here are the ...
  • 15
0 votes
0 answers
16 views

Why, in FFmpeg with libx265 the timestamp tbn parameter is always 1k even when it seems not logical?

I encode with ffmpeg and noticed that when I encode a y4m video in 29,97 FPS into a h265 video with libx265, the parameter of the two videos are the following : original y4m : 29.97 fps, tbc : 29.97 ...
0 votes
0 answers
18 views

Converting MTS to MP4 gives strange artefacts

I am converting video taken with various personal cameras in .MTS format to mp4 in order to reduce the file size. I am getting some strange artefacts and I wonder what simple mistake I am making? ...
  • 1
0 votes
0 answers
8 views

How to convert .png files into a .mp4 file in ffmpeg? [duplicate]

I created an animation consisting of 64 frames each saved as a .png file. I've been trying to convert all those into a single video, but the videos that ffmpeg generates don't play, as if they were ...
0 votes
0 answers
7 views

after merging videos together, unable to apply sticker at the same position on video as show in video preview .. how to do it using ffmpeg

The issue is that when we merge two or more videos then we have to make their scale same to achieve it,because of which the video resolution get change. After that when trying to apply overlay on that ...
  • 1
0 votes
1 answer
76 views

FFmpeg: maximum VHS quality?

I'm digitizing a number of VHS tapes into lossless video files using FFmpeg. How can I optimize my FFmpeg command further in order to come closer to the requested specs below, with the best possible ...
0 votes
1 answer
39 views

ffmpeg: video size/quality changes when applying ffmpeg with no filters or other parameters

I've used ffmpeg for years for minor tweaks to sound & video but I know pretty much zero about containers and codecs and whatnot. I've recently had a need to reduce the physical (disk) size of ...
0 votes
1 answer
36 views

A video tool or ffmpeg filter to fix slightly shaky films from the 70s and 80s?

Lots of high-grossing older films including some that were released in the 90s have an almost imperceptible shake that is maybe due to the conversion from film to digital. You can only see it in ...
  • 103
0 votes
1 answer
33 views

How to re-encode leaving only every Nth frame in?

I have several hours of CCTV footage that I'd like to reasonably quickly skim. If there was a way to take every say 60th frame from it and put together a video from those frames that would be perfect. ...
1 vote
1 answer
145 views

Why does ffprobe report color space as unknown?

If the caja file properties report YUV for color space, why does ffprobe report color space as unknown ? The video in question was obtained from Astronomy Picture of the Day (APOD) Spinning Moon. Here ...
1 vote
0 answers
310 views

In FFMPEG's H.265 encoder, which CRF value leads to "visually lossless" results?

I am trying to shrink some videos from 1920x1080 to 1280x720 and to achieve a reasonable compromise between video quality and file size. I have decided to give FFMPEG's H.265 encoder a try, and now ...
  • 121
0 votes
0 answers
98 views

How to create a webM with a Transparent background from a MP4 Green Screen

Been trying this for some time now with little to no results. I have an MP4 of characters recorded against a Green Screen and have managed, through FFMpeg to strip out the green screen with an Alpha ...
  • 101
0 votes
0 answers
48 views

Changing speed and reversing in one filtergraph

Right now, I manually make videos that follow a consistent format, and have decided to make a program to automatically make the video for me. Here is an example of the videos that i am trying to ...
  • 1
0 votes
0 answers
10 views

How to fix "dull" colors on flowblade export?

I use flowblade (v2.8) on Linux as a video editor and VLC as player. I've run into problems with the colors looking dull on preview and after export (rendering) using flowblade. The video file has ...
0 votes
0 answers
43 views

Apply blend mode "overlay" to image watermark that smaller than video

I'm trying to make watermark with blend mode "overlay" like in Photoshop or Premiere Pro and apply it to video that larger than watermark image: https://i.imgur.com/OXRV68u.png This is how ...
2 votes
0 answers
51 views

How to know which ffmpeg encoders are hardware accelerated?

On any given build of ffmpeg, ffmpeg -encoders will list which encoders can be used for encoding video. Of the encoders listed, how can I tell which ones use hardware acceleration?
0 votes
0 answers
68 views

How to crop specific pixels on left and right side of a video using FFMPEG?

I have an MKV video file that is 704x480 and I need to crop 12 pixels from the left side and 10 from the right side. I have tried the following ffmeg -i "H:\Z-Movies\Movie 5WBN.mkv" -vf &...
0 votes
0 answers
180 views

Raspberry Pi Youtube Livestream - ffmpeg error: av_interleaved_write_frame(): Broken pipe

I'm using a Raspberry Pi 3B (OS: Raspian) to livestream an attached camera feed to YouTube using the following command in a python script(I removed the livestream secret key): raspivid -o - -t 0 -vf -...

1
2 3 4 5
40