H.264 Encoder to encode frames to I and P frames

9 ビュー (過去 30 日間)
Neil Farrugia
Neil Farrugia 2016 年 3 月 24 日
コメント済み: Mrutyunjaya Hiremath 2021 年 10 月 30 日
Hello, I am here in need of help. I have a task where I need to encode two images x and y. I encode the first as an I frame and the second to a P frame. To do this I have tried using the methods encode_i_frame and encode_p_frame found in the H264 encoder.
x = imread('image.jpg');
x = im2bw(x);
Seq(:,:,1) = double(x);
encode_i_frame(Seq,10);
That's the code I am using but I cannot seem to get it to work. Any help would be appreciated.
  3 件のコメント
Neil Farrugia
Neil Farrugia 2016 年 3 月 24 日
I am assigning it like this
[Seq_r(:,:,1),bits] = encode_i_frame(Seq,10);
The error I am getting is: "Double inputs must have integer values in the range of ASSUMEDTYPE."
Mrutyunjaya Hiremath
Mrutyunjaya Hiremath 2021 年 10 月 30 日
encode_i_frame(), takes input of graylevel image or frame data (range of data 0 to 255).
But in your case its binary (range of data 0 to 1).

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by