This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b642123ac516c102c366c23260f13952c5f40df1 Mon Sep 17 00:00:00 2001 | |
From: Kurt Kartaltepe <kkartaltepe@gmail.com> | |
Date: Thu, 14 Oct 2021 20:21:36 -0700 | |
Subject: [PATCH] Add pkg-config for ntv2 library | |
This is a simple example of adding install targets and a pkg-config file | |
for the ntv2 library. | |
Signed-off-by: Kurt Kartaltepe <kkartaltepe@gmail.com> | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#0 0x00007ffff612b350 in QAbstractButton::isChecked() const () from /usr/lib/libQt5Widgets.so.5 | |
#1 0x0000555555651a74 in OBSBasicSettings::SaveSettings (this=0x7fffffffca20) | |
at /usr/include/c++/9.2.1/bits/unique_ptr.h:352 | |
#2 0x0000555555653e88 in OBSBasicSettings::on_buttonBox_clicked (this=0x7fffffffca20, | |
button=<optimized out>) at ../UI/window-basic-settings.cpp:3616 | |
#3 0x00005555555c8572 in OBSBasicSettings::qt_static_metacall (_o=<optimized out>, | |
_c=<optimized out>, _id=<optimized out>, _a=<optimized out>) | |
at UI/obs_autogen/EWIEGA46WW/moc_window-basic-settings.cpp:518 | |
#4 0x00005555555cb513 in OBSBasicSettings::qt_metacall (this=0x7fffffffca20, | |
_c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fffffffbab0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STREAM_KEY="Your Stream Key Here" | |
INPUT="Some file, maybe https://media.xiph.org/video/derf/webm/Johnny_1280x720_60.webm" | |
ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi \ | |
-i "$INPUT" -vf 'fps=30,scale_vaapi=w=640:h=-2:format=nv12' -c:v h264_vaapi \ | |
-b:v 1M -maxrate 1M -profile 100 -bf 0 \ | |
"rtmp://live-dfw.twitch.tv/app/$STREAM_KEY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./vainfo-bis /dev/dri/card0 | |
libva info: VA-API version 1.1.0 | |
libva info: va_getDriverName() returns 0 | |
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so | |
libva info: Found init function __vaDriverInit_1_1 | |
libva info: va_openDriver() returns 0 | |
VA-API version 1.1 initialized | |
VAProfileMPEG2Simple: | |
VAEntrypointEncSlice: | |
VAConfigAttribEncMaxRefFrames: P-Frames: 1, B-Frames: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dpkg --remove account-plugin-aim account-plugin-facebook account-plugin-flickr account-plugin-generic-oauth account-plugin-google account-plugin-jabber account-plugin-salut account-plugin-twitter account-plugin-windows-live account-plugin-yahoo acpi-support acpid activity-log-manager-common activity-log-manager-control-center adium-theme-ubuntu aisleriot apg app-install-data-partner appmenu-gtk appmenu-gtk3 appmenu-qt appmenu-qt5 apt-xapian-index avahi-autoipd avahi-daemon bamfdaemon baobab binutils bluez-alsa bluez-cups bluez-gstreamer branding-ubuntu brasero brasero-cdrkit brasero-common brltty checkbox checkbox-qt compiz compiz-core compiz-gnome compiz-plugins-default cryptsetup-bin cups-bsd cups-pk-helper dc dconf-tools deja-dup deja-dup-backend-gvfs deja-dup-backend-ubuntuone doc-base duplicity dvd+rw-tools empathy empathy-common eog espeak-data evolution-data-server evolution-data-server-common example-content firefox firefox-globalmenu firefox-gnome-support folks-common freerdp-x11 friends friends |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Program received signal SIGSEGV, Segmentation fault. | |
0x00000000004ab8a0 in cef_execute_process () | |
(gdb) bt | |
#0 0x00000000004ab8a0 in cef_execute_process () | |
#1 0x00000000004017b2 in rust_cef::main () at src/main.rs:45 | |
#2 0x00000000004842dc in rust_try_inner () | |
#3 0x00000000004ee160 in sys_common::thread_info::THREAD_INFO::__KEY::h0faf494155e772a83gz () | |
#4 0x000000000023fd30 in ?? () | |
#5 0x0000000000000001 in ?? () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[link(name="cef")] | |
extern "stdcall" { //On windows32 stdcall. on 64 use C? | |
pub fn cef_execute_process(args: *const MainArgs, app: *mut App, win_sandbox_info: *mut c_int) -> c_int; | |
pub fn cef_initialize(args: *const MainArgs, settings: *mut Settings, app: *mut App ) -> c_int; | |
pub fn cef_browser_host_create_browser(windowInfo: *const WindowInfo, client: *mut Client, url: *const CefString, browserSettings: *const BrowserSettings, requestContext: *mut c_void ) -> c_int; | |
pub fn cef_run_message_loop(); | |
pub fn cef_shutdown(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#include<error.h> | |
#include<string.h> | |
#include<syscall.h> | |
#include<sys/time.h> | |
int main() { | |
char *name = "Longhorn"; |