Skip to main content

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

ffmpeg command to convert interlaced video to progressive without any loss of quality

Can anyone provide me with the ffmpeg code to convert deinterlaced 80's video to progressive video without any loss of quality - ideally where I could deinterlace only the interlaced fields(I use ...
0 votes
1 answer
19 views

dvdauthor spumux aborted: picture had 256 colors

spumux tmp.xml < tmp.mpg > output.mpg INFO: Picture tmp.png had 255 colors INFO: Picture tmp.select.png had 256 colors spumux: subgen.c:313: findmasterpal: Assertion `s->numpal < 16' ...
0 votes
1 answer
204 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
1 answer
233 views

Why X265 conversion is very slow on some devices

When I am converting my video using FFMpeg, I am using x265 to do the compression. But the issue is this conversion is much much slower. But while I am using my iPad 6th Generation, this works much ...
0 votes
1 answer
63 views

How to extract video tracks from an mp4 file and individually save them to file

My Mercedes-Benz dashcam saves to SD card the video feeds from the front and rear cameras (in 1-minute long chunks) as separate tracks in the same MP4 file. Track 1 is from the front camera; track 2 ...
0 votes
1 answer
957 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
0 answers
20 views

FFMPEG drawText with fontSize scale "bounce" animation

I'm trying to add a "bounce" animation on a section of text from a known startTime and endTime My initial approach has been to split the start and end times into a first half ( scale up ) ...
1 vote
1 answer
286 views

First input link main timebase (1/15360) do not match the corresponding second input link xfade timebase (1/90000)

ffmpeg community I am new to ffmpeg and i am facing this error for more then 2 days. This ffmpeg command: !ffmpeg -i "{fromPath}" -i "{toPath}" -filter_complex "xfade=...
0 votes
0 answers
27 views

Same FFmpeg command produces different Matroska MKV output file checksum

The following exemplary FFmpeg command takes an MP4 file, doesn't do any re-encoding, but simply writes the output to an MKV file: ffmpeg -i input.mp4 -c copy output.mkv If I run the same command ...
0 votes
0 answers
55 views

How to delay beginning of audio without re-encoding?

I have a file containing both video and audio stream. I want to delay the audio by 5 seconds relative to the beginning of the video, without having to do any re-encoding. The command I tried was: ...
1 vote
1 answer
38 views

In which order do `-itsscale` and `-itsoffset` apply in my FFmpeg command?

I want to use both -itsscale and -itsoffset in my FFmpeg command, but couldn't find any information in the docs https://ffmpeg.org/ffmpeg.html or elsewhere, if the order, in which they're mentioned in ...
0 votes
1 answer
24 views

Blend the brightest pixels of a frame to the next with ffmpeg?

I have googled for days, and I just can't figure out how to use ffmpeg to blend the brightest pixels to the next video frame. And lastly save the last frame as an image. Similar to "evaluate ...
0 votes
1 answer
126 views

How to cut video, add audio and burn subtitle while cropping video all in one command - ffmpeg

Currently I have the following command, which cuts the video, adds audio and burns subtitle into the video. -ss 00:00:30 -t -i video.mp4 -i audio.wav -vcodec copy -acodec copy -map 0:0 -map 1:0 -vf ...
1 vote
1 answer
352 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
1 answer
3k 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
1 answer
274 views

What x264 encoder is better for upscaling pixel art? Is it x264 8bit or 10bit?

I mostly use Virtualdub2 to upscale my videos (although I am looking for other methods) via two resize filters, Nearest Neighbor and Lanzcos3. Recently I am looking at the x264 encoder to encode my ...
0 votes
1 answer
432 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
1 answer
116 views

Do modern devices support decoding 4:4:4 pixel formats?

I am recording and distributing relatively low motion screen content (not games). Using h264, fine text often appears very blurry due to the poor subsampling with 4:2:0 and 4:2:2 pixel formats. With 4:...
1 vote
1 answer
968 views

Tool for searching for a video's frame by an image file

I've been searching for a tool that would take an image--a screenshot of a frame from a movie--and search every frame of one video from that same movie for that same image and give me either the frame ...
2 votes
1 answer
1k views

Can I inject subtitles into a live stream with FFmpeg?

In my live streaming scenario I need to grab a video source and inject subtitles that I generate algorithmically during the stream (i.e. I do not know the subtitles upfront), and publish the streams ...
2 votes
1 answer
1k views

ffmpeg: joining videos leads to "time skips" during playback

I hope that someone can help me. I have the following two videos: $ ffprobe 0.ts ffprobe version 3.2.4 Copyright (c) 2007-2017 the FFmpeg developers built with gcc 6.3.1 (GCC) 20170109 ...
1 vote
1 answer
3k views

HLS to RTP multicast FFmpeg

I want to transmit HLS stream to RTP multicast via FFmpeg and use the following command: ffmpeg -re -i HLSstream -c copy -f rtp_mpegts rtp://ip:port But the output source сrumbles sometimes (I ...
1 vote
1 answer
2k views

FFmpeg keep different sar and dar in multiple videos

I have two video that I'm working through filter_complex. First video is 1280x720 [SAR 1:1 DAR 16:9] and the second video is 1280x720 [SAR 203:640 DAR 203:360] I would like to merge the files with ...
0 votes
1 answer
405 views

resend headers NUT formats

If I do this ffmpeg -f dshow -video_size 720x480 -framerate 29.97 -i video="Roxio Video Capture USB":audio="Line (Roxio Video Capture USB)" -c:v mjpeg -c:a pcm_s16le -map 0:v -map 0:a -f fifo -...
1 vote
1 answer
4k views

best way to publish low latency video on ffmpeg

I am trying to publish a stream of live video that need to get to the client side in under 3 sec in latency. I am using vMix to capture a 720p/50 stream from a camera, that by virtual camera letting ...
0 votes
0 answers
27 views

Color histogram transfer with ffmpeg

I don't know if this is even possible, and I'm new to this, but I'll try and ask anyway: I have two videos that are largely the same; they are recordings of the same thing. However, in one of them, ...
1 vote
1 answer
872 views

ffmpeg Auto Level, Auto Color etc similar to YouTubes Auto-Fix

I used to use YouTube Auto-Fix which presumably auto fixed levels, color, contrast and added a bit of vibrance (it was almost always a bit high saturated which i kinda liked). I am looking for an ...
0 votes
1 answer
1k 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
1 answer
95 views

using ffmpeg, how to concetrate multiple videos into one, but audio will be sync per video in linux?

using ffmpeg, using ffmpeg, how to concetrate multiple videos into one, but audio will be sync per video in linux? I have tried async, vsync, atempo but i dont know how make ffmpeg to autosync audio ...
15 votes
5 answers
86k views

How to download and encode a video from a MPD manifest?

I can watch videos on a website with MPEG-DASH technology. I can obtain the video's manifest.mpd file from the website. (I am not sure whether the file contains any user credentials or not, so I am ...
2 votes
1 answer
4k 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
1 answer
3k views

Color changes after video to single frame images back to video using ffmpeg

Given master video in mov rle: Video: qtrle (rle / 0x20656C72), rgb24(progressive) Converted the video to a serie of single .bmp frames. ffmpeg -i source.mov $FRAMES/f%03d.bmp Frames from ...
0 votes
0 answers
33 views

How do I change the color format of a video in ffmpeg?

I have upscaled an old DVD to 4K through various samples and appended the files producing the following x265 file within an .mkv container: My TV can't directly play the video, though, usually able ...
0 votes
1 answer
483 views

FFMPEG: FIFO buffer to smoothen bandwidth requirements?

I'm trying to achieve something pretty simple, but it's very hard to describe: There is a live video stream which uses h264 for it's video, and m4a for it's audio. This stream is not mine, and I have ...
0 votes
1 answer
62 views

Replicate the behavior of -r option before applying filters

When converting the framerate of a video, ffmpeg offers multiple options one options is -r: ffmpeg -i myvideo.mp4 -r 10 my10fpsvideo.mp4 another option is using filters: ffmpeg -i myvideo.mp4 -...
1 vote
1 answer
386 views

How to encode scenes with different CRF into a H.264 MP4 video with a variable frame rate?

Source Material Having many scenes which essentially are still frames (for many seconds) Commonly found in: Slideshows, Screen Recording or Software Mockup/Prototype ✅ This kind of source material ...
0 votes
1 answer
2k 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
1 answer
473 views

(FFMPEG) Creating SD Pal Anamorphic

I'm using a shell script to automate some FFMPEG processes. The main part I'm interested in is the options following the -vf flag below: ffmpeg -loglevel verbose -y -i "${FILE}" -vcodec prores -...
1 vote
1 answer
215 views

ffmpeg h264 to mp4 conversion from multiple files fails to preserve in-sequence resolution changes

This will be a long post, so I thank you in advance for your patience in digesting it. Context I have different sources that generate visual content that eventually need to be all composed into a ...
1 vote
1 answer
1k views

ffmpeg concat videos, some have audio some don't

I have 4 videos I am trying to string together and here is my command bin/ffmpeg.exe -f concat -safe 0 -i concat.txt out/documentary_full.MOV Here is what's in concat.txt file '/path/to/...
0 votes
1 answer
2k views

Export Frames of 10 BPC Video File with ffmpeg

I have several hundred 1080p 59.94fps 10-bit-per-channel (bpc) AVC-Intra Class 100 MXF encoded video files. I would like to extract the frames of this video file and export them to disk in a 16-bit ...
0 votes
1 answer
837 views

Question about ffmpeg's overlay variable t

I've got an ffmpeg command that overlays a line on a video and moves it from left to right while the video plays: ffmpeg -i clip.mp4 -i line-with-transparent-white.png -filter_complex "[0:v][1:v]...
0 votes
1 answer
412 views

Where to input a log expression in FFMPEG

Im trying to use a expression from NUKE (to convert an exr sequence from its native format into AlexaLogC. Now ive got an expression from nuke which is the following x > 0.14996582 ? (pow(10,0, (x ...
0 votes
1 answer
117 views

Creating an 8K/4K video in ffmpeg from single image frame leads to video longer than audio

I want to make a video using a cover image and an audio file with the audio file as the length. What's the most optimal modern way to do this with new codecs and high resolutions? Reason why I want 4K/...
0 votes
1 answer
554 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
1 answer
3k 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
0 answers
19 views

{Help} FFMPEG with NVIDIA hardware acceleration

I just started using ffmpeg so I am new this. I am currently (code-1) to overlay a simple png on a video nothing fancy. Now I want to the same thing but with hardware acceleration using a NVIDIA GPU. ...
0 votes
1 answer
706 views

FFMPEG - MAC OS Cannot Capture from Black Magic UltraStudio (Thunderbolt)

I have Black magic UltraStudio Express that captures SDI or HDMI and Connected to MacBook via Thunderbolt when I list devices I get the Audio but not the video : $ ffmpeg -f avfoundation -...
0 votes
1 answer
180 views

FFMPEG to make Quicktime reference MOV file from ProRes MOV source

I'm trying to figure out how to use FFMPEG to make a reference MOV from a ProRes MOV source. I've found commands that will take reference file and make a rendered ProRes MOV file ffmpeg -enable_drefs ...
2 votes
1 answer
1k views

HLS.js player dropping frames at discontinuities in HLS stream

I have a need to play small pieces (1 or 2 seconds) of video in various orders via HLS. Think a highlights reel from a sporting match. Several HLS players struggle with playing a stream with ...

1 2 3
4
5
44