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

Combing .mlp audio stream and blank video OR still frame into .mkv

I have deep experience with audio but virtually none with video. I'm working on creating some consumer-friendly .mkv files that will play back in common software (e.g., JRiver, Kodi, etc.) and allow ...
0
votes
1answer
10 views

ffmpeg volumedetect filter doesn't work on 32bit float audio?

Here is a test file with peaks at +200 dBFS (it's an extreme example, but the same holds for a file with peaks a +1 dBFS). When running the "volumedetect" filter on this file, ffmpeg appears ...
0
votes
0answers
8 views

Transcode a video that is still downloading to a streaming output

I'm making a video player that plays files while downloading them. The problem that I face is that electron (= chrome browser) can not play some formats (e.g. H265 encoded MKV). I want a solution that ...
0
votes
1answer
10 views

ffmpeg : Convert all mp4 files in a folder into mp3 in a new folder

I want to convert all my mp4 files in a folder into mp3 in a new folder I've tried something like: $ffmpeg -i \*.mp4 -vn mp3/\*.mp3 but it didn't work. It involved an infinite loop and my computer ...
0
votes
0answers
25 views

FFMPEG: "smart encoding" when join video clips

is it possible join some clips of h.264 (or h.265) without re-encoding, (or minumum re-encoding, only where clips touch themself? Thanks!
0
votes
0answers
12 views

Set timecode to mov

I'm converting a DPX sequence to a QuickTime ProRes and I'm trying to set the timecode in the MOV file. ffmpeg.exe -start_number 1001 -i Source.%04d.dpx -c:v prores_ks -profile:v 3 -timecode 10:10:10:...
0
votes
0answers
11 views

Adding a color background to an existing Alpha Channel .mov video

I am trying to add a simple solid background to an .mov file with premultiplied alpha. The result I get contains blacks in the gradient/motion blur, meaning I would need to convert the video from ...
0
votes
0answers
17 views

Frame-by-frame PSNR using ffmpeg

Is it possible to get a dump of the PSNR of every frame of a video using ffmpeg or ffprobe? So far all the options I've seen are for comparing two videos or getting the average across the whole video. ...
0
votes
1answer
21 views

ffmpeg - duplicated frames

I'm converting a couple of videos that I have using the following command: ffmpeg -i input.mp4 -c:v hevc_amf -c:a copy input_h265.mp4 It works, but on some videos I get this warning message: More ...
0
votes
0answers
13 views

How to display actual decoding frame rate with ffplay?

I am streaming screen capture from one computer (windows PC) to another (raspberry pi) I am trying to tune for higher frame rate and low latency. However ffplay, while it works great, doesn't show ...
0
votes
0answers
6 views

Can ffmpeg drop the most similar frames when changing FPS?

I'm working with footage from a arcade game that runs slightly slower than NTSC framerate, however the capture device has duplicated frames (approximately 1 in 24 though not 100% predictable) to bring ...
0
votes
0answers
21 views

Trim video and add text (using drawtext) causes lag/delay for few seconds

I'm trying to trim a video and draw text on it. Although the command below "works" (source), there's a 2-3 second delay at the beginning of the clip. Specifically, for example, if I want to ...
0
votes
0answers
10 views

ffmpeg VBR 2 pass with concatination and normalization of pass log possible?

I have n number of arbitrary interlaced/non-interlaced videos being normalized through ffmpeg cmd N to a standard size, standard framerate, standard audio and standard visual quality for DVD burning. ...
0
votes
0answers
9 views

ffmpeg: Repeat input frames

Say I have 100 image files I'm stitching into a video. I'd like to gradually slow toward the end, so say use the 96th image for 2 frames (more precisely, for twice the duration), the 97th for 3, etc. ...
0
votes
1answer
38 views

Lost frames with ffmpeg

I'm having regularily issue with hvc1 videos getting an inconsistent number of frames between ffprobe info and ffmpeg info, and I would like to know what could be the reason of this issue and how if ...
0
votes
0answers
61 views

Recording IP camera RTSP Stream with FFMPEG - append to file

I am recording an IP camera stream using ffmpeg. Here are the goals that I want to achieve: Record an entire day in a single file In case of a disconnect be able to restart the process and continue ...
0
votes
0answers
11 views

How to apply BOTH audio and video filter at the same time? [duplicate]

If I use just a video filter (-vf only), I do not get any warning in the cmd line; But as soon as I add an audio filter (both -vf and -af used as shown below), I get a WARNING IN RED on the cmd line: ...
0
votes
0answers
54 views

Encode still image video effectively in FFMPEG

FFMPEG can make video from MP3 file and still image: ffmpeg.exe -loop 1 -i "img.png" -i "%1" -c:v libx264 -tune stillimage -shortest "%1.mp4" But it honestly encodes the ...
0
votes
0answers
11 views

changing timebase of mkv file

I'm trying to change the tbn of a mkv file. Here is the command I typed. ffmpeg -i a.mkv -video_track_timescale 90000 -c copy a_9ktbn.mkv But timebase didn't change Input #0, matroska,webm, from 'a....
0
votes
1answer
17 views

Cutting a video by specific time

I want to cut a video using ffmpeg. This is the command I used. ffmpeg -ss 1:40 -t 0:40 -i "1.ts" -c copy 100sts.ts Duration of the result file is 1m 43s. I guessed there is no keyframe in ...
1
vote
1answer
68 views

ffmpeg - why does h265 compression increase the filesize?

I try to learn about the basics of video encoding/decoding so I played around with ffmpeg a little to get my hands on it and not just read about the topic. Accodring to the ffmpeg documentation there ...
0
votes
0answers
13 views

how can I set dts to 40ms as pts starts 40ms after the stream starts with ffmpeg

I have a video which pts starts 40ms after the stream is started. avidemux shows this information's with this commandline ./avidemuxLinux_2.7.8_GLIBC_2.28_amd64.appImage \ --audio-codec copy \ --...
0
votes
0answers
22 views

how to change image overlay color using ffmpeg like instagram image filter

i have use colorchannelmixer but it showing error. I'm trying this matrix = '0.39,0.769,0.189,0.0,0.349,0.686,0.168,0.0,0.272,0.534,0.131,0.0,0.0,0.0,0.0,1.0'; ffmpeg -i input....
0
votes
0answers
11 views

FFMPEG - Create subtitle animation effect

Do you know how can I create with FFMPEG subtitle animation or effects like this? A Script maybe that load subtitle file and run the animation based on the time of the subtitle. Thank you!
0
votes
0answers
19 views

Need working example for FFMPEG Filters

Can you please share the code to use ffmpeg filter say blackdetect or freezedetect. I have tried with filtering_video.c example but there I am not getting how to add these filters. I have already ...
0
votes
0answers
17 views

Make FFmpeg RTMPproxy

I would like to know If there are any possibility that make FFmpeg relay but modifying output RTMP. Example: Receive RTMP with this configuration: 1920×1080 5000 kbps Output RTMP with this ...
0
votes
0answers
37 views

FFmpeg - Loss of video quality when using vf setpts

I created a screen recorder for iOS using FFmpeg. I concat the images into a video which is fine and the quality doesn't change much from the screenshots but when I use setpts to match the video to ...
0
votes
1answer
29 views

Changing up gamma with -lavfi and ffmpeg

This is my first time posting on this forum, so don't be too rough on me, haha. I have recently started taking up FFmpeg as a side project for my media class, and I am facing some problems when it ...
0
votes
1answer
16 views

Can I crop and overlay at same time when useing ffmpeg?

I have two command: ffmpeg -i in.mp4 -vf crop='1280:720:0:0' -acodec copy croped.mp4 ffmpeg -loop 1 -i 1.jpg -i croped.mp4 -filter_complex 'overlay=(W-w)/2:(H-h)/2:shortest=1,format=yuv420p' -c:a ...
0
votes
1answer
47 views

ffmpeg - how do i crop different values from top and bottom

i have a mkv file and its resolution is 1280x720. when i calculated the crop using Handbrake, it shows that i need to crop 40 from top and 30 from bottom. So far i know how to crop equal amount from ...
0
votes
0answers
35 views

FFmpeg mux an mpegts for use in stream: possible to set cur_dts / dts / pts?

Constrained by the need manually generate a series of 10-second MPEGTS media segments for HTTP Live Streaming (HLS), ffmpeg's mpegts seems to do what I need. This example would be for segment number ...
0
votes
0answers
35 views

FFMPEG inserts extra audio frame at the begining of first chunk in HLS

I'm trying to reencode input HLS video (h264/aac using ts segments) from Nth to Mth segment into new HLS video. I do it by creating new HLS media playlist containing only segments I need (ie from 4th ...
0
votes
0answers
33 views

Convert hvc1/AAC mp4 to something playable on Mac El Capitan

I gather it's a known thing that Quicktime Player Version 10.4 on El Capitan won't play mp4/ hvc1 codec videos. I haven't been able to do anything with the file using my usual tricks (VLC, iFFMPEGapp/...
0
votes
1answer
30 views

How can i do overlay subtitle with ffmpeg like in the links provided?

I need a script for ffmpeg to do this: Background color (drawbox) for all words like this:
0
votes
1answer
27 views

A video of 1h27m duration, only plays up to 27m

Background I have recovered some large videos as explained here: https://superuser.com/q/1686118/571029 There are 3 videos of almost the same size with the same content, apparently: > ls recoverit-...
0
votes
1answer
24 views

Possible dropped frames after trimming a video

I have a 30-fps video just downloaded by youtube-dl, and it seems to have black frames in the beginning of it. Part of the result of ffprobe youtube-dl.mp4: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '...
1
vote
0answers
65 views

Copy timecode from SEI Picture Timing to MXF Timecode Stream with FFmpeg

I am receiving an HEVC encoded live stream that contains SMPTE 12-1 timecode in the SEI picture timing, as it is recommended in ITU-T Rec-H.265-202108 Annex D.3.3 Picture timing SEI message semantics....
0
votes
1answer
19 views

Crop outer parts of frame and rejoin

I have a video 3000x1000. I want the left part of video 1001x1000 and the right part of video 999x1000 to create a video 2000x1000. Center of original frame just dropped. Is this possible with ffmpeg ...
0
votes
0answers
16 views

Splicing attempt with ffmpeg runs without error, but doesn't insert the file

I am trying to do the same thing that the person asking this inserting video clip into another video but keep original audio question is. My text file, concat2.txt, looks like this: file '...
2
votes
2answers
113 views

Audio discontinuities when generating HLS segments in different processes

I am creating MPEG-TS segments for HLS playback from multiple ffmpeg processes (it will be used for parallel encoding at a later stage). The commands are as follows — they can be run in sequence for ...
1
vote
1answer
48 views

FFmpeg seems to write bad .w64 files for pcm_f32le streams

I have a problem with FFmpeg when writing a pcm_f32le stream to a Wave64 file format (.w64). Basically, only FFplay can read the file back correctly. I tried with VLC, but it seems it cannot read any ....
0
votes
0answers
12 views

Combine overlapping video clips into one non-overlapping file

I have over 500 ~30 second (length varies) clips from a now deleted Twitch livestream that I would like to reassemble into one file. However many of the clips overlap each other (some might even be ...
0
votes
0answers
38 views

How can I downsample video to rgb24 with dithering in ffmpeg?

Setting -pix_fmt to a yuv colorspace will use Bayer dithering by default. I don't know how to change that behaviour. When downsampling with -pix_fmt to an RGB colorspace like rgb24, no dithering is ...
0
votes
1answer
17 views

How to put a trailer clip in the middle of the main video with FFMPEG?

I have two videos of the same format encoded with the same codecs. I want trailer.mkv to be played after n minutes in the middle of main.mkv. After playing trailer.mkv, the rest of the main.mkv will ...
0
votes
0answers
16 views

the ffmpeg generated video mute after seeking it forward

the video mute after seeking it forward, it greated with ffmpeg, when i play it normaly (without seek it) the audio played, i am a linux usser and test it with vlc player and mpv player i generated it ...
0
votes
0answers
15 views

ffmpeg directory name with em dash in it

I have a directory name in which I use the em dash: "\\NetworkComputer\d\1 – Initial\video.avi" ffmpeg is not finding the file because for the em dash –. If I remove the em dash, or replace ...
0
votes
0answers
10 views

How to concatenate stream segments if some are missing?

I have a bunch of *.ts files from one stream but some of them are missing. I've tried to assemble them in a single *.ts file and then converted it to mp4 using commands bellow copy /b *.ts output.ts ...
0
votes
1answer
31 views

Can I inject subtitles into a live stream with FFmpeg?

In my live streaming scenario I need to grab a video source and inject subtitles that I generate algorithmically during the stream (i.e. I do not know the subtitles upfront), and publish the streams ...
0
votes
0answers
17 views

ffmpeg does not add metadata

I am converting a bunch of video recorded with iPad (mov format) into mp4 with ffmpeg (version: ffmpeg version 4.2.1-0york0~18.04.1) under Linux Ubuntu 18.04 LTS. This is the code template I am using ...
0
votes
2answers
83 views

How accurately can FFmpeg cut a video to a specific duration?

Can FFmpeg cut to a hundredth of a second? When I try to cut a video using : ffmpeg -i input.mov -ss 0.989 -t 0.238 -r 30 -y output.mov The video duration of output.mov is 0.27 seconds and not 0.238 ...

1
2 3 4 5
37