Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- DST="/tmp/2stream_$(date "+%Y.%m.%d_%H.%M.%S").mp4"
- gst-launch-1.0 -e \
- videotestsrc pattern=18 \
- ! "video/x-raw, width=(int)320, height=(int)240, format=(string)I420, framerate=(fraction)30/1" \
- ! x264enc speed-preset=fast \
- ! mux. \
- videotestsrc pattern=18 \
- ! "video/x-raw, width=(int)1024, height=(int)768, format=(string)YUY2, framerate=(fraction)30/1" \
- ! videoconvert \
- ! "video/x-raw, width=(int)1024, height=(int)768, format=(string)I420, framerate=(fraction)30/1" \
- ! x264enc speed-preset=fast \
- ! mux. \
- pulsesrc \
- ! audioconvert \
- ! audio/x-raw, rate=44100, channels=2 \
- ! voaacenc \
- ! queue \
- ! mp4mux name=mux \
- mux. ! filesink location="${DST}"
- # use vlc to see the mp4.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement