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
0answers
5 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 ...
0
votes
0answers
16 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 ...
0
votes
0answers
20 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 ...
0
votes
0answers
5 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. ...
0
votes
0answers
30 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 ...
0
votes
1answer
12 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 \ ...
0
votes
1answer
15 views

How do you trim videos in FFMPEG?

I am tried 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 ...
0
votes
0answers
19 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=...
0
votes
0answers
9 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 (...
0
votes
0answers
15 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) ...
0
votes
0answers
19 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)....
0
votes
1answer
20 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/...
0
votes
0answers
17 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 ...
0
votes
0answers
40 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 ...
1
vote
1answer
31 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 ...
0
votes
0answers
17 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 ...
0
votes
0answers
10 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 ("...
0
votes
0answers
60 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), ...
0
votes
1answer
33 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 ...
0
votes
1answer
35 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 ...
0
votes
0answers
11 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:...
0
votes
1answer
24 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:...
0
votes
0answers
21 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 ...
0
votes
1answer
36 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 ...
0
votes
0answers
14 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: ...
0
votes
0answers
15 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 ...
0
votes
0answers
9 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 ...
0
votes
0answers
30 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 ...
0
votes
0answers
10 views

Adobe Premiere Pro exported size and processing time don't look right

I'm fairly noob in video editing and Adobe Premiere, so I'm hoping this is happening because I don't know what I'm doing. The problem is that the exported file is 7x bigger than the input file, when ...
0
votes
1answer
33 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 ...
1
vote
1answer
31 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 ...
0
votes
0answers
9 views

List of arguments for QSV enabled ffmpeg filters such as vp_qsv?

I have a PC running Windows which is QSV capable. I've found the codec and at least one QSV filter which really speed up decoding and encoding AVC (x264) videos. But the experience is extremely ...
0
votes
0answers
15 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-...
0
votes
1answer
40 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?
0
votes
1answer
29 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 ...
0
votes
1answer
45 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 (...
0
votes
0answers
16 views

Endless loop animation using ffmpeg while using only certain frames

I can create an animated gif using the commands below. ffmpeg -i wrist_0001.png -vf palettegen=16 palette.png ffmpeg -i wrist_%04d.png -i palette.png -filter_complex "fps=20,scale=720:-1:flags=...
0
votes
0answers
27 views

is it possible to split open GOP video to smaller segments without frame dropping?

I want to split an open GOP video to smaller MP4 segments , but using Segment Muxer , 3 frames are lost. the GOP size of my video is 15 (M=3 N=15) and I use mpeg2video encoding. is it possible to ...
0
votes
0answers
26 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-...
1
vote
1answer
36 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....
0
votes
0answers
15 views

How can I know if a video file is DASH or HLS?

I'm downloading videos, but some of them are DASH, how can I use ffprobe or ffmpeg to know which are using DASH?
0
votes
0answers
23 views

how to convert a given video file to all possible codec/container format combinations

My semi-smart LCD TV supports USB. I have a couple of video files on my laptop which I want to run on that big LCD TV, through a USB stick. The problem is that when I attach a USB stick containing my ...
0
votes
1answer
21 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 ...
0
votes
0answers
16 views

Process video to match another video's encoding

I think my issue is faced from time to time by several people, but I didn't manage to find a tool for this, so I decided to build one. Elaborating from this answer, I built a simple bash script that ...
0
votes
0answers
48 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?
0
votes
1answer
54 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 ...
0
votes
1answer
17 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 ...
1
vote
1answer
35 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 #...
0
votes
1answer
11 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 ...
0
votes
1answer
82 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 ...

1
2 3 4 5
37