Skip to main content

All Questions

Tagged with
1 vote
1 answer
27 views

How can I concatenate videos that don't always have audio using ffmpeg?

I have 5 video files (although, it could be 100s), some with audio, some without. They are more-or-less a consistent size but I'll force that by using something like -vf "320:240" on the ...
Skeeve's user avatar
  • 61
0 votes
1 answer
69 views

How to solve a final pb when merging a series of .ts file with concat command of FFmpeg?

I had dowloaded some videos from the Internet, feaw years ago… I obtained many files: a series of files in .ts In my example: a series of 306 files named from segment1_4_av.ts to segment306_4_av.ts A ...
dg lr's user avatar
  • 57
1 vote
0 answers
96 views

D3D11 hardware screen recording with ffmpeg using Intel H264 QSV hardware encoding

I'm trying to screen record using ffmpeg and having it all done via hardware on my Intel integrated graphics. Specs For reference, here are my specs: Windows 11 Pro Version 10.0.22631 Build 22631 ...
Cactus's user avatar
  • 11
1 vote
1 answer
29 views

Seeking with ss dont seem to work in combination with VideoFilter

In FFMPEG I am using the following command to extract frames from a video: ffmpeg -ss "00:47:13" -i "Video.webm" -vf select="gte(n, 90000)" -vframes 5000 "frames_%d....
Snickbrack's user avatar
1 vote
0 answers
50 views

How can multiple, non-regular segments be extracted from a video using ffmpeg on Windows?

I'm trying to extract some segments from a video (and optionally combine them) using ffmpeg... but I'm not getting very far. Compared to the various examples I've found here, in the ffmpeg docs and ...
Skeeve's user avatar
  • 61
0 votes
1 answer
173 views

How can i add audio at specific Frame in FFmpeg?

I have audio that i am adding (without Re-encode) in mute video file, in starting i have intro which has no sound and i want to add audio file after that time/frame , after searching so hard i only ...
Mickey S's user avatar
3 votes
1 answer
320 views

How to escape file path for burned-in text-based subtitles with FFmpeg?

I'm trying to burn text-based subtitles into a video using ffmpeg, via the command line option -vf followed by subtitles=(filename):si=(subtitle index). I need this to work for both Windows and macOS. ...
kshetline's user avatar
  • 165
0 votes
1 answer
387 views

Send info from ffmpeg to text file & then parsing into a new file

I am trying to scan a directory of .mkv files and output the volume information to out.txt and then parse out.txt for volume_max and send it to log.txt using for %i in (*.mkv) do ffmpeg -i "%i&...
Preston's user avatar
0 votes
0 answers
30 views

Trying to clip beginning and ending of clips without loosing quality. Using lossless running into issues

So I have a video file or several actually. 23.769 fps 1080p Hvec h265 mkv I'm trying to clip the beginning and ending. It has advertisements I don't want. I have successfully done this using ...
RandyHaasLives's user avatar
0 votes
0 answers
431 views

Recursively search all subfolders for png images and convert them to one mp4 video

I have timelapse camera that is recording a png picture every 30 seconds. The timelapse system makes a subfolder that has the date as its name and then each subfolder contains png files which are ...
user44109's user avatar
2 votes
1 answer
5k views

How to fix (regenerate) thumbnails for mp4 files in Windows 10 (recorded by Pixel 3)

My Google Pixel 3 phone saves videos as mp4 files that have no thumbnails in Windows Explorer. (This screenshot shows files on my PC that I'd moved via USB from the Pixel 3.) Here is an example of an ...
Ryan's user avatar
  • 1,976
1 vote
0 answers
280 views

FFMPEG - Copy l-frame range. (-ss -to) And Re-encoding not l-frame range. And merge all?

1- copy between nearest -ss l-frame and -to l-frame. 2- Re-Encoding those not in range of l-frames 3- concat step 1 and 2 :) The first seconds are wrong when cutting by copying (-c:v copy -a:v copy). ...
emreya's user avatar
  • 43
0 votes
0 answers
249 views

ffmpeg unable to parse really long command; Invalid duration specification for to: 00:0011

I'm trying to run an extremely long ffmpeg command but I end up getting an unusual error. I have the following command in a .cmd file: ffmpeg -ss "00:00:00" -to 00:00:10 -i "F:\MusicGen\...
EllipticalInitial's user avatar
1 vote
0 answers
98 views

ffmpeg, put 5000 trimmed inputs and filter complex into file?

I have a huge monolithic ffmpeg command and unfortunately I am not able to run it because "the command line is too long." I'm on Windows 10. The exact input command and output can be seen ...
EllipticalInitial's user avatar
0 votes
1 answer
267 views

FFmpeg : Some blend filter options are missing

FFmpeg gets the following error when I use interpolate or softdifference options of blend filter : [blend @ 000001cc06193640] [Eval @ 0000000477dfe5e0] Undefined constant or missing '(' in '...
Maria's user avatar
  • 175
0 votes
1 answer
455 views

combine two ffmpeg -vf filters into one in Windows batch file

I have two video filters that work as long as I use them in separate batch files and I can't find a way to combine them. The first filter resizes JPG images and then creates a slideshow of them incl. ...
Sonic's user avatar
  • 13
1 vote
1 answer
1k views

create slideshow video using ffmpeg and batch file (Windows) and have all images resized to 1080 height and crossfaded

I'm trying to create a 1920x1080 slideshow from images in a folder using a batch file and ffmpeg. The batch file references a txt file containing the list of files to be concatenated. The images have ...
Sonic's user avatar
  • 13
0 votes
1 answer
203 views

FFmpeg&FFPlay: Option `start`&`end` of filter `trim` have trouble parsing time duration string but `-ss`&`-to` works perfectly

I'm tring to preview cut video before process it on Windows, this Cut.bat is what I tried: @echo off @cd/d %~dp0 REM Entered by user set startTime1=5 REM Entered by user set startTime2=00:05 REM ...
Byzod's user avatar
  • 285
0 votes
0 answers
110 views

audio and video not correctly sync after concatenation

totally new to video editing in general and in need of some help =) command that I'm using (windows batch): (echo file cucca.jpg.mp4 & echo file cucca.fade.mp4 & echo file cucca.jpg.mp4)>...
Robson's user avatar
  • 101
2 votes
0 answers
2k views

FFmpeg -shortest not working when using -filter_complex with audio and video filters

Pretty much the exact same issue was described here several years ago, but the 'solution' given, while it works, is more inconvenient and doesn't explain why the actual command in question does not ...
pigeonburger's user avatar
  • 2,428
1 vote
0 answers
240 views

FFMPEG is throwing Not enough memory resources on Azure VM

I have 500 MB video file which I am converting to MP4 format. My laptop is i7 and 16 GB Memory and ffmpeg is able to convert the file. Command used is as follows: ffmpeg.exe -i "a.mp4" -c:v ...
Gaurav's user avatar
  • 11
1 vote
1 answer
2k views

ffmpeg about fps, q and interlaced

My command without sound: ffmpeg -f dshow -rtbufsize 2147.48M -video_size 640x480 -i video="Roxio Video Capture USB" -c:v libx264 -pix_fmt yuv422p -preset ultrafast -bufsize 3968k -crf 0 R:/...
jean-luc's user avatar
0 votes
1 answer
120 views

What is a MOJO codec and how can it be used with ffmpeg

NComputing VCast has this MOJO format that can play fast on their thin clients. As described here: https://support.ncomputing.com/portal/en/kb/articles/vcast-what-is-the-difference-between-web-media-...
cyberquarks's user avatar
1 vote
1 answer
2k views

Change aspect ratio with ffmpeg without specifying width or height?

I have a video that's 1920 x 1080 (16:9) and it looks stretched horizontally, because it should be 4:3. That could be solved by converting it to a file that's 1440 x 1080, but in this case, the exact ...
bat_cmd's user avatar
  • 551
0 votes
1 answer
7k views

Very Slow ffmpeg Encoding Command

I'm using the following ffmpeg command to take a 4K (3840x2160) video (between 5 and 10 minutes), trim it down to 21 seconds, flip it horizontally (across the vertical axis) and switch the red and ...
EllipticalInitial's user avatar
0 votes
1 answer
850 views

How to set batch file output to be the same as the bat file directory

I've created a .bat file that I can use to drag and drop an mp4 video file onto it to convert reddit videos format to a format supported by whatsapp. All this using ffmpeg Here's the code of the .bat ...
Francisco Laferrière's user avatar
2 votes
1 answer
13k views

Unable to open ffmpeg mpegts stream on a UDP port on Windows

I am trying to display a stream from ffmpeg in a video player. Originally it was a camera input, but the issue is the same for video files and screen captures. The code I'm using is a variant of ...
Baxuz's user avatar
  • 21
1 vote
1 answer
500 views

"Error initializing" frei0r filter even though it is enabled

I just installed ffmpeg with the frei0r library from gyan.dev but I don't seem to be able to use it for some reason (this is on Windows). When using this exact command: ffmpeg -i input.mp4 -filter:v ...
pigeonburger's user avatar
  • 2,428
1 vote
1 answer
681 views

ffmpeg fails when executing example command to convert using VP8

I am following the tutorial here, and executing the first example command yeilds an error. The ffmpeg version I have has libvpx and libvorbis enabled. When I run this command: ffmpeg -i aaa.mp4 -c:v ...
Ghasan's user avatar
  • 327
7 votes
1 answer
4k views

How to copy unsupported data streams with ffmpeg?

Briefing I have some .wmv files (actually, my full batch file deals with multiple filetypes) with weird data streams that are needed for an external program to recognize them. I'm trying to remove ...
Fabio Freitas's user avatar

15 30 50 per page