Hello.
I'm using tmux instead of screen, but i suppose is quite the same.
Cloning the simple example script i run this one:
#!/bin/bashtmux new-session -d -s obe-sessionsleep 1tmux select-pane -t "obe-session"tmux send "obecli" C-msleep 1tmux send "set input decklink" C-mtmux send "set input opts video-format=pal" C-mtmux send "probe input" C-msleep 3tmux send "set stream opts 0:vbv-maxrate=384,vbv-bufsize=1000,bitrate=384,threads=3,format=avc" C-mtmux send "set stream opts 1:bitrate=192,format=mp2" C-mtmux send "set muxer opts ts-muxrate=576000,ts-type=generic" C-mtmux send "set outputs 1" C-mtmux send "set output opts 0:target=udp://239.1.1.1:5000?ttl=5" C-mtmux send "start" C-mecho "encoder started"
but with a lot of errors like this:
dts is less than pcr pid: 49 dts: 1763201100 pcr:
2199796500 .... etc ...
seems problem is in the ts-muxrate .... if i change the script like this:
#!/bin/bash
tmux new-session -d -s obe-session
sleep 1
tmux select-pane -t "obe-session"
tmux send "obecli" C-m
sleep 1
tmux send "set input decklink" C-m
tmux send "set input opts video-format=pal" C-m
tmux send "probe input" C-m
sleep 4
tmux send "set stream opts 0:vbv-maxrate=384,vbv-bufsize=2000,bitrate=350,threads=3,format=avc" C-m
tmux send "set stream opts 1:bitrate=192,format=mp2" C-m
#mux rate e' in bit non kilobit (fono a 1 megabit 1000000 non ho avuto problemi)
tmux send "set muxer opts ts-muxrate=900000,ts-type=generic" C-m
tmux send "set outputs 1" C-m
tmux send "set output opts 0:target=udp://LocalPublicIP:5000?ttl=5" C-m
tmux send "start" C-m
echo "encoder started"
seems going well (no errors).