Something like this perhaps?
https://github.com/chocolateboy/pmsenco ... deo.groovy or
https://github.com/chocolateboy/pmsenco ... peg.groovy
Give it a shoot
SharkHunter wrote:grolschie - It is in fact so that the matcher is multiline. So you regexp should work. However regexps are normally greedy so constructs of .* are well dangerous. Try <h5>[^>]+<a title=\"([^\"]+)\" href=\"([^\"]+)
SharkHunter wrote:Twosheds - cool. Pls share your result with the world (if you dare
).
script {
def RTMPDUMP = 'rtmpdump'
def MENCODER = 'mencoder'
profile ('RTMP(E)') {
pattern {
protocol ([ 'rtmp', 'rtmpe' ])
}
action {
def strings = $URI.split('!!!pms_ch_dash_y!!!')
if (strings.length > 1)
$URI = strings[0] + '" -y "' + strings[1]
def strings1 = $URI.split('!!!pms_ch_dash_w!!!')
if (strings1.length > 1)
$URI = strings1[0] + '" -W "' + strings1[1]
$DOWNLOADER = "$RTMPDUMP -o $DOWNLOADER_OUT -r ${$URI}"
$TRANSCODER = "$MENCODER -ss 0 -quiet $DOWNLOADER_OUT -quiet -quiet -oac lavc -of mpeg -quiet -quiet -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=1 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=256:threads=1:keyint=1:vqscale=1:vqmin=1:vrc_maxrate=50000:vrc_buf_size=1835 -spuaa 3 -subfont /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -subdelay 20000 -quiet -quiet -ofps 25 -quiet -quiet -mc 0.1 -af lavcresample=48000 -srate 48000 -o $TRANSCODER_OUT"
}
}
}
SharkHunter wrote:grolschie - The Channel plugin is not a streaming tool. It just extracts the media links from the web and then pass them on to PMSEncoder (which in turns dumps them trough various scripts to other programs like rtmpdump,mencoder,ffmpeg etc.). If you have no sound I would suspect that there is something fishy with the stream it self. To check you can always use rtmpdump manually. If that works fine then we'll need some more logging....
Return to Additions and Plugins
Users browsing this forum: No registered users and 5 guests