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
4
votes
2answers
169 views

Star Trek Continues: ffmeg dvdsub: overlapping subtitles

So I've downloaded the free fan-created Star Trek Continues Blue-Ray ISO for Episodes 1-3 and I'm trying to convert the FHD 1920x1080 to SD 960x540 to be able to watch on my phone: ffmpeg -...
4
votes
1answer
1k views

How to replace background green color

I'm using lenscorrection filter on a video and the result contains green background as canvas! How Can i replace this color with different one or an image? This is the command i used: ffmpeg -i out....
4
votes
1answer
9k views

How to decode the PTS timestamps and extract the video frames

I want to extract the video frames and get the PTS timestamp for each one of them. I have an input MPEG-2 TS file and I prefer to use some open source tool like ffmpeg or something similar. The ...
4
votes
2answers
254 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 ...
4
votes
1answer
3k views

What are the differences between the three bundled ffmpeg prores encoders?

I'm using ffmpeg and while looking through the list of codes with ffmpeg -codecs I realized there are actually three different prores encoders: prores prores_aw prores_ks What are the differences ...
4
votes
1answer
2k views

Video metadata: What is “Video delay” used for?

Recently, I'm forced to fiddle with a nasty little problem with videos that have some special metadata attributes, namely "delay" or "delay_relative_to_video". There's a software videoconferencing ...
4
votes
3answers
6k views

FFMpeg concat demuxer corrupted output (freezed video on some concatenated parts)

I have big videos with different types of properties and trying to collect some part of these videos by ffmpeg. I use this command to cut specific parts: scale video >> scale png >> pad ...
4
votes
1answer
4k views

quickly extract video frames with ffmpeg

I am using ffmpeg to extract frames from videos. I have the following code thus far: ffmpeg -i vid.mp4 -vf fps=1/10 images%05d.png My issue is that it takes awhile! 6 seconds per image on average. ...
4
votes
1answer
1k views

FFmpeg pan filter and clipping

I have a file that has one video stream and one audio stream with 8 channels. I want to create a new file that will only contain the first 2 channels of the audio stream (no video). I can do this ...
4
votes
2answers
4k views

ffmpeg: mute first 2 seconds in all audio streams

Looking to edit a blip out of the beginning of a video/audio file: How can I use ffmpeg to only edit the first two seconds of the clip so that there's no longer that blip in the audio? How do I ...
4
votes
1answer
5k views

How to specify CRF quality settings for different encoding software

Is there a way of specifying a quality setting for h.264 that is not software dependant? I'm trying to help a colleague create a specification for outside contractors when they deliver video to us ...
4
votes
1answer
7k views

Video Capture using ffmpeg (V4L2 indev) Results in Bad A/V Sync

I actually contributed to a bug report on this issue a year and a half ago ( https://trac.ffmpeg.org/ticket/692#comment:15 ). Basically, the problem is that using ffmpeg to record from a USB video ...
4
votes
1answer
2k views

Creating stereoscopic video from two video files

I've got two video files, each created with ffmpeg from a series of JPEG images, which I've obtained from rendering with a stereo camera in Maya. I would like to somehow merge together these videos ...
4
votes
1answer
3k views

How does ffprobe identifies I frame and IDR, when it sets key_frame=1

How does ffprobe identifies I frame as an IDR and sets key_frame=1. Is it for the scene change? My requirement is to filter out IDR frames: the steps I am following are ffprobe output_file -...
4
votes
1answer
1k views

Crop a video with a moving crop area of fixed size

I have 3840 × 2160 videos where I want to cut out a moving person on stage (e.g. music video). The crop area is fixed (1080 x 1920). The problem is, the person is moving around. Not much, but in a ...
4
votes
1answer
3k views

Convert video to 10 bit images

I have a video with these info: Format : MKV Codec : HEVC (h.265) Bit depth : 10 bits How can I get 10-bit frame grabs from it using ffmpeg?
4
votes
1answer
6k views

Extract key frame from video with ffmpeg

I have a need to generate a thumbnail for videos for a web application and I am currently doing that with this command: ffmpeg -ss <seconds> -i <input file> -vframes 1 -y <output file&...
4
votes
2answers
5k views

360 Degree Video Encoding for Playstation Media Player and PSVR

PlayStation 4's Media Player is very picky in terms of supported video formats, codecs, and resolutions. This becomes specifically difficult when converting high-quality virtual reality content for ...
4
votes
1answer
7k views

Converting files to Avid-friendly DNxHD MXF

Please forgive the noob question, I'm new here. I've looked for an answer on this forum but not found one so far. I've also tried the BMXlib forum. I'm trying to convert small video files that have ...
4
votes
1answer
1k views

How to create a x264 (mp4) video with the smallest size using ffmpeg that has just 1 image through entire video?

I'm creating narrated mp4 (x264+aac) videos for books. Each video has just the book's cover as the background. I wonder what would be the most effective way to create such videos with ffmpeg? I've ...
4
votes
1answer
6k views

how to get realtime output from ffmpeg

I am currently grabbing a live stream video with the following command: ffmpeg -i https://urlToTheStream/playlist.m3u8 -f image2 -q:v 30 C:\pathToOutputFolder\%01d.bmp video is running in 24 fps. I ...
4
votes
1answer
496 views

Framerate Timelapse

I'm doing a time-lapse film project about a six-month period. Now I write a script to process the thousands of photos. I use ffmpeg. The paths to the photos are in the list.tmp file and i'm using the ...
4
votes
2answers
2k views

What options are there for cloud based FFMPEG processing?

Just like Imgix and Cloudinary are image editing as a service platforms, are there any online platforms that provide ffmpeg as a service so we can run ffmpeg commands on their server? At the moment I'...
4
votes
1answer
5k views

How to automatically enrich a video stream with dynamic overlay (text, images, …)

In my company, we are currently looking for a solution to enrich a given video stream (which is being broadcasted via RTMP) from a remote webcam with some dynamic information, such as current date/...
4
votes
1answer
8k views

Dash live streaming

after a lot of googling and after I've read tons of forums, I'm still not able to do a live stream using my cam to another device. My system is made up by a server ( a windows laptop ), that capture ...
4
votes
1answer
4k views

ffmpeg: overlay rotated video with transparency

I'm new to ffmpeg (video encoding in general). I have two videos one larger than the other. I want to rotate, resize and overlay the shorter video on the larger one at defined coordinates. So far, I'...
4
votes
1answer
2k views

ffmpeg concatenation introduces video stutter but does not affect audio

I've gone through several different variants of this process and it always causes me problems. I've gotten it working sometimes but it doesn't seem to be consistent. I have a video camera which ...
4
votes
2answers
2k views

Convert .WMV using FFmpeg

I'd like to use FFmpeg on the Mac Terminal command line to convert a .WMV file. I'm familiar with the syntax: ffmpeg -i /path/OriginalMovieFile.wmv /path/NewMovieFile.??? However, my recent attempt ...
4
votes
1answer
820 views

FFMPEG demux concat dropping audio at stitch points

I am trying to use FFMPEG (v.3.3.3) concat demuxer and as the file is stitched the audio drops at concat points. As I have files of same codecs, bitrates and so on - it doesn't make much sense to ...
4
votes
1answer
16k 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 ...
4
votes
0answers
2k views

Getting FFMPEG to stream video+audio through RTMP

Can someone help me with this: The video streams fine but I can't hear any audio. I just hear random click sounds. Please help: ffmpeg -f video4linux2 -channel 1 -i /dev/video0 -f alsa -i plughw:2,0 ...
4
votes
0answers
2k views

FFmpeg map_channel and video

I have a file that has the following format (note the number of tracks and channels within each track): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a.mov': Metadata: major_brand : qt ...
4
votes
0answers
2k views

Extract the frame (in image format) at exactly every minute (or second) from a video (by ffmpeg)

Motivation: I would like to seek the frame, then take high quality and exact time screenshots (images) from a video. The video is length is 00:48:43.71 and 23.98 fps (we can think it is 24 fps, isn't ...
3
votes
3answers
1k views

What's the difference between “visually lossless” and real lossless and what does this mean for future encodes?

In FFmpeg's H.264 Video Encoding Guide we are told: Tip: If you're looking for an output that is roughly "visually lossless" but not technically lossless, use a -crf value of around 17 or 18 (you'...
3
votes
3answers
682 views

Can I use h.264 codec inside .mp4 container for my website

I would like to use h.264 as the codec inside .mp4 container for my user uploaded videos for my website. But I saw somewhere that h.264 is non free. I am unsure whether I can use this technology or ...
3
votes
2answers
90k views

Typical size of one hour long mp4 video

What is the typical size of a mp4 video, size 1280x720 encoded by ffmpeg libx264, and lasts for one hour? Currently my file is around 700Mb, is it too much?
3
votes
4answers
21k views

How do I specify baseline H264 profile using FFmbc?

I am using FFmbc (a FFmpeg derivative) to transcode some video files to H264 (in a mov wrapper). I want to specify baseline profile (to reduce CPU usage) but can't figure out how. There doesn't seem ...
3
votes
1answer
1k views

Do you have to build ffmpeg from source to use 10-bit codecs in Windows?

I'm trying to find somewhere I can download pre-built binaries of ffmpeg for Windows with 10-bit codec support. Apparently, from what I've read, ffmpeg has to be either 8-bit or 10-bit, and the ...
3
votes
2answers
4k views

Use ffmpeg to create a video from a few images

I trying to create a video using FFmpeg from a few images. I tried several ffmpeg commands but I can't repeat each image for several frames, instead, each image is one frame size and the video result ...
3
votes
1answer
8k views

FFMpeg: “Invalid audio stream. Exactly one MP3 audio stream is required”

I am trying to adapt this FFmpeg script that encodes all video files in a directory, to instead convert mp3 files present in that directory with similar preferences. The original script: This works ...
3
votes
2answers
7k views

How to work with R3D and RMD files? FFMPEG?

I am getting collections of files of the types A0123-random-name.RMD A0123-random-name.R3D Googling tells me R3D is a raw RED file and RMD is Red Meta Data - data about the processing to be applied. ...
3
votes
2answers
2k views

Producing small H.264 files with Adobe Media Encoder vs ffmpeg/libx264

I am a terrible ignoramus in the subject, but the coronavirus has thrown me in the business of producing videos with my lectures. I care a bit for video quality and a bit more for small size. My ...
3
votes
1answer
3k views

Adding blurred background to portrait videos with ffmpeg

I have a lot of videos that are either 720x1280 or 1280x720. I want to convert all of them to 1280x720, but for the ones that are portrait I would like to show the full video with the remaining space ...
3
votes
1answer
1k views

FFMPEG stop converting from TrueHD to PCM

I'm trying to convert a TrueHD 7.1 soundtrack to PCM format but ffmpeg give me an error and stopped. Here's the output of ffmpeg: user:~$ ffmpeg -i source.thd -c:a pcm_s24le -ar 48000 output.wav ...
3
votes
2answers
4k views

ffmpeg overlay x expression with logical condition

I am trying to create a simple overlay graphic where the overlay moves and screen and changes speed according to time. So I tried a simple ffmpeg -i input.mp4 -vcodec qtrle -i overlay.mov -...
3
votes
1answer
1k views

How can encode video with images like these (overlay a video over a fixed image) with ffmpeg?

How can encode video with images like these help me ffmpeg ?
3
votes
3answers
5k 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 ...
3
votes
1answer
7k views

How do i put the image behind video by using FFmpeg?

I have one video (400x300) and an image (1280x300). pls show me how can i put this image behind the video like that: i've try, but not working T-T
3
votes
2answers
3k views

ffmpeg bgr vs rgb and other similiar pixel formats

I was wondering about the difference between rgb and bgr pixel formats available in many codecs. It reminds me in some way the Big Endian and Little Endian flavours of computer processors. While I ...
3
votes
1answer
27k views

Faster deinterlacing with ffmpeg and yadif

We are using two-step encoding with ffmpeg to encode raw .mov files to multiple .mp4 encodings ready for streaming over the Internet. Some of the videos are interlaced and we are using yadif to ...

1 2 3
4
5
35