Created
November 20, 2021 16:53
-
-
Save nguyenvanduocit/da8574a70fe172c287d5a7336ea9b4ca to your computer and use it in GitHub Desktop.
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
gst-launch-1.0 multifilesrc location="$ARTWORK_LOCATION" start-index=1 loop=true caps='image/jpeg,framerate=\(fraction\)7/1' \ | |
! jpegparse \ | |
! nvjpegdec ! 'video/x-raw' \ | |
! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' \ | |
! omxh264enc bitrate=4500\ | |
! 'video/x-h264,stream-format=(string)byte-stream' \ | |
! h264parse \ | |
! flvmux streamable=true name=mux \ | |
! rtmpsink location="$STREAM_LOCATION" multifilesrc location="$TRACKS_LOCATION" start-index=1 loop=true \ | |
! mpegaudioparse \ | |
! mux. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment