Hi, Does anyone know how to playback based on files from hadoop storage. There is a libhdcp, and java api. Is there anyway to put together a sample middle piece to move files from hadoop to freeswitch using memory space, so there is no disk I/O? Any feedback or suggestion will be greatly appreciated. thx, Mark
On Mon, Nov 09, 2009 at 08:59:54PM +0800, mark morreny wrote:
Hi,
Does anyone know how to playback based on files from hadoop storage.
There is a libhdcp, and java api. Is there anyway to put together a sample middle piece to move files from hadoop to freeswitch using memory space, so there is no disk I/O?
Any feedback or suggestion will be greatly appreciated.
mod_shell_stream might work, if you can just spit out the raw audio to the shell. Or write another stream module that works with libhdcp. Andrew
Hi Thanks for the tips. May I ask how to split the file from hadoop to the shell? Is it like copying the file to certain dir? I can't find any mod_shell_stream related info from the wiki. Does anyone know how to use it? thx, mark On Tue, Nov 10, 2009 at 3:29 AM, Andrew Thompson <andrew@hijacked.us> wrote:
On Mon, Nov 09, 2009 at 08:59:54PM +0800, mark morreny wrote:
Hi,
Does anyone know how to playback based on files from hadoop storage.
There is a libhdcp, and java api. Is there anyway to put together a sample middle piece to move files from hadoop to freeswitch using memory space, so there is no disk I/O?
Any feedback or suggestion will be greatly appreciated.
mod_shell_stream might work, if you can just spit out the raw audio to the shell. Or write another stream module that works with libhdcp.
Andrew
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Tue, Nov 10, 2009 at 11:29:37PM +0800, mark morreny wrote:
Hi
Thanks for the tips. May I ask how to split the file from hadoop to the shell? Is it like copying the file to certain dir?
I can't find any mod_shell_stream related info from the wiki. Does anyone know how to use it?
mod_shell_stream is undocumented, but from reading the code I gather it works like this: Module calls fork() and in the child process it runs an arbitrary shell command (specified in its config file?). The parent process then reads raw audio data from the child process and uses it as an audio source. So basicially you could write the shell command in anything, so long as it outputs raw audio to FS. Or maybe I read the code wrong when I skimmed over it. If you do get it working, please contribute some documentation to the wiki. Andrew
On Tue, Nov 10, 2009 at 7:56 AM, Andrew Thompson <andrew@hijacked.us> wrote:
On Tue, Nov 10, 2009 at 11:29:37PM +0800, mark morreny wrote:
Hi
Thanks for the tips. May I ask how to split the file from hadoop to the shell? Is it like copying the file to certain dir?
I can't find any mod_shell_stream related info from the wiki. Does anyone know how to use it?
mod_shell_stream is undocumented, but from reading the code I gather it works like this:
Module calls fork() and in the child process it runs an arbitrary shell command (specified in its config file?). The parent process then reads raw audio data from the child process and uses it as an audio source.
So basicially you could write the shell command in anything, so long as it outputs raw audio to FS.
Or maybe I read the code wrong when I skimmed over it. If you do get it working, please contribute some documentation to the wiki.
Andrew
Andrew, Thanks for poking around in there. I made a stub for this mod on the wiki: http://wiki.freeswitch.org/wiki/Mod_shell_stream
If anyone is familiar with it and could throw an example up there that would be much appreciated. Thanks, MC
Hi Sorry to ask again. I know the command to copy file from hadoop file system to somewhere else. But how do I make a shell command to output raw audio? What command is it like? Is it like play()? I am confused. Thx, mark On Tue, Nov 10, 2009 at 11:56 PM, Andrew Thompson <andrew@hijacked.us>wrote:
On Tue, Nov 10, 2009 at 11:29:37PM +0800, mark morreny wrote:
Hi
Thanks for the tips. May I ask how to split the file from hadoop to the shell? Is it like copying the file to certain dir?
I can't find any mod_shell_stream related info from the wiki. Does anyone know how to use it?
mod_shell_stream is undocumented, but from reading the code I gather it works like this:
Module calls fork() and in the child process it runs an arbitrary shell command (specified in its config file?). The parent process then reads raw audio data from the child process and uses it as an audio source.
So basicially you could write the shell command in anything, so long as it outputs raw audio to FS.
Or maybe I read the code wrong when I skimmed over it. If you do get it working, please contribute some documentation to the wiki.
Andrew
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Wed, Nov 11, 2009 at 11:02:10AM +0800, mark morreny wrote:
Hi
Sorry to ask again.
I know the command to copy file from hadoop file system to somewhere else. But how do I make a shell command to output raw audio? What command is it like? Is it like play()? I am confused.
I was very nice and wrote up some documentation (and 2 examples) on the wiki page at http://wiki.freeswitch.org/wiki/Mod_shell_stream Now you know everything I know about using this module (which is a very cool module, by the way - thanks Tony). Andrew
participants (3)
-
Andrew Thompson
-
mark morreny
-
Michael Collins