필터 지우기
필터 지우기

how can i compress the video using Run Length Encoding ..?

조회 수: 1 (최근 30일)
pavithra s
pavithra s 2015년 7월 22일
댓글: Walter Roberson 2018년 5월 21일
RLE

채택된 답변

Dinesh Iyer
Dinesh Iyer 2015년 7월 22일
Pavithra,
First of all I am curious to ask why do you want to do this. If you want to save your video data in a compressed format, you can use VideoWriter to select from the many compressed formats options that it supports.
If this is not your intention, you can use RLE to perform this encoding. I am not sure how you can save this data though.
Dinesh
  댓글 수: 3
Loyim Franck
Loyim Franck 2018년 5월 21일
Up to now no person have send the cose to compress a video losslessly ?
Walter Roberson
Walter Roberson 2018년 5월 21일
Use mmfileinfo() to get information about the size of the frames. Write that out to a binary file. Loop over the frames, calling the RLE routine that Dinesh Iyer linked to above. Write the run length compressed information to the binary file. Continue going until all frames have been processed. Close the binary file. You now have a losslessly compressed video.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by