As of May 31, 2023, we have updated our Code of Conduct.

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
1 answer
4k 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?
nam's user avatar
  • 41
4 votes
2 answers
8k 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 ...
NDB's user avatar
  • 141
4 votes
1 answer
15k views

FFmpeg : How to replace video background color with transparency? (while capturing)

I want to capture a window and overlay it on another video. This is my command: ffmpeg -i MainVideo.avi -f gdigrab -framerate 25 -video_size 300x200 -i title="MyWindow" -filter_complex "[0]setpts=...
Maria's user avatar
  • 223
4 votes
1 answer
8k 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 ...
Stuart Bruce's user avatar
4 votes
1 answer
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 ...
bodacydo's user avatar
  • 271
4 votes
1 answer
7k 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 ...
Che's user avatar
  • 41
4 votes
1 answer
837 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 ...
mrremo's user avatar
  • 41
4 votes
2 answers
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'...
Ashit Vora's user avatar
4 votes
1 answer
6k 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/...
hg.m's user avatar
  • 41
4 votes
1 answer
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 ...
user66350's user avatar
4 votes
1 answer
1k views

FFMPEG not writing quicktime "COLR" atom

I am attempting to create Quicktime movs with the "DNXHD" codec with the following ffmpeg command (input part excluded): -c:v dnxhd -b:v 175M -pix_fmt yuv422p10le test.mov This works, and is ...
Bryan Fordney's user avatar
4 votes
1 answer
5k 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'...
Dhavan Vaidya's user avatar
4 votes
1 answer
3k 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 ...
Sloloem's user avatar
  • 151
4 votes
2 answers
3k 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 ...
Crowder's user avatar
  • 687
4 votes
0 answers
118 views

Optimized Parameters of `FFMPEG` for Screen Recording

Windows has a great codec for screen recording called Windows Media Video Screen. It generates artifacts free videos which are highly compressed (small size). I was wondering, what would be the ...
GeorgeIrwin's user avatar
4 votes
1 answer
423 views

How to fix the difference between duration of ffmpeg input and output?

I am trying to generate a video from a bunch of png images and audio using the command: /usr/bin/ffmpeg -y -framerate 30 -pattern_type glob -i 'images/*.png' -i audio.wav -c:v libx264 -b:v 0 -crf 18 -...
sy_ar001's user avatar
  • 141
4 votes
0 answers
8k views

moov atom not found

I downloaded this video using youtube-dl's HLS downloader. The video was being HLS streamed using AES-128. Even though I could view it perfectly fine when it was being streamed in the browser, VLC ...
SOuser's user avatar
  • 55
4 votes
0 answers
3k 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 ...
Josh's user avatar
  • 141
4 votes
0 answers
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 ...
charisk's user avatar
  • 183
3 votes
3 answers
4k 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'...
user3643's user avatar
  • 2,134
3 votes
3 answers
959 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 ...
Robin's user avatar
  • 175
3 votes
4 answers
8k 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 ...
user3185563's user avatar
3 votes
2 answers
100k 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?
Dzung Nguyen's user avatar
3 votes
3 answers
5k views

Is there any ffmpeg command for knowing max bit rate of a video?

I have an MP4 file input.mp4 which is encoded in libx264. By ffprobe command: ffprobe -v error -show_streams input.mp4 I can know the bit rate of input.mp4, but it does not give the information of ...
shintaroid's user avatar
3 votes
1 answer
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 ...
Patrick Kenny's user avatar
3 votes
1 answer
7k views

How to identify i-frame from idr-frame in the ffprobe show frames output?

The ffprobe show frames output shows the following details: [FRAME] media_type=video key_frame=1 pkt_pts=42 pkt_pts_time=0:00:00.042000 pkt_dts=42 pkt_dts_time=0:00:00.042000 pkt_duration=N/A ...
cnvzmxcvmcx's user avatar
3 votes
1 answer
9k views

Realtime time overlay with ffmpeg

I'm using the following ffmpeg command to create an H.264 encoded MPEG transport stream from a single png file with a text overlay. ffmpeg -re -loop 1 -i smpte-color-bars-1080p.png -vf drawtext="...
Fat Monk's user avatar
  • 225
3 votes
1 answer
2k 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 ...
Hartman's user avatar
  • 135
3 votes
1 answer
6k views

ffmpeg concat error

I am trying to concatenate two video files using ffmpeg, and am receiving and error. Two eliminate compatibility issues between the two videos, I am been concatenating the same video with itself, and ...
Scorb's user avatar
  • 189
3 votes
2 answers
3k views

Error while trying to set ffmpeg profile

Ok, I have a feeling this might be a silly question, but I can't see what I am doing wrong. This is my command: ffmpeg -i input.mov -c:v libx264 -profile:v baseline output.mp4 and the error it ...
Maldoror's user avatar
3 votes
2 answers
6k 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 -...
eof's user avatar
  • 83
3 votes
2 answers
19k views

Infinite Video Loop in Ffmpeg?

Is there a way to infinitely loop a video in ffmpeg for a livestream? I've been looking around and can see it was possible to use "loop 1" but it appears that is no longer working. This is what I'm ...
spacer GIF's user avatar
3 votes
1 answer
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 ?
Loi Loigâk's user avatar
3 votes
2 answers
4k 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 ...
user3450548's user avatar
  • 1,504
3 votes
1 answer
33k 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 ...
Gorgi Rankovski's user avatar
3 votes
2 answers
5k views

FFMPEG - convert video to Black & White with threshold?

I'd like to convert videos to black and white but also specify the threshold of what to convert to black/white. I'm currently using cv2 to do this successfully using the 2 lines below (first converts ...
user3158732's user avatar
3 votes
1 answer
2k views

ffmpeg: how to ignore an EDIT LIST?

I've got a 10-minute long mp4 file which plays just fine with VLC. Apple Quicktime however plays only the first 6.5 seconds, stops and can't be convinced to jump past that. Similarly, when I try ...
Leszek's user avatar
  • 133
3 votes
1 answer
3k views

Add multiple mp3 files to an mp4 file with ffmpeg

I would like to add multiple mp3 files to an mp4 file. For adding a single mp3 to an mp4, I used this command with success: "-i /path/to/mp4File -i /path/to/soundmp3File -codec copy -shortest path/to/...
WPMed's user avatar
  • 133
3 votes
1 answer
7k 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 ...
gs z's user avatar
  • 57
3 votes
2 answers
1k 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, ...
user541686's user avatar
3 votes
1 answer
4k 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....
d13's user avatar
  • 661
3 votes
1 answer
5k views

How to get FFMPEG output the same quality as Vimeo?

I like Vimeo, but I rather host a player and video myself. So I was wondering if someone knows how to get the closest result to Vimeo quality, but from FFMPEG? It seems that Vimeo uses 1280 pixels ...
Taapo's user avatar
  • 236
3 votes
1 answer
3k views

How to do mpeg/mpg to mov lossless conversion?

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 ...
Ellis Shen's user avatar
3 votes
3 answers
6k views

Using ffmpeg to cut out a scene by original timestamp

I have a recording (a simple, unprocessed TS from my satellite receiver, not encrypted) that has uneccessary stuff at the beginning and the ending. I want to cut out the main feature now with ffmpeg. ...
zero0's user avatar
  • 141
3 votes
1 answer
6k 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, ...
Brigand's user avatar
  • 527
3 votes
2 answers
10k views

How do I recover truncated AVI/DV video?

Short version: I believe I have truncated but otherwise valid AVI/DV files that won't play in any player I've tried (Adobe Premiere, MPC HC, VLC). I assume the stream data is intact but truncated, and ...
Santtu Pajukanta's user avatar
3 votes
1 answer
1k views

why ffmpeg changes video stream from interlaced to progressive when it is set to copy the the stream

I have a large video file that I try to chop into smaller pieces. The command I use is ffmpeg.exe -i VideoTape-2007_09_09_19-20_05.avi -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:10:33.761 ...
Nafas's user avatar
  • 33
3 votes
2 answers
839 views

Is CABAC encoding lossy or lossless in ffmpeg?

I've been looking into how to compress a video using ffmpeg when I stumbled across CABAC encoding which I could specify by using the libx264 for the video codec and pairing it with the proper ...
Juhmer_Tena's user avatar
3 votes
1 answer
2k 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 ...
Nikunj Paradva's user avatar
3 votes
1 answer
8k views

FFMPEG - How can I add black bars to top and bottom of my video?

I have about 100 videos. I would like to add a 30 pixel horizontal black bar to the top and bottom of each video without ruining the dimenions(so even if they go over the video). How can I achieve ...
Bob Milon's user avatar

1
3 4
5
6 7
41