Skip to main content

All Questions

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

How do you create an ffmpeg lossless image without re-encoding?

I'm using the command below but not sure if it’s really lossless and without re-encoding? Is there specific command to create lossless image and without re-encoding? I'm new to this. ffmpeg -lavfi &...
Michael's user avatar
  • 11
2 votes
1 answer
106 views

What a correct playlist.m3u8 should contain, or should look like?

24/06/2024: [Presentation of the problem] I had dowloaded some videos from the Internet, few years ago. I obtained many files: a series of files in .ts a single file playlist.m3u8 In my example: A ...
dg lr's user avatar
  • 57
0 votes
1 answer
58 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
1 answer
51 views

why don't work old batch ffmpeg extraestereo command in new version?

I use this batch command for years in ffmpeg, but from update to the last version don't work and don't see in documentation whats the problem. ffmpeg -i C:\Pelis\video.mkv -vcodec copy -map 0:a -map 0:...
javier vera's user avatar
0 votes
1 answer
37 views

How to use ffmpeg speedup video specific time range in one line ffmpeg cli

I try following splited cli, they work well ffmpeg -i "$input_file" -filter_complex "[0:v]trim=start=0:end=10,setpts=PTS/10[v1];[0:a]atrim=start=0:end=10,asetpts=PTS/10[a1]" -map &...
chikadance's user avatar
0 votes
0 answers
119 views

FFMpeg removes the video stream unintentionally

I used the following ffmpeg command to downscale a video. But surprisingly the output did not have any video stream, just an audio-only output. ffmpeg -y -i "input.mov" -c:v libx264 -vf ...
CtrlAltElite's user avatar
0 votes
0 answers
158 views

FFMpeg creates image from a timestamp but not from another timestamp

While trying to create an image from a video, the following command does not create any output and completes with the warning Command with timestamp 7 sec: ffmpeg -ss 00:00:7.0 -i "input.mp4"...
CtrlAltElite's user avatar
0 votes
0 answers
66 views

FFMpeg series thumbnails created less than expected

I have the following ffmpeg command to create a 576p video, and series thumbnails at an interval of every 2 seconds. ffmpeg -hwaccel cuvid -hwaccel_output_format cuda -i input_video.mp4 \ -vf "...
CtrlAltElite's user avatar
0 votes
0 answers
149 views

Ffmpeg: color related commands

I use hlae+ffmpeg for recording and for parameters of recording i set: -c:v ffv1 -pix_fmt gbrap16le -coder -2 -g 1 -threads 4 -context 1 -slices 30 -slicecrc 1 -level 3 -fps_mode passthrough -...
Skyfall's user avatar
0 votes
1 answer
375 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
2 votes
2 answers
705 views

How can I setup ffmpeg to continuously produce 1 second videos from piped jpgs?

I am using ffmpeg on Ubuntu 22.04 to create 1 second mp4 videos from piped jpgs. The only issue that I have is that ffmpeg stops executing after the first set of jpgs is piped in. I need ffmpeg to ...
rickyz's user avatar
  • 23
2 votes
1 answer
1k views

ffmpeg nvenc throws an error after I modified an x264 command

I'm trying to convert this command to work on nvenc hvec video encoder to just make it faster and utilize my 3060: ffmpeg -i video.mkv -i logo.png -filter_complex "[1]format=rgba,...
Candour's user avatar
  • 25
1 vote
0 answers
91 views

Going round in circles with ffmpeg concat and filter_complex

Since I've 'flipped' my classroom I'm trying to work out the ffmpeg command that will concat a set of m4a audio files with a set of matching static PNGs to create a pre-recorded talk. I have no issues ...
user1600439's user avatar
1 vote
0 answers
758 views

Generate a video with an image every 5 seconds using ffmpeg

I want to create a video from command line with some images like those: -rw-r--r-- 1 dt dt 3360622 Sep 4 23:57 IMG_0670.jpg -rw-r--r-- 1 dt dt 2949398 Sep 4 23:57 IMG_0671.jpg -rw-r--r-- 1 ...
Daniele Tentoni's user avatar
1 vote
0 answers
896 views

FFMpeg autorotate video and image output

I have a video which I'm trying to downscale to a video output, and also create a thumbnail image at every 2 seconds using a single FFMpeg command(hardware accelerated). Following is the command: ...
CtrlAltElite's user avatar
0 votes
0 answers
705 views

FFMPEG command to create subtitles isn't using the right font

I'm trying to use python to run an ffmpeg command to add subtitles onto a video, using an srt file. I tried the following: ffmpeg -y -i output.mp4 -vf subtitles=testsrt.srt:force_style='Fontname=...
Anton Varshavsky's user avatar
1 vote
0 answers
176 views

is there a way to change dynamic the water mark text color when using ffmpeg depending on the background color when recording a video file?

This command in the command prompt window is working fine and recording the entire screen: ffmpeg -f gdigrab -framerate 24 -i desktop -preset ultrafast -pix_fmt yuv420p out.mp4 this command prompt ...
Daniel Lip's user avatar
-1 votes
1 answer
749 views

Two video overlays another with FFMPEG

I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command. FFmpeg command (ok): ffmpeg -stream_loop -1 -i background.mp4 -i input.mp4 -i logo....
alexdo's user avatar
  • 145
1 vote
1 answer
66 views

VIdeo overlays another incorrectly - background is over overlay

I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command. FFmpeg command (ok): ffmpeg -stream_loop -1 -i background1080p.mp4 -i input1080p.mp4 ...
alexdo's user avatar
  • 145
-1 votes
2 answers
164 views

How to delete all files in all subdirectories while keeping the biggest file in each subdirectory under Linux? [duplicate]

This is my first question, thank you for allowing me to ask and for reading my question! I am under Ubuntu 22.04 w. GNOME Shell and the bash shell. I have a folder with over 800 subdirectories. Each ...
EazyEz's user avatar
  • 11
0 votes
1 answer
212 views

What is the difference between these 2 FFMPEG commands?

I am trying to take 5 static images named (1,2,3,4 and 5.jpg) and turn them in a 25 second video with each image being 5 seconds long. ffmpeg -y -r 25 -loop 1 -t 5 -i 1.jpg -s 1080x1920 video1.mp4 ...
Andrew Hall's user avatar
2 votes
1 answer
9k views

Using ffmpeg to download m3u8 video in two ways resulting in two vastly different sizes; Why?

I'm trying to download a m3u8 playlist (which contains 1.ts, 2.ts,..., xxx.ts) via ffmpeg. I'm doing it in two different ways: Directly download: ffmpeg -i "https://filelocation/chunked/myfile....
zyxwl2015's user avatar
-1 votes
1 answer
477 views

How can I burn in .ass file and a watermark to a video file using ffmpeg simultaneously?

I want to add subtitles and a watermark to a video using ffmpeg. For now, I'm using Handbrake to burn in the subtitles and later I execute an ffmpeg command to add a watermark from png file. The ...
Candour's user avatar
  • 25
0 votes
0 answers
669 views

combine N_m3u8DL-RE & SubtitleEdit mkvmerge using CMD

How do I combine N_m3u8DL-RE with SubtitleEdit using CMD I want to Download a video file with N_m3u8DL-RE, but before merging, I want to use the SubtitleEdit /convert video.nl.srt srt /...
ArabDz's user avatar
  • 1
0 votes
1 answer
390 views

Where does completed file go by default when merging audio and video files together using ffmpeg?

So I merged an audio and video file together earlier using ffmpeg. I Did a full search on my hardrive for outPutFile.mp4 and it was nonexistant. Now I'm running another, slightly altered command using ...
cadenpolen's user avatar
1 vote
0 answers
173 views

How to get exact timecode splitting using ffmpeg commands

I have a file called ffmpeg.cmd which has inpoints and outpoints. file 'testA.webm' inpoint 00:02:11.032 outpoint 00:02:36.900 file 'testA.webm' inpoint 00:09:06.100 outpoint 00:09:43.799 If I run ...
djsumdog's user avatar
  • 121
1 vote
1 answer
2k views

Is it possible on FFMPEG to send RTSP raw frames to pipe and write video segments by time to the disk?

I'm trying to receive RTSP frames to be processed by OpenCV, via ffmpeg using python. This is ok. However I also need to write this video to disk one video each minute. This last part is the problem. ...
Roberto Alcantara's user avatar
0 votes
0 answers
100 views

FFMPEG request is slow

I need to concatenate images to a video. Images contain black and white pixels, but I need to save quality of them as much as possible with saving space of disk. So, I don't need to use .mov. And ...
EoinKanro's user avatar
1 vote
1 answer
307 views

FFmpeg command not producing desired video duration from image sequence

I have a set of 5 images and I want to use FFmpeg to create a video sequence from them. I am using the following command to achieve this: ffmpeg -pattern_type glob -i '*_0[0-5].png' -r 25 -t 8 -c:v ...
Dhahri Mohamed Amine's user avatar
2 votes
1 answer
763 views

How to map ffmpeg multiple outputs to pipes

I'm working on a transcoder backend to a project that intends to serve static mpeg-dash manifests and files for a frontend player. And I'm trying to figure out how I can get multiple outputs into ...
Killpot's user avatar
  • 31
1 vote
0 answers
445 views

ffmpeg input/output error when using mac system temp file path

I've got an ffmpeg command that is supposed to output a thumbnail for a given video at a resolution of [W]x720. The input videos are uploaded and stored temporarily in the /var/folders directory on OS ...
GROVER.'s user avatar
  • 131
0 votes
1 answer
254 views

Combine 2 FFMPEG commands - 1. Create a video loop and 2. Add track to loop X times / Add track to loop duration of video loop

I have these 2 commands for FFMPEG, but can't work out how to use the output from the first command and link into the 2nd one, and use them as a single process. I have the following: Loop video for ...
James's user avatar
  • 1
0 votes
0 answers
223 views

How to cut 1 video into many different videos with different lengths? ( FFMPEG)

I need to cut a video with a length of several minutes into many different videos, In all but the videos cut from the original video will have different short lengths. what do i need to do? This is ...
alexdo's user avatar
  • 145
0 votes
0 answers
869 views

ffmpeg command into batch command

I was trying to get an command I use and have to apply to batch list of files instead of doing it for each file. Command I use for ffmpeg (has to keep -i and -c) - ffmpeg -i in.ts -c copy out.mp4 How ...
user5894146's user avatar
1 vote
0 answers
918 views

need help for proper commands in libplacebo filter

Before you comment guys, let me ask if libplacebo filter only works with vulkan/cuda and not dxva2? Because i've already seen so many examples how to use the libplacebo with vulkan/cuda and as for me, ...
Jefferson Villasan Josol's user avatar
0 votes
0 answers
710 views

Copy all FFMPEG streams and metadata except the first video stream

I have some "voice memos" that were recorded through the video camera app. They have huge video streams, but I just want the audio. How can I copy all streams via ffmpeg except the first ...
Atomic Tripod's user avatar
1 vote
1 answer
210 views

Split folder of multipage TIFFs into frames and join into movie on MacOS command line

I'm using a FLIR Boson thermal imaging camera, whose 'video' output consists of sequences of 'one-second long' multipage TIFF files. The frame rate is variable, but averages 8.6 fps. So, each TIFF can ...
pajul's user avatar
  • 11
0 votes
0 answers
898 views

ffmpeg output with assumed duration 0 on Android

I noticed that videos generated by FFMPEG have a duration of 0 on Android even when I try a full clone. I tried the following commands, but the only one that had any effect was with -movflags ...
Zano's user avatar
  • 13
1 vote
0 answers
97 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
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
2k views

FFmpeg command line options

I have found a command on this blog which works great to encode videos using H.265/HEVC in an Apple-compatible way: ffmpeg -i input -c:v libx265 -preset fast -crf 28 -tag:v hvc1 -c:a aac -ac 2 -b:a ...
Rocco's user avatar
  • 103
5 votes
1 answer
10k views

How do i convert animated webp to Video?

Goal : convert Webp to mp4 what i have tried : ffmpeg -i filename.webp filename.mp4 it's clearly not the good code. can anyone show me the way it can be with anything like imagemagick, sharp
BENN XII's user avatar
0 votes
1 answer
1k views

ffmpeg adding subtitles with options

Hi I'm having trouble adding options to subtitles: I can only add 1 attribute. ffmpeg -i "video.mp4" -vf 'subtitles=subtitles.srt:force_style=Fontname=Z003,PrimaryColour=&HCCFF0000' -y &...
user1630709's user avatar
0 votes
1 answer
2k views

"Cannot find matching stream" error while using FFMPEG filter_complex to mute selected audio channel

ffmpeg -i stereoaudio.wav -filter_complex "[0:a]atrim=start=0:duration=5[a1];[0:a]atrim=start=5:duration=17,asetpts=PTS-STARTPTS[b2];[b2]pan=stereo|c1=c1[c3];[a1][c3]concat=n=3:v=0:a=1[d4];[0:a]...
AnnaJoyW's user avatar
0 votes
0 answers
510 views

Extracting a video via ffmpeg command line is not precise [duplicate]

I am trying to extract a video clip from an mkv file, but its not accurate. I played my mkv file and noted the point e.g. starting 00:06:20 till 10 seconds. Now I executed a command like this ffmpeg -...
coure2011's user avatar
  • 1,629
1 vote
1 answer
452 views

Fade in/out PNG watermark overlay on video

I have an FFmpeg command in a script that crossfades a main video with an outro and then overlays a semi-transparent PNG watermark on top of it. ffmpeg -y -i "$1" -i "outro.mp4" -i ...
Hashim Aziz's user avatar
0 votes
1 answer
1k views

ffmpeg hls segment name outputting full file path for %03d

i am trying to create a batch video converter for windows to convert some of my mkv media to hls the issue i am having is when i try and get segments name index001.ts / index002.ts it does not work ...
user72261's user avatar
0 votes
1 answer
2k views

Pattern_Type Glob or other *.JPG wildcard input file support for Windows 10?

I am using Windows 10 with "ffmpeg version 4.4-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers built with gcc 10.2.0 (Rev6, Built by MSYS2 project)". I am writing a ...
Sailor Guy's user avatar
0 votes
1 answer
403 views

ffmpeg split JPEG-encoded MOV video into frames without reencoding

I have a MOV video file from an old digital camera where the video stream is just a series of JPEGs. I'm trying to extract those JPEGs without reencoding them (or at least come as close to the ...
Displayname71's user avatar
0 votes
1 answer
460 views

VLC Command Line: --clone-vout-list not working as expected - Open 2 OpenGL Windows

i would like to play a video with VLC on 2 monitors simultaneously. In the command line help the following is described about cloning: Clone video filter (clone) Duplicate your video to multiple ...
DanielK177's user avatar