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
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
4k 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
2k 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
4k 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

Removing / Overlaying logo on mp4 video format with ffmpeg on linux

I'm trying to remove logo from an .mp4 video format with ffmpeg on linux machine without re-encoding (for preserving the same quality) with the following command: ffmpeg -i input.mp4 -vf delogo=x=270:...
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
5k 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
458 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
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
786 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
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
2answers
8k views

Mux mkv and dts file, change default audio stream and language

I want to mux (combine) two files into one mkv file. The first one is an mkv file that contains a video and an audio stream in German. The second one is an English audio stream in dts format.I want ...
3
votes
3answers
627 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
88k 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
20k 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
3k 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
7k 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
1k 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
14k views

Convert variable input formats to black and white MP4

I am currently using an FFMPEG command like: ffmpeg -i input.mov -vf scale=1920:1080 output.mp4 to convert varying input format file to a fixed resolution MP4 output file. One final step I need is ...
3
votes
3answers
4k 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
6k 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
26k 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 ...
3
votes
1answer
3k views

Finding frames in video that match an image

I'm trying to find frames in a video that match a certain input image. I'm currently using this command: ffmpeg.exe -i video.mp4 -loop 1 -i image.jpg -an -filter_complex "blend=difference,blackframe=...
3
votes
1answer
2k views

Speed up a video 30x using only key frames with ffmpeg?

I have a 30 fps video with a GOP 30 (1 i-frame per second). I'd like to create a version that is '30x faster', by dropping all frames except every 30th frame. I can do that as so: ffmpeg -i t1.mp4 -...
3
votes
1answer
3k views

FFMPEG slow / fast motion part a video anywhere

am trying to cut a part of Video Here is the code i have tried Let's say i have 6 seconds video and i want to slow down 2:5 seconds video that 3 second video First approach after searching is, Cut ...
3
votes
1answer
3k views

Scaling videos of variable size to a fixed aspect ratio

I have 45 videos of varying aspect ratios and resolutions. I need to scale all of them so that they fit neatly inside a 640x360 (16x9) container with the following specs: 16x9, 640x360, 1600kbps, H....
3
votes
1answer
7k views

ffmpeg transcoding H264 interlaced and keep interlacing via H264_NVENC codec

I have the following interlaced H264 file: Stream #0:0[0x335]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg, top first), 720x576 [SAR 16:11 DAR 20:11], 25 fps, 50 tbr, 90k ...
3
votes
1answer
960 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
1answer
3k views

How to do mpeg/mpg to mov lossless convertion?

Does anyone know how to do lossless conversion from *.mpeg/mpg to mov? I was asked to extract video from DVDs and do editings in FCPX, however FCPX cannot edit *.mpeg/mpg file natively, therefore I ...
3
votes
1answer
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
1answer
5k views

What ffmpeg/avconv format and container will Adobe Premiere Pro accept, out-of-box?

All of these converted, but Premiere Pro only loads the audio. I use Ctrl-I to import the videos, and they come up as waveforms, and can only be placed on audio tracks. These examples use avconv, ...
3
votes
1answer
67 views

ffmpeg: Second lower third does not appear

On a video I am producing, I am overlaying a digital on screen graphic on the lower right corner (branding logo). I am overlaying an 11 second two-tiered lower third at the beginning of the video (...
3
votes
1answer
760 views

How to Monochrome, Haze video Effect in FFmpeg?

I have a lots of searching but i coudn't find the FFMPEG command for Monochrome effect and Haze Effect on video. Orignal Haze Effect Monochrome Effect (This is not sepia effect) Your help would be ...
3
votes
1answer
4k views

ffmpeg combine three videos side by side

I have three videos s1.mp4,s2.mp4 s3.mp4 and I need to combine three videos side by side I know use hstack but my three videos has different size? I've found following commands.It works,but only ...
3
votes
1answer
1k views

replace black frames with previous frames

I have problematic footage from diving due to my camera/SD card - every 4th or so frame is just black, and I want to replace all those black frames with either an interpolation between the previous ...

1 2 3
4
5
33