Questions tagged [ffmpeg]

Media tool with support for multiple codecs, filters, and containers. Include your actual command and the complete console output when asking questions involving FFmpeg tools. An easy way to do this is by adding `-report` to your command and pasting the contents of the logfile generated. For help with CLI use only of ff* binaries - ffmpeg, ffprobe, ffplay. For help with API usage, post on Stack Overflow.

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

Translate Handbrake preset into FFMPEG preset

Is there a good way to translate the following Handbrake preset code into a FFMPEG preset? I've not found any reliable sources for how to configure the preset for FFMPEG. { "PresetList": [ { ...
0 votes
0 answers
9 views

Frame count mismatch after generating resized proxy file with movflags option

I am using FFMpeg to generate a down-sized proxy video for downstream processing. I am piping the video into FFMpeg as a stream and piping the resulting proxy video directly back to the calling ...
1 vote
0 answers
10 views

Using FFMPEG to find the coordinates of the rightmost filled pixel in a png with transparency

Let's say I want to watermark several photos like this. A sample picture I will have several pictures with different bottom-most-right-most non-transparent pixel. The marked coordinate is what I need ...
0 votes
0 answers
8 views

VLC: network stream over RTSP: can I use more aggressive buffering?

I can watch my RTSP stream with VLC almost perfectly. The stream is live, transcoded from h264 to h265 by ffmpeg. My only concern is that the stream is occasionally (depends on many factors, but at ...
  • 297
0 votes
0 answers
14 views

Trying to zoom into a video via conf

I am running a docker container that is converting an RTSP stream to MJPG via an ffmpeg. I am just trying to perform a 2x zoom into the video feed that I have. Googling shows that I can run my command ...
0 votes
0 answers
11 views

I've built ffmpeg, but QSV seems broken on Ivy Bridge

I have built ffmpeg from source, based on this tutorial. I had to modify it a bit, due to having an old i7 CPU and ffmpeg couldn't initialize the decoder, and this thread states "Intel-Media-...
  • 297
0 votes
0 answers
13 views

Transcode with FFMPEG: H264 -> H265 [duplicate]

I need to transcode a live stream (encoded in h264) to h265 with ffmpeg. Unfortunately my hardware is not able to encode H265 by hardware (but can decode H264). Currently I'm using: ffmpeg -re -i &...
  • 297
0 votes
0 answers
26 views

ffmpeg -stream_loop -1 not working on hls input

Im running this command to re-stream an hls to my rtmp server. ffmpeg -stream_loop -1 -fflags +igndts -hide_banner -re -i playlist_main2_c.m3u8 -c copy -f flv -flvflags no_duration_filesize rtmp:******...
0 votes
0 answers
20 views

FFMPEG loop does not exit

When encoding a stream using -filter_complex loop=2:50:0 I expect a video containing the first 50 frames twice. However I end up with a video stream containing 2 loops, followed by the rest of the ...
0 votes
0 answers
23 views

Extract only video from file using FFMPEG

I have an mp4 file named "input.mp4" and I need to extract only the video stream into another mp4 file, without re-encoding. How can I do that? I found a way to extract the audio stream but ...
  • 619
0 votes
1 answer
10 views

FFMPEG Specify Local Address for SDP

I have a network of AES67 devices that use multicast to communicate in a broadcast environment. I'm running FFMPEG on a machine with two NICs, one dedicated to the AES67 network and one facing the ...
1 vote
0 answers
30 views

FFMPEG combining filter_complex and realtime processing

I am having trouble using both options. The goal is to use the loop filter to stream part of a video. This is the test command I've been running. ffmpeg.exe -re -i .\input.mkv -c:v libx264 -preset ...
1 vote
0 answers
20 views

ffmpeg subtitles does not copy text, only timestamps when converting ass to srt

I've been trying to convert an mkv to mp4 without loosing subtitles, however nothing has worked so far. I've narrowed it down to some sort of bug (I think). I can extract the subtitles from the mkv to ...
  • 21
0 votes
1 answer
27 views

How to copy audio & video streams without re-encoding in GStreamer?

In ffmpeg you can use "-c:a copy -c:v copy" to copy audio & video streams without re-encoding the output file, this is the way if you want to make little details in shorter time, like ...
user avatar
1 vote
0 answers
19 views

FFmpeg freezes the computer halfway through encoding

This is the command I am using: for i in *.mp4; do ffmpeg -i "$i" -map_metadata -1 -c:v libvpx-vp9 -c:a libopus -crf 19 "${i%.*}.webm"; done It was running fine for a while, it got ...
  • 11
-1 votes
1 answer
23 views

Script to Find and Resample Audio via FFMPEG Fails on Files with double quotes

Why does this script explode when file names contain double quotation marks? for i in **/*.flac; do echo "$i"; done | parallel -j+0 --eta --joblog /tmp/parallel.log --progress --bar --...
0 votes
1 answer
26 views

FFMPEG 3 video Concat / Overlay

I have been getting to grips with FFMPEG for the last few days...so please excuse my lack of knowledge. It's very much early days. I need to join 3 video elements together with one of the videos ...
  • 1
-1 votes
0 answers
24 views

Does FFMPEG have an Autobalance filter?

A common issue I'm sure :) . Many movies have dark scenes that are unwatchable unless you turn your TV's brightness WAY up. I'm presently using -vf normalize=blackpt=black:whitept=white:smoothing=...
1 vote
1 answer
31 views

Unable to find a suitable output format for 'copy' copy: Invalid argument - ffmpeg Error

I'm trying to get the video and first voice channel with converted AAC. Also trying to add a subtitle. The command I've used is: ffmpeg -i yourmkv.mkv -i yoursubtitles.srt -map 0:v -map 0:a -map 1:s -...
  • 493
0 votes
0 answers
70 views

Getting av_interleaved_write_frame(): Broken Pipe after a while

I'm getting "av_interleaved_write_frame(): Broken pipe" every time I try to stream WITH audio, no matter the input source. The error does not come up instantly, but rather sporadically. I ...
  • 1
0 votes
1 answer
29 views

FFMPEG and Powershell Script not working (worked in the past)

I had to reinstall windows, now I'm trying to get it working again with no luck. The Script is a .ts to .mp4 batch converter, when I set it up the first time, I included the link at the top for ...
  • 21
3 votes
1 answer
38 views

On my Intel Core i9-12900K only the efficient cores are executed with FFMPEG

On my Intel Core i9-12900K only the efficient cores are executed with FFMPEG (see picture). What could be the reason for this and how can I change it? Screenshot System Utilization with FFMPEG. Thank ...
  • 31
0 votes
0 answers
25 views

How do I get "shadowplay" level compression and quality?

I'm trying to record gameplay, break the video into sections, speed some of them, and concat it back together for upload. The problem is compression/quality. Using Shadowplay, I get good quality and ...
  • 1
0 votes
0 answers
12 views

Rebuild .m4a file with ffmpeg

I have a couple of corrupt m4a file that I'd like to try to repair by rebuilding the container, so I thought ffmpeg could do that easily. However, when I run this, even on a valid file, I get an error:...
  • 191
0 votes
2 answers
75 views

How to improve FFmpeg performance on an older setup when scaling images

I'm running Debian GNU/Linux 11 (bullseye) x86_64 on an HP Compaq 8000 Elite CMT PC and it has an old CPU (Intel Core 2 Duo E8400 (2) @ 3.000GHz) and a GPU (GeForce GT 730) that doesn't support video ...
  • 311
0 votes
0 answers
20 views

How to properly reencode videos for YouTube shorts with FFMPEG

I have tried many encoding and everytime YouTube app is saying unable to preview video when I try to upload my video as YouTube shorts The app is able to see tiktok generated output file, however I ...
0 votes
0 answers
20 views

How to check if my video card run ffmpeg?

How can I discover if my video card suports and ffmpeg h265 encode? exist any comand to check it?
  • 113
0 votes
0 answers
20 views

How do I speed up a video to a specific time for instance 'n' seconds in FFMPEG?

When using python moviepy library, you can speedup a video to a specific time using the below command: video.fx(vfx.speedx, final_duration=audio_duration) Is there a way we can achieve the same using ...
0 votes
1 answer
37 views

ffmpeg and PowerShell - trim video with text file

I have a folder with a lot of videos that need to be trimmed at the beginning and I also have a text file with the time where the video must start: Video_001.mxf Video_001.txt Video_002.mxf Video_002....
  • 15
0 votes
0 answers
19 views

FFMPEG command to get a generally correct mpegts output

I'm new to ffmpeg. Consider there are many input sources that we don't know exactly what type they are. Inputs may vary. But we want always the output as mpegts (-f mpegts pipe:1). What command is the ...
0 votes
0 answers
7 views

ffmpeg .3gp file from Twilio (MMS) to .mp4 audio plays too fast or broken

Trying to transcode a .3gp file that was received from Twilio into .mp4. Transcoding works, but the audio is severely broken. Almost like it is playing back too fast. The video is 17s and audio only ...
  • 101
0 votes
0 answers
17 views

Different outputs when enconde to h254 using CPU olnly and GPU together

I'm using ffmpeg to convert .mp4,.mkv files with enconde h264 to h265 using CPU only, if using GPU together will outputs the same as using cpu only?
  • 113
-1 votes
0 answers
28 views

how do I install FFMPEG on Plesk

I have ubunto server and plesk. i need to install FFMPEG. I have installed the SSH portion of FFMPEG successfully but do not no how to complete the installation in Plesk. Any help out there please?
  • 1
0 votes
0 answers
38 views

Using ffmpeg-python to combine cv2 video streaming and pyaudio audio streaming

I want to use my camera and microphone to get living video and audio streaming and use ffmpeg to combine them.So I write it by python.there is my code. import os,pyaudio,cv2,ffmpeg p=pyaudio.PyAudio()...
  • 1
0 votes
0 answers
23 views

use ffmpeg-python to combine the living cv2 video and pyaudio audio streaming

I want to use my camera and microphone to get living video and audio streaming and use ffmpeg to combine them.So I write it by python.there is my code. import os,pyaudio,cv2,ffmpeg p=pyaudio.PyAudio() ...
  • 1
0 votes
1 answer
39 views

ffmpeg 3D conversion - EAC stereo (Youtube) to Equirectangular stereo?

I've had success with converting monoscopic equiangular cube maps (EAC) videos, but I can't get the filters to work for stereoscopic. There's an example in the ffmpeg manual in the v360 filter ...
0 votes
1 answer
55 views

Streaming local file through http with VLC

original question for reference using vlc -I qt a.mp4 '#http{mux=ffmpeg{mux=mp4},dst=:8080/stream}' --sout-all --sout-keep the video is playing locally fine with both audio and video but I got some ...
0 votes
0 answers
12 views

Connecting IP Camera with YouTube using FFMPEG

I´m trying to connect my ip camera with Youtube using ffmpeg to convert the stream from RTSP to RTMP. rtsp_url="rtsp://xxxxxx" rtmp_url="rtmp://xxxxxx" ffmpeg -rtsp_transport tcp -...
  • 101
0 votes
0 answers
6 views

Ffmpeg specifying the text encoding of MP3 tags

It seems Ffmepg and FFprobe can read/write MP3 tags. Is it possible ( https://blog.1a23.com/2020/03/16/read-and-write-tags-of-music-files-with-ffmpeg/ ). What I wonder is if I can specify the text ...
0 votes
0 answers
19 views

Which options are incompatible with CRF, CQP?

What settings should not be used when using CQP, CRF modes. I read that 2pass mode is not compatible with constant quantization modes. It is also recommended to disable adaptive quantization. Maybe ...
0 votes
0 answers
14 views

Cut and concatenate in one command [duplicate]

Is the following possible with ffmpeg? I have one source video file of a length of many hours and want to concatenate small sections of this large video to a small video. Let's make an example: part1:...
0 votes
0 answers
14 views

FadeIn / FadeOut text with FFmpeg

This code works fine to add some text on a video: /usr/bin/ffmpeg -y -i video.mp4 -filter_complex drawtext=fontfile=Bold.ttf:text='Hello':fontcolor=#000000:fontsize=140:x=300:y=300:enable='between(t\,...
1 vote
1 answer
29 views

Disable all subtitles (softsub) in .mkv, .mp4 files

I have several Movies/Animes with many subtitles, and I want disable all (not remove) subtitles in a batch (.bat file); below current code: for %%a in (*.mkv, *.mp4) do ( REM disable subtitles ) ...
  • 113
0 votes
0 answers
22 views

Using ffmpeg to record two video inputs into one file

I am working on a few strings of commands in order to allow me to record gameplay footage to my PC, I've figured out quite a number of things, purely through trial and error, but have ran into a bit ...
1 vote
1 answer
24 views

ffmpeg Create GIF from image sequence and use transparent background

What I'm trying to do is to create a gif from images with different sizes and make the borders (padded area) for images that have different aspect ratio transparent. Each image should be shown for 3 ...
0 votes
1 answer
27 views

ffmpeg with libfdk_aac: AAC-HE-V2 profile doesn't work for mono sound?

Whenever I use ffmpeg with libfdk_aac to convert a piece of audio to AAC, I noticed the aac_he_v2 profile does not work if the source audio is mono. For example: ffmpeg -i mono.wav -c:a libfdk_aac -...
0 votes
1 answer
37 views

ffmpeg. Render file with transparent background

I have the next scheme of tracks. I need to render that tracks to one track with ffmpeg. enter image description here After rendering it's should looks like enter image description here I want to use ...
0 votes
0 answers
28 views

FFMPEG How to convert pixel format using hardware acceleration

recently, I have been approching to FFmpeg (libAV) framework to decode my video streams. I use hwaccel to decode but, for the pixel conversion, I have to transfer the data from GPU to CPU and use ...
0 votes
1 answer
48 views

If FLAC is a file format, how can one software make them smaller than ffmpeg with maximum compression?

While compressing all my FLAC files with the latest version of FFMPEG with maximum (12) compression level, it turns out that some of them become LARGER afterwards. How is this possible? Even if a non-...
1 vote
0 answers
46 views

Receiving SRT stream with ffmpeg - very high latency

I'm trying to receive SRT stream from Larix Broadcaster and Larix Screencaster using ffmpeg v5.1.2 running on Ubuntu 22.04. I could receive the stream and put it to a DeckLink card but the delay is ...
  • 11

1
2 3 4 5
127