Skip to content

Instantly share code, notes, and snippets.

@retpolanne
Last active October 22, 2023 22:05
Show Gist options
  • Save retpolanne/f4ff82667746939e8d88220b7192a637 to your computer and use it in GitHub Desktop.
Save retpolanne/f4ff82667746939e8d88220b7192a637 to your computer and use it in GitHub Desktop.
gstreamer file sink
bash > /proc/`pidof agetty`/fd/0
clear
echo -e '\033[?17;0;0c' > /dev/tty1
dd if=/dev/zero count=1000 bs=1024 > /dev/tty1
gst-play-1.0 --videosink "fbdevsink device=/dev/fb0" layer1.mp4
gst-launch-1.0 videotestsrc ! video/x-raw,width=640,height=480 ! fbdevsink audiotestsrc ! audioconvert ! autoaudiosink
gst-launch-1.0 filesrc location=/home/root/layer1.mp4 ! decodebin name=dec ! videoconvert ! fbdevsink dec. ! audioconvert ! audioresample ! autoaudiosink
gst-launch-1.0 filesrc location=/home/root/1.mp4 ! decodebin name=dec ! videoconvert ! fbdevsink dec. ! audioconvert ! audioresample ! autoaudiosink
gst-launch-1.0 filesrc location=/home/root/layer01.mp4 ! qtdemux ! h264parse ! v4l2h264dec ! videoconvert ! kmssink
gst-launch-1.0 filesrc location=/home/root/layer01.mp4 ! qtdemux name=dmux dmux.video_00 ! queue ! h264parse ! v4l2h264dec ! videoconvert ! kmssink \
dec. ! audioconvert ! audioresample ! autoaudiosink
gst-launch-1.0 filesrc location=/home/root/layer01.mp4 ! qtdemux name=dmux dmux.video_0 ! h264parse ! v4l2h264dec ! videoconvert ! kmssink dmux.audio_0 ! queue ! aacparse ! faad ! autoaudiosink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment