Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Testing mp4 decode and encode using media SDK


Hi All,

I'm new to Intel MSS. I would like to test mp4 decode and encode using Intel MSS. I followed below steps:

1. ffmpeg -i to_m.mp4  -vcodec h264_qsv -an out_qsv.h264 (separated avc file from mp4 container)

2. ffmpeg -i to_m.mp4 -vn -acodec copy output.aac (separated audio track)

3. ./simple_decode out_qsv.h264 raw (Decode h264 to raw format)

4. ./simple_encode -g 1000x1000 -b 1000 -f 30/1 raw out.h264 (encoded)

5. ffmpeg -i out.h264 -i output.aac try.mp4 (Combined both audio & video using ffmpeg)

Following are the file sizes and their output.

[root@localhost _build]# ls -ltrh
total 2.9G
-rw-r--r--. 1 vrapelly vrapelly  19M Jan 21  2015 to_m.mp4
-rw-r--r--. 1 root     root     8.3M Feb 18 12:29 out_qsv.h264
-rw-r--r--. 1 root     root     1.7M Feb 18 12:29 output.aac
-rw-r--r--. 1 root     root     2.8G Feb 18 12:30 raw --->Huge size is coming
-rw-r--r--. 1 root     root      13M Feb 19 10:48 out.h264
-rw-rw-r--. 1 vrapelly vrapelly  54M Feb 19 10:49 try.mp4 -->This is also huge compared original mp4 file

Please let me know, whether the above procedure is correct or not? and how to test this using Intel MSS.


Thanks in advance 

0 Kudos
1 Reply

Hi There,

MSDK samples have  sample_full_transcode in Linux Deprecated package,

I think you can refer to sample_full_transcode, please keep in mind sample_full_transcode has been deprecated, but it is still a good start point.