thanks. I worked with C++ & Co just as a hobby. never touched scripting. never heard about script DSL.
I knew that was a missing link somewhere between DOWNLOADER and TRANSCODER. but I was not sure how they work each other. I would have to read the source code and figure it out, but time is limited.
sopcast path is defined in enviro vars of windows. I wanted just to check if from logical pov i'm right.
1. get the uri from web.conf
2. send the uri and change the channel in sopcast. means define $DOWNLOADER to sopcast
3. change the uri to the local loopback because of sopcast protocol
4. transcode the local loopback
After changing channel in sopcast (redifine $DOWNLOADER in SURI), it seems it can not be redefined back to original value (whatever it is). I tried to redefine it in SPLA (assign $MENCODER or other twists that seemed logical to me), but is not working. I don't know if it's a bug or that's the way that should work (ie $DOWNLOADER can be redefined only once per script)
- Code: Select all
profile (SPLA, after: SLOO) {
pattern {
match SLOO
}
action {
$DOWNLOADER = $MENCODER //not working
set '-oac': 'lavc', '-of': 'lavf', '-lavfopts': 'format=dvd', '-ovc': 'lavc', '-lavcopts': 'vcodec=mpeg2video:acodec=mp2:abitrate=128', '-ofps': '24', '-cache': '16384', '-vf': 'harddup'
}
}
PS how can one use $EXECUTABLE? I tried this one too, insteed of redefining $DOWNLOADER, but I have hard time figuring what is doing. It would be possible just to execute something?