how to compress any video by using H.264 compression standard ....
26 views (last 30 days)
Show older comments
can any one suggest me that how to compress a video by using h.264 compression standard in matlab.... thank u in advance
0 Comments
Answers (1)
YT
on 5 Feb 2019
Edited: YT
on 5 Feb 2019
v = VideoWriter('my-video.mp4','MPEG-4'); %uses h264 encoding
v.Quality = 80; %video quality
open(v);
writeVideo(v,myDataMatrix);
close(v);
2 Comments
Guillaume
on 5 Feb 2019
Stricly speaking MPEG-4 can use other codecs than H.264. However, the documentation for VIdeoWriter does state that matlab uses H.264 for MPEG-4.
See Also
Categories
Find more on Audio and Video Data 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!