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

Can't apply “fade in” after “fade out” (FFMPEG command line)

I'm debugging the command ffmpeg -i ./input-file.mp3 -af "afade=t=out:st=**5**:d=2" ./output-file But if I try to run a new fadein, after the fadeout, it won't work. The sound doesn't come back. ...
0
votes
0answers
9 views

How do I join multiple glob inputs into a time lapse with ffmpeg?

I'm trying to combine image files from multiple directories into one combined time lapse using ffmpeg, but when running this code, only the first directory is used in the time lapse. How do I combine ...
0
votes
0answers
12 views

DVD created with ffmpeg and dvdauthor doesn't start at the beginning

I'm trying to create a DVD from a video file. While I've done this in the past and had a method that usually works, it has been a few years. This is my process: I have ripped an old VHS tape with a ...
0
votes
2answers
21 views

How do you keep the silent part of a video?

How can I keep the funny silent part of a video (sniffs, breathing,...)? I found a solution here, but is there another solution? I mean: Can I do the same in a video editor?
0
votes
0answers
13 views

How to capture mpeg-ts streaming via udp using ffmpeg?

I have access to mpeg-ts live stream via udp. My question is, how to capture it on my computer? What I have: udp adress with port and metadatas of this stream What I tried: Tried the solution from ...
0
votes
1answer
16 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?
1
vote
0answers
18 views

ffmpeg ProRes to MP4 Alters Colors Slightly

I cannot for the life of me figure out what is going wrong, but I have a ProRes MOV file with the following specifications: And I want to convert it to a 4:2:0 MP4 video file. Every time I attempt ...
0
votes
1answer
12 views

How to add repeated audio background to video using FFmpeg?

Let's say you want to add a looped background audio from bg.mp3 to your mp4 video file.
0
votes
0answers
9 views

FFMPEG is not trimming the audio to the length of the video

As a follow-up on Video concatenation puts sound out of sync, I have 6 video clips where the audio is 200 ms shorter than the video. The last clip has a chair banging on the floor and serves to ...
0
votes
2answers
25 views

Can ffmpeg downsample pixels perfectly?

I've tried all the swsflags options and figure the answer is no, but it can't hurt to ask just in case. For example: downsample from 1920x1080 to 960x540, then upsample back to 1080 using the ...
1
vote
1answer
37 views

Remove frozen parts from a corrupted video

When dealing with corrupted videos, ffmpeg is a great to tool to automatically fix errors. Is there a way, with ffmpeg or another similar tool, to automatically remove/drop/trim/cut away frozen parts ...
0
votes
1answer
31 views

Concatenate two video files with a dip to white with FFmpeg

Is there any way to concatenate two video files with a dip to white (0.03 sec) with FFmpeg?
0
votes
1answer
34 views

Capturing and tiling video thumbnails in a single step

I have a server software that generates video thumbnails using ffmpeg in two steps like this: Step 1 -ss 00:00:19.7500417 -i "S:\vids\main.mp4" -ss 00:00:39.5000834 -i "S:\vids\main.mp4" -ss 00:00:...
0
votes
1answer
23 views

How to extract each video scene with FFmpeg

I'm trying to detect scenes and save them as individual files with FFmpeg. I found this long command somewhere, but it fails with a good detection. I change the scenecut value, but I don't see any ...
0
votes
1answer
23 views

ffmpeg video generation process optimization

I am generating video using ffmpeg by combining images, audio, logo and some text sliding from right to left. Currently I am using four different ffmpeg commands to complete my video generation ...
0
votes
0answers
19 views

Video seeking doesn't work for files recorded from a camera using ffmpeg

I'm using the following command to record videos from a camera: ffmpeg -framerate 30 -video_size 1280x720 -t 00:58:00 -i /dev/video0 /home/myuser/my_video.mp4 The problem is that the resulting video ...
0
votes
1answer
20 views

Can you encode intra-frame videos from inter-frame without loss?

I'm aware of the differences between intra and inter, but I'm not the most savvy about reencoding them after the fact. Is encoding with intra from an inter-coded video the same as if you originally ...
0
votes
0answers
12 views

How to concat multiple *.ts files which have audio streams shorter than video streams

I'm trying to concat hundreds of short *.ts pieces into a single mp4 video. I've tried the following command: ffmpeg -f concat -safe 0 -i list.txt -c copy output.mp4 And at first glance it looks ...
0
votes
0answers
38 views

ffmpeg: Preserve timecode when converting mov to mp4

This seems simple enough. I want to do a basic conversion of a .mov file to a .mp4 file using ffmpeg. The hitch seems to be that I also need to preserve the timecode. I've looked at many posts from ...
0
votes
0answers
25 views

Preparing videos for video machine learning with ffmpeg (equal frame rate, crop, reduce size, strip audio)

I'm working on video machine learning and have a directory with plenty of small (1min up to 14min) *.avi files with different sizes and aspect ratios, slightly different frame rates (e.g. 25 Hz, 22 Hz,...
0
votes
0answers
14 views

How to concatenate videos and generate chapter with ffmpeg?

I have 30 parts of a video, named as Video - Part 01.mp4 Video - Part 02.mp4 Video - Part 03.mp4 ... Video - Part 30.mp4 I want to concatenate them into one and automatically generate chapters for ...
-2
votes
0answers
25 views

Coded document for ffmpeg?

I am new to the world of ffmpeg and wondered if anyone could point me in the direction of the codes used to transcode video and audio files to all different codecs\formats\profiles\levels\bitrates etc....
0
votes
2answers
35 views

How to add lower third text graphics to a video using FFmpeg

I'm trying to add text to my video. Something like this: So far I've tried this command, but the text doesn't wrap: ffmpeg -i input.mp4 -vf \ "format=yuv444p, \ drawbox=y=ih/PHI:color=black@0.4:...
2
votes
0answers
25 views

Efficiently compressing a looping video with h264

I have a video that is initially 19 frames long and lasts for about 0.5 seconds, it's 432kB. I've looped it over three minutes and the resulting file is quite large (200MB). Using FFMPEG is there a ...
0
votes
1answer
22 views

Convert Vertically Stacked video to horizontally stacked via FFMpeg

Based on the answer to this question, how would the command line ffmpeg -i input.mp4 \ -filter_complex "[0:v]crop=in_w/2:in_h:0:0 [top]; \ [0:v]crop=in_w/2:in_h:in_w/2:0[bottom]; \ [top][bottom]...
1
vote
1answer
60 views

Editing/Changing Cluster Timecode Element in mkv files (Amazon Kinesis Video)

I've tried researching this very thoroughly, but have not come across a similar issue. To sum up my problem first, I'm sending 3 second .mkv clips into Amazon Kinesis Video. Then I pull back random ...
0
votes
0answers
18 views

ffmpeg is creating variable bit rate AAC

I'm trying to transcode to 2.0 AAC at 192 kbps (all channels together should = 192 kbps). ffmpeg -i "$file" -map 0:a:m:language:eng -vn -acodec copy -f nut - | ffmpeg -f nut -i - -c:a aac -b:a 128k -...
0
votes
1answer
27 views

What determines the chosen bitrate with ffmpeg constrained encoding example?

Looking at https://trac.ffmpeg.org/wiki/Encode/H.264: I see this example as being the recommended method to target a bit rate for files meant for streaming ffmpeg -i input -c:v libx264 -b:v 1M -...
1
vote
1answer
35 views

Complex filtergraph

Here is what I am trying to accomplish in one FFmpeg process: A. Take in 3 inputs B. Overlay input 1 over input 0 (input 1 has an alpha channel) C. Take the result of step B and concatenate input 3 ...
2
votes
1answer
38 views

How to change frame rate of MJPEG segments with/without re-encoding?

I'm trying to record segments using a webcam and save these segments with a lower fps. I've tried this command, but it keeps giving me an error: ffmpeg -f v4l2 -input_format mjpeg -video_size 800x600 ...
0
votes
1answer
25 views

Recording webcam video - ffmpeg - error

I am setting up a Raspberry Pi with a USB webcam to use as a dashcam. The code is as follows: #!/usr/bin/env python import subprocess import datetime import os ROOT_PATH = os.getenv("ROOT_PATH", "/...
0
votes
0answers
23 views

ffmpeg and minterpolate fail for large jpeg source files

I am trying to encode 5000x3000 pixel .jpg images into video, and would like use frame interpolation using ffmpeg 's minterpolate tool. I realize this is a huge video at high quality, but the idea is ...
0
votes
0answers
40 views

Retrieving RTP/RTSP Absolute Timestamps through ffmpeg

This is an update to my previous post from stackoverflow. I am able to get the RTP timestamps by using ffmpeg and opencv currently, however, I am trying to actually get the timestamp at which the ...
0
votes
1answer
27 views

How to use hardware acceleration with FFMPEG for trimming and concatenation purposes

I am running FFMPEG on a Windows 10 (64-bit) laptop with Intel i3 (6th generation) processor and AMD R5 M430 GPU. I shot many videos on a recent trip. Cumulatively, they are over 100 hours long. Each ...
0
votes
1answer
32 views

ffmpeg: keyframe extraction with pts

I have an ffmpeg newbie question, I am extracting keyframes from streams using this command: ffmpeg -skip_frame nokey -i {0} -vsync 0 -r 30 -f image2 keyframe-%09d.jpeg However, instead of an auto-...
0
votes
1answer
45 views

How to fix: ffmpeg: Picture size 32768x16384 is invalid?

I need to use ffmpeg with very large images (32768x16384). When I try to read such an image I get the error: Picture size 32768x16384 is invalid It it does not matter what operation I want to do on ...
1
vote
3answers
85 views

Replace all completely black frames with interpolated frames

Due to a bug with Nvidia Shadowplay, I have a bunch of videos that look like this. A bunch of random frames have been replaced with pure black frames. I'd like to fix one of these videos to remove ...
0
votes
1answer
43 views

Is it possible to download m3u8 as separate files using ffmpeg?

I know it is possible to download playlist and concatenate it on the fly with something like this: ffmpeg.exe -protocol_whitelist "file,http,https,tls,tcp" -i input.m3u8 -codec copy output.mp4 But I ...
0
votes
1answer
24 views

Audio and Video out of sync when slowing down

I want to make a video play at 75% speed, so I used the following command: ffmpeg -i combinedfullspeed.mp4 \ -filter_complex "[0:v]setpts=1.25*PTS[v];[0:a]atempo=0.75[a]" \ -map "[v]" -map "[a]"...
0
votes
0answers
32 views

Make ffmpeg read subtitles as stream

I have a stream (rtmp) and I would like to generate some subtitles for it(based on what's happened on stream). I can generate it like a pipe, or some other way. I use script like this: for i in $(seq ...
0
votes
1answer
67 views

ffmpeg: How to fix `Unsupported channel layout “1 channels (FL)” error`, when I convert the source containing separated FL/FR audio streams?

Problem I want to convert the MOV file containing the separated FL/FR audio streams to MP4 file, transcoding the video to h264 and the audio to AAC. However, it fails with the following error: [aac @...
0
votes
1answer
81 views

ffmpeg/x265: fixed-GOP, IDR only keyframes, repeating headers

I need to transcode a video to another one with the following properties: GOP size is always fixed at a given value Only IDR frames are used as key-frames (not I-slices) SPS/PPS/VPS frames are ...
0
votes
1answer
25 views

Merging two videos with hstack and play them back sequentially

I am merging two mp4 files using hstack. I am using amix to merge the audio. Everything works perfectly. Now I want that the hstacked videos should play sequentially, that is one after the other. ...
0
votes
0answers
28 views

FFmpeg identify non-IDR frame (I frame) as keyframe

It's a mov file. We use FFmpeg/FFprobe to process this file. There is a frame which is shown 'keyframe' (flags=K) in this file, but we found this frame is a non-IDR frame (only is I frame) using 264 ...
0
votes
0answers
26 views

RTP Timestamps Obtained from FFmpeg and OpenCV are not Monotonically increasing

I am finding it a bit difficult trying to understand whether or not the hack around with FFmpeg and OpenCV really provided a RTP timestamp. My last post helped a little bit but got me stuck in trying ...
0
votes
0answers
36 views

Is there a way to get smooth playback using -use_wallclock_as_timestamps 1?

I want to sync 4 live inputs and apply the xstack video filter. Using -use_wallclock_as_timestamps 1 parameters, I get the sync, but the output isn't smooth. Here you can see the command, and full ...
0
votes
1answer
24 views

ffmpeg - Make a white line look thicker

I've been actively playing around with ffmpeg for the past few days, and now I want to make an audio visualiser, just with the showwaves filter (I made it white using p2p mode, and I don't want to use ...
1
vote
1answer
29 views

Resize video while live streaming with ffmpeg

My server uses this command to stream a video (1280x544): ffmpeg -re -i c:\ffmpeg\This.mp4 -vcodec copy -acodec copy -movflags faststart -f mpegts tcp://192.168.1.82:1234?listen Now, I would like to ...
0
votes
0answers
23 views

FFmpeg HLS video download progress stops after some time - but still downloads data

FFmpeg starts off downloading the HLS video off the m3u8 normally, but after exactly 24 seconds it just stops seeking forward, and instead gradually raises bitrate while still downloading data. Full ...
0
votes
1answer
18 views

Final Cut output to FFmpeg workflow

If I use Apple Compressor, I could just 'Send to Compressor', without first exporting a ProRes master. However, I would like to use FFmpeg/x264 for better quality (at low bitrate). Do I have to ...