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
0 answers
7 views

How to add and keep moving my custom image throughout the video with ffmpeg in nodejs

I need some guidance about how to implement this:- I recorded the user tab screen (without the default mouse), and now I want to capture the user mouse movements with my chrome extension throughout ...
0 votes
1 answer
3k views

How to generate decryption key from m3u8 manifest? (OR) How to decrypt an excrypted MP4 using URI and IV?

I am downloading an HLS video which is AES-128 encrypted. The issue is that the downloaded video is also encrypted and hence, not viewable. The website is serving 2 M3U8 manifests: The first ...
1 vote
2 answers
38 views

Changing the DEFAULT video stream?

I used VLC to play what's supposed to be a video file, and it plays just a still image with sound; Before trashing it, I decided to open it in the Windows Media Player, and to my surprise I can see ...
0 votes
1 answer
678 views

FFMPEG - MAC OS Cannot Capture from Black Magic UltraStudio (Thunderbolt)

I have Black magic UltraStudio Express that captures SDI or HDMI and Connected to MacBook via Thunderbolt when I list devices I get the Audio but not the video : $ ffmpeg -f avfoundation -...
1 vote
1 answer
146 views

Unable to find a suitable output format for 'libfdk_aac' libfdk_aac: Invalid argument

I'm trying to run this command in Windows 10. The script ran fine with 2 60mb samples. But now trying to run it on the full video, I'm getting this error: Unable to find a suitable output format for '...
0 votes
1 answer
120 views

FFMPEG to make Quicktime reference MOV file from ProRes MOV source

I'm trying to figure out how to use FFMPEG to make a reference MOV from a ProRes MOV source. I've found commands that will take reference file and make a rendered ProRes MOV file ffmpeg -enable_drefs ...
1 vote
1 answer
1k views

HLS.js player dropping frames at discontinuities in HLS stream

I have a need to play small pieces (1 or 2 seconds) of video in various orders via HLS. Think a highlights reel from a sporting match. Several HLS players struggle with playing a stream with ...
0 votes
1 answer
129 views

FFmpeg: maximum VHS quality?

I'm digitizing a number of VHS tapes into lossless video files using FFmpeg. How can I optimize my FFmpeg command further in order to come closer to the requested specs below, with the best possible ...
5 votes
3 answers
2k views

creating a lossless mp4 screencast

I'm trying to create a screencast for playback on the web. Would like to use h.264, webm, and ogg. The source files are in the Apple Animation codec, and they look perfectly accurate. However when I ...
0 votes
1 answer
210 views

FFMPEG VMAF consistently low rating despite quality encode

I've seen similar issues but can't seem to come to a resolution myself. I have a 4K rip that is in hevc, 10bit depth, which my older phone can't play since it lacks GPU acceleration. Therefore, I'm ...
0 votes
0 answers
18 views

MOV file not playing in iMovie and QuickTime

I did convert two MTS files to MOV. But one of the file is playing and working fine in iMovie app and QuickTime. But the other is not working. I did convert the first file by doing copy the stream and ...
0 votes
0 answers
44 views

how to encode a video like gopro 11 using ffmpeg

I want to concat two videos with ffmpeg. In order to concat the videos without re-encoding the videos have to be exactly the same format (same codec, same width, height, same color format, same time ...
0 votes
2 answers
48 views

Lossless masking of MP4/h.264

I am familiar with the UNIX command jpegtran which supports the wipe (1) command line option for JPEG (ITU.81) format. Using ffmpeg one can losslessly encode a jpg image sequence to a MJPEG video. I ...
0 votes
0 answers
28 views

FFMpeg - How to delete parts of a video that (partially) match an image

I have videos that include ad breaks whereupon the frames include a big logo in the middle (and text saying ad break). I have extracted one of those frames as an image. I want to run an ffmpeg command ...
0 votes
1 answer
1k views

How to obtain the correct framerate with ffmpeg image2pipe format?

I have 40 .jpg in my dir folder and want to create a video at 20fps from them. I've tried the following command: find dir/ -iname '*.jpg' | xargs cat | ffmpeg -f image2pipe -framerate 20 -i - -s ...
1 vote
1 answer
992 views

Capture a wpf window : The flickering issue

I made a simple animation (as crawl text) using C#-WPF. The animation is smooth and excellent. (in wpf window) But when I capture it by FFmpeg as video it has flickering problem. Please see sample1 ...
0 votes
1 answer
108 views

Why do I use ffmpeg to embed .ssa subtitles and ffprobe recognizes that the subtitle is ass format?

I use ffmpeg to embed .ssa subtitles into mkv, but ffprobe recognizes that the subtitle is ass format. ffmpeg -i input.avi -i input.ssa -map 0:0 -map 0:1 -map 1:0 -c copy demo.mkv Also, I learned ...
0 votes
1 answer
72 views

How to adjust video histogram using ffmpeg?

I have a dark video and'd like to adjust its histogram. In a graphical editor I've found the values of the color levels that enhance video contrast. How to set this level values in ffmpeg?
0 votes
2 answers
202 views

ffmpeg concat vob files not working?

I am trying to convert dvd .VOB files (unencrypted) to .mp4, but first want to concat them ... I made a text file: file './VTS_01_1.VOB' file './VTS_01_2.VOB' file './VTS_01_3.VOB' file './VTS_01_4....
0 votes
1 answer
2k views

Error decoding timecode using ffprobe

I'm using ffprobe to get timecode from an mxf which has DF timecode but with a non DF frame rate. I'm getting the error Drop frame is only allowed with 30000/1001 or 60000/1001 FPS. I'm running ...
1 vote
2 answers
801 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
0 answers
83 views

FFMPEG Trying to make a 8K 30 FPS MP4 video out of several hundred 8K PNG images

I have been trying to make an 8K MP4 video @ 30 FPS out of a few hundred 8K PNG images using FFMPEG since forever, but to no avail. The PNG images are serially numbered, starting from 000000 and going ...
2 votes
1 answer
18k views

how to get vdpau hardware acceleration using ffmpeg?

I am developing a multimedia player using ffmpeg. I am trying hard to get hardware acceleration through ffmpeg using vdpau hardware accelerator. I didn't get any success so far. Below I have mentioned ...
2 votes
1 answer
2k views

ffmpeg: Crop 21:9 out of 16:9 video

I've several old VOB's (self-recorded DVD's) with 21:9 content that is embedded in 16:9 videos… Width : 720 pixels Height : 576 ...
1 vote
1 answer
348 views

How to convert camrec to mp4 using ffmpeg?

I raise such problem but in the same post I raise the solution. The first thing to know is that the .camrec format (from Camtasia) is a compressed file, so we must first decompress these files before ...
1 vote
1 answer
76 views

ffmpeg combine multitrack audio

I have three audio files which I am attempting to combine into a multitrack audio file. ffmpeg -i A.wav -i B.mp3 -i C.wav -map 0 out.mp4 But the result seems to be (testing with ffmpeg -i) just a ...
0 votes
2 answers
181 views

Split video or export keynote slides separately

I have a problem I am struggling for 2 days. Maybe someone can give me some light. I made a huge keynote presentation (100 slides), with videos and animations. I expected to have one small exported ...
0 votes
1 answer
495 views

Which rate control algorithm best preserves quick movement?

I gathered the following rate control algorithms are commonly used when encoding modern video formats like h264, HEVC or VP9. With a constant quantizer (-qp in terms of ffmpeg) all frames are encoded ...
1 vote
0 answers
391 views

How to get ffmpeg/x264 to use same parameters as input?

I'm trying to accomplish a smart rendering workflow using ffmpeg/x264. In short, get ffmpeg to segment the input file. Locate the segment(s) with changes to be made. Re-encode altered segments with ...
0 votes
1 answer
1k views

Encode still image video effectively in FFMPEG

FFMPEG can make video from MP3 file and still image: ffmpeg.exe -loop 1 -i "img.png" -i "%1" -c:v libx264 -tune stillimage -shortest "%1.mp4" But it honestly encodes the ...
0 votes
1 answer
108 views

how to pipe:/// through a .sh or Python script, or use some sort of setting files with FFMPEG

First post, so be kind please :) So a quick bit of history. I am using tvheadend, and the inbuilt transcoder murders my CPU, and provides average quality output (it's powered by ffmpeg), if I pipe ...
0 votes
1 answer
316 views

How to remove video streams from .wmv with FFmpeg?

I'm working on a method to programmatically remove video and subtitle streams from video files of various formats and have been having some trouble with most .wmv files. Below is what I believe to be ...
0 votes
2 answers
889 views

libx264 for ffmpeg on linux

I am running ffmpeg on ubuntu. I tried to set the codec to libx264 but it was not recognised by ffmmpeg. Is there a way too install that codec for use by ffmpeg?
1 vote
1 answer
364 views

ffmpeg: How to avoid "start: 0.033333" when extraction audio from mp4

When extracting audio and video separately from a mp4 and recombining again ffmpeg -accurate_seek -ss 30 -t 10 -i input.mp4 -vn output-audio.mp4 ffmpeg -accurate_seek -ss 30 -t 10 -i input.mp4 -an ...
1 vote
1 answer
2k views

Concat overlapping videos with ffmpeg using python3

I have a number of videos that overlap in time that were downloaded from an online video stream: 0m00s - 15m10s 14m50s - 30m20s ... The first few seconds (usually around 20 seconds) of a video ...
1 vote
0 answers
57 views

Setting dpi flag in image files generated using ffmpeg

We're using ffmpeg to batch out some TIFF images that are being resized and having white borders created to fit specific paper sizes. The resulting images default to 72dpi, even when the source is ...
0 votes
1 answer
4k views

"Non-monotonous DTS in output stream 0:0 This may result in incorrect timestamps in the output file." error

Adding all mp4 file in the directory with FFMPEG . my usual command: ffmpeg -f concat -safe 0 -i <(for f in ./*.mp4; do echo "file '$PWD/$f'"; done) -c copy output.mp4 This shows below ...
0 votes
1 answer
247 views

Comparing FFprobe to Wave Agent Beta

Wav Agent outputs the following when I drag the same file in, so the data has to be in the file somewhere, and I just don't know how to look for it: WavAgent: StartTC: 13:09:21:18 Now, FFmpeg with ...
0 votes
1 answer
71 views

Final Cut Pro X won't accept similar files

I have two files that I want to import into Final Cut Pro X. They are both clips pulled from the same source file using the same commands. I am using a generated script to extract dozens of clips at a ...
0 votes
1 answer
561 views

ffmpeg: How to burn in the timecode from a stream's metadata

I have a timelapse video from a GoPro and want to overlay the time of the recording on the current frame. For instance, a frame taken at 9am might show 09:00. It seems like the drawtext filter is the ...
0 votes
1 answer
745 views

video overlay on another video with rounded corner, transparency, opacity, scaling, and border all together with FFMPEG in PHP

I am trying to change a video with Rotation, rounded corner, transparent, scaling, and border all with together and overlay on a video; I am trying to do this with FFMPEG in PHP but getting issue in ...
0 votes
1 answer
26 views

Codecs supporting variable resolution (y height of frame changes with time)?

I found a video posted on discord once that made the whole webpage underneath it bounce up and down when it was played. I assume it must have been encoded using a codec that supports a variable ...
0 votes
1 answer
59 views

How do you convert an mxf file to wav using ffmpeg?

I am using a Mac, I've run this: ffmpeg -i source.mxf -map_channel 0.1.0 -map_channel 0.1.1 \ -af 'volume=volume=6dB:precision=fixed' target.wav but I keep getting 'no such file or directory' ...
0 votes
1 answer
2k views

FFmpeg hardcoded subtitles revert to default font if subtitle is html

Here's how I'm using ffmpeg to hardcode the subtitles: ffmpeg -i tmp/input.mp4 -vf "subtitles=tmp/input.mp4:force_style='OutlineColour=&H80000000,BorderStyle=3,Outline=1,Shadow=0,MarginV=20,...
0 votes
1 answer
214 views

Extreme video stabilization in Linux, again

I have a 3840x2160 MOV file taken with my EM1.II Olympus camera. It is a videoclip of a tiny bird taken in the wild without any aids. Hence, despite the good stabilization feature of the camera, the ...
0 votes
0 answers
38 views

Gray screen issue after recovered video with ffmpeg

After recovered ".mp4" videos from mobile phone, some videos were corrupt. I used the FFMPEG method to fix the videos. Some CMD commands below; First Code: recover_mp4.exe good.mp4 --analyze ...
0 votes
1 answer
120 views

How to ffmpeg encode a video with audio properly synced in Adobe Premiere and Resolve?

I'm trying to use ffmpeg to encode a series of rendered images with a soundtrack. When we import that video into Premiere the audio seems to be 1/2 frame early. When we import that same video in ...
2 votes
1 answer
202 views

How can I programatically identify video frames containing a fixed rectangular area of a certain color?

I have video material containing frames with a rectangular area of uniform color interspersed with other content. I would like to identify these frames, with the intent of removing them. The ...
5 votes
1 answer
2k views

Largest input image size when encoding a video?

I got a bunch of really large 16 bit videos, approaching 65535×65535 pixels in size. These are essentially high quality timelapse panoramas. I want to convert them to a 7680×4320 movie (8K UHD, 8 bit)....
26 votes
2 answers
49k views

Convert mp4 to webm without quality loss with ffmpeg

What is the best way to convert a mp4 file to webm without quality loss (using vp8 or vp9) with ffmpeg? If I do ffmpeg -i in.mp4 out.webm the quality is very bad. I can specify a target bitrate via -...

1 2 3
4
5
41