Last active
October 19, 2020 22:38
-
-
Save mariotpc/14bf47cd3657d918a7a1ac1a01648279 to your computer and use it in GitHub Desktop.
Matroska Container - MPEG H.264 + AC3 ( Mic + HDMI Monitor )
This file contains hidden or 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
Video ----- SOUND + HDMI Monitor | |
****************************************************************** | |
gst-launch-1.0 ximagesrc use-damage=0 xid=$(xwininfo -tree | egrep 'Window id:' | cut -d ' ' -f4) ! queue ! videoconvert ! x264enc b-adapt="true" ! matroskamux name=mux ! filesink location=/mnt/ramdisk/terminal.mkv pulsesrc device=alsa_output.pci-0000_00_1f.3.analog-stereo.monitor ! queue max-size-time=5000000000 max-size-buffers=10000 ! audio/x-raw, rate=32000, channels=2 ! avenc_ac3 bitrate=32000 ! mux. | |
Video -----AUDIO MIX ---- Microphone + HDMI Monitor | |
****************************************************************** | |
gst-launch-1.0 ximagesrc use-damage=0 xid=$(xwininfo -tree | egrep 'Window id:' | cut -d ' ' -f4) ! queue ! videoconvert ! x264enc b-adapt="true" ! matroskamux name=mux ! filesink location=/mnt/ramdisk/test01.19.10.20.mkv pulsesrc device=alsa_output.pci-0000_00_1f.3.analog-stereo.monitor ! queue max-size-time=5000000000 max-size-buffers=10000 ! audio/x-raw, rate=32000, channels=2 ! avenc_ac3 bitrate=32000 ! mux. pulsesrc ! queue max-size-time=5000000000 max-size-buffers=10000 ! audio/x-raw, rate=32000, channels=1 ! avenc_ac3 bitrate=32000 ! mux. | |
Important | |
************** | |
Create your RAM Disk or use PCIe Solid State Drive. this Boost the performance.!!!! | |
Optimizacion No.1 un solo Audio Channel using "adder" | |
******************************************************* | |
gst-launch-1.0 ximagesrc use-damage=0 xid=$(xwininfo -tree | egrep 'Window id:' | cut -d ' ' -f4) ! queue max-size-time=5000000000 max-size-buffers=10000 ! videoconvert ! x264enc b-adapt="true" ! matroskamux name=mux ! filesink location=/mnt/ramdisk/MOPs.19.10.20.mkv pulsesrc device=alsa_output.pci-0000_00_1f.3.analog-stereo.monitor ! queue max-size-time=5000000000 max-size-buffers=10000 ! audio/x-raw, rate=32000, channels=2 ! adder name=mix ! avenc_ac3 bitrate=32000 ! mux. pulsesrc ! queue max-size-time=5000000000 max-size-buffers=10000 ! audio/x-raw, rate=32000, channels=1 ! mix. | |
Optimizacion No.2 un solo Audio Channel using "adder" agrego Buffer a Video y al Mic le asigno 1 Channel | |
************************************************************************************************************** | |
gst-launch-1.0 ximagesrc use-damage=0 xid=$(xwininfo -tree | egrep 'Window id:' | cut -d ' ' -f4) ! queue max-size-time=5000000000 max-size-buffers=10000 ! videoconvert ! x264enc b-adapt="true" ! matroskamux name=mux ! filesink location=/mnt/ramdisk/MOPs.19.10.20.mkv pulsesrc device=alsa_output.pci-0000_00_1f.3.analog-stereo.monitor ! queue max-size-time=5000000000 max-size-buffers=10000 ! audio/x-raw, rate=32000, channels=2 ! adder name=mix ! avenc_ac3 bitrate=32000 ! mux. pulsesrc ! queue max-size-time=5000000000 max-size-buffers=10000 ! audio/x-raw, rate=32000, channels=1 ! mix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment