Skip to content

Instantly share code, notes, and snippets.

@nguyenvanduocit
Created November 20, 2021 16:53
Show Gist options
  • Save nguyenvanduocit/da8574a70fe172c287d5a7336ea9b4ca to your computer and use it in GitHub Desktop.
Save nguyenvanduocit/da8574a70fe172c287d5a7336ea9b4ca to your computer and use it in GitHub Desktop.
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