Convert Video to lower quality file

2 ビュー (過去 30 日間)
LabRat
LabRat 2022 年 8 月 15 日
回答済み: Image Analyst 2022 年 8 月 15 日
I would like to convert a videofile to a lower quality format. Would VideoWriter() work? Would I use VideoReader() first to point to the correct file, then use VideoReader() to write it in a different quality?

回答 (2 件)

Benjamin Thompson
Benjamin Thompson 2022 年 8 月 15 日
You use VideoWriter to write out to an output video, like in this example:
https://www.mathworks.com/help/matlab/import_export/convert-between-image-sequences-and-video.html
VideoWriter accepts parameters to change the output file type and other qualify parameters.

Image Analyst
Image Analyst 2022 年 8 月 15 日
See attached demo where I change the pixel resolution of the displayed video and save it as a new, lower resolution video.

カテゴリ

Find more on Video Formats and Interfaces in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by