home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Distributed Video Transcoding
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Midget" data-source="post: 194720" data-attributes="member: 57489"><p>Hi,</p><p></p><p>Today I'm exploring an idea that want to share with you. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> </p><p></p><p>I've recently bought my first TV card (Hauppauge PVR 150) and immediatly started massive TV recordings.</p><p>First problem was disk space with each TV recording (dvr-ms) measured in Gbytes. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> </p><p>I've reduced this problem after the discovery of the "<a href="https://forum.team-mediaportal.com/mp_plugin_video_transcoding-t15953.html" target="_blank">MP plugin for Video Transcoding</a>";.</p><p></p><p>Even with <a href="https://forum.team-mediaportal.com/showpost.php?p=194761&postcount=299" target="_blank">some problems</a> this plugin works pretty well.</p><p></p><p>The second problem that arose was computing power: my PC with MP produce recordings faster than transcoding them. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite9" alt=":eek:" title="Eek! :eek:" loading="lazy" data-shortname=":eek:" /> </p><p>I was thinking about buying another TV card (to avoid registration conflicts!) but feared that this problem will get bigger and bigger. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite4" alt=":mad:" title="Mad :mad:" loading="lazy" data-shortname=":mad:" /> </p><p></p><p>I've some others PC so I've had the idea of doing <strong>Distributed Computing to parallelize transcoding</strong>.</p><p></p><p>Here are some experiments:</p><p></p><p>I know that the video transcoding plugin is simply a wrapper for FFMPEG or MENCODER but without source code I've to discover the correct command line to execute transcoding.</p><p></p><p>With <strong>Process Explorer</strong> from SysInternals (now <a href="http://www.microsoft.com/technet/sysinternals/default.mspx" target="_blank">Microsoft</a>) we can see the command line of a process:</p><p></p><p>[CODE]"C:\Program Files\Team MediaPortal\MediaPortal\transcode\ffmpeg\ffmpeg.exe"</p><p>-i "F:\tv\TVProgramName_200710182300p103.dvr-ms"</p><p>-aspect 4:3 -vcodec xvid -vtag XVID -s 352x288 -b 1024k -r 25 -async 1 -mbd 2 -qmin 2 -bug autodetect -acodec mp3 -ab 128k </p><p>"F:\tv\TVProgramName_200710182300p103.avi"[/CODE]</p><p></p><p>I want to execute that process on other PC in my home LAN. So I've modified the command line with <a href="http://en.wikipedia.org/wiki/Path_%28computing%29#Uniform_Naming_Convention" target="_blank">UNC</a> like this:</p><p></p><p>[CODE]"\\MediaPortalPC\C$\Program Files\Team MediaPortal\MediaPortal\transcode\ffmpeg\ffmpeg.exe"</p><p>-i "\\MediaPortalPC\F$\tv\TVProgramName_200710182300p103.dvr-ms"</p><p>-aspect 4:3 -vcodec xvid -vtag XVID -s 352x288 -b 1024k -r 25 -async 1 -mbd 2 -qmin 2 -bug autodetect -acodec mp3 -ab 128k</p><p>"\\MediaPortalPC\F$\tv\TVProgramName_200710182300p103.avi"[/CODE]</p><p></p><p>Creating a CMD script with that command I can do the same thing done by video transcoding plugin from any PC in my home LAN (assuming the user launching that script has right access privileges). Obviosly I've to change file names in the script to transcode different files.</p><p></p><p>I can also start that script on others PC directly from my workstation using <strong>PSExec</strong> (again from SysInternals) with this command line:</p><p></p><p>[CODE]psexec \\pc1 -u username -p password -c -f -d -belownormal transcode.cmd[/CODE]</p><p></p><p>Extremely useful is monitoring transcoding process on remote PC to know when is time to start a new transcoding process. We can do this from one workstation with <strong>PSList</strong> (again from SysInternals!) utility:</p><p></p><p>[CODE]pslist \\pc1 ffmpeg[/CODE]</p><p></p><p>With these utilities I've managed distributed video transcoding on 4 PC simultaneously (one of them capable of 2 transcoding process with a dual core CPU).</p><p></p><p>This experiments needed some manual work (monitoring remote processes, writing correct file names, launching scripts) but resulted in a <strong>real 5X speed boost</strong>. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite6" alt=":cool:" title="Cool :cool:" loading="lazy" data-shortname=":cool:" /> </p><p></p><p>Maybe we could automate the manual work with some script magic (I've read about powerful things done with Windows Power Shell from Microsoft).</p><p></p><p>I hope to be helpful <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> </p><p></p><p>Bye,</p><p>Midget</p></blockquote><p></p>
[QUOTE="Midget, post: 194720, member: 57489"] Hi, Today I'm exploring an idea that want to share with you. :) I've recently bought my first TV card (Hauppauge PVR 150) and immediatly started massive TV recordings. First problem was disk space with each TV recording (dvr-ms) measured in Gbytes. :( I've reduced this problem after the discovery of the "[URL="https://forum.team-mediaportal.com/mp_plugin_video_transcoding-t15953.html"]MP plugin for Video Transcoding[/URL]";. Even with [URL="https://forum.team-mediaportal.com/showpost.php?p=194761&postcount=299"]some problems[/URL] this plugin works pretty well. The second problem that arose was computing power: my PC with MP produce recordings faster than transcoding them. :o I was thinking about buying another TV card (to avoid registration conflicts!) but feared that this problem will get bigger and bigger. :mad: I've some others PC so I've had the idea of doing [B]Distributed Computing to parallelize transcoding[/B]. Here are some experiments: I know that the video transcoding plugin is simply a wrapper for FFMPEG or MENCODER but without source code I've to discover the correct command line to execute transcoding. With [B]Process Explorer[/B] from SysInternals (now [URL="http://www.microsoft.com/technet/sysinternals/default.mspx"]Microsoft[/URL]) we can see the command line of a process: [CODE]"C:\Program Files\Team MediaPortal\MediaPortal\transcode\ffmpeg\ffmpeg.exe" -i "F:\tv\TVProgramName_200710182300p103.dvr-ms" -aspect 4:3 -vcodec xvid -vtag XVID -s 352x288 -b 1024k -r 25 -async 1 -mbd 2 -qmin 2 -bug autodetect -acodec mp3 -ab 128k "F:\tv\TVProgramName_200710182300p103.avi"[/CODE] I want to execute that process on other PC in my home LAN. So I've modified the command line with [URL="http://en.wikipedia.org/wiki/Path_%28computing%29#Uniform_Naming_Convention"]UNC[/URL] like this: [CODE]"\\MediaPortalPC\C$\Program Files\Team MediaPortal\MediaPortal\transcode\ffmpeg\ffmpeg.exe" -i "\\MediaPortalPC\F$\tv\TVProgramName_200710182300p103.dvr-ms" -aspect 4:3 -vcodec xvid -vtag XVID -s 352x288 -b 1024k -r 25 -async 1 -mbd 2 -qmin 2 -bug autodetect -acodec mp3 -ab 128k "\\MediaPortalPC\F$\tv\TVProgramName_200710182300p103.avi"[/CODE] Creating a CMD script with that command I can do the same thing done by video transcoding plugin from any PC in my home LAN (assuming the user launching that script has right access privileges). Obviosly I've to change file names in the script to transcode different files. I can also start that script on others PC directly from my workstation using [B]PSExec[/B] (again from SysInternals) with this command line: [CODE]psexec \\pc1 -u username -p password -c -f -d -belownormal transcode.cmd[/CODE] Extremely useful is monitoring transcoding process on remote PC to know when is time to start a new transcoding process. We can do this from one workstation with [B]PSList[/B] (again from SysInternals!) utility: [CODE]pslist \\pc1 ffmpeg[/CODE] With these utilities I've managed distributed video transcoding on 4 PC simultaneously (one of them capable of 2 transcoding process with a dual core CPU). This experiments needed some manual work (monitoring remote processes, writing correct file names, launching scripts) but resulted in a [B]real 5X speed boost[/B]. :cool: Maybe we could automate the manual work with some script magic (I've read about powerful things done with Windows Power Shell from Microsoft). I hope to be helpful :D Bye, Midget [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Distributed Video Transcoding
Contact us
RSS
Top
Bottom