Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while true
  4.  
  5. do
  6.  
  7.     for file in /video/*.mp4
  8.     do
  9.  
  10.         ls "$file" | xargs -I{}’ gst-launch-1.0 filesrc location=’{}! decodebin name=t t. ! videoconvert ! x264enc tune=zerolatency bitrate=2000 ! queue ! f
  11. lvmux name=mux   t. ! audioconvert ! voaacenc bitrate=128000 ! queue ! mux. mux. ! rtmpsink location="rtmp://localhost:1935/live/stream01 live=1"
  12.  
  13.     done
  14.  
  15. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement