Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...

0
votes
0answers
5 views

Concatenate videos with different sizes and frame rates

(I am completely new to ffmpeg) I recently tried to concatenate about 30 video clips into a single video and encountered some issues while playing back the resulting video on my beamer (LG HW300Y). ...
0
votes
0answers
7 views

FFMPEG capture region of screen at 120FPS

I am using an Amazon EC2 g2.8xlarge instance. I'm doing latency measurements, and I want to determine the exact moment something changes between the frames of the video captured. I need to record a ...
0
votes
1answer
10 views

Lossless Capture with FFmpeg

I’ve been attempting to do lossless game capture as I’ve been working on a program to do frame rate analysis. I haven’t had much luck finding a program that does lossless capture as AmaRecTV, Dxtory, ...
0
votes
1answer
24 views

Convert to ProRes with ffmpeg adds unwanted contrast to footage

I'm trying to convert H.264 footage from a Panasonic EVA1 camera to Apple ProRes with ffmpeg. However no matter which setting I use, the output file has slightly more contrast than the original input ...
0
votes
0answers
12 views

CPU replace GPU acceleration with setpts

I'm currently using a batch to setpts (10 ffmpeg process at time), but the CPU goes 100% raising the temperature while the GPU seems idle. An example of the command that I use in the batch ffmpeg.exe ...
0
votes
0answers
8 views

Convert a 3d 360 degree or 180 degree to VR SBS Video

I want to convert a 3d 180 or 360 degree video to a be able to view on google cardboard without losing the 3d effects, I guess I should extract 2 videos from the 3d video for left and right sides and ...
0
votes
0answers
10 views

Background image under video center with ffmpeg

I have input video and image. output i want to have video like my pic
0
votes
0answers
17 views

FFMPEG VP9 Lossless 1 Problem

I have a problem with converting a series of png images to a video. The video should be a small loop with 16 fps and 80 images. I'm using this: ffmpeg -framerate 16 -i 16_04_animation_%02d.png -...
1
vote
0answers
3 views

webm dash manifest.

I tried to create mpeg dash. here's my flow : source.mp4 (UHD 4k) converted to 1080p, 720p ... 144p using following command: ffmpeg -i {source.mp4} -c:v libvpx-vp9 {size} -b:v 1500k -keyint_min 150 -...
0
votes
1answer
14 views

ffmpeg concat videos, some have audio some don't

I have 4 videos I am trying to string together and here is my command bin/ffmpeg.exe -f concat -safe 0 -i concat.txt out/documentary_full.MOV Here is what's in concat.txt file '/path/to/...
1
vote
1answer
20 views

How do I speed up slower video framerates with ffmpeg and get full 240fps and no truncated videos?

I have a whole bunch of sports video clips that range from 6 to 25 seconds each, all recorded at 240fps but slowed down to 23.97, 25, 29.97 and 30fps (so they're in super slow motion). I need to ...
0
votes
0answers
10 views

How to skip scene in movie by ffmpeg code does not cut video? Help me , please? [on hold]

Assuming that the film has 5000 scenes, I want to have 3700 scenes (like skipping scene does not cut video). Before that, I have found the ffmpeg code as I wanted, but I did lose. I need it,help me,...
1
vote
0answers
13 views

Jumpy video in scenes with movement

i am trying to recode a video from 4096 to 3840 which i did succesfully with this line: ffmpeg -i C:\Alien.mkv -vf scale=3840:2160 -c:v libx265 -crf 18 -acodec copy D:\Alien1.mkv -hide_banner But ...
1
vote
1answer
18 views

Set display time of individual frames in FFmpeg

I have a set of images that I extracted from a GIF animation for the purpose of enhancement (which I have done), but now that it's time to convert the still images into a video (I'm going to use webm ...
1
vote
0answers
13 views

How can I change slice_type which is show in Elecard stream analyzer using ffmpeg?

I'm not ffmpeg and encodding expert and am trying to encode a MP4 file to MPEG-4 h264. When Elecard stream analyzer is analyzing my result .ts file, it shows slice_type = 7 for all of i-frames as you ...
0
votes
0answers
32 views

FFmpeg Too many open files

On Powershell .\ffmpeg.exe -i 1 -i 2 .. -i 2500 -filter_complex_script complex.txt -map [v2500] output.mp4 return 2046: Too many open files You can replicate the error using this .ps1 (just ...
0
votes
1answer
15 views

How to use ffmpeg drawtext without changing the width of a video

Folks, I am trying to add text to an mp4 file. Seems easy enough right? But once the new mp4 file is generated, the new file has half the width of the original file and is higher. It is almost like ...
0
votes
0answers
21 views

FFmpeg Windows maximum character limit on input

I need to use filter_complex on several files but due to cmd limitation I cannot insert all input files. This answer helped me a lot but only partially https://superuser.com/a/1200123. Even using ...
0
votes
0answers
12 views

Batch file in Windows that concatenates a single video to all videos in a folder and adds a caption to the final videos

I have a title video named start.mp4 and folders each containing many mp4 videos in windows 10. How can I write batch file in any of the video folders which: concatenates title.mp4 to each video in ...
0
votes
0answers
18 views

Explanation/work around for a progressive slowdown for ffmpeg w/concat + crf

Source material I have to hold 90 days of dashcam videos that average 2-5 hours a session. Each session is made up of 61 second videos. All told it is 2-2.5TB of storage. (5 hours * 60 minutes per ...
1
vote
1answer
17 views

Which ffmpeg command to use convert pngs to video?

I have pngs starting from temp0000.png and ending at temp7085.png. After reading the ffmpeg manual I tried the command: ffmpeg -i temp%d.png -i a.mp3 -framerate 60 -start_number 0000 output.webm ...
1
vote
1answer
31 views

How to combine and optimize ffmpeg filters to avoid encoding multiple times?

I never worked with ffmpeg before and I'm wondering which optimization I can take for my situation. In a loop I have multiple input.mp4 files which I first convert one by one to have a common scale ...
0
votes
0answers
15 views

Get actual dimensions of video with missing or incorrect metadata

The problem comes when I try to get a frame from video. In case when file have correct meta, ffmpeg do this work good. But if the input video, for example, was recorded by some smartphone and then was ...
0
votes
1answer
30 views

Where to input a log expression in FFMPEG

Im trying to use a expression from NUKE (to convert an exr sequence from its native format into AlexaLogC. Now ive got an expression from nuke which is the following x > 0.14996582 ? (pow(10,0, (x ...
0
votes
1answer
17 views

Overlay an Image onto a resized video. FFMPEG

I have an image which is a frame of 1024*1024 resolution which is half empty or transparent... I have various number of videos of different resolutions and I want to scale them to the empty space ...
0
votes
0answers
13 views

FFMPEG In Memory processing with output format supported over HTTP [closed]

Current Implementation: Java application receives images/videos over HTTP, these are saved to disk for manipulation to be done. Output is saved to disk then copied to HTTP output stream. Please ...
0
votes
0answers
15 views

Is there any way to get ffmpeg to broadcast hls video?

I've been trying to set up something to where I can get a raspberry pi to broadcast in hls for a website I'm working on, I used this guide to configure nginx: https://docs.peer5.com/guides/setting-up-...
1
vote
1answer
18 views

What does the `-context` parameter mean when using FFV1 in ffmpeg

In the docs for FFV1 there's a parameter -context, which can be set to 'small' or 'large'. That's all the documentation I can find. While I'm at it, what are the relative benefits of the different ...
0
votes
2answers
30 views

How to optimize already-encoded videos of still images (e.g. presentation slides)?

I have a H264 video that is, for the most part, just a video of presentation slides. It doesn't seem to me that it's as well-compressed as it could be. Given that it's a video of presentation slides, ...
0
votes
0answers
9 views

Trying to play back an uncompressed raw interlaced RTP video stream

I am unable to get ffplay to play back a raw uncompressed interlaced video from an RTP stream, coming from a camera feed. The camera broadcasts the SDP using SAP, which I have been able to extract ...
1
vote
1answer
28 views

How can i crop a frame sequence with ffmpeg?

I want to crop a video frame sequence by frame number. For example for 10000 frames sequence, i want to crop it 750 frame from beginning.
0
votes
0answers
11 views

Converting multiple files with batch

I want to convert multiple files with ffmpeg. Converted files should be saved in "converted" folder but with -x265 on the end. For example for "video.mkv" it is "converted/video-x265.mkv" Files are ...
0
votes
1answer
23 views

ffmpeg convert non transparent pixel to white

I'm trying to convert all non-transparent pixels of an image to white using the geq filter in ffmpeg: ffmpeg -y -i in.png -vf "format=rgba,geq='r=if(lt(alpha(X,Y),10),255):g=if(lt(alpha(X,Y),10),255):...
0
votes
1answer
42 views

FFMPEG expand limited range to full range

I am working on a recipe to convert Avid DNxHD files which are rec.709 "legal" range (15-235 in 8bpc) to .png files which are "full" range (0-255). In looking around it seems that "colorspace" could ...
0
votes
1answer
24 views

FFmpeg scale video to desire size

I have an video with this resolution: 1920x1080, I want to scale it to 480x852, like this video: https://scontent-frx5-1.cdninstagram.com/vp/d7b76fe78c9ad72016b98dcda320a6ca/5BA532D8/t50.16885-16/...
0
votes
0answers
18 views

FFmpeg NVENC rtsp stream encoding freezes randomly

In some executions of the following command, ffmpeg freezes at certain time and after some minutes starts to encode the stream again. The problem don't happen always. The stream server is an avigilon ...
0
votes
0answers
64 views

ffmpeg - 1080i deinterlaces to 1080p 100 fps instead 50

I want to deinterlace my video in 1080i (50 half frames) to 1080p 50fps. I tried this command ffmpeg -i .\original.mp4 -c:a copy -vf yadif=1 -c:v libx264 -crf 18 -preset ultrafast output.mp4 but ...
0
votes
1answer
20 views

Is it possible to merge two ffmpeg commands into one?

I'm using ffmpeg to do two things - add a transparent watermark to the whole video, and also add a title intro image. I'm using the following command to add the watermark: ffmpeg -i original.mp4 -i ...
0
votes
1answer
19 views

Add image above the video with ffmepg

Apologies for being a ffmpeg noob, but I'm having trouble with modifying the answer to Add image under the video with ffmepg to place the image above instead of below the video... My questions ...
1
vote
0answers
55 views

How to overlay 2 videos using depth layers

I'm trying to overlay 2 videos which both have depth layers (e.g. how far a pixel is away from the camera) using ffmpeg filters. (I have a few hundred of those videos so I'd like to do batch job out ...
1
vote
1answer
45 views

How to read 10-bit RGB values from HDR video?

I had a HDR video and the format is ProRes. The colour bit depth of ProRes is 10-bit. I would like to extract the 10-bit RGB values from the HDR video. As per this link, I have first converted the 10-...
0
votes
0answers
11 views

Do you convert to HLS each time a video is streamed or can you do it once and store it?

I am planning on uploading videos (MP4 format) and using ffmpeg to convert them to HLS. I am confused about whether you convert once and store it or you have to do it each time the video is streamed ...
0
votes
1answer
46 views

Create a MXF media with a video and audio clip at specific timing compatible with Pro Tools

I have several media: one video file several audio files I would like to create a new MXF media with the video file and mixing the audio files at specific timestamp and tracks: Starting time of the ...
1
vote
1answer
17 views

How to double every frame (and the length of the video itself) in an mp4 video (timelapse)?

The video has length of t and is 30fps. I want it to have a length of 2*t. I just want each frame to be shown a little longer. According to VLC the codec is H264-MPEG4 AVC. Is there some simple ...
0
votes
1answer
17 views

Setting different resolution for encoding and display when encoding in ffmpeg

I'd like to encode a video, say, in 960 x 720 but have video players automatically play it in 1280 x 720. I know how to do this in 2 steps, by first encoding in 960 x 720 (ffmpeg with -vf scale=960:...
0
votes
1answer
29 views

FFmpeg - One input, two outputs each one w/ different complex_filter - Map error?

I use a Decklink to capture video and ffmpeg to stream it to a localhost rtmp server (low compression, HD) and to a remote CDN (high compression, low resolution). I have used this command with success ...
1
vote
1answer
17 views

Problem setting different framerates with ffmpeg map option

I am facing a problem to set video streams framerates with FFmpeg when using the map option. Here is what I want to do: Given an input video file of 60fps, I want to generate an output file ...
0
votes
0answers
14 views

Parser of NUT ffmpeg format in Python

I am looking for an example of a standalone parser of FFmpeg's NUT format (preferably in Python) dealing with RGB24 pix-format content. I am aware of the link to the format specification and the ...
3
votes
1answer
47 views

Using ffmpeg to add height (as black bars) to video file without quality loss

I have a file of resolution 3840x1632, but my TV stretches the picture vertically to fill up all 2160 pixels of height. Is it possible to use ffmpeg to add blank / black height, while preserving the ...
0
votes
1answer
23 views

resend headers NUT formats

If I do this ffmpeg -f dshow -video_size 720x480 -framerate 29.97 -i video="Roxio Video Capture USB":audio="Line (Roxio Video Capture USB)" -c:v mjpeg -c:a pcm_s16le -map 0:v -map 0:a -f fifo -...