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

How to delay beginning of audio without re-encoding?

I have a file containing both video and audio stream. I want to delay the audio by 5 seconds relative to the beginning of the video, without having to do any re-encoding. The command I tried was: ...
finefoot's user avatar
  • 101
0 votes
1 answer
4 views

In which order do `-itsscale` and `-itsoffset` apply in my FFmpeg command?

I want to use both -itsscale and -itsoffset in my FFmpeg command, but couldn't find any information in the docs https://ffmpeg.org/ffmpeg.html or elsewhere, if the order, in which they're mentioned in ...
finefoot's user avatar
  • 101
0 votes
1 answer
7 views

Blend the brightest pixels of a frame to the next with ffmpeg?

I have googled for days, and I just can't figure out how to use ffmpeg to blend the brightest pixels to the next video frame. And lastly save the last frame as an image. Similar to "evaluate ...
tim's user avatar
  • 101
0 votes
1 answer
13 views

ffmpeg: smooth zoompan with no jiggle

I'm trying to apply a smooth zoom effect to my 5-second video using FFmpeg, but I'm encountering a shaky/jittery zoom. Here's the command I'm using: ffmpeg -i island_zoom.mp4 -vf "zoompan=z='min(...
Kataklycm's user avatar
0 votes
1 answer
24 views

How to create animated gif from images files?

i tried this command line D:\Captured>ffmpeg -framerate 1/2 -start_number 1 -i "D:/New folder (76)/Image%d.png" -loop -1 D:/test.gif but getting error [image2 @ 00000000026324a0] Could ...
Dubi Duboni's user avatar
-1 votes
0 answers
30 views

How to Remove Watermarks in Videos Downloaded from Pinterest? [closed]

I've recently started using some Pinterest Downloader as https://dotsave.app , pinterestdownloaders , pintodow.app ... to download videos from Pinterest, and I noticed that some of the videos come ...
Nguyễn Huy's user avatar
0 votes
0 answers
22 views

Color histogram transfer with ffmpeg

I don't know if this is even possible, and I'm new to this, but I'll try and ask anyway: I have two videos that are largely the same; they are recordings of the same thing. However, in one of them, ...
ppw0's user avatar
  • 101
0 votes
1 answer
34 views

How to create a box shadow effect when overlaying an image on a video using FFmpeg?

I'm working on a video project where I need to overlay an image on a background video. I've managed to achieve the basic overlay using the following FFmpeg command: ffmpeg -i background.mp4 -i ...
Kataklycm's user avatar
0 votes
0 answers
17 views

How do I change the color format of a video in ffmpeg?

I have upscaled an old DVD to 4K through various samples and appended the files producing the following x265 file within an .mkv container: My TV can't directly play the video, though, usually able ...
bigboss's user avatar
0 votes
0 answers
12 views

{Help} FFMPEG with NVIDIA hardware acceleration

I just started using ffmpeg so I am new this. I am currently (code-1) to overlay a simple png on a video nothing fancy. Now I want to the same thing but with hardware acceleration using a NVIDIA GPU. ...
Rahul's user avatar
  • 1
0 votes
1 answer
33 views

Save ffprobe Output to Log File?

I made a script for ffprobe I can use to view information of my media more easily. An additional feature I want is to breakout the output information to a log file. Implementation 1: @echo off for %%...
Mr. Mendelli's user avatar
0 votes
1 answer
20 views

ffmpeg - How to do H.265 encoding on ffmpeg using Mediainfo encoding data?

This is the Mediainfo File of my encoded video. The original video has multiple audio tracks & subtitles. I want to keep them all intact. Plz note the encoding needs to be done on Android via ...
Phoenix 's user avatar
0 votes
0 answers
17 views

Retain Embedded Cover Images Between ffmpeg Conversion?

I like to embed a cover image into my video files, but I have noticed that they are lost whenever I convert or remux, is there a way to retain these embedded images like I can with metadata? Are there ...
Mr. Mendelli's user avatar
0 votes
0 answers
14 views

How to concat videos and images with ffmpeg

I have videos and images. I want to concatenate them. And I want the images to be displayed for specific duration, say 10 seconds. If I first convert image to video and concate, it works ffmpeg -y -...
ARTEM DIACHUK's user avatar
0 votes
0 answers
11 views

FFmpeg CRF causing glitches on fade-ins

I'm transcoding some high bitrate h264 5K videos which start with a fade in, at CRF 22 H264 mp4 using FFmpeg via MyFFmpeg. The fade ins are all causing some blocky glitching for a few frames. It's not ...
user43899's user avatar
0 votes
0 answers
22 views

ffmpeg fixed video noise reduction

I have a camera with a fixed noise (video sample). Is it possible to remove this noise completely using ffmpeg? I tried ffmpeg "-vf" noise reduction but didn't find any way to remove the ...
leo's user avatar
  • 101
0 votes
0 answers
17 views

Audio issue with pcm_bluray when creating BD-Video using ffmpeg, tsMuxer and Xorriso

ffplay and VLC can playback HDV.m2t source camcorder clips joined with cat. That is video and audio seamingly works with this ffplay output: ffplay -hide_banner HDV01.m2t [mpegts @ 0x7f82c4000cc0] ...
Terje's user avatar
  • 1
0 votes
0 answers
19 views

How can I replace next frames using FFmpeg?

I have a folder named frames with images, named frame0001.png, frame0002.png, frame0003.png, etc, all the way to frame0061.png (or frames/frame%04d.png using FFmpeg). I have an input video file simply ...
winscripter's user avatar
0 votes
0 answers
10 views

How to concat several video clips with different property using ffmpeg

I want to concat several videos using ffmpeg. I have 1.mp4 2.mp4 3.mp4 files I used this command ffmpeg -y -i 1.mp4 -i 2.mp4 -i 3.mp4 -filter_complex "[0:v]trim=0:10,scale=1920:1080,setsar=1[v0];[...
ARTEM DIACHUK's user avatar
0 votes
0 answers
17 views

Impact of reencoding an HEVC file: How much loss if I do it in two steps, vs. going directly to a lower bitrate?

My scenario is as follows: Working with large original 8K file, captured at 100Mb/sec with hvec (h265) codec The file was reencoded at 50Mb/sec for a reasonable balance between size and quality Now ...
Cahit's user avatar
  • 51
0 votes
1 answer
30 views

How to extract video tracks from an mp4 file and individually save them to file

My Mercedes-Benz dashcam saves to SD card the video feeds from the front and rear cameras (in 1-minute long chunks) as separate tracks in the same MP4 file. Track 1 is from the front camera; track 2 ...
Deeday-UK's user avatar
  • 101
0 votes
0 answers
37 views

ffmpeg copy some audio streams and re-encode some audio streams

The Problem I have a mkv file that contains audio in a format that not all my devices support. To get full support, I want to copy that audio and convert it while retaining the original audio. Input: ...
not_anyone's user avatar
-1 votes
0 answers
33 views

What should be my line of code in ffmpeg Android for H.265 encoding to obtain desired result?

These are the encoding settings on my Mediainfo File. Encoding settings : cpuid=1111039 / frame-threads=6 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=...
Phoenix 's user avatar
0 votes
0 answers
28 views

FFMPEG Invalid data found when processing input when muxxing ASS file

I made a Python script to use FFMPEG to extract a subtitles file(ASS) from an MKV, modify a few things with Pysubs2, and then remux it as a new sub. The code works has worked correctly until now, but ...
Efraín's user avatar
  • 101
0 votes
0 answers
17 views

Ffmpeg command to mux in subtitles matching the style of VLC

I am trying to mux in subtitles with ffmpeg, but I am having trouble getting the desired style and output with a reference point being VLC's standard format of showing subtitles matching the look of ...
bigboss's user avatar
0 votes
0 answers
16 views

Bulk crop, change speed, volume, zoom, contrast etc Videos

I want to edit some videos in batch, i want to be able to change volume, speed, zoom, contrast, volume and also be able to crop the videos. I want to be able to adjust all the mentioned options.
Marian Pepa's user avatar
0 votes
0 answers
9 views

whatsapp media files cannot be concatenated by ffmpeg

hi I have written a Python program to concatenate multiple video files using ffmpeg concat demuxer. initially, I used media files from WhatsApp in my mobile which were sent to my laptop via email. but ...
nish's user avatar
  • 1
0 votes
0 answers
22 views

Processing h264 video/audio stream

I have separate raw audio and video frames from a camera that I'm trying to merge to a single file. Video processing I have JVT NAL sequence, H.264 video, main @ L 31 data, I had the frames separated ...
Dinamo's user avatar
  • 1
0 votes
0 answers
33 views

How to change resolution without compromising video quality using ffmpeg?

I'm trying to develop a simple video transcoding system. When you upload a video, After extracting the video and audio separately, I want to encode them at 360, 720, and 1080p resolutions respectively ...
blake banker's user avatar
0 votes
0 answers
23 views

batch generate thumbnails

I am looking for a way to batch generate thumbnails contact-sheets with ffmpeg. A single line bash command line will do but a script is also okay. This a example. -The dimensions of the jpg must be ...
Anton Harpitap's user avatar
0 votes
0 answers
24 views

Does FFMPEG rewrite HLS m3u8 playlist files from scratch every segment when -hls_playlist_type = event?

hls_playlist_type event means the playlist file is supposed to be appended with each new segment reference and segments are never removed. And yet I've always noticed in the ffmpeg log with each ...
hedgehog90's user avatar
1 vote
0 answers
19 views

How to get a 7.1 PCMle encode in an MOV container to stay a single track while also rendering as 8 mono tracks in an NLE like an MXF container

I've been trying to convert Blu-Ray footage to the most efficient, yet least time consuming format for editing footage from them. For a while, I would make an MXF container and encode the h264 to ...
varys_da_spidah's user avatar
0 votes
0 answers
19 views

Inverse Telecine (IVTC) anime DVDs

Issue I have a bunch of anime I've ripped from DVDs and even BDs that are 480i. I want to upscale these videos with Topaz Video AI for higher quality on a big screen, but also because subtitles are a ...
Kevin Ghadyani's user avatar
0 votes
0 answers
40 views

Non-monotonic DTS Errors in Concatenated FFmpeg Output with Multiple Streams

I've encountered an issue while concatenating video files using FFmpeg, specifically when including multiple streams using the -map 0 option. Here are the details: I have two FFmpeg commands to trim ...
lucemia's user avatar
  • 51
0 votes
0 answers
53 views

How to serve long duration HLS playlist (12 hours) without creating massive playlists in FFMPEG?

I'm serving an HLS stream with the following ffmpeg command: ffmpeg -f flv -i rtmp://127.0.0.1/live -crf 22 -ar 44100 -ac 2 -fps_mode passthrough -force_key_frames expr:gte(t,n_forced*2) -map 0:v:0 -...
hedgehog90's user avatar
0 votes
1 answer
61 views

Creating an 8K/4K video in ffmpeg from single image frame leads to video longer than audio

I want to make a video using a cover image and an audio file with the audio file as the length. What's the most optimal modern way to do this with new codecs and high resolutions? Reason why I want 4K/...
MyPreciousss's user avatar
0 votes
0 answers
22 views

FFmpeg video trimming without acodec is time-consuming

I am using yt-dlp to get a direct link to the video. Some 360p and 720p links have an acodec. yt-dlp formats In case if you trim a video with a segment of 5 minutes for example, a video that has ...
Keily's user avatar
  • 1
0 votes
0 answers
40 views

Convert video to hequirect while setting the background black and blur the transitional area

I am using ffmpeg -i input.mp4 -vf "v360=input=fisheye:ih_fov=122.6:iv_fov=94.4:output=hequirect:h_fov=180:v_fov=180:in_stereo=2d:out_stereo=sbs,format=yuv420p" -b:v 25M -maxrate 60M -...
Zurechtweiser's user avatar
0 votes
1 answer
50 views

Concatenated Video created with FFMPEG is longer than expected

I am using this Video-List: file 'C:\Users\X\Documents\test\input.mp4' inpoint 00:00:02.7650000 outpoint 00:00:04.7650000 and the following Command: ffmpeg -y -safe 0 -f concat -i output.txt -map 0:v ...
Snickbrack's user avatar
0 votes
1 answer
39 views

ffmpeg problem with split & combine portions of same video

I'm trying to split & combine multiple portions of the same video file. Since there are multiple portions that I want to combine, I want to use filtercomplex to do this. Also, since some of the ...
icyGuy's user avatar
  • 1
0 votes
0 answers
56 views

FFMPEG - converting interlaced 720x480 MPEG2 to scaled up progressive 1440x1080 HEVC (Nvidia available)

I am trying to improve the video of a ripped DVD. The current file is encoded in MPEG2 interlaced and 720:480. I am trying see if it is possible, with a bit of conversion, for it to look better... ...
PCSO SAR COMM's user avatar
1 vote
1 answer
34 views

How to fix an mp4 when 1/4 of the video is in one orientation and the other 3/4 is rotated 90 degrees?

I have an mp4 video shot on an iPhone. Part way through the video the user rotated the camera 90 degrees and kept shooting. The first 1/4 of the video is right side up, there is a small section where ...
user1045680's user avatar
0 votes
0 answers
24 views

ffmpeg fails to load lensfun database

I'm trying to correct lens distortion of a video. I use below code that I took from here: https://ffmpeg.org/ffmpeg-all.html#Examples-132 (I just change the input and output file paths). ffmpeg -i ...
filibis's user avatar
0 votes
0 answers
34 views

How do I get better sound quality when screencasting with ffmpeg without having to increase -r?

I wrote the following script to capture both the screen and the audio from the microphone, both lossless from my laptop: #!/bin/bash d=$(date +"%Y%m%d_%-H%M") dimensions=$(xdpyinfo |grep ...
John Smith's user avatar
0 votes
0 answers
16 views

Using FFMPEG for Bidirectional Voice Communication with Symmetric RTP

I am trying to make a voice communication between two peers. The first peer is my local machine which is behind a symmetric NAT. The second peer is my server running on an AWS EC2 device which has a ...
Batuhan Öksüz's user avatar
0 votes
0 answers
44 views

How do I add a "border" in showwaves filter with FFMPEG?

Im attempting to make a wave video script in bash that allows the user to input an audio file and a background and displaying a wave filter over that image, and 1 that has a border around it so it ...
Reiko's user avatar
  • 1
0 votes
0 answers
41 views

How can we use Ffmpeg to apply blur, overlay a logo and waveform, and add a border around a video, step by step?

We're looking to enhance a video using Ffmpeg by implementing several effects sequentially. First, we aim to apply a blur effect to the entire video. Then, we want to overlay a logo and a waveform ...
itsfaisalkhalid's user avatar
0 votes
0 answers
13 views

receive mpeg4 stream using gstreamer

I want to receive an mpeg4 stream with gstreamer, the stream information is(using ffprobe shows the following): Input #0, mpeg, from 'udp://[email protected]:8001': Duration: N/A, start: 19215....
Muhammad Mirab Br.'s user avatar
0 votes
0 answers
313 views

Ffmpeg input seeking - "Invalid NAL unit size"

I'm trying to use ffmpeg to get a 10-second clip from the middle of a video. The execution time of the command is important, that's why I've decided to use combined input & output seeking (as ...
Dimitris's user avatar
0 votes
1 answer
18 views

Getting an error when attempting to use FFmpeg to copy primary AC3 audio to aac_he secondary audio

I am attempting to add secondary audio with FFmpeg to copy my primary audio over and encode it with libfdk_aac using profile aac_he. When I do, I am getting the following errors: [NULL @ ...
Tom Dimmer's user avatar

1
2 3 4 5
44