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

ffmpeg to convert .avi to .mp4 results in error: Could not find tag for codec dvvideo in stream #0, codec not currently supported in container

I'm trying to convert .avi files to .mp4 using ffmpeg, as lossless-ly as possible. I tried this command: ffmpeg -i filename.avi -c:v copy -c:a copy -y filename.mp4 and received this output: ...
0
votes
1answer
30 views

Extract audio from a multichannel video file

I have a QT ProRes which has 8 audio tracks. L/R/C/Lfe/Ls/Rs/Ltotal/Rtotal What I need to do is extract the 5.1 (tracks 1-6) into separate individual wav files without recompression and the last 2 (...
1
vote
1answer
140 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
1answer
37 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
1answer
1k 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
44 views

replace video track and keep everything else

I want to use FFmpeg to replace a certain video track but keep everything else including chapters, audio, fonts etc… I know I should be using -map and -map_metadata but not sure how to do it.
0
votes
2answers
252 views

filter_script usage with ffmpeg and replacing inputs with a file

When using ffmpeg -i input1 -i input2 ... -filter_script filter_complex.txt output.mkv I can't seem to get the stream from the filter_complex.txt file to be recognized by ffmpeg. If I add -map [v], ...
5
votes
3answers
14k views

Concat two video files with fade effect using FFmpeg

Is there any way to concat two video files with a fading effect using FFmpeg? Something like this: ffmpeg -f concat -i input.txt -c copy "--with:fade:out-in" output.ogg
0
votes
1answer
1k 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
42 views

Bulk re-muxing/re-encoding with ffmpeg in multiple folders

I'm quite new to the world of FFmpeg and video editing tools, but I essentially need to change the hash of a large set of videos that are organized in folders and subfolders and the easiest way I've ...
0
votes
1answer
23 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
1answer
227 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
494 views

Copy chapter metadata of input to output for Apple compatibility

I have a set of media where I'm trying to strip an audio track and copy everything else over. My command is like so: ffmpeg -i input.m4v -dn -map 0 -map -0:a:2 -c copy output.m4v The source file has ...
0
votes
1answer
34 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:...
2
votes
1answer
269 views

Create a splitscreen video from two videos of different lengths with delay

I want to create a splitscreen video from two video clips. Left one is of duration 70seconds. Right one is of duration 80seconds. In the splitscreen video, the right video should start first. Left ...
0
votes
0answers
18 views

How to record two windows at once using ffmpeg?

I'm currently using this code: ffmpeg -f gdigrab -framerate 30 -i title="Chrome" -b:v 3M output.flv To capture a specific window title. Would like to ask how I could also capture a second ...
2
votes
1answer
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 ...
0
votes
0answers
10 views

FFMPEG Audio Stream lengths

Ill make this as quick as possible. I recorded with obs, used ffmpeg to convert from .mkv to .mp4 with 3 audio tracks in .aac Command: @echo off & setlocal enabledelayedexpansion for %%v in ("...
1
vote
1answer
2k 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 ...
0
votes
1answer
1k 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 ...
1
vote
1answer
401 views

FFMpeg -filter_complex to place a video in a window on a larger image with text

I'm trying to work out how to combine both features of the following in one -filter_complex statement in order to take an image, write some text on it, and then do an additive composite of a small ...
1
vote
1answer
3k 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
1answer
217 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 -...
0
votes
0answers
111 views

ffmpeg: copy an audio track and convert another in the same video file

After trying to find a solution for this for about two hours now I have to ask here or I'm going mad. I have a video with these tracks: Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), ...
0
votes
1answer
360 views

Is there a way to use nlmeans_opencl filter with a 10 bits source?

So far I have only managed to run nlmeans_opencl filter with the following settings: ffmpeg -init_hw_device opencl=gpu:0.0 -filter_hw_device gpu -i 10bit_input.ts \ -vf "hwupload,...
1
vote
1answer
349 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
1answer
848 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
59 views

ffmpeg and ffprobe existing library or an add-on, pros/cons of building one myself

I work with video creation, animation, or fix video elements for several broadcasters in my area. My pipeline includes ffmpeg suite of libraries, and I have written one plugin specifically for ffmpeg ...
0
votes
2answers
2k views

How to 2-pass h264 with CRF and maximum bitrate with ffmpeg?

Based on CRF Guide (Constant Rate Factor in x264, x265 and libvpx), quoting: Streaming nowadays is done a little more cleverly. YouTube or Netflix are using 2-pass or even 3-pass algorithms, ...
0
votes
1answer
2k 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
0answers
21 views

ffmpeg aborts streaming to SRT when client stops playing

I'm using ffmpeg to stream using the SRT protocol, with for example this command: ffmpeg -re -f lavfi -i testsrc \ -c:v libx264 -g 25 -preset veryfast -tune zerolatency -r 25 \ -f mpegts "srt:...
1
vote
1answer
1k views

change aspect ratio without stretching video ffmpeg

ffmpeg -i "a.mov" -i "b.mp4" -filter_complex "[0:v]setsar=sar=${SAR}[a]; [1:v]setsar=sar=${SAR}[b]; [a][0:a] [b][1:a] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" -preset veryfast -crf 18 "...
0
votes
0answers
33 views

How can I trim an MKV video of incorrect length without re-encoding or losing any of its tracks?

I have a handful of MKV videos which claim to be a few seconds longer than they actually are. When played in VLC, they simply stop abruptly when they get to the actual end of the video. This would be ...
0
votes
1answer
56 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
588 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
310 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
1answer
710 views

Concat files of different encodings?

I have nearly 130 files that I want to burn onto a DVD as an end result. I've gone down a bit of a rabbit hole and ended up at ffmpeg trying to combine all the files into a single giant 2 and a half ...
0
votes
1answer
1k views

Color shift FFmpeg raw RGBA images to YUV format

I have a list of raw bitmap in rgba format, captured with an openGL frameBuffer. I want to export them in a video, currently i am using the following command: ffmpeg -f rawvideo -r 30 -pix_fmt rgba -...
4
votes
3answers
8k views

FFMpeg concat demuxer corrupted output (freezed video on some concatenated parts)

I have big videos with different types of properties and trying to collect some part of these videos by ffmpeg. I use this command to cut specific parts: scale video >> scale png >> pad ...
0
votes
1answer
831 views

ffmpeg.exe ignores yadif filter when using >1 filter on the command line

I'm using Windows and batch converting some SD captures that are 544x576, I want to deinterlace them and scale them to show at the proper aspect ratio. When I use the following command: FOR /F "...
3
votes
1answer
516 views

ffmpeg tile command: ordering frames top to bottom rather than left to right

By default, the tile command builds the output one row at a time, from left to right. I would like instead for my output to be built in columns, top to bottom. That is, for a 4x4 tiling, the tile ...
1
vote
1answer
983 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/...
1
vote
1answer
981 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 ...
1
vote
1answer
739 views

ffmpeg convert non transparent pixel to white

I'm trying to convert all non-transparent pixels of an image to white using the geq filter in ffmpeg: ffmpeg -y -i in.png -vf "format=rgba,geq='r=if(lt(alpha(X,Y),10),255):g=if(lt(alpha(X,Y),10),255):...
0
votes
1answer
468 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
0answers
21 views

Image becomes transparent on downscaling with ffmpeg

This is the original image of 200x200 On downscaling the image to 100x100. There is a semi transparent shadow near the lines and some pixels are not completely opaque. The command used for scaling: ...
1
vote
2answers
2k views

Convert to ProRes with ffmpeg adds unwanted contrast to footage

I'm trying to convert H.264 footage from a Panasonic EVA1 camera to Apple ProRes with ffmpeg. However no matter which setting I use, the output file has slightly more contrast than the original input ...
1
vote
1answer
687 views

How to combine so many ffmpeg filters in 1?

I dont even know if it's possible, but if anybody could help me would be really great! :) So first of all i resize my video with this command: CODE №1 ffmpeg -i input.mp4 -c:v libx264 -crf 20 -crf ...
0
votes
1answer
293 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
1answer
76 views

Hello ffmpeg heroes - please help me with ffmpeg/ffprobe commands to decode a video for me?

I have a sample.mp4 which is currently not playable on VLC or media player and I've checked the FFmpeg values and get the below result? Any help would be greatly appreciated.

1
3 4
5
6 7
37