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

How to map streams to specific output streamIDs

I'm trying to map specific streams to specific output indexes. The command I'm using is more complex but it can be reduced to this simple example ffmpeg -i input.mkv -y -map 0:0 -c:5 copy -f mp4 out....
2
votes
1answer
4k 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
10 views

Add splashscreen before video

I have: splash.png having the same size as video resolution video.mp4 in 60 fps already encoded via -vcodec h264 -crf 23 -acodec copy I want to prepend (not overlay) video video.mp4 with ...
1
vote
1answer
694 views

ffmpeg: Why did my capture speed drop? (can no longer capture using same command)

I've been using the following command to capture video with ffmpeg for the past two months using my Blackmagic Intensity Pro 4K capture card: ffmpeg -bm_v210 1 -rtbufsize 1500M -threads 4 -f decklink ...
1
vote
1answer
545 views

FFmpeg : Desktop Recording for YouTube

I was reading YouTube Help Recommended upload encoding settings page, and I found this command from a site Youtube recommended encoding settings for FFmpeg. ffmpeg -f gdigrab -framerate 60 -i desktop ...
0
votes
0answers
10 views

FFMPEG Incorrect Video Duration After Convertion

I have a 10 second video which after converting to mp4 using FFMPEG the iamge is frozen and the duration is 3 hour and 3 minutes long. Using MediaInfo the video is detected a 10 seconds long. using ...
1
vote
1answer
146 views

FFmpeg Batch encoding error: CRF/CQP is incompatible with 2pass

I am trying to create a batch file with 2 passes. Pass 1 scales the video. Pass 2 pads a border around it. They both work separately but will not work together. Pass 1: @echo off REM Scale video to ...
0
votes
1answer
532 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
1answer
355 views

FFMPEG - How to use crop, scale and overlay all in one go?

Any ideas on the proper syntax to get crop to work with resizing and overlay all in one go? The crop parameters are crop=1728:970:96:54 and I'm trying to work them into: ffmpeg -loop 1 -i ...
1
vote
1answer
57 views

x264 Downsides of a high CRF (22) intermediary codec between conversions instead of lossless

I have a huge collection of video files that are in the range of CRF 16-20 taking up TB's of space. The only need I have for these originals is that I have to encode them from time to time but the CRF ...
1
vote
1answer
18 views

Black fontcolor being transparent in drawtext in ffmpeg

I am using the command below to drawtext with rotation. This works but when set fontcolor=black It becomes transparent color. I am not understanding the reason. ffmpeg -i input.mp4 -filter_complex &...
0
votes
1answer
25 views

Converting h265 video to h264 with ffmpeg results in glitchy visuals with Chromecast

I'm having a lot of trouble casting a specific file on my Chromecast. At first it was because it was encoded with H265, which is not supported by my Chromecast device (2nd gen). I tried changing its ...
0
votes
0answers
68 views

Streamable Container for gstreamer with ngnix / RTSP on jetson nano

Im working on this project : https://www.hackster.io/jonmendenhall/jetson-nano-search-and-rescue-ai-uav-9ca547 At  some point I will need to mount my camera (waveshare ; IMX219-77IR) on  top of the ...
3
votes
2answers
7k views

How to work with R3D and RMD files? FFMPEG?

I am getting collections of files of the types A0123-random-name.RMD A0123-random-name.R3D Googling tells me R3D is a raw RED file and RMD is Red Meta Data - data about the processing to be applied. ...
1
vote
2answers
1k views

Why does FFmpeg's stream_loop option add a pause?

I have tested several files with the added option -fflags +genpts -stream_loop -1 to make them loop, but all have a slight pause just before they loop (250 ms or so). The loop filter does not have ...
2
votes
1answer
807 views

FFmpeg: Align Video & Audio of Desktop Capture

I am using FFmpeg's built-in gdigrab & dshow to record the display & audio of my system. I am encoding to uncompressed H.264/AVC video & uncompressed PCM/WAV audio. I had been having two ...
2
votes
1answer
441 views

How to convert 10-bit H.265 videos to H.264 without losing quality

I have a MPEG-H Part2/HVEC (H.265) .mkv file (Planar 4:2:0 YUV 10-bit LE). Since my LG PF 1500 beamer does not read H.265 but H.264 I would like to convert it (HVEC -> H.264). I think handbrake is a ...
0
votes
1answer
122 views

Create 4x2 grid mosaic

trying to create a 4x2 grid from 8 videos using the terminal on a mac. The code I am using is not working: ffmpeg -i input0.mov -i input1.mov -i input2.mov -i input3.mov -i input4.mov -i input5.mov -i ...
1
vote
3answers
485 views

Convert video from 9:16 to 1:1 with blurred box using ffmpeg?

The Original video resolution is 720:1280 and I want to: copy the original video, scale to 1080:1080 and blur. again copy the original video and scale to 608:1080. Finally move blurred to 1080:1080 ...
0
votes
1answer
28 views

Is there a way to smooth random audio dropouts with ffmpeg or Premiere?

I have large amounts of footage with audio tracks that have random dropouts throughout which last for ~0.5 seconds each (all audio dropouts are consistent in duration). I need to smooth out the drops, ...
3
votes
2answers
968 views

How can I make a slideshow with ffmpeg?

I have a certain number of pictures that I want to repeat until the melody ends. The problem is that when I make settings it does not work. the process goes on forever ffmpeg -pattern_type glob -...
0
votes
1answer
13 views

Is it possible to drop some specific frames when comparing SSIM by ffmpeg?

I would like to calculate the SSIM for two videos by ffmpeg: the original video and the distorted video. The case is the distorted video was generated by some kind of GPU of android devices, and it ...
1
vote
2answers
709 views

FFmpeg for m2t and Sony Bravia - not working

-f mp4 -c:v libx264 -preset veryslow -tune grain -profile:v high422 -flags +ildct+ilme I am preparing video to be streamed (DLNA) from my NAS to an older Sony Bravia. I have successfully created ...
0
votes
1answer
741 views

FFmpeg Media Source Extension Examples and Adaptive VOD and Live Streaming

I have a quick questions. Has anybody examples or links for the use of FFmpeg with the Media Source Extension for pure JavaScript adaptive VOD-, or Live-Streaming? I mean really pure not HLS or DASH. ...
1
vote
1answer
131 views

How to find/detect the real video resolution?

Imagine you have recorded/captured the screen at 1080p, but it was displaying a 480p video maximized to fullscreen. The result file is technically 1080p, but it really is showing a 480p video, that is ...
0
votes
1answer
20 views

Saving audio while streaming video using ffmpeg

While I was checking streaming guide, I noticed that I can stream my webcam and mic using a command like the following: ffmpeg -f dshow -i video="screen-capture-recorder":audio="Stereo ...
0
votes
1answer
590 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/...
2
votes
0answers
24 views

Why does ffmpeg cut/trim off the end of my video when the bitrate is higher than normal?

I'm using ffmpeg to transcode some larger videos (10GB+) with higher bitrates (20Mbps), and I noticed that some (I can't find any pattern yet) will trim of a portion at the end (between 1 and 5 ...
0
votes
0answers
34 views

Windows FFMPEG concat from list and log each file inputted into to ffmpeg

Ok i have a working batch file, where I grab from a text file a list of videos to concat as such ffconcat version 1.0 file 'dan_Ep_01HardWater.ts' file 'dan_Ep_02GoldieTheGoldfish.ts' file 'list2.txt ...
0
votes
1answer
96 views

Creating transparent video from transparent png files using ffmpeg

I have a set of 300 transparent png files and I would like to create a transparent video file from them. I'm using the ffmpeg command as follows: ffmpeg -f image2 -i anim.%04d.png -r 30 -vcodec png ...
0
votes
0answers
36 views

Convert .webm to .mp4 with same quality - Getting conversion failed with Too many packets buffered for output stream 0:1

I am trying to convert an example.webm file to example.mp4 using the command below, ffmpeg -i example.webm -vf "select=(29.97*TB)" -framerate 29.97 -r 29.97 example-output.mp4 When I ran ...
5
votes
2answers
3k views

FFMPEG slow / fast motion part a video anywhere

am trying to cut a part of Video Here is the code i have tried Let's say i have 6 seconds video and i want to slow down 2:5 seconds video that 3 second video First approach after searching is, Cut ...
0
votes
0answers
27 views

encoding DTMF Tones with FFmpeg

so i know how to create a nice smpte bars with tones using sine bin\ffmpeg -hide_banner -loglevel 0 -f lavfi -i "smptebars=duration=%duration%:size=1280x720:rate=60000/1001" -f lavfi -i &...
0
votes
1answer
2k views

ffmpeg batch overlay Error: “Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_overlay_0”

I am trying to create a batch file to run this script to add a watermark on each file in a folder ffmpeg -i input.mov -i watermark.png -filter_complex "overlay=10:10" output.mov The script above ...
0
votes
0answers
32 views

Converting first audio track from 7.1 or DTS to 5.1 AC3

I have two folders full of movies in mp4 container. One folder has 7.1 AAC track first, AAC stereo track 2nd. The other folder has a DTS track 1st, AAC stereo track 2nd. For compatibility reasons I ...
1
vote
1answer
371 views

FFmpeg convert G.711 Audio to AAC Audio

Is it possible at all to convert G.711 audio to AAC audio in a stream using ffmpeg? My cam is streaming fine in Chrome (video + audio) but all the other browsers have no audio. I would appreciate any ...
0
votes
2answers
2k 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
vote
1answer
1k views

Concat overlapping videos with ffmpeg using python3

I have a number of videos that overlap in time that were downloaded from an online video stream: 0m00s - 15m10s 14m50s - 30m20s ... The first few seconds (usually around 20 seconds) of a video ...
2
votes
1answer
27 views

Why is ffmpeg producing a background?

I am a chemist and since a few weeks I am making short videos with ffmpeg by combining images, I am using the command below (for some reason without profile:v high, powerpoint crashes when I would ...
1
vote
1answer
74 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'...
1
vote
1answer
24 views

Apple Quicktime cannot open a video that has been brightened using ffmpeg?

I changed the color level of an video ("ORIGINAL_VIDEO1.MP4") that had previously played well in Apple Quicktime. After brightening, ffmpeg -i ORIGINAL_VIDEO1.MP4 -vf colorlevels=romin=0.4:...
3
votes
1answer
419 views

FFmpeg Single Input, Seek to Multiple Outputs

I'm trying to get multiple snapshots of a single input file using Input Seeking. I want to seek to different keyframes and save each to different output images. I can use this using multiple calls: ...
5
votes
2answers
250 views

What does the `-context` parameter mean when using FFV1 in ffmpeg

In the docs for FFV1 there's a parameter -context, which can be set to 'small' or 'large'. That's all the documentation I can find. While I'm at it, what are the relative benefits of the different ...
1
vote
0answers
18 views

ffmpeg old version more compatible how to emulate it with the new one?

convert command like this: ffmpeg -i res.ogv -vcodec libx264 -vb 2000k -preset ultrafast -f mp4 res.ogv.mp4 with ffmpeg version 2.8.10 from Fedora 23 it generates file: Metadata: major_brand ...
1
vote
0answers
36 views

ffmpeg showing “Thread message queue blocking” error while encoding (non real time)

Hope someone can help me. I'm using ffmpeg to extract the frames from an old video as images, batch enhancing and upscaling the images, then renecoding the images together with the original audio to a ...
1
vote
1answer
34 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 ...
1
vote
1answer
630 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
1answer
323 views

ffmpeg invalid argument. Which argument was invalid?

UPDATED with info from -report I'm new to ffmpeg. I am trying to loop a video to a linux v4l2 device. ffmpeg -stream_loop -1 -re -f lavfi -i "movie=snail.mp4" -f v4l2 /dev/video4 -report ...
0
votes
1answer
37 views

Are two videos “identical” if their decoded data is the same, but not the encoded data?

Say I have two files A.mkv and B.mkv which are meant to be (told to me to be) the same content at the same quality. However my source tells me they suspect that there is a minor difference, but can't ...
1
vote
1answer
46 views

How to BATCH remux combine video and audio to one file?

How can BATCH remux video and audio to one file? I'm trying this on mine android termux. So what I'm trying: I want to rip audio from video and convert to wav. ffmpeg -i inp.mkv -map 0:1 audio.wav ...

1 2
3
4 5
35