Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Sudhakar_s_
Beginner
64 Views

Need to Encode a mp4 file to 854 x 480 and set CBR to 1800

Hi ,

I have installed latest drivers 5500, 2016 Media Server Studio and Intel Media SDK 2016 r2.

Downloaded the latest samples from GITHUB: https://github.com/Intel-Media-SDK/samples

have built sample_encode in release mode, win64 and able to see the sample_encode.exe in _build folder.

When I try to execute following command:

sample_encode.exe h264 -i test.mp4 -o output.mp4 -w 1280 -h 720 -b 1800 -u quality -f 29

a file is generated but That has zero frames and of size 2.5 MB.

Can anyone help me in resolving the issue.

 

Thanks

Sudhaakr

0 Kudos
1 Reply
Surbhi_M_Intel
Employee
64 Views

Hi Sudhakar, 

Media SDK and it's samples are targeted towards working with elementary streams for different codecs like .264/.265. For you input, use any 3rd party tool to demux the content and later pass through media sdk samples. 
For sample_encode, input should be a raw stream i.e. yuv content and encode it to h264 elementary stream. 
For sample_decode, input should be an elementary steam and the output will be in yuv (for example - out.yuv)
You can run the binaries to see cmd line suggestions. 

Hope it helps. 

Thanks,
Surbhi

Reply