libvpu: How to set sliceMode & sliceSize to fit into ethernet RTP payload?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

libvpu: How to set sliceMode & sliceSize to fit into ethernet RTP payload?

1,536 Views
salado
Contributor I

All,

We are doing a video application for transmitting VPU encoded H.264 data through RTP.

Our encoder setting for the slicing:

1. sliceMode = 1 (more than one slices for one frame)

2. sliceSizeMode = 0 (slice size in bits)

3. sliceSize = 1400 * 8

The VPU did output one frame with multiple slices. But the size of each slice is not controlled under 1400 bytes.

Is there anything else needs to be set to perform this?

Thanks!

Labels (2)
Tags (4)
0 Kudos
Reply
3 Replies

759 Views
rvanbrenk
Contributor I

Is the above method working for H264 using imx8mm hantro vpu?

I do not see multiple slices generated when I set:

sliceMode.sliceMode = 1;

sliceMode.sliceSizeMode = 0;

sliceMode.sliceSize = 9000;

Tags (1)
0 Kudos
Reply

1,200 Views
salado
Contributor I

bump... Anybody can help?

0 Kudos
Reply

1,200 Views
donfreiling
Contributor III

I am also interested in the answer to this. I am currently using the same approach on the i.MX27 and it is working well. One difference is that I am setting sliceSize = 9000 to account for overhead and to add some margin. I am just now moving to the i.MX6SL and I'm counting on this mechanism to work

0 Kudos
Reply