Results 1 to 2 of 2

Thread: Programatic cropping of transcoded stream

  1. #1

    Question Programatic cropping of transcoded stream


    I would like to be able to apply a crop to the output of the transcoder. i.e. we define a region of the video and the output is only that region, the height and width of the video would change according to the dimensions of the crop.

    The resize only has to happen once (we know what the target dimensions will be), so, if it is not possible crop and resize, is it possible to just crop a region of the video and have it placed in the resized output, without scaling?

    So far, we have tried using the SetCrop, SetDstRect, SetSrcRect. We have not had any luck affecting changes in real-time.



  2. #2
    Join Date
    May 2013


    Hello Adam

    You can look at the ILiveStreamTranscoderActionNotify interface and leverage the setCrop function similar to the following:

    // event handler in ILiveStreamTranscoderActionNotify
     public void onInitAfterLoadTemplate(LiveStreamTranscoder liveStreamTranscoder) { 
           TranscoderStreamDestination streamDest = ... reference to your destination ...;
    		int[] cropDef = new int[4];
    		cropDef[0] = 10;
    		cropDef[1] = 20;
    		cropDef[2] = 20;
    		cropDef[3] = 10;


Similar Threads

  1. Stream name groups not working with .stream transcoded source
    By videodoctor in forum Wowza Transcoder
    Replies: 1
    Last Post: 05-20-2014, 12:57 PM
  2. Find source stream from transcoded stream
    By karelboek in forum Wowza Transcoder
    Replies: 1
    Last Post: 03-07-2014, 08:48 AM
  3. Matching the original stream while recording a transcoded stream
    By Leopold O'Donnell in forum AddOn: Transcoder
    Replies: 0
    Last Post: 04-20-2013, 12:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts