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
18 views

Getting an error when attempting to use FFmpeg to copy primary AC3 audio to aac_he secondary audio

I am attempting to add secondary audio with FFmpeg to copy my primary audio over and encode it with libfdk_aac using profile aac_he. When I do, I am getting the following errors: [NULL @ ...
Tom Dimmer's user avatar
0 votes
0 answers
135 views

Ffmpeg outputting empty mp4 files for video concatenation command

When I run the following Ffmpeg command it produces empty mp4 files as an output. The command takes segments of a video as inputs, crops each input at particular locations, and then concatenates them :...
nonsequiter's user avatar
0 votes
0 answers
33 views

Ffmpeg dynamic cropping for every frame

I have different crop parameters for every frame. I was using sendcmd but apparently, that is not working. This is the format of my sendcmd file 0.00 crop 'w=466:h=432:x=1373:y=336'; 0.02 crop 'w=324:...
Aman Mehta's user avatar
0 votes
0 answers
50 views

Why does this HEVC HLS stream not play on browsers?

I have a HEVC HLS stream that does not play when I paste it e.g. in Safari. The video is encoded in HEVC and has a resolution of 4608x1728. The screen just stays black. The URL is: https://cdn2.taggy....
Sebastian's user avatar
1 vote
1 answer
67 views

ffmpeg, audio tracks, and QuickTime player

I tried to copy all streams (video, audio, subtitle) and add a tag with the following command in order to play the files using QuickTime player: ffmpeg -i in.mp4 -vcodec copy -tag:v hvc1 -acodec copy -...
janeden's user avatar
  • 121
0 votes
1 answer
32 views

How to insert alternate frames from multipule video sources to create a single output file using ffmpeg

I have a 4K 50fps video file that is split into 4 quadrants (only 3 are needed). It is generated by a slow motion camera running at 150 FPS. Each of the quadrants contains the same image shifted by a ...
openelectron's user avatar
0 votes
1 answer
49 views

How to create a video WITHOUT alpha, from a png sequence WITH alpha using ffmpeg

I have a sequence of pngs with alpha, and I'd like to encode to h264 without alpha, overlaid on black. My usual command for image sequence to h264 is ffmpeg -r 30 -i 'template %05d.png' -c:v libx264 -...
memo's user avatar
  • 103
0 votes
0 answers
26 views

FFMpeg: how to split a video, process only parts and merge everything back together

I have a question. Do you think I could do the following with FFMpeg: split a long video in MP4 format into three parts alter only the first and the third part, reencode them into MP4 finally, merge ...
Celdor's user avatar
  • 105
0 votes
0 answers
27 views

Downloading an HLS stream: ONLY in sync when downloading with ffmpeg. Possible explanations?

I'm trying to download a livestream that is just a plain hls with no encryption. I usually use streamlink, but this site I'm trying to use recently doesn't output a correct video/audio synced output ...
R.JEON's user avatar
  • 1
0 votes
0 answers
11 views

audio not offset with video in PIP using ffmpeg

I am trying to create a pip video from two separate sources while keeping the audio from both clips and delaying the pip video x number of seconds. I have successfully done it but sometimes the pip ...
Leetmouse's user avatar
0 votes
1 answer
27 views

Insert Audio at Every 60 Seconds and Delay Another Audio Stream until the End of the Inserted Audio with ffmpeg

I am trying to use FFmpeg to insert an audio clip at every 60 seconds into an audio file. I also want to delay the original audio stream until the end of the inserted audio clip , so that the ...
Aarav Shah's user avatar
0 votes
0 answers
22 views

Extreme Latency issues when streaming RTMP with FFMPEG

at the moment some colleagues and myself are working on our end-of-school-project, which is a FPV-Drone, where we're doing the electronics and more importantly the Live-Video ourselves. For this Video-...
LyffLyff's user avatar
0 votes
0 answers
52 views

How to use "youtube-dl + ffplay" to play youtube videos?

When I play the video using the code below, it plays normally. youtube-dl "https://www.youtube.com/watch?v=cqEp0Kr2kak" -o - | ffplay -autoexit -i - But when I specify the video format ...
bblew's user avatar
  • 1
0 votes
1 answer
77 views

librav1e cannot even utilize half of my CPU

Since I heard librav1e is kind of the fastest AV1 software encoder, I attempted to use it to convert an old MPEG-4 Visual video to AV1, but the result is way slower than the popular SVT-AV1 encoder. ...
Shanoa Ice's user avatar
0 votes
0 answers
27 views

ffmpeg broken pipeline error when push stream to rtmp server

I was trying to push stream to a rtmp server. firstly, I use OBS with default settings, it works ok. then I decide to use ffmpeg to do it. below is the command I use. ./ffmpeg -re -stream_loop -1 -i ...
tsang's user avatar
  • 1
1 vote
0 answers
208 views

Why does ffmpeg fail to "convert between the formats" with hevc_nvenc when I'm not doing video filtering?

I'm doing some nvidia GPU hevc transcoding to get stuff done at faster speeds. Most of the ~2000 titles that I'm transcoding work fine, but a handful are failing like Impossible to convert between the ...
Ryan Stewart's user avatar
0 votes
0 answers
27 views

FFMPEG: Remove entirely blue frames from a video

I'm trying to help my father who digitizes various video and audio tape formats. It appears that occasionally digitization hard- and software does not receive enough information from a frame and the ...
Kari's user avatar
  • 1
1 vote
1 answer
156 views

Setting the default subtitles

I managed to create the subtitle file, using different language with one single FFMPEG command: ffmpeg -y -loglevel "repeat+info" -i "file:Intervista.mp4" -i "file:...
Nicola Lepetit's user avatar
0 votes
0 answers
74 views

ffmpeg pass through video including Dolby Video

Given media that contains a video stream that includes Dolby Vision as one of the HDR metadata, how does one transcode the media and maintain the video stream as is (including the Dolby Vision and any ...
cmjordan's user avatar
0 votes
0 answers
18 views

Integration of FFMPEG filters into Adobe Premiere?

As Premiere allows to integrate third party plug-ins I wonder if there is an integration of free filters used in ffmpeg / libavfilter?
Chris's user avatar
  • 1
0 votes
1 answer
54 views

Vertical text with drawtext filter

Is there any way to overlay vertical (eg, Japanese) text using the ffmpeg drawtext filter? I've searched around but didn't find anything. The documentation makes reference to the ft_load_flags= ...
Danny's user avatar
  • 115
0 votes
0 answers
16 views

FPV-Camera Input in Black and White / losses Color on conversion with FFMPEG

so we're working on our end-of-school project and it's an FPV-Drone with an Analogue Camera on it. Plan is to send the video feed to a Raspberry Pi running an RTMP-Server from where a Phone-...
LyffLyff's user avatar
1 vote
0 answers
69 views

"top coded first"?

i notice that ffmpeg often provides four different scan modes (for example with -field_order) : top field first ; bottom field first ; top coded first, bottom displayed first ; and bottom coded first, ...
david furst's user avatar
0 votes
0 answers
23 views

How to achieve something like strftime but with rtp frame timstamp

I am trying to record a rtsp stream with ffmpeg, segmented by certain amount of time, and name the file with the start time. I used strftime to expand the output filename with timestamp, but I wonder ...
Harry Hsu's user avatar
  • 101
0 votes
0 answers
38 views

RTMP to decklink output using FFMPEG results in eventual "crunchy" audio

I'm using FFMPEG to take an RTMP stream and output it to a Decklink device. Here's the command I'm using: ffmpeg -i rtmp://192.168.1.4:1935:/publish/internal -async 1 -r 60 -b:a 320k -aspect 16:9 -vf ...
nwalke's user avatar
  • 101
1 vote
0 answers
70 views

Rotate Video Metadata - ffmpeg vs ExifTool

I created an ffmpeg script to rotate -90 some videos that I record on my Sony A7iii, with the camera vertically, this makes these videos display correctly. the script is this: ffmpeg -i input.mp4 -c:v ...
Tyrone Hirt's user avatar
1 vote
0 answers
17 views

Can you make if/then scripts in ffmpeg?

Is it possible to combine multiple scripts into one in ffmpeg? What I am trying to do is create one master script that changes commands based on the aspect ratio of the input video. For example, if ...
Bmcaps's user avatar
  • 11
1 vote
0 answers
28 views

ffmpeg - converting one audio track of a multi-track mp4

I'm having a few mp4 with two audio tracks, an english one in aac and a french one in dts. Now I want to convert only the french dts to eac3 with a single ffmpeg command. I use ffmpeg -hide_banner -i ...
Shaun.M's user avatar
  • 11
1 vote
0 answers
31 views

ffmpeg filter_complex multiple overlays - why are they not syncing properly

I'm setting up live streaming using three overlaid inputs in ffmpeg. O:v is a webcam directly connected to the streaming box (a headless linux box) while 2:v and 3:v are ultra-low latency UDP streams ...
howdood's user avatar
  • 11
0 votes
1 answer
167 views

Rotate video without re-encoding - problems

I created an FFMpeg script to rotate -90 some videos that I record on my Sony A7iii, with the camera vertically, this makes these videos display correctly. the script is this: ffmpeg -i input.mp4 -c:v ...
Tyrone Hirt's user avatar
2 votes
1 answer
116 views

how do i use ffmpeg to stitch 220-degree fisheyes into a 360 equirectangular video?

Quite a while back, I used a now-discontinued 360-degree camera called the YI 360 camera to record some videos. The software that came with the camera is no longer available, and to my knowledge, it ...
FenFox's user avatar
  • 33
0 votes
1 answer
94 views

FFMPEG encoding partial file and monitoring input for addition

I am partially downloading a video file, sequentially. What I've managed to achieve is for FFmpeg to encode the file as it is being downloaded if the download is faster than encoding. I cannot ...
Vjerci's user avatar
  • 103
0 votes
0 answers
18 views

Rescale videos to square screen

I have a square screen amv format video player which is 1 inch by 1 inch. I would like to rescale videos that have different aspect ratios to fit the screen. I am using ffmpeg. My goal is to have the ...
Bmcaps's user avatar
  • 11
0 votes
0 answers
37 views

ffmpeg output the time(mm:ss) with scan the black screen in the vdeo file

I use the below command to detect the black screen in the video, but it can't output the time field with detected. May I know does have any command can let ffmpeg output the time format with "mm:...
jack's user avatar
  • 1
0 votes
0 answers
24 views

Seeking Efficient Method for Keyframe Thumbnail Mosaic for Interactive Video Timeline Preview (Similar to YouTube)

I'm working on a feature for a project that aims to replicate the interactive video timeline preview functionality similar to what you see on YouTube. The idea is to display a preview thumbnail as the ...
Kataklycm's user avatar
0 votes
0 answers
29 views

New ffmpeg build will not concat, gives no error message

At the risk of this being a bug, and not something I'm doing wrong, I'm posting here mostly because I don't even know where to report ffmpeg bugs. It looks like the newest version of ffmpeg ffmpeg ...
user3643's user avatar
  • 2,244
0 votes
0 answers
9 views

FFMEPG livestreaming chunks 404 issues

this is my FFMPEG command ffmpeg \ -re -fflags +genpts -stream_loop -1 -i rtmp://<> \ -flags +global_header -r 30000/1001 \ -filter_complex "scale=1280x720" \ -pix_fmt yuv420p \ -c:v ...
Vinay Kumar's user avatar
0 votes
0 answers
16 views

FFMPEG COLORHOLD FILTER NOT WORKING. VIDEOS WON'T PLAY

I am trying to do black and white video, while leaving just one color / color range. I was told "ColorHold" filter can do this. But, when I run it with different encoders; I either get a ...
scm360's user avatar
  • 1
0 votes
0 answers
52 views

FFMPEG - scale and chromakey not working together?

video1.mp4 1280×720, with a green area video2.mp4 1280×720 I need to reduce video2.mp4 to 640x480 and insert what fits into the green area of video1.mp4 I went through all the options that I found on ...
Jhon Abrams's user avatar
0 votes
0 answers
48 views

When I attempt to live a video in an infinite loop using the ffmpeg command, it automatically terminates after

When attempting to continuously loop a video using the ffmpeg command with the following syntax: ffmpeg -re -stream_loop -1 -i abc.mp4 -c copy -f flv rtmps://abc.xyz/..... I encounter an issue where ...
Isteyak Ali's user avatar
0 votes
0 answers
48 views

How can I use FFMPEG to convert video to black and white, but leave one color / color range?

I have been researching and cannot find anything on how to preserve just one color / color range while converting a video to greyscale / black & white using FFMPEG. For example; all black and ...
scm360's user avatar
  • 1
0 votes
0 answers
27 views

Left-to right transition on overlay works only on first one in chain, not second one

my goal is to do this with ffmpeg complex_filters: I have a background 1080 vid and like to slide in some overlay graphics and texts. So my input is the vid and 3 jpg files. The jpg files should slide ...
Nimderp's user avatar
0 votes
0 answers
27 views

machine hangs during ffmpeg command execution

I'm running this ffmpeg command that does multiple trims on input video and concats those trims to generate output. ffmpeg -i https://d8r14y803bnlk.cloudfront.net/usetldr/2736037/u/796/st/...
Tejas's user avatar
  • 1
0 votes
0 answers
38 views

"-map_metadata -1" not working on my compiled ffmpeg?

The problem is: When I use my compiled version of ffmpeg, it does NOT remove any metadata. I've compiled/built ffmpeg using the (general) guide on https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu ...
BongoR's user avatar
  • 1
0 votes
0 answers
58 views

Add transparent image over webm video that has transparency

We are doing some automation regarding video creation. Idea is that we have one video but we wanna create 1000 videos from that one, each one having a unique number visible on it. Like a water mark. ...
Mike's user avatar
  • 1
0 votes
0 answers
49 views

ffmpeg multiple png fade in/out, audio and overlay with filter_complex_script

I have a set of transparent png images, each image having a coresponding wav audio file (the audio files are of different lengths): 1.png, 1.wav, 2.png, 2.wav, etc... There is also a 10 seconds ...
Robert Wallner's user avatar
0 votes
0 answers
76 views

Using FFmpeg to detect alpha channel in PR4444 file

I wanted to comment on a thread that already exists on this topic in general, but I just signed up to SO and have not earned my contribution credits yet! If anyone has advice on how to better handle ...
user43134's user avatar
0 votes
1 answer
168 views

Possible to force FFmpeg to omit silence in audio files and produce discontinuous `webm`/`mka`?

Does webm/mka/mkv/mp4 support discontinuous audio streams? I'm wondering, can ffmpeg transcode .wav-audio into opus-encapsulated-into-webm, but filter out silent frames - especially full seconds of ...
Vadim Kantorov's user avatar
0 votes
1 answer
59 views

Combine images and draw text on each image with animation xfade

I am using ffmpeg to merge multiple images and an audio to produce a video. I am using drawtext and xfade with dissolve transition. My ffmpeg command is given below. ffmpeg -loop 1 -t 5 -i ./img/img0....
Imran Khan's user avatar
1 vote
1 answer
237 views

Convert video from webm to mp4 using ffmpeg

I have 10 webm videos, each one has the same size ~15mb. When I run following code: ffmpeg -i video1.webm -f mp4 video1.mp4 9 of them finish in ~10 seconds, but 1 lasts more then 3 minutes. I run ...
datahack's user avatar
  • 111

1
2
3 4 5
44