Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while true
- do
- for file in /video/*.mp4
- do
- ls "$file" | xargs -I ’{}’ gst-launch-1.0 filesrc location=’{}’ ! decodebin name=t t. ! videoconvert ! x264enc tune=zerolatency bitrate=2000 ! queue ! f
- lvmux name=mux t. ! audioconvert ! voaacenc bitrate=128000 ! queue ! mux. mux. ! rtmpsink location="rtmp://localhost:1935/live/stream01 live=1"
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement