X03-gstreamer_cmd.md

X03-gstreamer_cmd.md

社蕙 44 2022-08-28

gstreamer 命令行pipeline汇总

jpg 转 ogg 视频

work on ubuntu, but
ogg can't display on board

gst-launch-1.0 multifilesrc location="./output/jpg/disp-%04d.jpg" index=0 caps="image/jpeg,framerate=\(fraction\)1/1" ! \
    jpegdec ! videoconvert ! videorate ! theoraenc ! oggmux ! \
    filesink location="images.ogg"

jpg 转 mp4 视频

work on ubuntu

gst-launch-1.0 -e multifilesrc location="./jpg/disp-%04d.jpg" \
    caps="image/jpeg,framerate=30/1" ! jpegdec ! videoconvert ! queue ! x264enc ! queue ! mp4mux \
    ! filesink location=image.mp4

work on ubuntu and delete queue
but no x264enc on board

gst-launch-1.0 -e multifilesrc location="./output/jpg/disp-%04d.jpg" \
    caps="image/jpeg,framerate=1/1" ! jpegdec ! videoconvert ! x264enc ! mp4mux \
    ! filesink location=image.mp4