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

Add audio and subtitle in mkv video by one command

Add audio and subtitle in mkv video by one command. Code add subtitle: -i input.mkv -f srt -i subtitle.srt -map 0:0 -map 0:1 -map 0:2 -map 1:0 -c:v copy -c:a copy -c:s srt -c:s:0 srt -metadata:s:s:0 ...
0
votes
0answers
12 views

How to detect “late” audio streams in MPEG-2 TS (with ffmpeg, ffprobe or mediainfo)?

I am recording from my Linux TV-Sat receiver in MPEG-2 transport stream (mpeg2video) format. The recording starts before the actual movie, so it usually only has a single (local) audio stream in the ...
0
votes
0answers
10 views

embed an image in an MP3 and convert to MP4

The Situtation: I have the following situation: about 150 mp3 files, about 1 hour to 3 hours long, I need a quick way to convert it to mp4 with a standardized and unique thumb / cover art image that ...
0
votes
0answers
3 views

ffmpeg: concat without temp files?

Is it possible to concat without temp files using ffmpeg? eg; # nice ffmpeg -v error -f concat \ -ss "52.519" -copyts -to "53.153" -i in.mkv \ -ss "53.186" -copyts -...
0
votes
0answers
5 views

How can I convert these Blender video settings to ffmpeg please?

Whenever I use the ffmpeg commands, the video is larger and the seeking/keyframe inteval is not the same as the video rendered from Blender. How can I convert the following Blender settings to ffmpeg ...
0
votes
1answer
20 views

Video format for instagram

I need convert to the .mp4 video with this requirements. Container: MOV or MP4 (MPEG-4 Part 14), no edit lists, moov atom at the front of the file. Video codec: HEVC or H264, progressive scan, closed ...
1
vote
1answer
13 views

Removing frames from a video - how to make playback not pause during removed frames (i.e. assign new timestamps)

I am working off this answer here. I have calibrated my video such that the following code perfectly exports the frames I want to keep ffmpeg -i in.mp4 -vf "blackframe=amount=0:threshold=92, ...
-1
votes
0answers
11 views

ffmpeg split add merge

Split 20 minutes video add another 5 seconds video in between merge it back every x seconds Or Split 20 minutes video add another 5 seconds video in between merge it back every x seconds in x seconds ...
0
votes
0answers
8 views

FFmpeg loop video for 30 seconds generate a big video size

I'm trying to loop a 3 sec video to make it 30 sec, I use the following command : > ffmpeg -stream_loop -1 -i input.mp4 -c copy -t 30 output.mp4 It's working fine, but with the output size 40 MB, ...
1
vote
1answer
17 views

Using ffmpeg, can I remove the color from an area of the video

a TV station I watch has a very distracting logo, which is a semi transparent red square. I can cover up the logo with the delogo filter like this: (Alas this introduces new distractions.) ffmpeg -y -...
1
vote
0answers
7 views

Producing video for multiple platforms

I want to create videos for multiple platforms. For example youtube and a private school. Now the thing is that I want certain lower thirds to appear on one rendered video and another set to appear on ...
0
votes
0answers
7 views

in FFMPEG, “:enable=between(t,5,10)” not starting at begining

I have three inputs; two images and a folder of image squence. Total length of image squence is 3 second. ffmpeg -loop 1 -t 10 -i image1.jpg -loop 1 -t 10 -i image2.jpg -i png/out%d.png ...
0
votes
1answer
12 views

get metadata for video start time with ffmpeg

I need to get the start time of some videoclips (very precise, ideally precise at 0.1 sec). I have been told that I may be able to do so using ffmpeg. I managed to install it but am not sure how to ...
0
votes
1answer
19 views

ffplay — suppress configuration information on startup

Is there a way to suppress configuration information when starting ffplay? I know I could redirect to /dev/null but I don't want to lose stderr or stdout. Thanks!
0
votes
0answers
17 views

Converting a DPX image sequence with ffmpeg

I am trying to convert an 10 bit RGB DPX image sequence, captured with the Blackmagic Intensity Pro from a PAL source, to a video with ffmpeg. My problem with that is, that I can create from the DPX ...
0
votes
0answers
21 views

How to remove background from video without green screen on the command line?

I'm looking for an ffmpeg-like tool to blur/remove/change a static background from a "talking head" video, on the command line with on-device processing. Essentially, ffmpeg-like-tool [--...
-1
votes
1answer
26 views

What should I learn in order to understand ffmpeg?

I'm able use some basic ffmpeg commands to process videos, but I never fully understood them. There are too may terminologies in ffmpeg's documentation that I don't understand. What should I learn so ...
0
votes
1answer
10 views

How to use the frame at 5s and replace all frames before it using ffmpeg?

I have a video file a.flv. I want to use ffmepg to edit it. As I understand, each second of the video is a series of frames. What I want is to take the first frame of the fifth second and replace all ...
0
votes
0answers
11 views

Overlay of multiple image sources with layer stack-order, with ffmpeg

Note: I've already read a few questions/answers about [ffmpeg] overlay, but it did not fully answer this. Let's say we have five inputs [0] ... [4] that can be images, videos, etc. I'd like to overlay ...
0
votes
0answers
14 views

Encoding params for fastest seeking in browser

I'm looking to encode video for the browser the use case below. Currently using FFMPEG but happy to use other software if that's better. Important: Ability to seek with as little delay / lag / jank ...
0
votes
1answer
21 views

replace video track and keep everything else

I want to use FFmpeg to replace a certain video track but keep everything else including chapters, audio, fonts etc… I know I should be using -map and -map_metadata but not sure how to do it.
0
votes
1answer
26 views

Is there a way to use nlmeans_opencl filter with a 10 bits source?

So far I have only managed to run nlmeans_opencl filter with the following settings: ffmpeg -init_hw_device opencl=gpu:0.0 -filter_hw_device gpu -i 10bit_input.ts \ -vf "hwupload,...
0
votes
0answers
29 views

ffmpeg stream command line for peertube live

I cannot figure how to enable ffmpeg rtmp live streaming. As far as I could go, I obtained this command line : bash ffmpeg -i /dev/video0 -c:v libx264 -preset ultrafast -crf 23 -f flv -listen 1 rtmp://...
0
votes
0answers
30 views

Automate MKV import and Multi-Track Export in audacity

Hi I have a macro that mostly automated my basic workflow in audacity for initial processing however the import track selection from the imported mkv and the multitrack export still require manual ...
0
votes
0answers
25 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
0answers
23 views

Transcoded video become shorter (playback length) and plays at double speed

Currently I am doing a project where I am recording live video (720p25) with a video capture card (stretch card). This live video feed is recorded into a 3rd party proprietary video recording software....
0
votes
0answers
28 views

Multiple live streams composed into a single output stream with FFmpeg and Nginx

I'm working on the creation of a platform that ingests multiple video stream inputs and composes them into a picture in picture stream before sending them along to an external streaming service. This ...
0
votes
0answers
56 views

Using ffmpeg to change value of pixels (pixels close to white, make pure white and pixels close to black, make pure black)

I have a segment of a video captured from a Nintendo 64 that looks like this for a couple of seconds: and because of my capturing setup there is slight ghosting around the black text (and some other ...
0
votes
0answers
21 views

Add a cross-fade to a ProRes clip

I have a ProRes 422 HQ trailer clip that is about 70 seconds. I would like to add a 0.5s cross fade (to black/silence) at the head and tail of the clip. The output file must have the exact same ...
2
votes
0answers
22 views

Stabilize MP4 from gyroscope metadata? (Insta360)

I just got an Insta360 One R 1-inch sensor and the footage is shaky as hell. I realised that you need their desktop application to actually stabilise in post-production but since I'm on Linux this is ...
0
votes
0answers
19 views

Create a video from a changing jpg image with FFmpeg

I have this one jpg image which changes approx. every 4 seconds. Based on this image, I want to make a 60 second long video. I tried this. ffmpeg -t 60 -loop 1 -r 1 -i input.jpg -r 1 output.mp4 This ...
0
votes
0answers
16 views

How to grab multiple image from a live stream:

Questions: On the links below you can see a live stream from the Danish Great Belt Bridge: Streaming from Danish Great Belt Bridge Pylon Streaming from Danish Great Belt Bridge from landside How to ...
0
votes
0answers
7 views

How can I delete a chapter from a MP4 video?

I use Foobar2000 to tag my music. I just recently found out by dumb luck that it works with mp4 videos as well and shows the tracks as chapters. One video in particular, it shows it as 19 Chapters, ...
0
votes
1answer
37 views

Using the ffmpeg hashframe muxer on encoded frames in real time

I am trying to use the ffmpeg framehash muxer to hash frames as they are being recorded. I've tried ffmpeg -nostdin -hwaccel auto -fflags +igndts \ -f alsa \ -ac 1 \ -ar 44000 \ -...
0
votes
0answers
27 views

How to view expansion of options ffmpeg uses when specifying -target?

I am trying to convert a video to NTSC so I can make a DVD out of it, and to do so I am using the following command: ffmpeg -i input.mp4 -target ntsc-dvd output.mpg I know that the -target ntsc-dvd ...
0
votes
1answer
54 views

How to convert video to NTSC (so it can be burned to a DVD) without losing quality?

I have a 1080p mp4 video, and I want to burn a DVD from it. It must be 'mastered' as a DVD, so it can be played back on an older DVD player (i.e. it can't be a data DVD). For the tool that I'm using ...
0
votes
0answers
60 views

Quality control in DTS to AAC(stereo) conversion using ffmpeg

I am trying to convert a DTS stream to AAC(stereo) using the following command: ffmpeg -i "input.mkv" -c:v copy -c:a aac -q:a 2 -ac 2 -ar 48000 "output.mp4" [ffmpeg ...
0
votes
1answer
43 views

How to move an (overlayed) image across a video in ffmpeg?

moving crop works for video, but I could not make it work for a (jpg) image. How to move an image in the video using ffmpeg? Here is my try that does not work ($TST is a .jpg): ffmpeg -ss 30 -i main....
0
votes
0answers
39 views

Gop structure changed after transcoding

I need transcode file to XDCAM HD422. I use something like the following command (it's only part of command, but that's enough to reproduce my problem). ffmpeg -i pathToFile -ss 00:00:00 -t 00:00:30 -...
0
votes
0answers
32 views

How to decode a 2D video with H264 by FFPMEG?

For one of my projects (https://www.cs.tau.ac.il/~amir1/PS/3d.pdf) I need to use FFMPEG, but I am entirely new to C++ so diving into it will take a lot of time. Is there any code/handy resource ...
0
votes
0answers
9 views

ffmpeg converting to gif forces wrong aspect ratio despite trying to manually set aspect ratio [duplicate]

I have a very short mp4 file with dimensions 1440x1080 which identifies with mediainfo as having aspect ratio of 16:9. When I attempt to convert that mp4 file to a gif and play it with either mplayer ...
0
votes
0answers
25 views

Drop 1 subtitle, insert another, preserve another with ffmpeg

Here is my scenario: MKV file has 2 audio tracks (fr, eng) File needs the audio tracks switched File needs to make eng the default audio track File also has 2 subtitle tracks (fr-forced, fr) Need to ...
0
votes
0answers
27 views

I want to convert .mp4 to .ts using H264 at constant framerate 25fps

I've been trying to do this conversion for a couple of days reading through forums ffmpeg -i in1.mp4 -vcodec libx264 -s 720x576 -vf "fps=25"-vsync cfr -b:v 2300k -acodec aac -b:a 128k out1....
0
votes
0answers
51 views

What is the best way to convert a public RTSP stream to HLS?

I have a public RTSP stream from my IP camera in the format rtsp://user:password@[public IP]:[port]. I want to convert this to HLS or a usable format to be displayed on the web. I understand that it ...
0
votes
0answers
35 views

Scale from this resolution

I have the following mp4 file: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder ...
0
votes
1answer
32 views

Trouble When Combining two video fields into one (to create an interlaced video)

I'm having trouble with the command found here: Combining two video fields into one (to create an interlaced video) ffmpeg -i tf.avi -i bf.avi -filter_complex vstack,il=l=i:c=i -c:v ffv1 out_i.avi It ...
0
votes
0answers
44 views

How to scale video without stretching it?

I am using this command to scale video ffmpeg -i input.avi -vf scale=720:480 output.avi. I want to add black background instead of stretching the video.
0
votes
0answers
18 views

Mixing audio of multiple audio and video files (working even if a video doesn't have audio)

How to mix/merge the audio from multiple videos and/or audio files, with a command that works in the case the video has/doesn't have audio? I tried this: ffmpeg -f lavfi -t 0.1 -i anullsrc # [0]...
0
votes
0answers
20 views

ffmpeg: can't loop over files in folder to remove audio track f was unexpected at this time

I have a folder with .avi files: dogs dog1.avi dog2.avi ... Each .avi file has 2 audio tracks. I want to remove the first track. I can do if for one file like this: ffmpeg -i dog1.avi -map 0 -...
0
votes
0answers
56 views

How to input noise values in dBFS for ffmpeg silence detect

I used the silencedetect of ffmpeg with noise value of -30dB to get the silent parts of a small video file & used those timestamps to trim & re-encode the silent parts of the videos. I had ...

1
2 3 4 5
35