Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
RLE

Risposta accettata

Dinesh Iyer
Dinesh Iyer il 22 Lug 2015
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 Commenti
Loyim Franck
Loyim Franck il 21 Mag 2018
Up to now no person have send the cose to compress a video losslessly ?
Walter Roberson
Walter Roberson il 21 Mag 2018
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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Denoising and Compression in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by