Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
7 views

Convert video from 9:16 to 1:1 with blurred box using ffmpeg?

Original video resolution is 720:1280. I want copy original video, scale to 1080:1080 and blur. After again copy original video and scale to 608:1080. Finaly move blurred to 1080:1080 box and move ...
0
votes
3answers
27 views

How to add freeze frame to a video using ffmpeg

I want to freeze some frames in a video so that it gives a buffering video type look. Also the audio should freeze with the video.
0
votes
0answers
27 views

Capture original timecode with ffmpeg from decklink

I am trying to capture tape content via a BlackMagic Decklink Quad 2, using ffmpeg. I believe the timecode is passed on through the Decklink because when capturing manually with MediaExpres the ...
0
votes
1answer
43 views

Convert video with ffmpeg to have the same quality

I want to make some present for my grandma. And prepare some video. Unfortunately here video player is old and could not read some file formats. She is not at home now, so I don't know which player ...
1
vote
1answer
20 views

How to use magicyuv & utvideo codec with ffmpeg

I would like to know how to use magicyuv & utvideo codec with ffmpeg
0
votes
0answers
8 views

Encoding with ffmpeg on ARM device from dvd to x264 preserving interlacing

I have a Pine64, with AllWinner A64 processor, quad-core 1.2GHz and 2GB DDR3 Ram. I have installed ffmpeg on armbian and I still make encodings with good quality and reasonable time, in front of power ...
1
vote
0answers
14 views

Star Trek Continues: ffmeg dvdsub: overlapping subtitles

So I've downloaded the free fan-created Star Trek Continues Blue-Ray ISO for Episodes 1-3 and I'm trying to convert the FHD 1920x1080 to SD 960x540 to be able to watch on my phone: nice --adjustment=...
2
votes
1answer
1k views

ffmpeg hardcoded subtitles from the top, bigger, with thicker stroke, on a dark background

I found this page (I can't comment or answer there so here's a new question): Render srt subtitles to video? with this line which works fine: ffmpeg -i input.mp4 -filter:v subtitles=subtitle.srt -c:...
0
votes
1answer
32 views

understanding an FFmpeg command (blurring a video)

I searched for a FFmpeg command to blur part of a video, and found the following: ffmpeg -i short.mp4 -filter_complex "[0:v]split=2[v0][v1]; [v0]crop=200:200:60:30,boxblur=10[fg]; ...
46
votes
4answers
100k views

Repeat/loop Input Video with ffmpeg?

I just want to loop a mp4 video with ffmpeg and keep the current settings and codec. For example if input.mp4 is 0:10 long, and I would want to loop it 4 times so output.mp4 is 0:40 long, how could I ...
0
votes
0answers
18 views

Lossless way to fix aspect ratio in VOB?

I have some old videos that were converted from a camcorder to DVD years ago. On one of the DVD's, the aspect ratio is incorrect. Most DVD players and applications seem to ignore this and play the ...
4
votes
3answers
3k views

ffmpeg: preserve timecode when converting mp4 to mov

I have .mp4 files created by a Sony A7s camera. They're using the XAVC S codec. I'm converting them to .mov using the command below. The original files have a timecode but that is not present in the ...
2
votes
1answer
19 views

What's the difference between “visually lossless” and real lossless and what does this mean for future encodes?

In FFmpeg's H.264 Video Encoding Guide we are told: Tip: If you're looking for an output that is roughly "visually lossless" but not technically lossless, use a -crf value of around 17 or 18 (you'...
0
votes
0answers
20 views

ffmpeg - Live hardware capture dropping frames and/or audio pops

I'm attempting to capture 1920x1080 at 60 FPS using a Magewell HDMI capture. If I preview it with ffplay it looks just fine, however when using ffmpeg to record I get frame drops and minor audio ...
1
vote
1answer
19 views

How to add zoom transition effects using FFmpeg to a variable number of images?

How can I add add zoom transition effects using FFmpeg to a variable number of images? I am able to create video from a variable number of images but I am not sure how to add zoom in and out ...
0
votes
1answer
136 views

How to take multiple inputs with specific trim times to one output, single command ffmpeg

I'm trying to make a single ffmpeg command that will take multiple inputs, seek specific times within them, then output to a single file. For example, I have inputA.avi and inputB.avi and each is 1 ...
-1
votes
1answer
521 views

How convert avi and wmv to mp4 for html video tag?

I want to convert avi and wmv to mp4 for web and I use below code: ffmpeg -I input.wmv output.mp4 Is that enough?
-4
votes
0answers
29 views

Download a blocked video MP4 720p [closed]

Hello to all Readers/Experts, ---Question: how to download videos like this one? //tvthek.orf.at/profile/Archiv/7648449/Neues-beim-Wiener-Sommernachtskonzert/13919349/Neues-beim-Wiener-...
4
votes
1answer
598 views

Largest input image size when encoding a video?

I got a bunch of really large 16 bit videos, approaching 65535×65535 pixels in size. These are essentially high quality timelapse panoramas. I want to convert them to a 7680×4320 movie (8K UHD, 8 bit)....
1
vote
1answer
33 views

Burn .ass subtitle onto .webm with no loss of quality

I'm trying to burn .ass subtitles onto a .webm, using ffmpeg -i input.webm -vf ass=subtitles.ass output.webm but it shrinks from like 150MB to 9MB. How do I add the subtitles without losing ...
1
vote
1answer
44 views

ffmpeg - blend video with images

So I want to create videos that had a red overlay, effect and I assume that blend is the right options filter for this. Here my command : ffmpeg -i dogs.mp4 -i red.jpg -filter_complex '[1:v]scale=...
5
votes
2answers
4k views

Removing MP4 encoding information

Is it possible to remove certain information form a MP4 file? Specifically things like tagging and encoding dates, Writing library and application, Encoding settings... No client needs to know when I ...
0
votes
1answer
14 views

Identify H.265 from the OSX Command Line?

Can anyone suggest a way to tell the difference, from the OSX command line, between .mkv files encoded with H.265 from those encoded with H.264? Plex H.265 streams viewed from some devices (e.g. LG ...
0
votes
2answers
43 views

Concatenating in sync MP4 (H264+PCM instead of AAC) from a Sony 2018 Camera

I downloaded these files (at max resolution 4K, that is important), in this order: https://vimeo.com/195782736 https://vimeo.com/196725716 https://vimeo.com/195776765 https://vimeo.com/196651176 ...
0
votes
0answers
12 views

ffmpeg remove 1 of 2 audio tracks without video reencode

I'm trying to get rid of the 1st of two audio tracks in an mp4 file. But each time I run: ffmpeg -i test.mp4 -map 0:0 -map 0:2 -acodec copy -vcodec copy new_file.mp4 ffmpeg seems to reencode the ...
1
vote
2answers
6k views

VLC 3.0 (Vetinari): Unable to play 360 videos

I installed the last VLC version (3.0.0 (Vetinari) on Windows 7 64 bits) which supports 360 video playback. In order to do some tests I downloaded the following 360 video from Vimeo: https://vimeo....
12
votes
1answer
9k views

ffmpeg: explicitly tag h.264 as bt.601, rather than leaving unspecified?

I want to tag video as explicitly bt.601, rather than "unspecified". I know players typically choose bt.601 as the default for videos less than 1280 pixels wide, but I want to make it explicit that ...
0
votes
1answer
11 views

What is the CRF range for VP9 conversion using ffmpeg?

My Problem I am converting a .mov (h264) file to VP9 / WebM using ffmpeg, and I don't know what the CRF numbers mean. What Have I Tried I have read this ffmpeg manual about 2-pass conversion, which ...
0
votes
1answer
15 views

What is the difference between VP9 and ​WebM?

The ffmpeg manual states that: libvpx-vp9 is the VP9 video encoder for ​WebM, an open, royalty-free media file format. What is the difference between the VP9 and WebM?
0
votes
0answers
25 views

h264 Video && G711A with FFMPEG

I'm currently trying to convert an audio and video stream to something visible inside a player such as VLC. I get the video through TCP (I separate protocol headers from the manufacturer) and I have ...
0
votes
1answer
91 views

FFMPEG filters missing after upgrade to 4.0

I built a statically linked binary of FFMPEG-3.4.4 from source. When I attempt to list the available filters in this binary, I get the following output. % ffmpeg -filters ffmpeg version 3.4.4 ...
0
votes
2answers
129 views

Configure CQP (CRF) for h264_nvenc

Encoding on CPU can be done via: ffmpeg -i input.mp4 -vcodec h264 -crf 23 -acodec copy h264.mp4 GPU's alternative for the codec is h264_nvenc. How can I pass the same options to it? I googled and ...
0
votes
1answer
46 views

ffmpeg side by side video

Im trying to get two 1080p videos side by side, Wanting the two scaled to 720p and combined both as 1080p ive tried using the below code . it works fine when using the lower resolution but when i ...
0
votes
1answer
171 views

“The sample rate of the two audio tracks is different”

I'm trying to merge a few video files through mkvmerge but I get the following error after running mkvmerge -o '/home/videos/marged/new.mp4' '/home/videos/intro.mp4' \+ 'old.mp4' \+ '/home/videos/...
0
votes
0answers
25 views

Reencode MKV (from DVD - Mpeg2) to h264

I have some old DVD that I already converted using MakeMKV, they seems to have the original mpeg stream, so I want to do this: Reencode the video stream to the more recommended settings for old-DVD ...
0
votes
1answer
85 views

How to decrypt DASH mp4protection with ffmpeg

I can watch the live stream video from android device but can't watch on Windows. Is it possible to download and decrypt it with FFMPEG ? the sample playlist <?xml version="1.0" encoding="UTF-8"?...
2
votes
1answer
816 views

Convert video to 10 bit images

I have a video with these info: Format : MKV Codec : HEVC (h.265) Bit depth : 10 bits How can I get 10-bit frame grabs from it using ffmpeg?
1
vote
1answer
3k views

How to automatically enrich a video stream with dynamic overlay (text, images, …)

In my company, we are currently looking for a solution to enrich a given video stream (which is being broadcasted via RTMP) from a remote webcam with dynamic information, such as current date/time, ...
1
vote
1answer
137 views

Create a splitscreen video from two videos of different lengths with delay

I want to create a splitscreen video from two video clips. Left one is of duration 70seconds. Right one is of duration 80seconds. In the splitscreen video, the right video should start first. Left ...
0
votes
1answer
60 views

(Efficiently) Extract multiple clips from a long video, possibly with ffmpeg

I've got a long video (2 hours at high resolution). We might as well assume it's in mp4 format, because it's in an AVCHD, and I'll have to extract and convert it to mp4 anyhow. I'd like to extract ...
0
votes
0answers
20 views

Blurring based on colour (to help compression)

I am taking video of rowers on a river and stabilise the video afterwards using ffmpeg. Similar to Video compression- how to prioritize one area over another? I'd like to optimise the compression. The ...
1
vote
1answer
39 views

Problem setting different framerates with ffmpeg map option

I am facing a problem to set video streams framerates with FFmpeg when using the map option. Here is what I want to do: Given an input video file of 60fps, I want to generate an output file ...
0
votes
1answer
183 views

ffmpeg concat creating time jumps

I am creating timelapse from PNG single frames. Using the first and last frame as stills I create header and trailer with text and fade filter. In the end I use concat to put all parts together. What ...
0
votes
0answers
13 views

Receiving libx264 feed and viewing it through guvcview using v4l2

I am attempting to set up a low-cost home security system. At one end of my house I have a Raspberry Pi connected to a Logitech C920 webcam running the following command: ffmpeg -re -i /dev/video0 -...
0
votes
0answers
14 views

How drop still frames with timestamp ffmpeg

I have a ffmpeg command that allows me to drop duplicate frames and speed up the video and works well. I use it with hundreds of video recordings from a surveillance ip camera that does not have ...
0
votes
1answer
23 views

FFMPEG - Creating script to convert a video into audio file (or anything related really) + diverses questions

Good day everyone. Im making my babysteps into ffmpeg, and so far this tool has been really helpfull. Anyway. Im currently using this line as a convertion basis : ffmpeg -i name.mov -c:v libx264 ...
0
votes
1answer
26 views

Call FFmpeg filter from source code

I'm trying to find out how to call a FFmpeg filter (freezedetect) from within FFmpeg's source code. I see the filter's file is under libavfilter/vf_freezedetect.c, but I don't know how to use that ...
1
vote
1answer
1k views

ffmpeg rtsp over http not working

I put this conf on ffserver HTTPPort 1234 RTSPPort 1235 <Stream live.h264> Format rtp Feed feed1.ffm VideoCodec libx264 VideoFrameRate 24 VideoBitRate 100 VideoSize 480x272 AVOptionVideo flags ...
2
votes
1answer
621 views

ffmpeg: joining videos leads to “time skips” during playback

I hope that someone can help me. I have the following two videos: $ ffprobe 0.ts ffprobe version 3.2.4 Copyright (c) 2007-2017 the FFmpeg developers built with gcc 6.3.1 (GCC) 20170109 ...
1
vote
1answer
1k views

HLS to RTP multicast FFmpeg

I want to transmit HLS stream to RTP multicast via FFmpeg and use the following command: ffmpeg -re -i HLSstream -c copy -f rtp_mpegts rtp://ip:port But the output source сrumbles sometimes (I ...