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
2answers
990 views

Remove frozen parts from a corrupted video

When dealing with corrupted videos, ffmpeg is a great to tool to automatically fix errors. Is there a way, with ffmpeg or another similar tool, to automatically remove/drop/trim/cut away frozen parts ...
2
votes
1answer
454 views

Correct method to set font-size in .ASS file

My final video output is 1080:1920 (9:16 aspect ratio), after padding. In .ass file, I set PlayResX: 1080 PlayResY: 1920 and then the font-size=130. But, this font-size doesnt occupy exact 130 pixels ...
0
votes
0answers
7 views

FFMPEG: "smart encoding" when join 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
1answer
89 views

Two videos on image background

I am sort of new to this. I am trying to create an output video using two videos and a background image. With a bit of gap around the videos and Video A having a larger scale than Video B. And, it ...
1
vote
1answer
38 views

Setting points and doing a quick "snip", dynamically playing the video

I need to cut out "best moments" from 1hour videos.(up to 6 moments per video) What software is able to set in/out marks and save marked periods with keyboard shortcuts while watching the ...
0
votes
0answers
9 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
2answers
668 views

Fast VP9 still image encoding

I use this command to create "myFile.webm", a VP9 video with one still image : $ ffmpeg -i myOriginialPureAudioFile.opus -loop 1 -i myAudioFile_640x360.png -shortest -threads 4 -speed max -...
0
votes
1answer
38 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
1answer
61 views

FFMPEG - Creating script to convert a video into audio file (or anything related really) + diverses questions

Good day everyone. Im making my babysteps into ffmpeg, and so far this tool has been really helpfull. Anyway. Im currently using this line as a convertion basis : ffmpeg -i name.mov -c:v libx264 ...
0
votes
2answers
404 views

FFMpeg Force Codec

I am dealing with a video that as a codec tag of none, but the actual codec is GHEC. I am aware this is a proprietary codec from GeoVision. The video will not play unless I use ffplay with the -...
0
votes
0answers
7 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 ...
1
vote
1answer
1k views

How to cut and merge mp4 video segments without re-encoding?

I have some screencast video files in mp4 container (h.264/mp3 codecs) that I want at times merge (i.e. C.mp4 = A.mp4+B.mp4) or at times cut removing some intervals (e.g. D.mp4 = A.mp4[0,320{seconds}]...
1
vote
1answer
952 views

DASH Live vs OnDemand profiles

I've read about dash profiles and from what I understood the difference between live and on-demand profiles are that live furthermore splits each representation into segments (which is critical for ...
1
vote
1answer
188 views

FFMPEG - Apply opaque white with mask

This seems like a simple thing to do, but for my life I cannot find an answer that does this the way I need to. Using a mask image, I want to make the white parts of the mask still be white (not ...
0
votes
0answers
14 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. ...
1
vote
1answer
3k views

YUV to RGB/sRGB color space conversion using ffmpeg

How to convert an mp4 file with YUV color space to RGB or sRGB color space using ffmpeg? I am trying to upload my video to YouTube and I read somewhere that RGB video looks better than YUV one. Thanks....
0
votes
1answer
570 views

I need to modify a movie's displayed subtitles and display as an image overlay

I'm kind of at a loss on how to do this. I have access to gimp/inkscape/ffmpeg/vlc, and I can download font styles as needed off the web. So I have a movie. I play the movie in vlc player, I display ...
1
vote
1answer
1k views

FFmpeg only and only change H264 profile and level?

I am use FFmpeg v4.1 . I want to change H264 profile and level but I want other settings to stay the same. I just want to change the profile of H264. I'm using this code, but I'm getting the error. -...
0
votes
1answer
328 views

ffmpeg - Slow down video and loop/repeat audio

I am trying to use ffmpeg to slow down a video speed by 25% (75% speed) without changing the audio speed. ffmpeg -i input_video.mkv -filter:v "setpts=1.3*PTS" "SlowVideo25.mp4" On ...
0
votes
1answer
26 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
29 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
2answers
7k views

Convert HLS stream to fixed FPS mp4

I am using ffmpeg to convert an HLS stream to mp4 using this command: ffmpeg -i https://example.com/xxx.m3u8 -y -vcodec copy -c copy -bsf:a aac_adtstoasc test.mp4 I only have access to this video ...
0
votes
1answer
70 views

FFmpeg on windows cut and fade question

so i am using the following code to in a windows .BAT file to cut up a video at X time: bin\ffmpeg -hide_banner -loglevel 0 -i "%video%" -c copy -map 0 -f segment -segment_time %...
0
votes
1answer
15 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
122 views

I want to convert .mp4 to .ts using H264 at constant framerate 25fps

I've been trying to do this conversion for a couple of days reading through forums ffmpeg -i in1.mp4 -vcodec libx264 -s 720x576 -vf "fps=25"-vsync cfr -b:v 2300k -acodec aac -b:a 128k out1....
1
vote
1answer
1k views

x265: Is it possible to re-compress HEVC video without quality loss?

My situation: Transcoding 1080p bluray videos to HEVC. Audio untouched; My rig is old (pre-2012) and to speed up the process I'm using --preset ultrafast; From x265 documentation, I understand that ...
0
votes
1answer
302 views

Final Cut output to FFmpeg workflow

If I use Apple Compressor, I could just 'Send to Compressor', without first exporting a ProRes master. However, I would like to use FFmpeg/x264 for better quality (at low bitrate). Do I have to ...
0
votes
0answers
18 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
1answer
115 views

ASS subtitle - Different alignment at block and inner level

I am trying to achieve an ASS subtitle that aligns the rectangular bounding block at the horizontal center of the window, while maintaining left-justification inside that block for multiline subtitle ...
5
votes
2answers
20k views

Howto Repaire or fix the duration of a mp4 video

I'm having a film that's ffmpeg and other progs claims to be 07:03:52 long, but the real playtime is actually more like 2:35:00 ffprobe video.mp4 ffprobe version 3.0.2 Copyright (c) 2007-2016 the ...
0
votes
2answers
65 views

Need overlay the image on video by taking the array of positions

I need to overlay the image on video by scrolling the image on video . I want to generate the video with the image in scrolling positions
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
1answer
5k views

How to double video frames without any duplicate frames

My video details : DV-PAL 720x576i , 25FPS , duration=20s , frames=500 I need to increase (double) the video frames without any duplicate frame. I used the following commands to increase (double) ...
0
votes
0answers
5 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 ...
1
vote
2answers
68 views

replace video track and keep everything else

I want to use FFmpeg to replace a certain video track but keep everything else including chapters, audio, fonts etc… I know I should be using -map and -map_metadata but not sure how to do it.
1
vote
1answer
131 views

How to remove background from video without green screen on the command line?

I'm looking for an ffmpeg-like tool to blur/remove/change a static background from a "talking head" video, on the command line with on-device processing. Essentially, ffmpeg-like-tool [--...
1
vote
1answer
42 views

Create a video from a changing jpg image with FFmpeg

I have this one jpg image which changes approx. every 4 seconds. Based on this image, I want to make a 60 second long video. I tried this. ffmpeg -t 60 -loop 1 -r 1 -i input.jpg -r 1 output.mp4 This ...
0
votes
1answer
44 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 ...
1
vote
1answer
800 views

ffmpeg: Why did my capture speed drop? (can no longer capture using same command)

I've been using the following command to capture video with ffmpeg for the past two months using my Blackmagic Intensity Pro 4K capture card: ffmpeg -bm_v210 1 -rtbufsize 1500M -threads 4 -f decklink ...
1
vote
1answer
322 views

FFmpeg Batch encoding error: CRF/CQP is incompatible with 2pass

I am trying to create a batch file with 2 passes. Pass 1 scales the video. Pass 2 pads a border around it. They both work separately but will not work together. Pass 1: @echo off REM Scale video to ...
0
votes
1answer
938 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 ...
0
votes
0answers
9 views

How transcoding a mkv using CPU (decoding h.265) and GPU (encoding h.264) with FFMPEG?

I have: an old i7-2700K an old ASUS GTX 760 last ffmpeg version ffmpeg-n4.4-latest-win64-gpl-4.4.zip from BtbN. I want to transcoding a h.265 mkv file (1920x1080) to h.264 (downresizing to 444x250) ...
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
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 ...
8
votes
2answers
11k views

How to trim out black frames with ffmpeg on windows?

I have a short video and I'm trying to cut-out all the blank or near blank frames. This isn't a case where I care about the breaks in a video that could be dark. I literally want all near black-...
11
votes
3answers
15k views

What is KeyInt and min-keyint and no-scenecut

I am absolutely new to video processing, I am building a video streaming site and worked with ffmpeg to generate the formats I need for ShakaPackager. Sadly I don't understand some of the options ...
1
vote
1answer
231 views

FFMPEG: How can I cut a mkv without considering keyframes?

I have a MKV video and I want to cut from seconds 3.3 to 22:07 minutes, but I can't cut at that start timing because there isn't a keyframe. How can I bypass that?
0
votes
1answer
49 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 ...
3
votes
4answers
6k views

ffmpeg: preserve timecode when converting mp4 to mov

I have .mp4 files created by a Sony A7s camera. They're using the XAVC S codec. I'm converting them to .mov using the command below. The original files have a timecode but that is not present in the ...
0
votes
0answers
48 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 ...

1
2 3 4 5
38