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

ffmpeg: variable framerate with min and max

I know that combining -vsync vfr and -r 30 sets a ceiling to the number of frames in the output. But how do you specify a minimum framerate that should always be produced? As part of an encoding ...
0
votes
0answers
47 views

Use FFmpeg for motion estimate in a video

I'm trying to use FFmpeg to calculate motion estimate or optical flow (in terms of average motion value) in a short video. Is there a command to do that? I'm currently using Python and openCV to do ...
0
votes
1answer
66 views

ffmpeg take channels 7+8 and make a stereo

I have a 8 audio track mov file which I want to encode to mp4 using ffmpeg BUT take the tracks 7+8 and put them as stereo with 320k and 48KHz to that mp4. My line is this: ffmpeg -i %source% -map 0:0 ...
0
votes
0answers
48 views

how to re-encode And downscale a 2160p video to 1080p at the same quality than a monitor downscaling a 2160p flux into its 1080p panel

so i have a 2160p video that i can play on my 1080p monitor in fullscreen. i downscaled it to 1080p using ffmpeg but the quality of the 1080p flux played in fullscreen is lower than when my screen ...
0
votes
0answers
64 views

How to concat each video according to list.txt with synchronized audio and video?

I am concatting many short pieces of the same video file using ffmpeg -y -f concat -safe 0 -i list.txt -c:v libx264 -c:a aac -af aresample=async=1 -pix_fmt yuv420p target.mp4 The video is first a ...
0
votes
0answers
23 views

Looking for a UNIX shell script to aggregate and report on video file size, bitrate, and other attributes

hope everyone is staying safe and healthy in this crazy time. I've got a large, well organized repo of video - mishmash of raw video from shoots along with edited files, in all sorts of various ...
0
votes
0answers
12 views

ffmpeg adds two seconds of unwanted silence at end of video [duplicate]

I am creating a video file from a single image, and audio. Though, after running conversion the resulting video file is the audio track's length, plus two seconds. The audio codec does not affect ...
0
votes
1answer
161 views

FFMPEG - Scroll filter on filter_complex applies on under layer

I apply filter_complex to put objects on coordinates using overlay. Sometime, I need to use the scroll filter. Here is the code ffmpeg -vsync 0 -i /tmp/2SN92agDIG.png -i /tmp/TogmpB9etD.png -i /tmp/...
0
votes
0answers
14 views

FFMPEG error response goes in infinite endless loop

ffmpeg -i https://cdn.dotcompaluat.com/test/running.mp4 -max_muxing_queue_size 9999 -vf \ scale=w=426:h=240:force_original_aspect_ratio=decrease,pad=ceil(iw/2)*2:ceil(ih/2)*2 \ -c:a aac -ar 48000 -...
0
votes
0answers
61 views

Switch between HLS input streams to output a new HLS stream

I'm trying to generate a HLS stream from an input of N (in this example 2) HLS streams but I cannot figure out the right settings to get the PTS values right. My streams can be represented this way : ...
0
votes
0answers
48 views

Does ffmpeg preset speed affects 2 pass encoding?

If I'm encoding files like this: ffmpeg -v quiet -hide_banner -y -i "$f" -passlogfile "$TEMP_FOLDER/ffmpeg.log" -c:v libx264 -b:v 2.5M -maxrate 2.5M -bufsize 5M -profile:v high -level 4.1 -pass 1 -sn ...
0
votes
0answers
25 views

Convert mp4 for different resolutions for playing using his

How do I transcode my mp4 video to different resolutions and create m3u8 for all for adaptive streaming
0
votes
0answers
95 views

How to use FFMPEG frame transition slowly upward out of view while the next frame slides in the view from bottom to achieve a scrolling effect?

This question also follows another question: How to minimize no of frames/screenshots of web pages required to render a smooth scrolling video using FFMPEG? Scenario: Currently i'm stitching ...
0
votes
0answers
28 views

RTSP always connects to camera but often cannot get an image

My software needs to connect to each surveillance camera every few hours to get a picture for analysis. I use this command to connect via RTSP ffmpeg -rtsp_transport tcp -t 10 -reorder_queue_size 10M ...
0
votes
0answers
64 views

Slideshow compilation takes 10 minutes for 3 images

I want to make a slideshow from images. The first image has 6932x4683 pixels, so I got an error height not divisible by 2 and I found this thread. I understand that libx264 is implicit in the output ...
0
votes
1answer
107 views

Add two images before a mp4 and one in the end with ffmpeg

I'm trying to make an operation using FFmpeg with just one command to leave the output as lossless as possible. My intention is to add two images, 5 seconds each, before the mp4 file, add a fade in ...
0
votes
0answers
87 views

What are creation_time and timecode in 'ffmpeg -i <vid_name> -dump' command?

The command 'ffmpeg -i GOPR0221.MP4 -dump' gave me the following, Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GOPR0221.MP4': Metadata: major_brand : mp41 minor_version : 538120216 ...
0
votes
0answers
447 views

ffmpeg I can't do dash muxing

I tried to perform a basic dash muxing with FFmpeg but I failed. Using the following command: ffmpeg -s:v 1920x1080 -r 25 -i inputVideo.yuv -c:a aac -c:v libx265 -f dash \ –seg_duration 2 out.mpd ...
0
votes
1answer
41 views

how to pipe:/// through a .sh or Python script, or use some sort of setting files with FFMPEG

First post, so be kind please :) So a quick bit of history. I am using tvheadend, and the inbuilt transcoder murders my CPU, and provides average quality output (it's powered by ffmpeg), if I pipe ...
0
votes
1answer
180 views

ffmpeg setting not working for x264 compatibility in television

I'm having some files in MKV format (x264). Some files work flawlessly in my non-smart TV, but others are not even opened at all or crashing. I tried the following command in FFmpeg to convert it to ...
0
votes
0answers
271 views

Add animated gif to video with ffmpeg

I need a simple ffmpeg script to add an animated gif to video with given x and y.
0
votes
0answers
17 views

Input link in1:v0 parameters (size XXX, SAR XXX) do not match the corresponding output link in0:v0 parameters (XXX, SAR 1:1) [duplicate]

I've two files, a mp4 and a mp3 file. I want to add a 3 seconds intro screen with title Welcome and black background to the head of the video with the mp3 as background. So here's what I wrote. ...
0
votes
2answers
565 views

FFMPEG Video loop from images files

I am trying to make a video from a bundle of image files and then apply a an overlay on top of it.Another requirement is to make the video loop 3x. It is simply not working. The requirement is to ...
0
votes
0answers
176 views

HLS input with discontinuity results in 'Non-Monotonous DTS' errors

If I use an HLS input (.m3u8) with 'EXT-X-DISCONTINUITY' tags, as soon as it encounters a discontinuity, it spits out a load of 'Non-monotonous DTS in output' errors, and the resulting video freezes ...
0
votes
0answers
73 views

ffmpeg make complete from videos with incorrect time data

I have a video file mp4 and audio in m4a. The issue is that some incorrect time data in the files - when I play them timeline goes from 0 to like 10 seconds and then play continues with timeline stuck ...
0
votes
1answer
57 views

Ffmpeg wipe diagonal transiton with audio concat

How to create “diagonal wipe” effect in FFmpeg? This question has an answer, however the answer does not concat the audios of videos. How can I fix it ? ffmpeg -i old.mp4 -i new.mp4 -filter_complex ...
0
votes
0answers
79 views

FFMPEG slideshow skips a picture when showing on VLC (and is OK on Quicktime)

I created a slideshow following the directions on the concat demuxer. The input file is: file 'sentence1.jpg duration 5 file 'sentence2.jpg duration 5 file 'sentence3.jpg duration 5 file '30.jpg ...
0
votes
0answers
82 views

Color loss and grayish after downscaling using ffmpeg

Forgive me for I'm new to here, but I've been searching for solutions all the day, yet still puzzled by this problem. I try to downscale a 3840*2160 video to 1080p, and here's what I first did: ...
0
votes
1answer
69 views

FFMPEG Stitch four videos together, then add overlay to result

I have four videos (no audio) which I am able to stitch together using this command. I am also able to add an overlay on a single video with this command. Is it possible to combine both of these ...
0
votes
0answers
84 views

Trimming SRT file with ffmpeg

I'm trying to trim an SRT file, changing the starting time and duration. The file subtitles.srt has these lines midway through: 185 00:13:34,880 --> 00:13:39,130 one 186 00:13:39,680 --> 00:...
0
votes
1answer
212 views

video overlay on another video with rounded corner, transparency, opacity, scaling, and border all together with FFMPEG in PHP

I am trying to change a video with Rotation, rounded corner, transparent, scaling, and border all with together and overlay on a video; I am trying to do this with FFMPEG in PHP but getting issue in ...
0
votes
1answer
725 views

“Unable to open key file” error when remuxing a set of encrypted .ts files (as a .m3u8 playlist) into .mp4 with FFmpeg

I'm trying to remux a set of encrypted .ts files (as a .m3u8 playlist) into a single .mp4 file with the next command: "C:\Users\~\Desktop\test\ffmpeg.exe" -allowed_extensions ALL \ -i "C:\Users\~\...
0
votes
0answers
50 views

How to split an mp4 into original ts segments?

I have a *.mp4 file that was concatenated from a bunch of improperly ordered *.ts files. I'd like to extract original segments from the *.mp4 without encoding and manual cuts. Is it possible and if so,...
0
votes
0answers
322 views

Convert TrueHD to DTS

I have a bunch of video files with TrueHD 7.1 or Dolby Atmos that I would like to convert to DTS 5.1. I'm extracting the audio using mkvextract (from mkvtoolnix), then convert it to DTS using ffmpeg ...
0
votes
0answers
1k views

FFmpeg to RTMP streaming stucks after few seconds

I'm trying to stream to online service via FFmpeg. All my test commands works fine with restream.io preview and with local rtmp server viewer. My OBS setup works fine too (same resolution, server and ...
0
votes
0answers
192 views

Sync issues while working with proxies (Premiere Pro 2020)

I'm editing an HDR project in Adobe Premiere Pro 2020 and I'm having issues with preserving the HDR data while transcoding, but that's an issue for another post. The thing is that I edit with proxies, ...
0
votes
0answers
41 views

Increase quality of movie from images with FFmpeg

I am trying to create a movie from a set of images with FFMpeg; I tried the following: ffmpeg -framerate 5 -i pol00%3d.png -b:v 100M test.avi The resulting movie, however, is a bit blurry compared ...
0
votes
0answers
59 views

FFMPEG greyedge filter randomly produces black frames

I needed to correct video illumination and found an awesome filter called greyedge. The problem is that when applying this filter to my videos it often produces black frames. So I've made a test to ...
0
votes
0answers
205 views

Online VPS or Dedicated, Seedbox Video Encoding Help

I have a few questions. When I was younger I use to encode lots of old Animes for fansub teams and do Karaokes on my PC. My PC is currently out dated and do not have the space nor the power to do my ...
0
votes
0answers
32 views

I wanna speed things up while concatenating many media files

I want to concatenate many files using concat demuxer. Problem is a portion of those files have different tbn from the others. So, I followed an answer by @sr9yar at:https://stackoverflow.com/...
0
votes
0answers
230 views

ffmpeg dynamic filter values from piped input

I need to run an audio filter on a piped input using its own lufs value as a variable, without writing to disk. I previously bounced the piped input to processedaudio.wav and the command works as: ...
0
votes
0answers
10 views

Capturing data stream of a JS / Leaflet animation as MP4

How can I capture the datastream of a JS / Leaflet animation and download it to MP4? I am looking for output that looks something like the smooth path traced in these demos: Leaflet.Polyline....
0
votes
0answers
94 views

FFMPEG - Adding audio stream to existing MKV file (which includes an audio stream already) - Coming out squeaky

I am trying to add an additional audio steam (MP3) to an existing MKV file which currently contains a video and single audio stream, such that the output will have the video, and two alternative audio ...
0
votes
0answers
55 views

How can I mute part of a video clip with fading (fading out before fading in the audio stream)

I want to remove part of audio in a video clip. I have used https://stackoverflow.com/questions/54992785/ffmpeg-remove-a-part-of-audio-in-mp4-file-but-not-all to mute audio between t=5.5 seconds and t=...
0
votes
1answer
176 views

Concatenate multiple files using FFmpeg

I started to learn FFmpeg syntax a couple of days ago. I'm trying to read the official docs, it's not easy. So I want to build up a video files which consists of different videos, and audios. Let's ...
0
votes
0answers
277 views

Bandwidth limit for FFmpeg

Currently, using FFmpeg to push a live TV stream to TVHeadend. The stream is currently in 1080p. Is there a way to get FFmpeg to convert it to 720p for TVHeadend?
0
votes
1answer
715 views

FFmpeg add logo watermark to live stream

I am trying to execute this commands in FFmpeg and it is working. Now I want to add logo to this live stream. How to do that? find "/video path" -name "*.mp4" | xargs -I $ "/ffmpeg path" -y -re -i $ -...
0
votes
0answers
114 views

FFMPEG fails to convert to usable x265 MP4 after reinstalling Windows/flashing BIOS

I use the following command to convert videos recorded by Nvidia ShadowPlay to x265: ffmpeg -i "%fn%.mp4" -c:v libx265 -crf 28 -c:a aac -b:a 128k "%fn%.x265.mp4" I've done this for the past year+ ...
0
votes
0answers
842 views

How to decrypt video using ffmpeg?

I've managed to encrypt my video files using the ffmpeg command below however I can't find a way to save the decrypted output. ffmpeg -i {file} -encryption_scheme cenc-aes-ctr -encryption_key {key} -...
0
votes
1answer
468 views

How to split,reverse and concatenate video using single command in FFMPEG?

i want to create reverse video with audio and remov from large clip.for that first split video in segment then reverse splits video then concatenate all reverse video as single video file but it take ...

1
28 29
30
31 32
34