Want more features on Pastebin? Sign Up, it's FREE!
Guest

patch omxplayer.cpp

By: a guest on Jan 17th, 2015  |  syntax: None  |  size: 4.14 KB  |  views: 210  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- omxplayer.cpp.orig
  2. +++ omxplayer.cpp
  3. @@ -153,3 +153,33 @@
  4. -  printf(
  5. -#include "help.h"
  6. + printf("Usage: omxplayer [OPTIONS] [FILE]\n");
  7. + printf("Options :\n");
  8. + printf("         -h / --help                    print this help\n");
  9. + printf("         -k / --keys                    print key bindings\n");
  10. + printf("         -n / --aidx  index             audio stream index    : e.g. 1\n");
  11. + printf("         -o / --adev  device            audio out device      : e.g. hdmi/local\n");
  12. + printf("         -i / --info                    dump stream format and exit\n");
  13. + printf("         -s / --stats                   pts and buffer stats\n");
  14. + printf("         -p / --passthrough             audio passthrough\n");
  15. + printf("         -d / --deinterlace             deinterlacing\n");
  16. + printf("         -w / --hw                      hw audio decoding\n");
  17. + printf("         -3 / --3d mode                 switch tv into 3d mode (e.g. SBS/TB)\n");
  18. + printf("         -y / --hdmiclocksync           adjust display refresh rate to match video (default)\n");
  19. + printf("         -z / --nohdmiclocksync         do not adjust display refresh rate to match video\n");
  20. + printf("         -t / --sid index               show subtitle with index\n");
  21. + printf("         -r / --refresh                 adjust framerate/resolution to video\n");
  22. + printf("         -g / --genlog                  generate log file\n");
  23. + printf("         -l / --pos n                   start position (in seconds)\n");
  24. + printf("              --boost-on-downmix        boost volume when downmixing\n");
  25. + printf("              --vol n                   Set initial volume in millibels (default 0)\n");
  26. + printf("              --subtitles path          external subtitles in UTF-8 srt format\n");
  27. + printf("              --font path               subtitle font\n");
  28. + printf("                                        (default: /usr/share/fonts/truetype/freefont/FreeSans.ttf)\n");
  29. + printf("              --font-size size          font size as thousandths of screen height\n");
  30. + printf("                                        (default: 55)\n");
  31. + printf("              --align left/center       subtitle alignment (default: left)\n");
  32. + printf("              --lines n                 number of lines to accommodate in the subtitle buffer\n");
  33. + printf("                                        (default: 3)\n");
  34. + printf("              --win \"x1 y1 x2 y2\"     Set position of video window\n");
  35. + printf("              --audio_fifo  n           Size of audio output fifo in seconds\n");
  36. + printf("              --video_fifo  n           Size of video output fifo in MB\n");
  37. + printf("              --audio_queue n           Size of audio input queue in MB\n");
  38. + printf("              --video_queue n           Size of video input queue in MB\n");
  39. -  );
  40. --- omxplayer.cpp.orig
  41. +++ omxplayer.cpp
  42. @@ -160,3 +160,21 @@
  43. -  printf(
  44. -#include "keys.h"
  45. + printf("Key bindings :\n");
  46. + printf("        1                  decrease speed\n");
  47. + printf("        2                  increase speed\n");
  48. + printf("        z                  show info\n");
  49. + printf("        j                  previous audio stream\n");
  50. + printf("        k                  next audio stream\n");
  51. + printf("        i                  previous chapter\n");
  52. + printf("        o                  next chapter\n");
  53. + printf("        n                  previous subtitle stream\n");
  54. + printf("        m                  next subtitle stream\n");
  55. + printf("        s                  toggle subtitles\n");
  56. + printf("        d                  decrease subtitle delay (- 250 ms)\n");
  57. + printf("        f                  increase subtitle delay (+ 250 ms)\n");
  58. + printf("        q                  exit omxplayer\n");
  59. + printf("        p / space          pause/resume\n");
  60. + printf("        -                  decrease volume\n");
  61. + printf("        + / =              increase volume\n");
  62. + printf("        left arrow         seek -30 seconds\n");
  63. + printf("        right arrow        seek +30 seconds\n");
  64. + printf("        down arrow         seek -600 seconds\n");
  65. + printf("        up arrow           seek +600 seconds\n");
  66. -  );
clone this paste RAW Paste Data