xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Offers: days binary retention, 99%+ Completion, and Unlimited Access!
Try Giganews' no obligation free trial!

Support this site - buy the X-Scene Tshirt $17.95


Welcome Guest ( Log In | Register )

 Forum Rules Rules
> Send2xbmc, Very small 'n simple file location sender to XBMC (playlist)
ltGuillaume
post Apr 27 2007, 11:38 AM
Post #1


X-S Young Member
*

Group: Members
Posts: 31
Joined: 5-November 06
Member No.: 309463



Just a small utility I made yesterday. Have a look.
Part of readme.txt:

send2XBMC makes it easy to send either an URL or the address of a
remotely shared (SMB) or local media file to your Xbox. This can be done
by opening the file through the dialog of send2XBMC or by providing
the path/URL by a commandline parameter. To use paths with spaces,
add quotation marks to the parameter. Be sure to have the Web Interface
enabled on your Xbox.

To use send2XBMC with Total Commander from its Start Menu, point to the
location of send2XBMC and use %P%N as parameters. This will send the file
under the cursor to play on your Xbox.

You can create a shortcut to send2xbmc.exe in the SendTo folder of your
user profile to use send2XBMC from the context menu. To add files to the
XBMC playlist, create a shortcut with the parameter "/add" (no quotes).

Download
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
2 Pages V  1 2 >  
Reply to this topicStart new topic
Replies(1 - 14)
ltGuillaume
post Apr 29 2007, 07:07 PM
Post #2


X-S Young Member
*

Group: Members
Posts: 31
Joined: 5-November 06
Member No.: 309463



New version:

Changes since v2.0.0428:
========================
+ Added a routine to automatically choose the right (audio or video)
playlist, instead of just using the currently active, which didn't
work that well
+ INI-file entries AudioExt and VideoExt to manually configure which
extensions are to be handled as audio/video files in order to add
them correctly to the corresponding XBMC playlists

Changes since v1.0.0426:
========================
* Completely restructured code
* Removed UPX Compression (theoretically, since it has a very small
file size already, it should initialize a bit faster)
+ Some more checks integrated
+ Added commandline parameter "/add" to add files to the XBMC playlist

Download
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ltGuillaume
post May 9 2007, 03:07 AM
Post #3


X-S Young Member
*

Group: Members
Posts: 31
Joined: 5-November 06
Member No.: 309463



send2XBMC v3.0.0508
QUOTE(part of send2xbmc.txt)
send2XBMC makes it easy to send either an URL or the address of a remotely shared (SMB) or local media file to your Xbox. This can be done by opening the file through the dialog of send2XBMC or by providing the path/URL by a commandline parameter. To use paths with spaces, add quotation marks to the parameter. Be sure to have the Web Interface enabled on your Xbox. Sending multiple files to XBMC at once is allowed.

send2XBMC will send URLs and remotely shared files directly to your Xbox (after checking the existence of the file in case of a SMB-share). If the supplied path is a local file, send2XBMC will automatically search for an available SMB share that leads to the file. If found, it'll send
the network path to your Xbox.

To use send2XBMC with Total Commander from its Start Menu, point to the location of send2XBMC and use "%L" or "/add %L" (no quotes) as parameters. This will send/add the file under the cursor to play on your Xbox or all selected files.

You can create a shortcut to send2xbmc.exe in the SendTo folder of your user profile to use send2XBMC from the context menu. To add files to the XBMC playlist, create a shortcut with the parameter "/add" (no quotes).

send2XBMC can open up your download folder at start by using an optional INI-file. Here you can also manually enter the IP-address of your Xbox (by default, send2XBMC will try to connect using 'http://xbox'). Furthermore, you can manually configure the file extensions recognition for audio and video files when adding multiple files at once from commandline.

Changes since v2.1.0429:
========================
* Code restructuring
* Added audio playlist extensions to variable AudioExt
+ Ability to send/queue more files at once from commandline / file dialog
+ Ability to send files containing the following characters: & + ; #
+ Short paths to files allowed (C:\Progra~1\...)
+ Total Commander temporary list file compatibility (%L)

Download
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ekszbox
post May 9 2007, 04:26 PM
Post #4


X-S Member
*

Group: Members
Posts: 132
Joined: 25-July 06
Member No.: 291131



Thanks for sharing this.
Always good to see new tools coming out.
Unfortunately I can't test it at the moment, I wish the people who did would give some feedback/support to help you.
& Don't let the lack of user feedback/support here put you off.

KM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ltGuillaume
post May 9 2007, 11:07 PM
Post #5


X-S Young Member
*

Group: Members
Posts: 31
Joined: 5-November 06
Member No.: 309463



Thanks for your reply. I just made this little tool for myself and it has worked out great for me, so I decided to share it here.

It's a lot easier to make a playlist from your computer (explorer/Total Commander) then to browse all your shares from the Xbox. Also it allows you to use your Xbox as sort of a quickview extension to explorer/Total Commander.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ekszbox
post May 10 2007, 04:21 PM
Post #6


X-S Member
*

Group: Members
Posts: 132
Joined: 25-July 06
Member No.: 291131



Sounds good,
Maybe you should get it released to the other xbox modding sites too.

Also personally I feel that exe packers are best for non bloatware/resource hungry programs, i.e. your app.
The difference in performance is minimal in these cases.
Incase you change your mind, check out PECompact2: http://www.bitsum.com (has better compression than upx).

good luck.

KM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ltGuillaume
post May 10 2007, 05:52 PM
Post #7


X-S Young Member
*

Group: Members
Posts: 31
Joined: 5-November 06
Member No.: 309463



Well, since this program runs for just some milliseconds to get the commands sent to XBMC and then immediately quits, the best would be to have the program initialize as fast as possible. When compressing the executable, the downside is that it has to be unpacked in memory every time it's started. Then again, the upside is that your pc doesn't have to load as much data from the harddrive, which could slow down the process. The difficulty is how to determine which process (the reading of more data from HDD vs. the extraction process to memory when compressed) costs more time and is, of course, entirely dependent on your processor, memory and harddisk. I chose not to compress it, to reduce the cpu usage when started. Feel free to compress it, of course.

Furthermore, I know that an executable compressed by UPX has no memory overhead whatsoever when run, for PECompact2 I don't know anything about that, same for extraction speed compared to UPX. If you can persuade me with evidence that it would in fact be better to compress the .exe, please do elaborate.

This post has been edited by ltGuillaume: May 10 2007, 05:54 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ekszbox
post May 11 2007, 06:12 PM
Post #8


X-S Member
*

Group: Members
Posts: 132
Joined: 25-July 06
Member No.: 291131



Well if you want ultimate startup speed cos of the your design you should stick to not using any compressors.
And to speed it up even further try StripReloc: http://www.jrsoftware.org/striprlc.php

KM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ltGuillaume
post May 12 2007, 12:25 PM
Post #9


X-S Young Member
*

Group: Members
Posts: 31
Joined: 5-November 06
Member No.: 309463



I tried StripReloc, but it seems there are no relocations in the file already.
QUOTE
send2xbmc.exe: Relocations already stripped from file (1).
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ekszbox
post May 12 2007, 03:16 PM
Post #10


X-S Member
*

Group: Members
Posts: 132
Joined: 25-July 06
Member No.: 291131



Your app is probably written in VB in that case.
I tried it on a few VB programs & it didn't work on any of them.

KM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ltGuillaume
post Jun 15 2008, 10:51 PM
Post #11


X-S Young Member
*

Group: Members
Posts: 31
Joined: 5-November 06
Member No.: 309463



IPB Image
Explorer context menu

I made quite some changes to since the last version posted here. Some of the new features:
  • YouTube support (even high quality H264/MP4 format): automatically extracts video URL from a YouTube video page URL like http://www.youtube.com/watch?v=9AqIJpvA_yY
  • Automated Explorer context menu integration (removable): send files to XBMC directly from Explorer
  • Automated Opera context menu integration (removable): send online files or YouTube videos to XBMC directly from Opera
  • Total Commander list file compatibility: send selected file(s) to XBMC directly from Total Commander
  • Custom shares specification: decide what Windows SMB shares to include or exclude in share search when sending local file to XBMC
  • Proper error handling when problems connecting to XBMC
  • Quite some code cleanup
Easy 1-2-3 Starting Guide:
  1. Make sure the XBMC webserver is ENABLED!
  2. Integrate send2XBMC in Explorer, Opera and/or Total Commander (see included send2xbmc.txt)
  3. Check if the creation of a send2xbmc.ini file is necessary for you, for instance to provide send2XBMC with the IP-address of your Xbox (see included send2xbmc.txt)
IPB Image
Opera context menu

Download here (v4.4.0615)

This post has been edited by ltGuillaume: Jun 15 2008, 11:10 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ltGuillaume
post Jun 5 2009, 04:51 PM
Post #12


X-S Young Member
*

Group: Members
Posts: 31
Joined: 5-November 06
Member No.: 309463



send2XBMC v4.8.0504

Changes since v4.8.0217:
------------------------
+ Added "Send to" Explorer context menu extension: this addresses both the
issue of not being able to play multiple files from Explorer (this opens up
multiple instances of send2XBMC causing trouble) and the 'Play from here'
feature request: select the files, right-click on the file you want to play
first and use 'send2XBMC - Play now' from 'Send to' menu
+ Added functionality to (ask to) ignore playlist files when multiple files or
folders are selected to prevent files from being added twice to the playlist
* Although the shell extension is still available, it can be considered
obsolete, as it causes problems when adding multiple files simultaneously:
Explorer will open up an instance of send2XBMC for every file/folder selected
causing 1) an unordered adding to the XBMC playlist and 2) possible problems
when adding too many files/folders at once (XBMC returns errors)

Changes since v4.7.0106:
------------------------
+ Adds Explorer context menu items for folders
* Support for other protocols than http (e.g. rtsp://)
+ Custom webpage patterns for video URL extraction (see INI-file settings)

Changes since v4.6.1116:
------------------------
+ Added support for Entensity.net flash movies
* Added .flv to file extensions for Video playlist
* Quick fix for YouTube due to localization of the page
* Renamed Explorer and Opera context menu items ("send2XBMC - Play now" and
"send2XBMC - Add to playlist")

Changes since v4.5.0707:
------------------------
* When function SyntaxURL was called (and "%E2" substitutes "."), the correct
playlist (video or audio) could not be determined

Changes since v4.4.0615:
------------------------
+ Added Opera context menu item to enqueue URLs
* Renamed Explorer and Opera context menu items ("Play/Enqueue in XBMC")
* Fixed a dumb bug with not passing through the variable $Path when checking
if the file was shared or not

Changes since v4.3.0612:
------------------------
+ Added commandline parameter "/dellshellext" to remove entries from Explorer
context menu
+ Added commandline parameter "/opera" and "/delopera" to automatically add
or remove Opera context menu items respectively
+ New INI-file entry YouTubeMP4 to choose for high quality H264 YouTube stream
as the Xbox CPU might not be up for it, causing stuttery playback
* Cleanup of ShellExt function
* Minor changes in Main, ParseParameters (formerly DeterminePath) and FileCheck
* Fixed issue with substituting "/" by syntaxURL

Changes since v4.2.0608:
------------------------
* [Big thanks to .zap!] SyntaxURL function is now more universal and used to
change every non-alphanumeric character into its corresponding hexadecimal,
avoiding problems with URL parsing by XBMC (should fix YouTube problems)

Changes since v4.1.0607:
------------------------
* Removed stupid ByRef(erence) residue
+ Added commandline parameter "/shellext" to add send2XBMC to Explorer
context menu: right-click on file(s) and send to XBMC immediately
+ Proper error handling on network connection problems (finally!)
+ Some more code clearity by comments where appropriate
- Removed the debug code

Changes since v4.0.0607:
------------------------
* Code cleanup with regards to sending command to XBMC
* YouTube support: now doesn't need a temporary file
* YouTube support: no line-by-line variable seeking in HTML page
+ YouTube support: dialog if link could not be found or parsed correctly

Changes since v3.1.0517:
------------------------
* SharesIncl now has priority over SharesExcl
+ Preliminary support for YouTube URLs: tries to pass through the
higher quality MP4 format videos first, if not found for the specific video,
then FLV is passed to XBMC

Download


This post has been edited by ltGuillaume: Jun 5 2009, 04:51 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FourTwentySmiles
post Jun 6 2009, 12:24 AM
Post #13


X-S Expert
***

Group: Members
Posts: 616
Joined: 12-March 07
From: In N. Carolina
Member No.: 333828
Xbox Version: v1.6
360 version: none



Have you released this to the XBMC community, over at XBMC.org ?????
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ltGuillaume
post Jun 6 2009, 12:57 AM
Post #14


X-S Young Member
*

Group: Members
Posts: 31
Joined: 5-November 06
Member No.: 309463



Well, I put it on the forum (http://xbmc.org/forum/showthread.php?t=26253), but never got a reply.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
urphonesux
post Jun 15 2009, 09:02 PM
Post #15


X-S Enthusiast


Group: Members
Posts: 11
Joined: 5-March 08
Member No.: 375203



I would love to be able to test this app but i cannot get it into the opera context menu.
whenever i copy and paste the command into start>run it just says that it cant find send2xbox.exe.
Could you provide a step by step, I believe i have the latest build, but i do have microxp on my laptop so i dont know if that makes a diff or not
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





2 Pages V  1 2 >
Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 2nd September 2010 - 07:57 PM