Changing media encoding properties for prepareTranscodeAsync() in RRS feed

  • Question

  • Hi,
    I am working with the transcoding sample. I modified the app to alter the media encoding properties. i.e give custom values for parameters like, bits per sample, fps, channel count, width, height etc. and create a transcoded output file. Input file is in WMV and output file is in MP4. i use CreateMp4() API to create the encoding profile. 

    When I use prepareFileTranscodeAsync() with media encoding profile which has "bitspersample" value 8 for audio(audio of input file has 16 bits per sample), I get the transcoded output video which has same bits sample as that of the input (16 bits per sample). Change in the media encoding profile values does not seem take effect in the output video when prepareFileTranscodeAsync(). Is there a way to transcode using the custom values to these properties?
    Tuesday, September 25, 2012 9:30 AM


  • Hi,

    Please refer to:

    var transcoder = new Windows.Media.Transcoding.MediaTranscoder();
    return transcoder.prepareFileTranscodeAsync(source, destination, profile);

    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact msdnmg@microsoft.com
    Microsoft One Code Framework

    • Proposed as answer by Song Tian Thursday, October 11, 2012 8:02 AM
    • Marked as answer by Dino He Thursday, October 11, 2012 2:16 PM
    Wednesday, September 26, 2012 8:15 AM