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
1 answer
15 views

Ghost image issues with ffmpeg -filter_complex displace

I've (almost) been able to apply a displacement based on 2 animated gaussian noise videos, but I'm having issues with a ghost image. A picture is worth a thousand words. Here you have a script to ...
0 votes
1 answer
519 views

ffmpeg 4.2.3 freezes in encoding which is extremely slow

I tried to encode some video files, from GOPRO action camera. The whole fuzz is about two specific video files that the video orientation is 180 degree. Therefore, I thought to implement complex ...
0 votes
0 answers
19 views

What video container formats are similar to MPEG-TS?

I have been looking to live video streaming where a client can join the stream of bytes and play the video automatically. I have recently found MPEG-TS which seems to work pretty well, and I noticed ...
0 votes
1 answer
50 views

Resultant Video is always longer than input audio, even though I am using -shortest option of ffmpeg

I am using the following command to make a video from a single image; ffmpeg -loop 1 -i MyInputImage.png -i MyInputSound.m4a ^ -c:v libx264 -pix_fmt yuv420p -c:a aac ^ -shortest MyOutputVideo.mp4 ...
95 votes
6 answers
213k views

Repeat/loop Input Video with ffmpeg?

I just want to loop a mp4 video with ffmpeg and keep the current settings and codec. For example if input.mp4 is 0:10 long, and I would want to loop it 4 times so output.mp4 is 0:40 long, how could I ...
0 votes
1 answer
65 views

How can I automate creating a sequence from a set of clips?

I have a large amount of DV footage, which I want to convert into a video per day. I've tried doing this by scripting ffmpeg: ffmpeg -safe 0 -f concat -i day1-files.txt -fflags +igndts -ac 2 -ar 32000 ...
0 votes
1 answer
798 views

How to make ffmpeg to generate NUMBER_OF_BYTES tag for every stream in file output?

Can ffmpeg count size of stream in bytes? I want to write NUMBER_OF_BYTES tag for every stream in file output on the fly. Like MKVToolNix does. Input #0, matroska,webm, from 'm:\S01E18.mkv': ...
0 votes
0 answers
10 views

ffmpeg to output something video/mp4; codecs="avc1.42401f" can read

I have a webapp that plays a video through the MediaSource API. The codec is set to video/mp4; codecs="avc1.42401f" and I cannot change that. I'm able to play the following file https://...
0 votes
1 answer
144 views

How do I make a trimmed video show the missing frames from a Zoom recording using ffmpeg?

I have a Zoom video that I "cut" into two videos: ffmpeg -i 0131.mp4 -ss 55 -t 38:52 -codec copy 0131-1.mp4 ffmpeg -i 0131.mp4 -ss 40:00 -t 1:52 -codec copy 0131-2.mp4 I then merged into ...
0 votes
1 answer
29 views

ffmpeg to combine video + alpha video, transparency key with threshold

I have two corresponding video files. One is a regular video and the other is meant to be the alpha channel for that video. I wish to combine them, and use the alpha video to lay a transparency key ...
0 votes
1 answer
224 views

ffmpeg add loop to this line of code i have

windows 7 64 bit running latest ffmpeg command-line. ffmpeg -i "song.mp4" -i "2.mp3" -filter_complex "[1:a]adelay=3000|60000[1a];[0:a][1a]amix" -vcodec copy -y "output1.mp4" I want to loop the 2.mp3 ...
36 votes
6 answers
42k views

How to prevent FFmpeg from dropping metadata?

When I am simply copying a.MOV (from my iPhone) to c.MOV, FFmpeg drops a lot of metadata, including the time and location of the video. I tried -metadata, but FFmpeg still drops the information. It ...
2 votes
2 answers
8k views

ffmpeg merge 60fps and 30 fps mp4 into one file

I have been trying to merge some mp4 files with different frame rates without success. When I merge the files, there always seems to be a problem with the output. Most of the time the audio is not in ...
0 votes
1 answer
97 views

ffmpeg "-shortest" yielding a clip longer than audio file

I'm working on adding .mlp audio / TrueHD w/ Atmos content into an .mkv container (certain playback programs require a video track to bitstream audio). I'm synthesizing a color background for the ...
0 votes
1 answer
391 views

what is the best digital output format for miniDV tapes

I have many tapes that I want to encode with some current, compact codec. this is the output from ffprobe: [dv @ 0x5642a174c5a0] Estimating duration from bitrate, this may be inaccurate Input #0, dv, ...
0 votes
1 answer
26 views

Meaning of ffmpeg output (tbc, tbn, tbr)

I am using ffmpeg to tell me video info. Specifically: ffmpeg -i video.ext I get the output: Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 704x576 [PAR 12:11 DAR 4:3], 9578 kb/s, 25 tbr, 90k tbn, ...
0 votes
0 answers
14 views

How to make FFMPEG start faster (Initial delay creates extra latency)

When starting a transcoding process (for RTMP -> HLS in this case) the ffmpeg process does some probing initially. This takes at least 1 second. Afterwards the transcoding starts. The transcoding ...
0 votes
0 answers
5 views

How do I remove background from camera video with ffmpeg?

I'm overlaying my camera video on a screencast. Is there anyway to remove the background (like how zoom etc do it live) using ffmpeg and filter? Here is the command I use now: screencap() { file=`...
0 votes
1 answer
710 views

Convert interlaced(?) video to progressive

I have a video with the following details: Format : MPEG-TS File size : 6.49 GiB Duration : 1 h 35 min Overall bit rate mode : Variable ...
0 votes
2 answers
61 views

FFMPEG 9600x1080 5 video

FFMPEG 9600x1080 5 video stitching outputs black video Hello everyone. I’m trying to merge 5 1920x1080 videos into a one big 9600x1080 clip. I’m using FFMPEG for it with the following script: ffmpeg -...
1 vote
0 answers
19 views

Improve sound + image combination performance

First question on this site, unsure if it's off-topic to ask for specific solutions to specific problems. If it is, I'm sorry in advance. Code I have the following ffmpeg command inside a bash script. ...
1 vote
1 answer
1k views

Possible to repair corrupted VOB file?

Trying to encode episodes from a DVD. One episode appears to be corrupted and will not play on the disk, nor will it be accepted by Handbrake of ffmpeg. However, by copying the VTS file, VLC will play ...
0 votes
0 answers
9 views

ffmpeg, why down-conversion results in bigger file?

I usually reconvert my videos recorded on Android, because most of the time they can be well compressed. I mean, sometimes 150Mb becames 50Mb or even better, sometimes just a few megabytes gets saved. ...
0 votes
0 answers
7 views

ffmpeg complex filter lowering audio quality

I used some complex filters on a audio file and did some re-encoding. ffmpeg -f lavfi -t 5 -i anullsrc=channel_layout=stereo:sample_rate=192000 -i file1.mp3 -filter_complex "[1:a][0:a]concat=n=2:...
0 votes
0 answers
12 views

FFMPEG conversion from HEVC .MP4 video to .MKV stutters in VLC

I've been trying to convert a .mp4 file containing a HEVC encoded video and AAC encoded audio into a .mkv container with ffmpeg. However, when I try to play the resulting file in VLC it stutters. ...
1 vote
1 answer
27 views

ffmpeg merge video with 2 audio files

What I'm trying to accomplish is the following: I want to use ffmpeg (preferably a single command) to combine a video (video.mp4) file with an audio file (audio.mp3) and have some background music (...
0 votes
0 answers
10 views

Use ffmpeg to stream rawvideo from a USB camera

I have a image sensor that streams 640x480 in RAW8 format. A USB controller is receiving this data, packing two pixels of 8-bits each and sending to USB as a 16-bits per pixel YUV422 format (this is ...
0 votes
1 answer
211 views

ffmpeg frame rate

I have several images and I am reproducing them in 78.7ms, I am creating like the 80s video effect. But, I am unable to find the correct ms, and those images with the original videos are unsynced. I ...
0 votes
1 answer
94 views

How to find out if the yuv420 video has full or limited color range?

I'm searching for a reliable way to distinguish between the full-range and limited range picture formats in videos, particularly I will be satisfied with a solution for Y'UV 4:2:0 H.264 videos in the ...
0 votes
1 answer
77 views

Possible to reconstruct video from mbtree file?

I have a large mbtree file and found out it was used for video transcoding. Is there any way to reconstruct the video from the mbtree file or is it just (useless) metadata?
0 votes
0 answers
26 views

Command for dithering video using FFMPEG?

Noob here. I'd like to use FFMPEG to dither a video file. I'm unable to find how to put together a command and where and how to use it. I really like the look of ezgif.com gifs, which I believe use &...
0 votes
1 answer
169 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
225 views

ffmpeg - duplicated frames

I'm converting a couple of videos that I have using the following command: ffmpeg -i input.mp4 -c:v hevc_amf -c:a copy input_h265.mp4 It works, but on some videos I get this warning message: More ...
0 votes
1 answer
17 views

How can I apply a crop to frames before tiling with ffmpeg?

I'm using the following to build a preview filmstrip image by grabbing every Nth frame and tiling them into a grid: ffmpeg -i "$file" -frames 1 -vf "select=not(mod(n\,$N)),tile=${COLS}x$...
1 vote
1 answer
182 views

FFMPEG: Choosing the right win_func for showfreqs

I'm using showfreqs and various other audio viz filters to create cool spectrum visualizations for my self-released music. Going through the documentation, I see that there's a multitude of win_funcs ...
0 votes
1 answer
60 views

Convert mp4 to webm in a reasonable time

I have found this solution provided by hackerb9: ffmpeg -i input.mp4 -b:v 0 -crf 30 -pass 1 -an -f webm -y /dev/null ffmpeg -i input.mp4 -b:v 0 -crf 30 -pass 2 output.webm It's works, but ...
0 votes
1 answer
342 views

ffmpeg compress video in fast motion in high quality

I would like to compress a video and in the same time to be in fast motion, and this must have as a result a high quality fast motion video. I tried to run this ffmpeg command which compress video ...
0 votes
0 answers
6 views

FFmpeg - Is it possible to invert blackdetect filter's results to extract timecodes start/end of "segments" between blacks?

I'm researching to automate some process on rushes video files. The timeline is black > sequence > black > sequence... I would like to extract the timecodes start/end of each sequence and ...
0 votes
0 answers
6 views

FFMPEG: concatenate short excerpts from multiple videos on frame basis

Synopsis: For a music video project, I want to concatenate a larger ammount of short excerpts from multiple videos into a kind of video "remix" on Windows (10). The concatenation should work ...
0 votes
0 answers
12 views

can I change ffmpeg crop position at runtime for each frame during stream

I am trying to move an Region of Interest (RoI) around a multi-camera tiled source (which will be too big to encode for smooth viewing), and stream this "live". The RoI is externally ...
1 vote
1 answer
46 views

Setting points and doing a quick "snip", dynamically playing the video

I need to cut out "best moments" from 1hour videos.(up to 6 moments per video) What software is able to set in/out marks and save marked periods with keyboard shortcuts while watching the ...
6 votes
1 answer
3k views

Finding the place where a video loops

I got a video of a fireplace, the video is 3 hours long. I can see that it is looping as the logs keep burning forever. My guess is that it is looping in the region of 5-15minutes. Is there some ...
1 vote
1 answer
3k views

ffmpeg rtsp over http not working

I put this conf on ffserver HTTPPort 1234 RTSPPort 1235 <Stream live.h264> Format rtp Feed feed1.ffm VideoCodec libx264 VideoFrameRate 24 VideoBitRate 100 VideoSize 480x272 AVOptionVideo flags ...
0 votes
0 answers
10 views

FFMpeg generate single rawvideo every n second

I am trying to create byte arrays to search video file duplicates with different resolutions. For creating single byte array, I am use next command: -t 1 -f rawvideo -pix_fmt gray -vframes 1 -s 32x32 ...
0 votes
1 answer
1k views

FFmpeg Can't Capture Window Rendered with Secondary GPU

Edit: I am using the terms "primary" & "secondary" cards below loosely. I'm just assuming the Intel card is considered the first card. I recently discovered how to use my secondary graphics card (...
1 vote
0 answers
5 views

I'm trying to make an op-1a pattern mxf file from an interleaved 5.1 BWF file. Must be audio only. Any ideas?

I've used quite a few commercial products over the years to create mxf files for various application (OP-atom, OP-1a, AS02, IMF, DCP, etc) but now I need to find a CLI method (preferably open source) ...
0 votes
1 answer
227 views

FFMPEG: Video format replacement for webm (alpha channel)

I am currently creating a webm file using two mp4's (alpha - black background, white silthoette) and normal video. Using following ffmpeg command: ffmpeg -i color.mp4 -i alpha.mp4 \ -...
0 votes
2 answers
725 views

Horizontal to vertical video using ffmpeg

I want to make a horizontal video get converted to vertical video using FFMPEG for automation purposes. I tried with this, which works for vertical to horizontal ffmpeg -i input.mp4 \ -vf 'split[...
0 votes
2 answers
167 views

Importing uncompressed video into Final Cut Pro without (too much) transcoding

I have recently digitized a VHS tape using VirtualDub. Here is the MediaInfo of the original file. General Complete name : capture.avi Format ...
0 votes
0 answers
8 views

Separating Videos Contained in Single .AVI (Mpegts)

I have a single output file, in .AVI format that contains 3 video streams (h.264 encoding). It appears as a single stream of data, but from 3 ports. It was created using gstreamer with mpegts. An ...

1
2 3 4 5
39