Last active
September 22, 2016 21:40
-
-
Save lsiden/c65f1b23db924dbbeb4cfdcc328f6a9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
infile=sample_videos/myvideo.mp4 | |
GST_DEBUG=0 gst-launch-1.0 -v \ | |
filesrc location=subtitles.srt ! subparse ! ov. \ | |
filesrc location=$infile ! decodebin name=demuxer ! textoverlay name=ov ! x264enc ! mpegtsmux name=muxer \ | |
demuxer. ! audioconvert ! audioresample ! avenc_mp2 ! muxer. \ | |
muxer. ! hlssink \ | |
playlist-root=/hls-test \ | |
playlist-location=/tmp/hlsstreams/hls-test/playlist.m3u8 \ | |
location=/tmp/hlsstreams/hls-test/seg%05d.ts \ | |
playlist-length=999 \ | |
max-files=999 \ | |
target-duration=3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment