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

Use FFmpeg to calculate optical Flow

I'm trying to use FFmpeg to calculate the total optical flow value (or a motion value) in a short video. Is there a command to do that? I'm currently using Python and openCV to do that: def ...
0
votes
0answers
4 views

Calculate Optical Flow (or total motion) in a video using FFmpeg

Is there an FFmpeg command to calculate the total optical flow value (any any values associated with motion) in a short video?
0
votes
1answer
11 views

ffmpeg take channels 7+8 and make a stereo

I have a 8 audio track mov file which I want to encode to mp4 using ffmpeg BUT take the tracks 7+8 and put them as stereo with 320k and 48KHz to that mp4. My line is this: ffmpeg -i %source% -map 0:0 ...
0
votes
1answer
12 views

I am getting “Stream specifier ' ' in filtergraph description” in ffmpeg

I am generating 10 seconds of silence using an image. Here is my command ffmpeg -loop 1 -framerate 24 -t 10 image.jpg -f lavfi -t 10 -i anullsrc -filter_complex "[0][1]concat=n=2:v=1:a=1" out.mp4 ...
0
votes
0answers
15 views

how to re-encode And downscale a 2160p video to 1080p at the same quality than a monitor downscaling a 2160p flux into its 1080p panel

so i have a 2160p video that i can play on my 1080p monitor in fullscreen. i downscaled it to 1080p using ffmpeg but the quality of the 1080p flux played in fullscreen is lower than when my screen ...
0
votes
0answers
9 views

How to concat each video according to list.txt with synchronized audio and video?

I am concatting many short pieces of the same video file using ffmpeg -y -f concat -safe 0 -i list.txt -c:v libx264 -c:a aac -af aresample=async=1 -pix_fmt yuv420p target.mp4 The video is first a ...
0
votes
0answers
17 views

Looking for a UNIX shell script to aggregate and report on video file size, bitrate, and other attributes

hope everyone is staying safe and healthy in this crazy time. I've got a large, well organized repo of video - mishmash of raw video from shoots along with edited files, in all sorts of various ...
0
votes
0answers
9 views

ffmpeg adds two seconds of unwanted silence at end of video [duplicate]

I am creating a video file from a single image, and audio. Though, after running conversion the resulting video file is the audio track's length, plus two seconds. The audio codec does not affect ...
0
votes
1answer
20 views

stitch rawvideo with ffmpeg - Picture size 0x0 is invalid

I'm trying to create a timelapse video from several images that I'm fetching from a website. In order to make this faster, my plan was split the workload between multiple cores, each fetching their ...
0
votes
1answer
38 views

FFMPEG - Scroll filter on filter_complex applies on under layer

I apply filter_complex to put objects on coordinates using overlay. Sometime, I need to use the scroll filter. Here is the code ffmpeg -vsync 0 -i /tmp/2SN92agDIG.png -i /tmp/TogmpB9etD.png -i /tmp/...
0
votes
1answer
27 views

ffmpeg: adding blankspace to end of video

I'm trying to add blankspace to the end of a video (1 audio stream, 1 video stream) using ffmpeg. I'm curious what the best way of doing this is. I'm not very keen on using filter_complex so if there'...
0
votes
0answers
9 views

FFMPEG error response goes in infinite endless loop

ffmpeg -i https://cdn.dotcompaluat.com/test/running.mp4 -max_muxing_queue_size 9999 -vf \ scale=w=426:h=240:force_original_aspect_ratio=decrease,pad=ceil(iw/2)*2:ceil(ih/2)*2 \ -c:a aac -ar 48000 -...
0
votes
0answers
13 views

Switch between HLS input streams to output a new HLS stream

I'm trying to generate a HLS stream from an input of N (in this example 2) HLS streams but I cannot figure out the right settings to get the PTS values right. My streams can be represented this way : ...
2
votes
2answers
46 views

Producing small H.264 files with Adobe Media Encoder vs ffmpeg/libx264

I am a terrible ignoramus in the subject, but the coronavirus has thrown me in the business of producing videos with my lectures. I care a bit for video quality and a bit more for small size. My ...
1
vote
0answers
22 views

Concatenate videos by pipng to ffplay

I would like to dynamically generate infinite video stream from video clips, so that choose next one on the fly. I was inspired by ffplayout project which runs ffplay and make it read from stdin, and ...
0
votes
0answers
16 views

Does ffmpeg preset speed affects 2 pass encoding?

If I'm encoding files like this: ffmpeg -v quiet -hide_banner -y -i "$f" -passlogfile "$TEMP_FOLDER/ffmpeg.log" -c:v libx264 -b:v 2.5M -maxrate 2.5M -bufsize 5M -profile:v high -level 4.1 -pass 1 -sn ...
0
votes
0answers
12 views

Convert mp4 for different resolutions for playing using his

How do I transcode my mp4 video to different resolutions and create m3u8 for all for adaptive streaming
0
votes
0answers
15 views

How to use FFMPEG frame transition slowly upward out of view while the next frame slides in the view from bottom to achieve a scrolling effect?

This question also follows another question: How to minimize no of frames/screenshots of web pages required to render a smooth scrolling video using FFMPEG? Scenario: Currently i'm stitching ...
0
votes
0answers
26 views

RTSP always connects to camera but often cannot get an image

My software needs to connect to each surveillance camera every few hours to get a picture for analysis. I use this command to connect via RTSP ffmpeg -rtsp_transport tcp -t 10 -reorder_queue_size 10M ...
0
votes
1answer
21 views

recomendations for conversion

I have a video in a very not compatible format and want to convert it to something like mpeg. I already have ffmpeg tool installed. Do you have any recommendations on what arguments to give ffmpeg for ...
0
votes
0answers
32 views

“Canon RGB” color space *shift* to broadcast range with FFMPEG

for a noprofit project I do shoot with (up to 5x) Canon HF100 camera(s) but, as stated in this interesting artile, it genetates a "custom RGB range" (16-255) files. Thanks to this cool repository I'...
0
votes
0answers
19 views

Slideshow compilation takes 10 minutes for 3 images

I want to make a slideshow from images. The first image has 6932x4683 pixels, so I got an error height not divisible by 2 and I found this thread. I understand that libx264 is implicit in the output ...
0
votes
1answer
35 views

overlay filter with simple PNG adds black fringe

Trying a simple overlay example, getting nasty black fringes: fmpeg -y -i b.png -i a.png -filter_complex "[0:v]format=rgba[a]; [1:v]format=rgba[b]; [a][b]overlay,format=rgba" normal.png ...
0
votes
1answer
28 views

Add two images before a mp4 and one in the end with ffmpeg

I'm trying to make an operation using FFmpeg with just one command to leave the output as lossless as possible. My intention is to add two images, 5 seconds each, before the mp4 file, add a fade in ...
0
votes
0answers
17 views

What are creation_time and timecode in 'ffmpeg -i <vid_name> -dump' command?

The command 'ffmpeg -i GOPR0221.MP4 -dump' gave me the following, Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GOPR0221.MP4': Metadata: major_brand : mp41 minor_version : 538120216 ...
1
vote
1answer
39 views

Cut Loom screen recording at 39s, trim video around the edges to hide scrollbar and Loom stop button using FFmpeg

I have a 1920x1080 MP4 screencast that has been created in full-size mode in Google Chrome. I wish to hide the Loom video stopping process (after 39 seconds) and also trim around the edge of the video,...
0
votes
0answers
12 views

FFMPEG: How to manually select video quality from mpd manifest?

I want to ask what command should I use to select video quality from mpd manifest? mpd manifest link https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-...
0
votes
1answer
40 views

Is there a way to improve h264_nvenc output quality?

I'm compressing some videos for archiving, and I came to this configuration which gives me a nice overall quality on a small size: ffmpeg -threads 4 -y -hide_banner -i input.mp4 -vf scale=-2:480 -c:v ...
-1
votes
0answers
26 views

How to fine tune hqdn3d parameters on ffmpeg

I'm trying to reduce noise on an old film, and I did get good results with this: ffmpeg -i input.mp4 -filter:v hqdn3d=3 output1.mp4 ffmpeg -i output1.mp4 -filter:v hqdn3d=3 output2.mp4 ffmpeg -i ...
0
votes
1answer
19 views

blend filter and color

Trying to debug blending images over video led to this observation: ffmpeg -i https://lh3.googleusercontent.com/vt1VzlKCpjJjxRGBd3oAVgOHau22m2257fDBaW3KfHsNbhOcw1--...
0
votes
0answers
35 views

ffmpeg I can't do dash muxing

I tried to perform a basic dash muxing with FFmpeg but I failed. Using the following command: ffmpeg -s:v 1920x1080 -r 25 -i inputVideo.yuv -c:a aac -c:v libx265 -f dash \ –seg_duration 2 out.mpd ...
2
votes
1answer
53 views

how to make a video created by FFMPEG using downloaded images, VLC media player compatible

I am making a mp4 video while using this command from downloaded jpegs, everything is working fine but the video is not being played in VLC but in Media Player, default one of Ubuntu. ffmpeg -y -...
0
votes
1answer
22 views

how to pipe:/// through a .sh or Python script, or use some sort of setting files with FFMPEG

First post, so be kind please :) So a quick bit of history. I am using tvheadend, and the inbuilt transcoder murders my CPU, and provides average quality output (it's powered by ffmpeg), if I pipe ...
0
votes
2answers
28 views

ffmpeg -f tee refuses to do anything useful

I would like to stream a single MP4 to multiple streaming sites at once. The easiest way I could think to do this was to simply run four concurrent ffmpeg instances at once, and send the stream ...
0
votes
1answer
31 views

ffmpeg setting not working for x264 compatibility in television

I'm having some files in MKV format (x264). Some files work flawlessly in my non-smart TV, but others are not even opened at all or crashing. I tried the following command in FFmpeg to convert it to ...
0
votes
1answer
61 views

Combining two live RTMP streams into another RTMP stream, synchronization issues (with FFMPEG)

I'm trying to combine (side by side) two live video streams coming over RTMP, using the following ffmpeg command: ffmpeg -i "rtmp://first" -i "rtmp://first" -filter_complex "[0v][1v]xstack=inputs=2:...
0
votes
0answers
14 views

Add animated gif to video with ffmpeg

I need a simple ffmpeg script to add an animated gif to video with given x and y.
0
votes
0answers
15 views

Input link in1:v0 parameters (size XXX, SAR XXX) do not match the corresponding output link in0:v0 parameters (XXX, SAR 1:1) [duplicate]

I've two files, a mp4 and a mp3 file. I want to add a 3 seconds intro screen with title Welcome and black background to the head of the video with the mp3 as background. So here's what I wrote. ...
0
votes
2answers
52 views

FFMPEG Video loop from images files

I am trying to make a video from a bundle of image files and then apply a an overlay on top of it.Another requirement is to make the video loop 3x. It is simply not working. The requirement is to ...
0
votes
1answer
22 views

ffmpeg smooth video zoom-in to center over duration of video

I'm trying to do a smooth zoom in to the center of a 4k video over the duration of that video, so basically zooming in 2.13x so that the zoom in stops when the zoom is equivalent to an HD file (4096 / ...
0
votes
0answers
25 views

HLS input with discontinuity results in 'Non-Monotonous DTS' errors

If I use an HLS input (.m3u8) with 'EXT-X-DISCONTINUITY' tags, as soon as it encounters a discontinuity, it spits out a load of 'Non-monotonous DTS in output' errors, and the resulting video freezes ...
0
votes
0answers
15 views

ffmpeg make complete from videos with incorrect time data

I have a video file mp4 and audio in m4a. The issue is that some incorrect time data in the files - when I play them timeline goes from 0 to like 10 seconds and then play continues with timeline stuck ...
0
votes
1answer
23 views

Ffmpeg wipe diagonal transiton with audio concat

How to create “diagonal wipe” effect in FFmpeg? This question has an answer, however the answer does not concat the audios of videos. How can I fix it ? ffmpeg -i old.mp4 -i new.mp4 -filter_complex ...
0
votes
0answers
21 views

FFMPEG slideshow skips a picture when showing on VLC (and is OK on Quicktime)

I created a slideshow following the directions on the concat demuxer. The input file is: file 'sentence1.jpg duration 5 file 'sentence2.jpg duration 5 file 'sentence3.jpg duration 5 file '30.jpg ...
0
votes
0answers
46 views

Color loss and grayish after downscaling using ffmpeg

Forgive me for I'm new to here, but I've been searching for solutions all the day, yet still puzzled by this problem. I try to downscale a 3840*2160 video to 1080p, and here's what I first did: ...
0
votes
1answer
88 views

AAC stream in MP4 file has wrong duration. How to fix?

I've got an MP4 file that is actually 2:09:42 long. But when playing it in VLC player it is being shown as 7:13:45 long. I'm trying to fix this file. I remuxed it using ffmpeg -i input.mp4 -codec ...
0
votes
2answers
47 views

How to get peak audio quality and lowest video quality?

What are the best options to use to get optimal audio clarity for transcription, and minimal video to be used by the transcription service? Our videos are all meetings, and we're sending them to a ...
0
votes
1answer
24 views

FFMPEG Stitch four videos together, then add overlay to result

I have four videos (no audio) which I am able to stitch together using this command. I am also able to add an overlay on a single video with this command. Is it possible to combine both of these ...
1
vote
3answers
82 views

ffmpeg: Create a black background video from audio, for Youtube upload

I have MP3 audio that I would like to turn into video, by joining the audio with a solid black background. I then want to upload the video to Youtube. Using ffmpeg, I have tried this command, and a ...
0
votes
0answers
10 views

FFMpeg kmsgrab record pixels in incorrect order

ffmpeg -f kmsgrab -i - -framerate 60 -vf 'hwdownload,format=bgr0' -preset ultrafast out.mkv This is how a video frame should look like This is how it is recorded by ffmpeg https://drive.google.com/...

1
2 3 4 5
29