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

MPD Download Problem

im triying download this: https://s3-dub-2.cf.dash.row.aiv-cdn.net/dm/2$0BUF7K2VT3IU0_lgY5I8MtbEnr0~/4a41/40a4/cba9/491e-8631-097e38e63dc5/b61f4b90-54ed-4b6e-8dc9-816b4cc58eab_corrected.mpd?encoding=...
0
votes
1answer
21 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
14 views

Ffmpeg Multiple Crop

How can I make crop in and out from 3 to 3 seconds to a video. for Exemple: The First 3 sec Of the video to be original, The next 3 sec of the video to be CROP crop=iw-684:ih-516,scale=1280:720 The ...
0
votes
0answers
6 views

Applying video filters on MPEG Dash segments

I know that it will probably require recreating whole MPEG Dash stream but I'm curious if is it possible to apply a drawtext video filter on existing Dash segments? I I've managed to merge segments ...
0
votes
0answers
10 views

FLAC file Duration not changing after Trimming audio with FFMPEG command

I tried to trim FLAC audio with the below command, but the result file showing same duration of the original file. FFmpeg -i input.flac -ss 20 -to 40 -c copy output.flac
0
votes
0answers
10 views

How to burn timestamp in video with different date format using FFMPEG?

I am using below command to add timestamps to video: ffmpeg -y -i input.mp4 -vf "drawtext=fontfile=roboto.ttf:fontsize=36:fontcolor=yellow:text='%{pts\:gmtime\:1456007118}'" -preset ultrafast output....
0
votes
0answers
25 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
1answer
11 views

Combine -vf yadif,format=yuv420p and -filter_complex for watermark

I have an ffmpeg command using -vf to deinterlace videos and produce pixel format with 4:2:0 chroma subsampling: ffmpeg -i input.mp4 -vf yadif,format=yuv420p \ -force_key_frames expr:gte(t\,n_forced/...
0
votes
0answers
15 views

Does ffmpeg support multi-cam flattening process to a single file?

I am trying to see, if I could use ffmpeg to flatten feeds from multi cameras to a single mp4 file using scripting. Is there any other software that provides some sort of automated way/api to do these ...
0
votes
0answers
19 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 ...
2
votes
0answers
23 views

How do I compress a video and preserve quality in moving areas?

It's easier to notice details in still objects compared to moving ones, so modern codecs save bandwidth by reducing detail during movement. However, this optimization seems far too pronounced to me ...
0
votes
0answers
27 views

ffmpeg creates audio track that has negative start time and why?

Problem: I have a source media and used ffprobe to inspect the audio track for pts_time and the start time, and it looks fine as below ffprobe -v 0 -show_packets -select_streams audio [source_media]....
0
votes
1answer
14 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
1answer
21 views

ffmpeg: using vidstab{detect,transform} on parts of a video

I'm using ffmpeg's vidstabdetect and vidstabtransform filter to stabilise videos. Currently I first cut out the scenes from the single input that I want to stabilise into individual files, which I ...
0
votes
0answers
14 views

Using ffmpeg, I want to capture a livestream from a “Blackmagic Intensity Pro 4k” and convert to something that can be played in HTML

So, I am on a Windows 10 machine and I have a BMD card as described above in said machine. I need to take the video stream that's being captured by the card and make it visible in HTML. The issue is ...
0
votes
0answers
8 views

Discarding potentially broken or useless index. How to fix it?

I have a video/media file which while under mpv or vlc gives the above error. It plays the video but very slowly. Is there a way to correct the error. This is what mediainfo says about the file - ...
0
votes
1answer
23 views

Comparing PSNR/SSIM of two videos with different fps/bit-depth

I have a 720p, 30 fps, 8-bit source video. I'm downscaling it to 480p, and I want to measure quality using PSNR/SSIM under two scenarios: Keeping crf/speed settings same, I want to encode in 8-bit(...
2
votes
1answer
32 views

Is CABAC encoding lossy or lossless in ffmpeg?

I've been looking into how to compress a video using ffmpeg when I stumbled across CABAC encoding which I could specify by using the libx264 for the video codec and pairing it with the proper ...
0
votes
0answers
24 views

Text rendered in a box, with alignment

I'm trying to render text onto a video, using the drawtext filter. I would like it to appear in a box of a certain dimension (smaller than the video dimensions). For example, if the video is of size ...
0
votes
0answers
25 views

FFMPEG Dynamic overlay help needed

I try in a live stream to change one overlaid image through a shell script, but only the first command from this script works, the following command does not. Here's my FFmpeg request: ffmpeg -...
0
votes
0answers
17 views

FFMpeg hangs during HLS download

I'm attempting to download from these three playlists: ffmpeg -headers "referer:play.vidyard.com" -i "https://cdn.vidyard.com/hls-videos/F5XrYRNWc3ZfCQcylJOWUA/stream_1080_master_xaENGxt-...
0
votes
0answers
10 views

How to convert a HEIC to GIF animation with ffmpeg?

What's the best way to convert a HEIC to an animated GIF (with as little quality loss as possible with gif)
0
votes
0answers
30 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
13 views

Will the ffmpeg community add FTL (Mixer) support to ffmpeg?

Maybe somewhere here has some insight into the ffmpeg dev community, maybe this question is better on Stack Exchange, but it seems like the ftl-sdk has been out for a bit, but I don't see any signs ...
1
vote
0answers
66 views

How to convert encrypted mpeg dash created with Bento4 mp4-dash.py to MP4

I have MPEG dash video files created with Bento4 mp4-dash.py. The files have encription, but I have the MPD and the audio and video segments. I am trying to get my original MP4 file back from those ...
0
votes
0answers
17 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 -...
1
vote
1answer
45 views

FFmpeg does not preserve colors after resizing

I would like to resize a 4K mkv video to 1920×1080 with ffmpeg version 3.4.6-0ubuntu0.18.04.1 on Ubuntu 18.04. The original file has the following features: Input #0, matroska,webm encoder : ...
0
votes
1answer
30 views

How to create Frame Sequential / Alternate frames 3D video from two separate one

Platform is Linux, CLI tools is needed. There are two files: one for left eye another for right eye. I search a way to compose it into single 3D MKV (or any other container) with alternate frame ...
0
votes
1answer
25 views

How to avoid quality loss on yotube/fb when encoding images into video via FFMPEG

I created a video from a bunch of images off my camera using FFMPEG. I set it to 10fps. The output video looks fine. As soon as I upload it to Facebook or Youtube the quality is reduced significantly. ...
0
votes
0answers
22 views

Technology Make Video

I want to make a video maker like promo.com (Merge multiple video forms, insert text and effects into the video). But don't know which technology or language supports this. I am currently learning ...
0
votes
0answers
15 views

PTS DTS indicator in PES frame

I'm trying to add timed metadata into TS files and to the best of my knowledge it is only possible if the PES frame has the PTS DTS indicator with the value 2, which means that only PTS is present. ...
0
votes
1answer
49 views

FFMPEG add image at beginning of MP4 as first frame

I need to add an image (1 frame maybe) for one millisecond at the start of the mp4 video. The final video should contain audio in the AAC system. I expect no delay in the audio while the video plays....
0
votes
0answers
19 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
16 views

ffmpeg stream mapping, is it none or all?

I have a video like the following: $ ffprobe -print_format flat StreamDemo.mkv 2>&1 | grep 'Stream #' Stream #0:0: Video: h264 (High), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 23.98 fps, 23....
0
votes
2answers
30 views

How to prevent ffmpeg from dropping frames when trimming?

I'm using ffmpeg to trim a Zoom video recording (format: ISO Media, MP4 v2 [ISO 14496-14]) via this command: ffmpeg \ -ss 00:11:42 \ -to 01:11:22 \ -i input-original.mp4 \ -c copy \ output-...
0
votes
0answers
59 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
0answers
26 views

Video loss when converting MP4/h264/aac to Matroska/VP8/Vorbis/

I received a MP4 video with an h264 video stream and an aac sound stream. I want must convert it to (sic): Ogg Vorbis or Ogg Speex format for audio, and Matroska VP8 or Ogg Theora for video I ...
0
votes
1answer
15 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
0answers
74 views

FFmpeg stops encoding h265 to flv / hlc

Encoding always stops at about 65 frames, the longest it goes is up to 112 frames. Then it just stops without any output. No errors, nothing. The last lines that it spits out are these: encoded 64 ...
0
votes
1answer
13 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 ...
1
vote
1answer
27 views

ffmpeg scale video filter does not working as expected

I am confused a bit. scale video filter does not scales the video to specified dimensions but doing something different. For example: $ youtube-dl -f 134 https://youtu.be/aqz-KE-bpKQ -o 1.mp4 # ...
0
votes
1answer
36 views

How do I change output file format in ffmpeg batch, when using drag and drop?

I've been searching around for this for some time but can't find a working solution. I found this question, which is close, but not exactly what I need. I'm windows and ffmpeg to convert movs to mp4. ...
0
votes
1answer
24 views

How to determine which modules needed for licensing FFmpeg as part of an app

I developed an app that uses ffmpeg for some simple muxing, which I am going to sell. I contacted MPEG LA about licensing, and they said I the license I need depends on which codecs I use. Is there ...
0
votes
1answer
61 views

FFMPEG - convert video to Black & White with threshold?

I'd like to convert videos to black and white but also specify the threshold of what to convert to black/white. I'm currently using cv2 to do this successfully using the 2 lines below (first converts ...
0
votes
1answer
29 views

ffmpeg convert .png to DNxHD .mov and scale color to bt709

I have an 8bpc .png sequence in RGB color space (full range 0-255 of course) that I need to convert to DNxHD bt709 "legal" range (16-235). Here is where I am so far: ffmpeg -framerate 23.976 -i ...
0
votes
1answer
32 views

Video created with FFmpeg has a strange contrast level while playing in some video players

I'm using these parameters to encode multiple PNGs into a MP4 file using FFmpeg: -vsync 2 -safe 0 -f concat -i ".\concat.txt" -c:v libx264 -pix_fmt yuv420p -vf "pad=width=2044:height=1152:x=0:y=0:...
0
votes
1answer
47 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
1answer
20 views

Increase Volume of a specific mxf channel with ffmpeg

I have a MXF file with 6 mono channel (part of a 5.1 mix), How can I create a new mxf increasing the volume of the third (center) channel without reencoding video and the other audio channels?
0
votes
1answer
65 views

How can I restream a live camera feed with FFMPEG while using the least resources possible?

I'm not an expert at ffmpeg, or video tech by any means. I have very little experience with it. I have an IP camera that produces an h264 stream. I'm trying to use ffmpeg, and nginx (with the rtmp ...
0
votes
0answers
37 views

How to give a video exactly the same duration for video stream and audio stream using ffmpeg?

I have a video that is setup like this: $ mediainfo /mnt/d/Temp/VideoSamples/SampleVideo_1280x720_1mb.mp4 Video ... Duration : 5 s 280 ms ... Audio ... Duration ...