Does VideoWriter make only .avi files?

2 ビュー (過去 30 日間)
Nidhi Kumari
Nidhi Kumari 2018 年 7 月 11 日
回答済み: Brian Cianciola 2018 年 7 月 11 日
I used .mp4 video to form frames by using VideoReader and then i combined them again to form a new video by using VideoWriter ,but i got .avi file. How can i automatically get the same extension video which i used at starting?

回答 (1 件)

Brian Cianciola
Brian Cianciola 2018 年 7 月 11 日
I'm not very familiar with VideoWriter, but looking at the documentation it looks like you can specify the file format using a second parameter. It looks like you put a profile for the second parameter and in that profile you can adjust the property FileFormat to make a .mp4

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by