xpra icon
Bug tracker and wiki

Changes between Version 61 and Version 62 of Encodings


Ignore:
Timestamp:
01/12/17 12:11:32 (3 years ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Encodings

    v61 v62  
    5050Though you may find some [http://alax.info/blog/1394 good illustrations] online to give you an idea of the trade offs.
    5151(ie: [http://blog.malayter.com/2010/12/presets-versus-quality-in-x264-encoding.html fps vs noise], [http://blogs.motokado.com/yoshi/2011/06/25/comparison-of-x264-presets/ fps vs size])
     52
    5253Be aware that the lossless auto-refresh will trigger a lossless frame encoded using png or rgb. If the delay is too low, it may negate the benefits of using efficient compression.
     54
    5355We have collected some [/wiki/Encodings/Statistics encoding statistics] with an older version.
    5456
     57For more information on the encoding automatic selection and auto-refresh logic, see [/wiki/Encodings/Debugging encoding debugging].
     58
    5559=== Notes ===
    56 When comparing performance, make sure that you use the right metrics... The number of updates per second is not always a good one (if there are more small regions, this can be a good or a bad thing), more examples here: [/wiki/Testing#MisleadingStatistics Misleading Statistics]
     60When comparing performance, make sure that you use the right metrics...
     61
     62The number of updates per second is not always a good one (if there are more small regions, this can be a good or a bad thing).
     63More examples here: [/wiki/Testing#MisleadingStatistics Misleading Statistics]
    5764}}}
    5865
     
    7380* #454 daala - unlikely
    7481}}}
    75 
    76 
    77 {{{#!div class="box"
    78 == Debugging ==
    79 The first thing to check is the codec availability and version.
    80 On MS Windows, run the {{{Encoding_Info.exe}}} utility, or the [/wiki/ReportingBugs bug report tool].
    81 On other platforms, run the {{{xpra/codecs/loader.py}}} script, and for debugging video the {{{xpra/codecs/video_helper.py}}} script. (both support a {{{--verbose}}} option).
    82 
    83 When using non-video encodings, the encoding used for sending the pixels to the client will be the one which has been selected. The only exception to this rule is when the number of pixels is so small that trying to compress them would be pointless, and they are then usually sent as plain {{{rgb}}} or {{{png}}} / {{{webp}}}.
    84 
    85 With video encodings, things are more complicated: if there is a video region, the non video areas will use other encodings. Even the video region (which may be the whole window) will get automatically refreshed with a lossless encoding when it stops refreshing rapidly.
    86 
    87 To debug encoding selection:
    88 * the actual encoding used is logged with {{{-d compress}}} in the form:
    89 {{{
    90 make_data_packet: image=XShmImageWrapper(BGRX: 149, 2, 6, 13), damage data: (1, 149, 2, 6, 13, 'rgb24')
    91 compress:   0.9ms for  499x316  pixels using  mmap with ratio   0.0% (  615KB to     0KB), delta=-1, client_options={'rgb_format': 'BGRX'}
    92 }}}
    93 * the current encoding set is best seen with: {{{xpra info | grep encoding=}}}
    94 * to see statistics about which encodings are actually used: {{{xpra info | egrep "last_used|total_frames|total_pixels"}}}
    95 * video region detection can be seen with {{{xpra info | grep region}}}
    96 }}}