22:58
For this type of video, do I get the right colors for jpgs?
Color space : YUV
Chroma subsampling : 4:4:4
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
For the video, I tried making jpegs using this code, but the colors did not match:
ffmpeg -i input.mkv -vf zscale=min=709:m=170m:rin=limited:r=full,format=yuv444p -qmin 1 -qmax 1 -q:v 1 output%03d.jpg
21:15
I have a regular mp4 file which I need to store into smaller chunks in separate locations, what's the proper way of splitting the file and then have the browser be able to play it by requesting chunks?
I'm a bit confused about segments and fragments, can I do all of this with a single ffmpeg command? Something to split the file into 10s chunks and then still be able to stream it in the video tag by appending to the MediaStream buffer?
13:03
I am new to OpenCV, and I want write Mat images into video using VideoWriter on Ubuntu 12.04. But when constructing VideoWriter, errors came out.
It seems that OpenCV invoke ffmpeg API using default parameters and ffmpeg invoke x264 using its default parameters. Then these setting is broken for libx264. Thus the "Could not open codec 'libx264'" error.
Anyone has ideas to solve this problem?
More specifically:
anyone knows where and how OpenCV invoke ffmpeg API?
how to change ffmpeg default settings using code, hopefull, can be (...)
12:51
I'm using bunjs runtime to execute ffmpeg as terminal code but I don't know if my code is typescript code is wrong or ffmpeg is wrong
and I'm using json file to get the clips correctly
let videos = 0;
let stepsTrim = "";
let concatInputs = "";
for (let i = 0; i < 40; i++)
if (unwantedWords[i].keepORdelete === true)
stepsTrim += `[0:v]trim=0:$
unwantedWords[i].start
,setpts=PTS[v$i];[0:a]atrim=0:$
unwantedWords[i].start
,asetpts=PTS-STARTPTS[a$i];[0:v]trim=$unwantedWords[i].start:$
(...)
11:24
I am trying to extract the next 30 seconds of audio from a live video stream on YouTube using AWS Lambda. However, I'm facing an issue where Lambda does not wait for an FFmpeg subprocess to complete, unlike when running the same script locally. Below is a simplified Python script illustrating the problem:
import subprocess
from datetime import datetime
def lambda_handler(event, context, streaming_url):
ffmpeg_command = [
"ffmpeg",
"-loglevel", "error",
"-i", streaming_url,
"-t", "30",
"-acodec", "pcm_s16le",
"-ar", "44100", (...)
11:12
I am trying to extract the next 30 seconds of audio from a live video stream on YouTube using AWS Lambda. However, I'm facing an issue where Lambda does not wait for an FFmpeg subprocess to complete, unlike when running the same script locally. Below is a simplified Python script illustrating the problem:
import subprocess
from datetime import datetime
def lambda_handler(event, context, streaming_url):
ffmpeg_command = [
"ffmpeg",
"-loglevel", "error",
"-i", streaming_url,
"-t", "30",
"-acodec", "pcm_s16le",
"-ar", "44100", (...)
10:53
I want to record video as well as audio from webcam using ffmpeg,
I have used the following codes to know what devices are available:
ffmpeg -list_devices true -f dshow -i dummy
And got the result:
ffmpeg version N-54082-g96b33dd Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 17 2013 02:05:16 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray (...)
09:04
I am trying to merge .cdg file and .mp3 file to make .mp4 file with help of ffmpeg.
I am using following command:
ffmpeg -i test.mp3 -i test.cdg -y test.MP4
MP4 file was created only with mp3 audio file. cdg file contain is missing
04:29
I am using ffmpeg to convert a batch of .mp4 videos to the .avi format from the command line. The .mp4 videos are all trimmed videos that are sub-videos of a longer video. I have basically segmented the longer video into small, non-overlapping chunks (or maybe with a couple milliseconds of overlap), and I want to convert all of these smaller chunks (.mp4) to .avi. However, I am running into an issue: the .avi files all contain a some additional frames at the beginning of each video which I explicitly trimmed in the .mp4 videos. I'm not sure what exactly is causing this problem or how (...)