Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Assignment 1
- # 720p
- gst-launch-1.0 filesrc location=~/Downloads/tears_of_steel_720p.mp4 ! qtdemux name=d d.video_0 ! queue ! h264parse ! avdec_h264 ! videoconvert ! autovideosink d.audio_0 ! queue ! mpegaudioparse ! mad ! audioconvert ! audioresample ! autoaudiosink
- # 1080p
- gst-launch-1.0 filesrc location=~/Downloads/sintel-1024-surround.mp4 ! qtdemux name=d d.video_0 ! queue ! h264parse ! avdec_h264 ! videoconvert ! autovideosink d.audio_0 ! queue ! aacparse ! faad ! audioconvert ! audioresample ! autoaudiosink
- # Assignment 2
- # 720p
- gst-launch-1.0 filesrc location=~/Downloads/tears_of_steel_720p.mp4 ! qtdemux name=d d.video_0 ! queue ! h264parse ! avdec_h264 ! videoconvert ! glimagesink d.audio_0 ! queue ! mpegaudioparse ! mad ! audioconvert ! audioresample ! pulsesink device-name="Built-in Audio Analog Stereo"
- # 1080p
- gst-launch-1.0 filesrc location=~/Downloads/sintel-1024-surround.mp4 ! qtdemux name=d d.video_0 ! queue ! h264parse ! avdec_h264 ! videoconvert ! glimagesink d.audio_0 ! queue ! aacparse ! faad ! audioconvert ! audioresample ! pulsesink device-name="Built-in Audio Analog Stereo"
- # Assignment 3
- # 720p
- # TODO (width=320,height=133)
- #
- # 1080p
- gst-launch-1.0 filesrc location=~/Downloads/sintel-1024-surround.mp4 ! qtdemux name=d d.video_0 ! queue ! h264parse ! avdec_h264 ! videoscale ! video/x-raw,width=320,height=136 ! x264enc tune="zerolatency" bitrate="1024" ! m. qtmux name=m ! filesink location=~/Downloads/1080p_resized.mp4 d.audio_0 ! queue ! m.
- # Assignment 4
- # 720p
- gst-launch-1.0 videomixer name=mix background="3" sink_0::zorder=2 sink_1::zorder=1 ! videoconvert ! autovideosink filesrc location=~/Downloads/logo.png ! pngdec ! imagefreeze ! videoconvert ! mix.sink_0 filesrc location=~/Downloads/tears_of_steel_720p.mp4 ! decodebin name=demux demux. ! queue ! videoscale ! video/x-raw,width=1026,height=428 ! mix.sink_1 demux. ! queue ! audioconvert ! autoaudiosink
- # 10800p
- gst-launch-1.0 videomixer name=mix background="3" sink_0::zorder=2 sink_1::zorder=1 ! videoconvert ! autovideosink filesrc location=~/Downloads/logo.png ! pngdec ! imagefreeze ! videoconvert ! mix.sink_0 filesrc location=~/Downloads/sintel-1024-surround.mp4 ! decodebin name=demux demux. ! queue ! videoscale ! video/x-raw,width=1024,height=436 ! mix.sink_1 demux. ! queue ! audioconvert ! autoaudiosink
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement