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
1
vote
0answers
104 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, ...
2
votes
1answer
117 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 -...
2
votes
1answer
19 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 ...
1
vote
0answers
70 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 ...
1
vote
1answer
152 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
35 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
131 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 ...
1
vote
1answer
133 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
39 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
48 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 ...
1
vote
0answers
43 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
33 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 ...
1
vote
2answers
69 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
455 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
120 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
45 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
2answers
302 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
33 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
300 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
144 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
22 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
178 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 ...
1
vote
1answer
42 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
42 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 ...
1
vote
0answers
65 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
69 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
34 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
93 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
190 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
76 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
50 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
45 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 ...
1
vote
0answers
78 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
1answer
123 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
82 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
36 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
60 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
65 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
45 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
91 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
116 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 ...
0
votes
0answers
73 views

How to change subtitle script resolution? (PlayResX: PlayResY: )

I have a .ass(SubStation Alpha) subtitle the resolution is PlayResX:640 PlayResY:360 I want it to change to PlayResX:1920 PlayResY:1080 Can ffmpeg do this?
1
vote
0answers
58 views

Using FFMPEG, how to join two videos with an intermediate crossfade transition?

Using FFMPEG, I need to join Video 1 and Video 2 with an intermediate transition Video T . Video 1 has a duration D1 . Video 2 has a duration D2 . Video T should have a duration DT . The resulting ...
0
votes
0answers
117 views

Simplest FFmpeg muxer for raw video & audio

I've noticed FFmpeg does not work well when writing to more than one output pipe. So I figured muxing my rawvideo and rawaudio input streams, output the result to a single pipe, and demux it myself ...
0
votes
0answers
132 views

Add an image overlay in BACK of video using ffmpeg

I need to put a video in front of the image (or add a background image to the video) I found this command: ffmpeg -i input.mp4 -i image.png \ -filter_complex "[0:v][1:v] overlay=25:25:enable='...
0
votes
1answer
35 views

HTML tags in SRT files produced by ffmpeg

What I do: $ ffmpeg -i a.mkv -c:s srt b.srt The resulting file contains HTML tags, is there a way to avoid that? On a side note, where can I find the list of... what do they call it... encoders? I ...
0
votes
0answers
85 views

Learning FFmpeg: video from webcam, audio from headset mic

I've read through the 62-page FFmpeg doc. It's a great reference but not so good a teacher for someone new to video production. I joined the mail list but there seems to be no traffic on it. I hope ...
0
votes
0answers
34 views

I have an ffmpeg/ffserver setup and can watch the video feed through VLC, but it bounces around, why would that be?

I have an ffserver and a couple of ffmpeg commands running. The video and audio does go through. The audio works as expected, although it dies off in less than 24h. Now, the video... works (it goes ...
1
vote
1answer
33 views

ffmpeg - one input, two outputs - separate instances

I've been struggling with a ffmpeg-related issue for a few days now. What I am trying to accomplish is to grab AV signal from a single input (/dev/video0), then save it into two files simultaneously. ...

1
3 4
5
6 7
38