22:51
Is there a standard solution for extracting metadata (like aspect ratio, codec, etc) from video data stored in a Python variable, rather than from a file on disk?
I see people point most often to ffmpeg-python for video metadata analysis, but as far as I can tell, it can only operate on a filename rather than an object in memory. One possible workaround is to tell ffmpeg-python to use stdin pipe as input and then output the contents of the variable to that pipe, but this seems cumbersome. If ffmpeg-python accepted a file handle rather than filename, you could use BytesIO, but this (...)
23:57
FFMPEG C Library: Encoding h264 stream into Matroska .mkv container creates corrupt files
Above is the related question, and the answer of allocating memory for extradata of codec context works.
But on MacOS, with the encoder videotoolbox, this approach creates corrupted video file for any container, including mp4 and mkv. But what it does better for mkv is that at least the corrupted file is not 0 size.
I was wondering what is the correct way to encode stream to mkv on MacOS?
Below is my code initiating the outputcodec
auto path = previewPath.toStdString(); // (...)
23:03
I am new to aws media convert. I am trying to convert the video but the final output video becomes double the length from the original one. for example if I have a video 30 seconds long, it will create 60 seconds long final video. Below is my son.
"Queue": "arn:aws:mediaconvert:us-west-2:730335xxxxx:queues/Default",
"UserMetadata": ,
"Role": "arn:aws:iam::73033541xxxx:role/service-role/MediaConvert_Default_Role",
"Settings":
"TimecodeConfig":
"Source": "ZEROBASED"
,
"OutputGroups": [
"Name": "DASH ISO",
"Outputs": [
(...)
11:16
I've tried to find information about this but to no avail.
What audio formats and their file extensions are supported by FFMPEG?
Is there a command that can list them all?