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

What is a good way to upscale 3D images without comprising the aspect ratio?

What is a good method for upscaling 3D videos and images in video editing programs such as Adobe Premire and Power Director or frontends like FFMPEG and AViSynth? The method that I mostly used to me ...
user avatar
  • 51
0 votes
0 answers
106 views

ffmpeg video command still with black screen

I am using a screen capture component in delphi that I will use in my program, by enabling the recording option with the command ffmpegLGPL.exe -re -i% PIPE% -c: v h264 -threads 8 -profile: v baseline ...
user avatar
0 votes
0 answers
104 views

How can I configure ffmpeg to add black bars instead of stretching when input aspect ratio doesn't match

I'm trying to add a 16:9 intro to videos for my site using ffmpeg. So far I have the following filter which I found here: ffmpeg -i intro.mp4 -i input.mp4 -filter_complex "[0][1]scale2ref=iw:ih[...
user avatar
  • 1
0 votes
1 answer
278 views

ffmpeg frame rate

I have several images and I am reproducing them in 78.7ms, I am creating like the 80s video effect. But, I am unable to find the correct ms, and those images with the original videos are unsynced. I ...
user avatar
0 votes
0 answers
37 views

How to create init.mp4 with headers only with ffmpeg hls muxer?

I'm trying to implement an utility to capture live stream from an IP-camera to disk in HLS structure. I would prefer fmp4 over ts. To play stream from archive, the utility would regenerate m3u8 for ...
user avatar
  • 1
0 votes
1 answer
761 views

How to obtain the correct framerate with ffmpeg image2pipe format?

I have 40 .jpg in my dir folder and want to create a video at 20fps from them. I've tried the following command: find dir/ -iname '*.jpg' | xargs cat | ffmpeg -f image2pipe -framerate 20 -i - -s ...
user avatar
0 votes
0 answers
37 views

How does the bitrate option affect 2-pass h264 encoding?

I am trying to understand how 2-pass (h264) encoding works in more detail than "first pass analyzes, second pass encodes". Most tutorials I found online use the -b:v option on the first and ...
user avatar
  • 101
0 votes
0 answers
161 views

Python opencv subprocess write return broken pipe

I want to read an rtsp video source, add overlay text and push it to the RTMP endpoint.I am using Videocapture to read the video source and python subprocess to write the frames back to RTMP endpoint. ...
user avatar
  • 101
1 vote
0 answers
352 views

How do I make ffmpeg create video that retains transparent background from *.png images with transparent background?

I am a researcher, trying to string together a bunch of png files of a protein to a short video. I have all the png images with transparent backgrounds, but I can't seem to get this in the video. I ...
user avatar
  • 11
0 votes
1 answer
505 views

ffmpeg to cut subtitle file in sync with the cut video

I managed to cut the video and keep subtitle in sync by embedding the subtitles in the video: $ ffmpeg -i sample-mp4-file.mp4 -hide_banner \ -vf subtitles=subtitles.srt -ss 0:30:00 -t 1:33:31 \ ...
user avatar
  • 115
3 votes
1 answer
77 views

How do you trim videos in FFMPEG?

I am trying to trim my videos in Virtualdub but I also wanted to make a stream copy of the same video that I am trimming. Unfortunately, Virtualdub does not always give me the results I want as it is ...
user avatar
  • 51
1 vote
0 answers
153 views

Decode Multi-Layer HEVC

I'm trying to decode an HEVC/H.265+ rtsp stream to an image using ffmpeg as follows: ffmpeg -rtsp_transport tcp -stimeout 10000000 -i 'rtsp://user:passwd@url:port/Streaming/tracks/101?starttime=...
user avatar
  • 111
0 votes
0 answers
122 views

ffmpeg get Thread message queue blocking after hours

I'm using ffmpeg to record Xvfb and pulse audio. After 1h 30mins, it stopped and show this error [pulse @ 0x3406240] Thread message queue blocking; consider raising the thread_queue_size option (...
user avatar
  • 101
0 votes
0 answers
54 views

Video/audio unsynced after transcoding live rtmp video translation

Currently, I'm trying to create a live streaming service for internal purposes of my company; The scenario of work is pretty simple: We are receiving the RTMP stream from the user(over the internet) ...
user avatar
0 votes
0 answers
67 views

Removal of select subtitle tracks and audio tracks from mkv file in batch

My problem is that I have 2 subtitle tracks, one is named "English signs and songs" and another is called "English full". I also have English and Japanese audio tracks (dual audio)....
user avatar
0 votes
1 answer
49 views

ffmpeg libx264rgb error

When i was using ffmpeg i use libx264rgb to convert videos. But when I converted a video there was a error. I will put you a video so that you can see what happened. Original: https://archive.org/...
user avatar
0 votes
0 answers
37 views

ffmpeg stable for only few minute then start eating memory and cpu

I'm trying to record a website to video at 1080p. Here are my steps I started a Xvfb screen at 1920x1080 and run chrome in it. I went to an Youtube video. Start ffmpeg to record this screen I ...
user avatar
  • 101
0 votes
1 answer
1k views

How to force ffmpeg download live m3u8 from the first available segment?

When I use ffmpeg straight forward like this: ffmpeg -i 'playlist.m3u8' -c copy out.mp4 it searches for current segment (or maybe the last one) and drops all previous. I know that live playlist is a ...
user avatar
2 votes
1 answer
226 views

Using ffmpeg to strip image based subtitles

Is it possible to remove only image based subtitles using ffmpeg? I know that you can manually select/exclude streams using -map, however I'm trying to automate this process, and the input files have ...
user avatar
0 votes
0 answers
48 views

How to record two windows at once using ffmpeg?

I'm currently using this code: ffmpeg -f gdigrab -framerate 30 -i title="Chrome" -b:v 3M output.flv To capture a specific window title. Would like to ask how I could also capture a second ...
user avatar
  • 1
0 votes
0 answers
15 views

FFMPEG Audio Stream lengths

Ill make this as quick as possible. I recorded with obs, used ffmpeg to convert from .mkv to .mp4 with 3 audio tracks in .aac Command: @echo off & setlocal enabledelayedexpansion for %%v in ("...
user avatar
0 votes
0 answers
350 views

ffmpeg: copy an audio track and convert another in the same video file

After trying to find a solution for this for about two hours now I have to ask here or I'm going mad. I have a video with these tracks: Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), ...
user avatar
0 votes
1 answer
873 views

Overlay transparent image (png) over video (mp4) with ffpmeg?

We would like to overlay an image throughout the whole video file we have. We no longer have access to the original source, so need to modify the video we have. The current video is in MP4 format. The ...
user avatar
  • 101
0 votes
1 answer
103 views

ffmpeg and ffprobe existing library or an add-on, pros/cons of building one myself

I work with video creation, animation, or fix video elements for several broadcasters in my area. My pipeline includes ffmpeg suite of libraries, and I have written one plugin specifically for ffmpeg ...
user avatar
0 votes
0 answers
150 views

ffmpeg aborts streaming to SRT when client stops playing

I'm using ffmpeg to stream using the SRT protocol, with for example this command: ffmpeg -re -f lavfi -i testsrc \ -c:v libx264 -g 25 -preset veryfast -tune zerolatency -r 25 \ -f mpegts "srt:...
user avatar
  • 527
0 votes
1 answer
50 views

Put two or more images on video

According this I try to put two pictures on video ffmpeg -i video.mp4 -i photo01.jpg -i photo02.jpg -filter_complex "[0:v][1:v] overlay=25:25:enable='between(t,10,20)';[0:v][2:v] overlay=25:25:...
user avatar
0 votes
0 answers
158 views

How can I trim an MKV video of incorrect length without re-encoding or losing any of its tracks?

I have a handful of MKV videos which claim to be a few seconds longer than they actually are. When played in VLC, they simply stop abruptly when they get to the actual end of the video. This would be ...
user avatar
0 votes
1 answer
83 views

Bulk re-muxing/re-encoding with ffmpeg in multiple folders

I'm quite new to the world of FFmpeg and video editing tools, but I essentially need to change the hash of a large set of videos that are organized in folders and subfolders and the easiest way I've ...
user avatar
0 votes
0 answers
32 views

Image becomes transparent on downscaling with ffmpeg

This is the original image of 200x200 On downscaling the image to 100x100. There is a semi transparent shadow near the lines and some pixels are not completely opaque. The command used for scaling: ...
user avatar
0 votes
0 answers
38 views

How to mux (or reencode) files from lossless avi to mp4 or mkv using the current FFMPEG?

Exactly what it says on the title, how do you mux avi files that utilize lossless codecs such as Lagarith, Huffyuy, FFV1, etc. to mp4 using FFMPEG? Or do you need to reencode the files as opposed to ...
user avatar
  • 51
0 votes
0 answers
21 views

Virtualdub deshaker filter text output?

As deshaker filter can't manage 360 videos, I am trying to create my own video stabilizer for my 360 videos, following a suggestion I read around: analyze a small area of the whole equirectangular ...
user avatar
  • 101
0 votes
0 answers
119 views

ffmpeg -c copy vs -copyts vs -copytb etc & similar options? What's the overlap, differences, significances, pros cons, how, why & when TO/ NOT TO use?

ffmpeg -c copy vs -copyts vs -copytb etc & similar options? What's the overlap, differences, significances, pros cons, how, why & when TO or NOT TO use? ---------------------------- I am new ...
user avatar
  • 159
0 votes
1 answer
102 views

ffmpeg best parameteres for fastest compression on FullHD mp4?

I need to compress a bunch of FullHD(1920x1080, 3Gb, mp4) videos, each ~2 hrs long. Some loss of quality is okay as is the lower resolution. I'm shooting for a 500Mb output video in ~10 min processing ...
user avatar
1 vote
1 answer
157 views

FFMPEG Extract Front Centre Channel as an audio track

I have an MKV video file with 5.1 channel audio. I want to use the third channel (FC) as AAC Audio Track 1 (with language label Malayalam), the whole audio file copied as Audio Track 2 (also with ...
user avatar
  • 25
0 votes
0 answers
16 views

ffmpeg - sweeping opacity

I have two videos of 1 minute each one. I would like to start the second video at the 50 seconds of the first one. Then I would like to decrease the opacity of the first video from 100% to 0 in the 50-...
user avatar
0 votes
1 answer
164 views

Join video-file m4v and audio file m4a. to make a mp4?

What is best way, to join a Video-Only file, .m4v with m4a audio file, and output as mp4 Want to join them, without losing original quality, both file have same time length. any good software.etc?
user avatar
  • 3
0 votes
1 answer
85 views

Hue Cycle .gif files with ffmpeg as percentage of duration

Suppose I have a set of 1000 .gif files, each of different durations, and I want to cycle the hue (hue as in the HLS color space) of each .gif file once over its duration. So, for example, at the ...
user avatar
1 vote
1 answer
226 views

Need to concatenate several MP4 from Garmin dashcam with telemetry

I have a Garmin 66W dashcam for my work (street mapping surveyor) which produces several 1min. MP4 videos of my journey (60 min. = 60 videos). All these videos have telemetry data on it as metadata (...
user avatar
0 votes
0 answers
57 views

ffmpeg libx264 core 157 vs core 164

For a while I have been using a build of ffmpeg from 2019: ffmpeg version N-94150-g231d0c819f Copyright (c) 2000-2019 the FFmpeg developers built with gcc 9.1.1 (GCC) 20190621 configuration: --enable-...
user avatar
1 vote
1 answer
277 views

Using ffprobe to detect black frames outputs duplicate results

I'm using ffprobe to detect black frames of a video. However, the output produces duplicate entries for each black_start and black_end. Looking for help in figuring out why it duplicates these results....
user avatar
2 votes
1 answer
201 views

ffmpeg scale, force multiple of 2

I am using ffmpeg to scale video files to fit within a size of 1280:720, maintaining aspect ratio, using the below commands. This works most of the time, but every now and then a video with a weird ...
user avatar
  • 289
0 votes
0 answers
204 views

How to add black bars to top and bottom for one h264 video with FFmpeg without re-encoding?

I want to add a 22 pixel horizontal black bar to the top and bottom without re-encoding. I know it is possible to crop the black bars without re-encoding, but also to add them?
user avatar
  • 1
0 votes
1 answer
175 views

How to crop just 2 pixels without re-encoding (H264 video)?

I just want to crop 2 pixels (Top) to get identical black bars (now is 138 TOP and 140 BOTTOM) but without re-encoding. I think it is possible with FFmpeg but I'm not sure. I want to do this with one ...
user avatar
  • 1
0 votes
1 answer
102 views

What x264 encoder is better for upscaling pixel art? Is it x264 8bit or 10bit?

I mostly use Virtualdub2 to upscale my videos (although I am looking for other methods) via two resize filters, Nearest Neighbor and Lanzcos3. Recently I am looking at the x264 encoder to encode my ...
user avatar
  • 51
2 votes
1 answer
254 views

How to get VLC like screen recording performance with FFmpeg?

I had initially used VLC to record the screen of computer using the following script: /Applications/VLC.app/Contents/MacOS/VLC -I rc screen:// --sout-keep --screen-fps=7.0 --screen-index=0 --sout #...
user avatar
  • 123
0 votes
1 answer
59 views

FFMPEG to make Quicktime reference MOV file from ProRes MOV source

I'm trying to figure out how to use FFMPEG to make a reference MOV from a ProRes MOV source. I've found commands that will take reference file and make a rendered ProRes MOV file ffmpeg -enable_drefs ...
user avatar
0 votes
1 answer
518 views

How to “re-interlace” a video? How to convert a naïvely deinterlaced 480p video back to 480i?

I have a 480p video that was naïvely created from a 480i original and had no deinterlacing applied. The resulting format is 480p25. Combing is visible and I would like to convert it back to 480i50, so ...
user avatar
2 votes
0 answers
55 views

Trouble combining audio and video streams

I have two streams, one audio and the other video. I'm trying to combine them using this command: ffmpeg -y -i audio.m3u8 -i video.m3u8 -c copy Video.mp4 I found this syntax here: https://video....
user avatar
  • 123
1 vote
1 answer
369 views

FFMPEG fails on pipe to pipe video decoding

I'm trying to decode a video from raw bytes using ffmpeg -i pipe: -f rawvideo -pix_fmt bgr24 -an -sn pipe:, while the command exits with code 0, the stdout is empty and stderr contains the following ...
user avatar
0 votes
0 answers
39 views

How do you batch resizes of Genesis videos in FFMPEG?

I am trying to a create 4:3 video upscale encodes with Sega Genesis videos that are usually around 320 x 224 using FFMPEG. While I had been advised to use FFMPEG (and AVISynth) in the past, it was ...
user avatar
  • 51

1
3 4
5
6 7
39