Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
326 views
in Technique[技术] by (71.8m points)

encoding - Can i use the same huffman table to decode and encode each frame in a video?

Currently working on a code where I used motion-compensated prediction using SAD/SSD. It all works (by which I mean the PSNR and BPP are hitting the desired values) but I find that the encoding and decoding take MUCH longer than I would like.

The general process: For each frame in the video (only a couple of frames), I go through and create a Huffman table. Huffman encodes and then proceed to Huffman decode. Then I finally go through some reconstruction to create the predicted frame.

My question is, Can I use the same Huffman table to encode all of the frames instead of making them per frame?

I can't imagine that modern video encoders would make a table per frame. Feels like it would take way too long and would be video-specific.

question from:https://stackoverflow.com/questions/65920237/can-i-use-the-same-huffman-table-to-decode-and-encode-each-frame-in-a-video

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...