matroska | Matroska format support | Video Utils library
kandi X-RAY | matroska Summary
kandi X-RAY | matroska Summary
Matroska format support
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of matroska
matroska Key Features
matroska Examples and Code Snippets
Community Discussions
Trending Discussions on matroska
QUESTION
I am trying to combine two audio files, and delaying the second one. Here's my command
...ANSWER
Answered 2022-Apr-02 at 00:10The fundamental issue in these audio files appears to be the frequently dropped frames (each containing 960 audio samples). There is an instance of 8117 seconds gap between 2 successive frames in the first file. Because the MKA files were formed without filling these dropped frames, they are effectively variable-sampling-rate streams while labeled as constant-sampling-rate. This discrepancy makes your audios to appear shorter than they were recorded, explaining why your output is often much longer than expected and has been wrecking havoc on your attempt to work on these files.
While atm I do not know if FFmpeg offers a mechanism to fix/estimate the dropped frames in these files, yYou can brute-force/ignore the dropped frames by:
amix
QUESTION
I'm trying to apply a custom python function on every frame of a video, and create the video with modified frames as output. My input video is a mkv file, with variable framerate, and I'd like to get the same thing as output, so one frame in the input matches one in the output at the exact same time.
I tried to use this example of ffmpeg-python. However, it seems that the timestamp info are lost in the pipes. The output video has 689 frames when the input only has 300 (the durations also aren't a match, with 27s vs 11s for the input).
I also tried to first process each frame in my video and save the transformed version as PNGs. Then I "masked" the input video with the processed frames. This seems to be better because the output video has the same 11s duration than the input, but the frame count doesn't match (313 vs 300).
Code for the python-ffmpeg solution:
...ANSWER
Answered 2022-Feb-18 at 11:30I'll answer my own question, as I've been able to solve the issue with the help of kesh in the comments.
There are basically two things:
vsync passthrough
is required for the input video, to keep the number of frames- another external tool (MKVToolNix) has to be used twice to extract timestamps from the initial video and apply them to the output
Below is the relevant code to perform the whole operation using python and subprocess. You can use the following line on both input and output video to check that the timestamps are indeed the same for each frame: ffprobe -show_entries packet=pts_time,duration_time,stream_index video.mkv
QUESTION
I'm stream and successfully output converted video into mkv file.
...ANSWER
Answered 2022-Feb-12 at 14:42What you were doing in the just deleted question was correct,
QUESTION
I have a few nested loops in my code and in some point, they're divided by a call to a label like this:
...ANSWER
Answered 2022-Jan-30 at 10:25There is not really a need for a subroutine. Delayed variable expansion is needed finally, but it is possible to first assign the fully qualified file name to an environment variable like FileName
to avoid troubles with file names containing an exclamation mark.
The rewritten code according to the code posted in the question with some comments:
QUESTION
I've been using ffmpeg to convert mkv to mp4 and the following is the command I used.
...ANSWER
Answered 2022-Jan-24 at 04:37Your input video stream uses AV1
codec, and as the log says,
QUESTION
To make it easy to visualize, below is the following Record lookup table.
I just can't seem to find anywhere online where it tells you which of these are supposed to also contain charset=utf-8
.
Should I just assume it's anything similar to text?
Take a look:
...ANSWER
Answered 2022-Jan-10 at 05:00MDN Says:
For example, for any MIME type whose main type is text, you can add the optional charset parameter to specify the character set used for the characters in the data. If no charset is specified, the default is ASCII (US-ASCII) unless overridden by the user agent's settings. To specify a UTF-8 text file, the MIME type text/plain;charset=UTF-8 is used.
So, for anything based on text/...
you can optionally add the charset.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#structure_of_a_mime_type
The following update to contentType()
function demonstrates one solution.
QUESTION
I'm trying to develop a script that unifies my currently working scripts to parse some video files. The first one is very simple, just makes sure all video files are on mkv containers. The next few each call mkvmerge -i
to check the file for subtitles, tags, attachments and other undesired extras to strip (which is done sometimes using find
, sometimes using findstr
, for the RegEx).
This is what the output of mkvmerge -i
looks like:
ANSWER
Answered 2022-Jan-08 at 12:58A for /F
command with a set to process the output of a command line results in starting in background one more Windows command processor with %SystemRoot%\System32\cmd.exe /c
and the command line appended as additional arguments. Therefore delayed variable expansion is not enabled for this command process running in background as it would be necessary for echo !mkvmergeinfo!
. It would be necessary to run the background cmd.exe
with option /V:ON
left to option /c
and the command line to execute. But that is not possible, except running two additional cmd.exe
, the first one with /c
and a command line which starts with %ComSpec% /D /V:ON /C ...
a second cmd.exe
as suggested by aschipfl in his comment above.
I suggest to run mkvmerge.exe -i
once for each *.mkv
file and process the output using just internal commands of cmd.exe
like FOR and IF without using find.exe
and findstr.exe
at all.
Example:
QUESTION
I'm trying to convert a file in memory using ffmpeg to another format by using stdin and stdout, but everytime I try to write to stdin, of my ffmpeg command, it just freezes there.
...ANSWER
Answered 2021-Dec-24 at 03:09So the secret lied in reading stdout as you dumped the bytes into stdin, since writing to the pipe blocks. Thanks @JimB for helping me figure this out.
You just have to read as you write:
QUESTION
- Chrome: Version 96.0.4664.55 (Official Build) (x86_64)
- System: Mac Catalina 10.15.5
I am using this code to generate small stand alone videos from a MediaRecorder:
...ANSWER
Answered 2021-Dec-09 at 09:48I moved the creation of the MediaRecorder
instance to the recurrent function and now it is working properly:
QUESTION
Although I studied for a long time, I could not find the right answer anywhere. What I need is to retrieve the data contained in a text file and delete the imported data. In fact, the short name for it is usually "cut". But I couldn't find the question and solution that I really needed on Stackoverflow.
First, look at the contents of the file.txt to fully understand the problem and to guide me:
...ANSWER
Answered 2021-Dec-03 at 15:36I'm not sure what you mean by "Therefore, it prevents me from passing to a data." but I would use s.split("end") to separate and make othe string operations from there because you would have everything to "end" separated in each index of the array. Maybe using splitlines after for an array of the lines of each block of "start/end".
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install matroska
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page