slackware-current/extra/source/recordmydesktop/recordmydesktop-bitrate.patch
Patrick J Volkerding 646a5c1cbf Mon May 28 19:12:29 UTC 2018
a/pkgtools-15.0-noarch-13.txz:  Rebuilt.
  installpkg: default line length for --terselength is the number of columns.
  removepkg: added --terse mode.
  upgradepkg: default line length for --terselength is the number of columns.
  upgradepkg: accept -option in addition to --option.
ap/vim-8.1.0026-x86_64-1.txz:  Upgraded.
d/bison-3.0.5-x86_64-1.txz:  Upgraded.
e/emacs-26.1-x86_64-1.txz:  Upgraded.
kde/kopete-4.14.3-x86_64-8.txz:  Rebuilt.
  Recompiled against libidn-1.35.
n/conntrack-tools-1.4.5-x86_64-1.txz:  Upgraded.
n/libnetfilter_conntrack-1.0.7-x86_64-1.txz:  Upgraded.
n/libnftnl-1.1.0-x86_64-1.txz:  Upgraded.
n/links-2.16-x86_64-2.txz:  Rebuilt.
  Rebuilt to enable X driver for -g mode.
n/lynx-2.8.9dev.19-x86_64-1.txz:  Upgraded.
n/nftables-0.8.5-x86_64-1.txz:  Upgraded.
n/p11-kit-0.23.11-x86_64-1.txz:  Upgraded.
n/ulogd-2.0.7-x86_64-1.txz:  Upgraded.
n/whois-5.3.1-x86_64-1.txz:  Upgraded.
xap/network-manager-applet-1.8.12-x86_64-1.txz:  Upgraded.
xap/vim-gvim-8.1.0026-x86_64-1.txz:  Upgraded.
2018-05-31 23:39:35 +02:00

50 lines
2.4 KiB
Diff

diff -ru recordmydesktop-0.3.8.1.old/src/rmd_initialize_data.c recordmydesktop-0.3.8.1/src/rmd_initialize_data.c
--- recordmydesktop-0.3.8.1.old/src/rmd_initialize_data.c 2009-11-25 10:05:58.708779029 -0500
+++ recordmydesktop-0.3.8.1/src/rmd_initialize_data.c 2009-11-25 09:28:07.629507987 -0500
@@ -224,7 +224,7 @@
args->channels = 1;
args->frequency = 22050;
args->buffsize = 4096;
- args->v_bitrate = 45000;
+ args->v_bitrate = 0;
args->v_quality = 63;
args->s_quality = 10;
diff -ru recordmydesktop-0.3.8.1.old/src/rmd_parseargs.c recordmydesktop-0.3.8.1/src/rmd_parseargs.c
--- recordmydesktop-0.3.8.1.old/src/rmd_parseargs.c 2009-11-25 10:06:07.409777969 -0500
+++ recordmydesktop-0.3.8.1/src/rmd_parseargs.c 2009-11-25 09:39:32.786757292 -0500
@@ -104,10 +104,10 @@
"Encoding Options\n"
"\t--on-the-fly-encoding\tEncode the audio-video data, while recording.\n"
"\t--v_quality n\t\tA number from 0 to 63 for"
- " desired encoded video quality(default 63).\n"
+ " desired encoded video quality(default 63).\n\t (set quality to zero for bitrate controlled usage)\n"
- "\t--v_bitrate n\t\tA number from 45000 to 2000000"
- " for desired encoded video bitrate(default 45000).\n"
+ "\t--v_bitrate n\t\tA number from 0 to 200000000"
+ " for desired encoded video bitrate(default 0 = not rate controlled).\n"
"\t--s_quality n\t\tDesired audio quality(-1 to 10).\n\n"
@@ -327,17 +327,17 @@
strcmp(argv[i], "-v_bitrate") == 0) {
if(i+1<argc){
int num=atoi(argv[i+1]);
- if((num>=45000)&&(num<=2000000))
+ if((num>=0)&&(num<=200000000))
arg_return->v_bitrate=num;
else{
fprintf(stderr,"Argument Usage:"
- " --v_bitrate n(number 45000-2000000)\n");
+ " --v_bitrate n(number 0-200000000)\n");
return FALSE;
}
}
else{
fprintf(stderr,"Argument Usage:"
- " --v_bitrate n(number 45000-2000000)\n");
+ " --v_bitrate n(number 0-200000000)\n");
return FALSE;
}
i++;