how to compress any video by using H.264 compression standard ....

조회 수: 38 (최근 30일)
venkateshwarlu
venkateshwarlu 2011년 2월 23일
편집: YT 2019년 2월 5일
can any one suggest me that how to compress a video by using h.264 compression standard in matlab.... thank u in advance

답변 (1개)

YT
YT 2019년 2월 5일
편집: YT 2019년 2월 5일
You can use VideoWriter with MPEG-4 profile for this
v = VideoWriter('my-video.mp4','MPEG-4'); %uses h264 encoding
v.Quality = 80; %video quality
open(v);
writeVideo(v,myDataMatrix);
close(v);
  댓글 수: 2
Guillaume
Guillaume 2019년 2월 5일
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.
YT
YT 2019년 2월 5일
편집: YT 2019년 2월 5일
True, but we're still talking Matlab here, so indeed there's no other codec to choose from (I don't know why can't choose the codec though, maybe because h264 is supported by most devices/players).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by