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
1k views

FFmpeg add logo watermark to live stream

I am trying to execute this commands in FFmpeg and it is working. Now I want to add logo to this live stream. How to do that? find "/video path" -name "*.mp4" | xargs -I $ "/ffmpeg path" -y -re -i $ -...
0
votes
0answers
159 views

FFMPEG fails to convert to usable x265 MP4 after reinstalling Windows/flashing BIOS

I use the following command to convert videos recorded by Nvidia ShadowPlay to x265: ffmpeg -i "%fn%.mp4" -c:v libx265 -crf 28 -c:a aac -b:a 128k "%fn%.x265.mp4" I've done this for the past year+ ...
0
votes
0answers
1k views

How to decrypt video using ffmpeg?

I've managed to encrypt my video files using the ffmpeg command below however I can't find a way to save the decrypted output. ffmpeg -i {file} -encryption_scheme cenc-aes-ctr -encryption_key {key} -...
0
votes
1answer
746 views

How to split,reverse and concatenate video using single command in FFMPEG?

i want to create reverse video with audio and remov from large clip.for that first split video in segment then reverse splits video then concatenate all reverse video as single video file but it take ...
0
votes
0answers
29 views

How to log duplicated frames using FFmpeg?

I'm trying to solve an issue. I've recorder using an Atomos the Ultra HD 60p HDMI output from Chromecast with some Google Stadia Games. Now I have some proRes file @60 fps, but the games are not of ...
0
votes
1answer
738 views

FFmpeg raspberry pi OMX hardware encoder with inline_headers enabled = Increasing latency over the time

I managed to enable inline header on the OMX H.264 hardware encoder. inline header(SPS/PPS) are mandatory to play an already launched stream. https://github.com/Serveurperso/FFmpeg/commit/...
0
votes
1answer
284 views

ffmpeg blend mode multiply results in green overlay

i'm trying to overlap two video clips using FFMpeg. I'm using the following command: ffmpeg -i a.mp4 -i b.mp4 -filter_complex "blend=all_mode='multiply'" c.mp4 I was expecting to get something like ...
0
votes
0answers
54 views

Trying to reveal a logo gradually

I am trying to overlay a logo on a video, and reveal it gradually. I used the following command: $ ffmpeg -i uploads/vid1.mp4 -loop 1 -r 25 -pix_fmt yuva420p -i logo.png -filter_complex "[1]drawbox=x=...
0
votes
0answers
106 views

How to create Zoom In Circle transition using ffmpreg?

I am trying to use ffmpeg to concatenate 2 videos (prelude and the actual content). I want the transition to start with a circle that grows from a specific location and opens the view to the second ...
0
votes
1answer
39 views

Unknown stream found in container (likely a subfile): need help identifying/opening it

There's a video I need to view, foreign language film. I was checking it with ffmpeg, and it seemed legitimate except the third stream was something I've never seen before. I want to know what it is ...
0
votes
0answers
1k views

Understanding pts_time and frame extraction with time stamps

I am attempting to extract frames with their timestamps from videos using the command line, but I am struggling to relate both the output of the showinfo filter to the actual frames outputted by the ...
0
votes
0answers
533 views

FFMPEG dropping last few frames when converting image sequence to video

I have been extracting frames from videos, editing these frames using ffmpeg, then converting the edited image sequence back into videos. # Get the video's framerate ffprobe -v 0 -of csv=p=0 -...
0
votes
0answers
1k views

Constructing playable mp4 video file from MPEG-Dash segments

I am having an unencrypted MPEG-Dash manifest file and I am trying to re-construct from the downloaded segments a playable video file. I have so far tried to concatenate the initialization file to ...
0
votes
0answers
393 views

FFmpeg decode / convert G.726 Audio

I have one line of code here but seemingly there is an audio issue. My camera streams h265 video and g726 audio. Would highly appreciate it if somebody could advise please, how do I fix / convert g726 ...
0
votes
1answer
338 views

How to correct tbn for files with ffmpeg?

I have the following files (all .mp4). Whenever I want to concatenate them, the timestamps apparently get broken. Is there a way to correct those files with transcoding?
0
votes
1answer
96 views

How do I assign an input video's framerate to the output video when multiple input arguments are present?

To my understanding, if you have only one video input, its native framerate should be used by default if -framerate isn't explicitly defined. For example: ffmpeg -i in.webm ./frames/image%05d.png ...
0
votes
1answer
1k views

FFmpeg hardcoded subtitles revert to default font if subtitle is html

Here's how I'm using ffmpeg to hardcode the subtitles: ffmpeg -i tmp/input.mp4 -vf "subtitles=tmp/input.mp4:force_style='OutlineColour=&H80000000,BorderStyle=3,Outline=1,Shadow=0,MarginV=20,...
0
votes
0answers
66 views

How to write command in android when I m using FFmpeg Native with C++ file?

Using FFmpeg lastest version ("Ada") with native code and write command in android .cpp file below it's very simple function VideogetDuration() : #include <jni.h> #include <string> #...
0
votes
0answers
253 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
1answer
53 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
1answer
55 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
1answer
141 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
205 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
105 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
167 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
116 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
2answers
436 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:...
0
votes
1answer
963 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
0answers
724 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
318 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
527 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
1k 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
1answer
253 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 ...
0
votes
1answer
286 views

Change the timecode with ffmpeg in the middle of the track?

I know you can change the timecode of a file with FFmpeg with the option –timecode. This modifies the whole timecode of the file starting from the -timecode added. Can you change the timecode with ...
0
votes
2answers
2k views

Injecting/embedding/adding/writing metadata to a .mp4 file so it's recognised as 360

I'm working on a library that injects/embeds/writes metadata into a .mp4 file to allow the video to be displayed correctly as a 360 video. The input file is a standard .mp4 file in the equirectangular ...
0
votes
0answers
634 views

FFmpeg 2017 vs 2019 decoding performance improvement

I was trying to do some basic profiling on ffmpeg, following my previous question here. I have a relatively high-bitrate .ts file (17mbps), and I have two versions of ffmpeg (2017.3 and 2019.4), and ...
0
votes
0answers
179 views

ffmpeg prores alpha channel quantization looks pretty bad

Might be related to this other ticket? I've been doing some prores tests for both color and alpha. Usually this isn't a big deal since my alpha channels are solid with a 1-2pixel transition to black....
0
votes
1answer
331 views

ffmpeg prores alpha channel not present when colormatrix and colorspace operations are performed

So I've figured out how to convert images to prores with no colorspace shifts using either: -vf colormatrix=bt601:bt709 filter for 8bit material and -vf colorspace=all=bt709:range=pc:format=...
0
votes
0answers
3k views

FFMPEG - 5.1 EAC3 encode output quality

I have PCM Wave source files that are 5.1 surround. My goal is to convert this to EAC3 at 192k per Apple recommendations. Here is the MediaInfo of my source media: General Complete name ...
0
votes
1answer
679 views

Batch add intro and outro to videos

I have 500+ videos. I need to add intro and outro to them. Found this .bat script on a different website, and tried it. But it didn't work for me. As the script only ads outro - still didn't work. ...
0
votes
1answer
175 views

How to manipulate video codec errors using ffmpeg

I want to create a video full of codec errors like this: How can I manipulate ffmpeg parameters to create an output video like that?
0
votes
1answer
45 views

Need overlay the image on video by taking the array of positions

I need to overlay the image on video by scrolling the image on video . I want to generate the video with the image in scrolling positions
0
votes
1answer
2k views

How to generate decryption key from m3u8 manifest? (OR) How to decrypt an excrypted MP4 using URI and IV?

I am downloading an HLS video which is AES-128 encrypted. The issue is that the downloaded video is also encrypted and hence, not viewable. The website is serving 2 M3U8 manifests: The first ...
0
votes
1answer
105 views

Is public manifest.mpd a issue?

I have a public manifest.mpd file. Is it considered a security issue? It has something called cenc:pssh value so i am bit scared if its okay to be public or not?
0
votes
0answers
362 views

FFMPEG - Nero and Quicktime Format Chapters

Ok, I'm usually really good at finding the answers to my FFMPEG questions myself but I'm a bit stumped. I've got this file, an MP4, here is part of the MediaInfo: Menu 00:00:00.000 ...
0
votes
0answers
688 views

Convert ffmpeg audio volumedetect negative dB levels to common loudness positive dB levls

I have a process sampling mean_volume levels from $ ffmpeg -af 'volumedetect' ... which outputs negative -##.## dB measurements where 0 dB is very loud and -100 dB is very quiet. I need to line those ...
0
votes
0answers
20 views

Uploaded video from IOS and Android devices can't be merged

When I try to concatenate one video from IOS and Another from Android user, the output video doesn't work. I am using this command: ffmpeg -f concat -safe 0 -i mylist.txt -c copy output
0
votes
1answer
490 views

FFmpeg issue with aspect ratio

I'm using the following command (in my android application) to overlay an image on top of a video: "-i", video.mp4, "-i", image.mp4, "-filter_complex", "[0:v]pad=iw:if(lte(ih\\,iw)\\,ih\\,2trunc(iw*...
0
votes
1answer
189 views

ffmpeg and mapping against 2 target audio tracks!

Im trying to mux and encode a TS file with 2 audio tracks from a mov file. ffmpeg -loglevel verbose -i test.mov -map 0:1 -map 0:2 -acodec:0 aac -ab 160k -acodec:1 eac3 -ac 6 -ar 48000 -ab 640k -...
0
votes
1answer
2k views

Adding date/time information on video for ffmpeg

I am using FFmpeg for live streaming with RTMP to YouTube. My ffmpeg command is like this: ffmpeg -ar 44100 -ac 2 -f alsa -i plughw:1,0 -f v4l2 -codec:v h264 -framerate 30 \ -video_size 1920x1080 -...