Skip to content

Instantly share code, notes, and snippets.

@abautu
abautu / 2483-crlf.patch
Last active March 10, 2021 09:43
Change to BigBlueButton recording processing (includes new processing workflow, lower framerate and lower filesize)
diff -urN core-default/lib/recordandplayback/generators/audio_processor.rb core-andrei/lib/recordandplayback/generators/audio_processor.rb
--- core-default/lib/recordandplayback/generators/audio_processor.rb 2021-03-03 00:05:00.000000000 +0200
+++ core-andrei/lib/recordandplayback/generators/audio_processor.rb 2021-03-08 10:30:21.004763090 +0200
@@ -60,13 +60,13 @@
ogg_format = {
:extension => 'ogg',
- :parameters => [ [ '-c:a', 'libvorbis', '-q:a', '2', '-f', 'ogg' ] ]
+ :parameters => [ [ '-c:a', 'copy', '-f', 'ogg' ] ]
}
@abautu
abautu / process_with_patch.log
Created February 24, 2021 12:33
Bigblubbutton processing recording logs #2483
# Logfile created on 2021-02-23 23:03:21 +0200 by logger.rb/v1.2.7
I, [2021-02-23T23:03:21.704833 #11520] INFO -- : Processing script presentation.rb
I, [2021-02-23T23:03:21.941348 #11520] INFO -- : Created inital metadata.xml
I, [2021-02-23T23:03:21.941463 #11520] INFO -- : AudioProcessor.process: Processing audio...
D, [2021-02-23T23:03:22.001937 #11520] DEBUG -- : EDL Dump:
D, [2021-02-23T23:03:22.002023 #11520] DEBUG -- : ---
D, [2021-02-23T23:03:22.002068 #11520] DEBUG -- : Timestamp: 0
D, [2021-02-23T23:03:22.002103 #11520] DEBUG -- : Audio:
D, [2021-02-23T23:03:22.002137 #11520] DEBUG -- : silence
D, [2021-02-23T23:03:22.002170 #11520] DEBUG -- : ---
@abautu
abautu / recordandplayback.patch
Last active February 25, 2021 09:02
Bigbluebutton patch for issue #2483 (using files instead of pipes for video segments).
diff -urN recordandplayback/edl/audio.rb recordandplayback/edl/audio.rb
--- recordandplayback/edl/audio.rb 2020-09-25 19:56:21.000000000 +0300
+++ recordandplayback/edl/audio.rb 2021-01-09 23:57:55.864891875 +0200
@@ -22,9 +22,9 @@
module Audio
FFMPEG_AEVALSRC = "aevalsrc=s=48000:c=stereo:exprs=0|0"
FFMPEG_AFORMAT = "aformat=sample_fmts=s16:sample_rates=48000:channel_layouts=stereo"
- FFMPEG_WF_CODEC = 'flac'
- FFMPEG_WF_ARGS = ['-c:a', FFMPEG_WF_CODEC, '-f', 'flac']
- WF_EXT = 'flac'
@abautu
abautu / recordandplayback.patch
Created January 9, 2021 22:47
Bigbluebutton patch for issue #2483
diff -urN recordandplayback-orig/edl/audio.rb recordandplayback-andrei/edl/audio.rb
--- recordandplayback-orig/edl/audio.rb 2020-09-25 19:56:21.000000000 +0300
+++ recordandplayback-andrei/edl/audio.rb 2020-12-25 00:16:29.076301902 +0200
@@ -22,9 +22,9 @@
module Audio
FFMPEG_AEVALSRC = "aevalsrc=s=48000:c=stereo:exprs=0|0"
FFMPEG_AFORMAT = "aformat=sample_fmts=s16:sample_rates=48000:channel_layouts=stereo"
- FFMPEG_WF_CODEC = 'flac'
- FFMPEG_WF_ARGS = ['-c:a', FFMPEG_WF_CODEC, '-f', 'flac']
- WF_EXT = 'flac'
@abautu
abautu / mysql2mysqli.php
Created October 27, 2020 23:32
MySQL to MySQLi adapter
<?php
/**
* Usage: include this file before calling any mysql_.... function.
*
* If your PHP does not have the mysql extention enabled, some of its functions will be defined as stubs for mysqli equivalent functions.
*/
if (!function_exists('mysql_connect')) {
define('MYSQL_BOTH', MYSQLI_BOTH);
define('MYSQL_ASSOC', MYSQLI_ASSOC);
define('MYSQL_NUM', MYSQLI_NUM);