Community
cancel
Showing results for 
Search instead for 
Did you mean: 
iroeville
Beginner
109 Views

sample_multi_transcode.exe for composition

Jump to solution

I'm having problems trying to get the syntax right for getting the sample_multi_transcode.exe sample to do composition - i.e.using the -vpp_ command line options in the par file. Everything I've tried so far seems to give syntax error messages.

Do you have a working example par file for sample_multi_transcode.exe that successfully composes two h264 input files to a single h264 output file (or similar) ?

 

0 Kudos
1 Solution
Anna_B_Intel
Employee
109 Views

Hi Iroeville,

Try to write the following strings in .par file:

-i::h264 input1.264 -vpp_comp_dst_y 0 -n 300 -vpp_comp_dst_h 135 -vpp_comp_dst_x 0 -join  -vpp_comp_dst_w 480 -hw -f 30 -o::sink
-i::h264 input2.264 -vpp_comp_dst_y 0 -n 300 -vpp_comp_dst_h 135 -vpp_comp_dst_x 480 -join  -vpp_comp_dst_w 480 -hw -f 30 -o::sink
-i::source -h 1080 -b 8700 -w 1920 -join  -async 1 -hw -n 300 -fe 30 -vpp_comp 2 -l 1 -o::h264 output.h264

Best wishes,

Anna

View solution in original post

4 Replies
Anna_B_Intel
Employee
110 Views

Hi Iroeville,

Try to write the following strings in .par file:

-i::h264 input1.264 -vpp_comp_dst_y 0 -n 300 -vpp_comp_dst_h 135 -vpp_comp_dst_x 0 -join  -vpp_comp_dst_w 480 -hw -f 30 -o::sink
-i::h264 input2.264 -vpp_comp_dst_y 0 -n 300 -vpp_comp_dst_h 135 -vpp_comp_dst_x 480 -join  -vpp_comp_dst_w 480 -hw -f 30 -o::sink
-i::source -h 1080 -b 8700 -w 1920 -join  -async 1 -hw -n 300 -fe 30 -vpp_comp 2 -l 1 -o::h264 output.h264

Best wishes,

Anna

View solution in original post

iroeville
Beginner
109 Views

Thanks Anna. I tried this with the pre-built sample_multi_transcode.exe and a couple of 1920x1088 sized h264 files that are 234 frames in length, so slightly changed values like this:

-i::h264 f1.h264 -vpp_comp_dst_y 0 -n 234 -vpp_comp_dst_h 135 -vpp_comp_dst_x 0 -join  -vpp_comp_dst_w 480 -hw -f 30 -o::sink
-i::h264 f1a.h264 -vpp_comp_dst_y 0 -n 234 -vpp_comp_dst_h 135 -vpp_comp_dst_x 480 -join  -vpp_comp_dst_w 480 -hw -f 30 -o::sink
-i::source -h 1088 -b 8700 -w 1920 -join  -async 1 -hw -n 234 -fe 30 -vpp_comp 2 -l 1 -o::h264 output.h264

It seems to process OK with this transcript:

D:\TEMP>"D:\Intel Media SDK Samples 2016 6.0.0.142\_bin\win32\sample_multi_trans
code.exe" -par multi_trans_par_intel.txt
Multi Transcoding Sample Version 6.0.0.142

Par file is: multi_trans_par_intel.txt

MFX HARDWARE Session 0 API ver 1.11 parameters:
Input  video: AVC
Output video: To child session
MFX dll: C:\Program Files\Intel\Media SDK\libmfxhw32.dll

MFX HARDWARE Session 1 API ver 1.11 parameters:
Input  video: AVC
Output video: To child session
MFX dll: C:\Program Files\Intel\Media SDK\libmfxhw32.dll

Pipeline surfaces number: 8
Pipeline surfaces number: 2
MFX HARDWARE Session 2 API ver 1.11 parameters:
Input  video: From parent session
Output video: AVC
MFX dll: C:\Program Files\Intel\Media SDK\libmfxhw32.dll

Pipeline surfaces number: 15
Session 0 was joined with other sessions
Pipeline surfaces number: 15
Session 1 was joined with other sessions
Session 2 was joined with other sessions

Transcoding started

Transcoding finished

Common transcoding time is  2.07 sec
MFX session 0 transcoding PASSED:
Processing time: 1.95 sec
Number of processed frames: 234
MFX session 1 transcoding PASSED:
Processing time: 1.95 sec
Number of processed frames: 234
MFX session 2 transcoding PASSED:
Processing time: 2.07 sec
Number of processed frames: 234

The test PASSED

The output.h264 file seems to be identified OK in MediaInfo - but VLC will not play it although it will play the input h264 files.

Any idea what is wrong?

 

Anna_B_Intel
Employee
109 Views

According to command line output transcoding is correct. I'm not clear does VNC work with raw video. Usually players work with video in containers. I reproduced the scenario and Windows Media Player plays the output fine. Also sample_decode can render it well. 

Best wishes,

Anna

iroeville
Beginner
109 Views

Thanks Anna. I can confirm that the output h264 file does play OK in Windows Media Player. It looks like this might be an issue with VLC.

 

Reply