New answers tagged

0 votes

How do unwrap fisheye and overlap fisheye lens with ffmpeg?

The command you are using uses default paramters, which means it assumes that your cameras have FOV=180 and it's perfectly horizontal. After some experiments with this site I found that actual FOV is ...
jumpjack's user avatar
  • 415
0 votes

FFMPEG - Adjust DrawText Based on the Length of the Video

The formula for making a text show up from the buttom screen and disapear on the top in 90 seconds would be: H-(t-0)*(H+th)/90 H = Video Hight (this is the starting point) (t-0) determines the ...
Ricardo Bohner's user avatar
0 votes
Accepted

FFMPEG - How to Merge Three Files - Only Middle One Has Audio

You do not need to do any filtering, or reencoding if all inputs have been encoded using the same parameters. You first extract the audio stream from your main input, then merge the three video inputs ...
Sark's user avatar
  • 402
0 votes

Creating 8K HDR Stillframe AV1 videos?

I guess it would be something like this, scaling the image to 7680 x 4320 (UltraHDR), using a frame rate of 1 frame per second, and the libaom-av1 codec: ffmpeg -loop 1 -r 1 -i input.png -i input.mp3 -...
Ricardo Bohner's user avatar
0 votes

Video to geotagged images using powershell

I can't fully answer your question, but here are the problems related to exiftool. RE: UTF16 output. PowerShell is changing exiftool's output from UTF8 to UTF16 during the shell redirection to the ...
StarGeek's user avatar
  • 1,424
1 vote

How to speedup video with FFmpeg based on timestamps from CSV?

We may set the desired PTS timestamp of each video frame, using setpts filter with elaborated nested if expression. The following answer, is just a "proof of concept", assuming you have the ...
Rotem's user avatar
  • 2,217
0 votes
Accepted

Complex ffmpeg multi-encode/streamcopy/muxing scenario: is this actually doable?

We may use tee demuxer for reusing the encoded aac audio, and use stream mapping, and stream specifiers: ffmpeg -y -c:v h264_qsv -i in.mkv -map 0:v -map 0:v -map 0:a -c:v:0 h264_qsv -profile:v:0 high -...
Rotem's user avatar
  • 2,217
0 votes

Black frames at beginning of video file when file cut

it's about the order of -ss and -t, here's what I figured out # has black frames ffmpeg -i input.MOV -ss 00:00:00 -to 00:00:30 -c copy output1.mp4 # works, no black frame ffmpeg -ss 00:00:00 -to 00:...
Duc Trung Mai's user avatar
0 votes

Poor performance viewing video from USB Video device in VLC

I had the same frame rate problem before, and eventually I solved it by setting the "Video input frame rate" to 30 in "Advanced Options" under "Open Media -> Capture Device&...
martnlau's user avatar
1 vote
Accepted

How to fix ffmpeg concatenated video playback issue?

As commented and documented, for using Concat Demuxer, all the files must have the same streams (same codecs, same time base, etc.), and in your case the time base of the re-encoded part is different. ...
Rotem's user avatar
  • 2,217
0 votes

Split MKV based on Chapters

Improving upon @gabriel_agm's answer, here's my helper function. My ffmpeg uses a colon instead of a dot to separate title:chapter stuff, and outputted the useful info on stderr. I also add subtitle ...
bgStack15's user avatar
  • 2,244
1 vote

FFmpeg zoompan animation results in zig-zag pattern

The zoompans x and y percentage values are applied to the inputs width/height after deducting the zoomed areas width/height. At x = 100%, an input with a 1000 pixel width, at a 4X zoom would place the ...
Sark's user avatar
  • 402
0 votes

How to change the sample rate of audio for all video files in a directory?

Update: I realized -ar 44100 would resample the audio, but I only wanted to re-encode the raw audio data. For that I had to use -af 'asetrate=44100' instead. I've updated the answer to that. But ...
Blacklight MG's user avatar
1 vote

Using ffprobe to get count of audio streams in mp4 file

I usually use either mediainfo or ffmpeg -i ... 2>&1 | grep -e '^\s*Stream\s*#.*\sAudio:' | wc -l EDIT Since ffmpeg outputs to stderr by default, I forgot to put the redirection in - now fixed
Eugen Rieck's user avatar
  • 20.2k
0 votes
Accepted

How can I get a video URL list (e.g. YouTube playlist) as a playlist file (for media players)?

Here's an idea for you - use yt-dlp in a way or another. For example, this command: yt-dlp https://www.youtube.com/playlist?list=PLpeFO20OwBF4q8wyEukQxs5h_ktfIvpcG --skip-download --no-warning --print ...
Destroy666's user avatar
  • 6,598
0 votes

How to extract parts of the international conference video based on spoken language using command line

I wrote a bash script, barely to remove the Chinese part of the video. use openai-whisper to generate subtitle file with English and Chinese timing whisper myvideo -model large-v3 -language Chinese ...
John Paul Qiang Chen's user avatar
0 votes

How to find video files with length less than 30 minutes on windows 10

In the explorer file search box (usually in the right upper corner) enter:Duration: < 18000000000 Where the literal string "Duration" is locale-dependent. The name of the column for "...
lidqy's user avatar
  • 101
0 votes

Why does streaming an MP4 video file from a WordPress site work fine in the browser yet fail when I'm trying to save it to a file?

I know I'm a year or two late to the party here, but I still thought I'd throw this in for people who find this question in the future. I would suggest that you might try fooling around a bit with the ...
Tre Stuges's user avatar
1 vote
Accepted

How to choose correct color space and transfer function with ffplay

The washed out colours are indicative of an HDR to SDR conversion issue. The Color transfer function: SMPTE ST2084 (PQ) indicates an HDR file. It is possible that VLC is correctly detecting the type ...
Mokubai's user avatar
  • 92.3k
0 votes

FFMPEG hardware decoder is much slower than software decoder, why?

I believe that part of the reason why it's slower in your setup is because you're asking the GPU to do the decoding but the CPU to do the encoding. In such a scenario, the video data needs to be ...
rboy's user avatar
  • 340
0 votes

Why does my video from ffmpeg have a variable framerate?

Already answered in comments, but if you look at the "Output #0" sections, you can see that the video stream is marked as a 60 fps stream. The fps= 24 section is a live-updating progress ...
chronospoon's user avatar
0 votes

Chromium won't play mp4

By default, Chromium does not support proprietary codecs (like h.264, aac). Official info: https://www.chromium.org/audio-video So, on macOS, you need to compile Chromium with the proprietary codecs ...
Lindsay-Needs-Sleep's user avatar
2 votes

How to convert multiple .VTT segments to one single .VTT file or subtitle file?

We may create playlist.m3u8 HLS playlist file, and pass it as input to ffmpeg: Create playlist.m3u8 text file with your URLs segments: #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:0 #EXT-X-MEDIA-...
Rotem's user avatar
  • 2,217
1 vote

Compressing many similar large images?

In the hopes other people looking to compress similar images/PNGs and finding their way here via searches: I am not sure how the use case I worked on compare would apply to ops photographs as the link ...
Torque's user avatar
  • 359

Top 50 recent answers are included