Sign up here and you can log into the forum!

Auto framerate/resolution plugin for WDLXTV

Here is the place to inquire about app.bins--Only currently available apps for sigma 8655 based wdtv's belong in this forum. requests go in 'Application Questions'

Re: Auto framerate/resolution plugin for WDLXTV   

Postby KAD » Sun Jun 27, 2010 10:52 pm

psychodad,

I'm hoping this is the part of the log that will actually be helpful, the entire log of coarse was too long to post here :D

KAD

Code: Select all

video_resume_point_check found = 0 after found =  0
WeatherPlugin.onPageEnter on page preopen.xml
SubDownloaderPlugin.onPageEnter on page preopen.xml
Plugin.MovieSheet: [ onPageKey ] (isMediaListPage) key: 38
Plugin.MovieSheet: [ setMovieSheet ]
Plugin.MovieSheet: [ findFileSheet ]
Plugin.MovieSheet:   path: hulu-8de65518-2658-4557-bc53-c4d184671e8a
Plugin.MovieSheet:   name: Bones - s1e10:  The Woman At The Airport
Plugin.MovieSheet:   mode: sheet
Plugin.MovieSheet:   repo:
Plugin.MovieSheet:   checking: 'hulu-8de65518-2658-4557-bc53-c4d184671e8awd_tv.jpg'
Plugin.MovieSheet: [ checkFile ]
Plugin.MovieSheet:   checking: 'hulu-8de65518-2658-4557-bc53-c4d184671e8a.wd_tv.jpg'
Plugin.MovieSheet: [ checkFile ]
Plugin.MovieSheet:   checking: 'hulu-8de65518-2658-4557-bc53-c4d184671e8aBones - s1e10:  The Woman At The Airport_sheet.sheet.jpg'
Plugin.MovieSheet: [ checkFile ]
Plugin.MovieSheet:   checking: 'hulu-8de65518-2658-4557-bc53-c4d184671e8a.Bones - s1e10:  The Woman At The Airport_sheet.sheet.jpg'
Plugin.MovieSheet: [ checkFile ]
Plugin.MovieSheet:   checking: 'hulu-8de65518-2658-4557-bc53-c4d184671e8aBones - s1e10:  The Woman At The Airport_sheet.jpg'
Plugin.MovieSheet: [ checkFile ]
Plugin.MovieSheet:   checking: 'hulu-8de65518-2658-4557-bc53-c4d184671e8a.Bones - s1e10:  The Woman At The Airport_sheet.jpg'
Plugin.MovieSheet: [ checkFile ]
Plugin.MovieSheet: [ checkFile ]
Plugin.MovieSheet:   file found: 'image/villa_bg.jpg'
Plugin.MovieSheet:   setting default sheet...
WeatherPlugin.onPageKey on page basic_browse_thumb_video.xmlkey = 38
SubDownloaderPlugin.onPageKey on page [basic_browse_thumb_video.xml], key = [38]
playlist_call_open[765],type: 3
pure_rnd_player_openx[682], Open media.
securesoho_ntsc_pal_get_inner[1529], NTSC
success to open /tmp/video_run
*****************************************************************************************************
*                                                                                                   *
*                         auto resolution/framerate plugin by psychodad                             *
*                                                                                                   *
*****************************************************************************************************
INFO: selected file -> http://192.168.1.142:63478/hulu-8de65518-2658-4557-bc53-c4d184671e8a/1-hulu-8de65518-2658-4557-bc53-c4d184671e8a.mpg
INFO: turning off leds
INFO: file matches filter '*' -> setting available video output modes to: 1080p60 1080p24 1080p23
INFO: multiple video output modes available, launching ffmpeg for video detection ...
INFO: ffmpeg returned in 20 seconds -> format=mpeg2video, width=720, height=404, fps=29.970
INFO: suggested video output mode set to 480p60, matching against available ones ...
INFO: frame rate selection -> matches: 1080p60
INFO: resolution selection -> matches: 1080p60
INFO: scan type selection  -> matches: 1080p60
INFO: current audio output mode=stereo, requested audio output mode=stereo
INFO: no change required ...
INFO: current video output mode=1080p60, requested video output mode=1080p60
INFO: no change required ...
*****************************************************************************************************
SetAVTransportURI service ControlURL:http://127.0.0.1:53752/MediaRenderer_AVTransport/control
playlist_call_open[835]
ID=[97939] Expired! type=CALLBACK_TYPE_GETOBJECTPROGRESSINFO
ID=[97938] Expired! type=CALLBACK_TYPE_GETOBJECTPROGRESSINFO
ID=[97940] Expired! type=CALLBACK_TYPE_OPENOBJECT
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
0 :(1/0) 1
1 :(6/2) 524000
3 :(1/10) 0
4 :(40/12) Bones - s1e10:  The Woman At The Airport
10 :(124/58) http-get:*:video/mpeg::DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=01;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=25700000000000000000000000000000
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
preopen3_timer[534],state = 4
# exit
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: Auto framerate/resolution plugin for WDLXTV   

Postby mankmeister » Sun Jul 04, 2010 5:01 pm

I've been using the plugin for the last week or so with great success, thanks for writing it.

I've set it up to bypass video detection and just use certain modes depending on filename, with the default to use 1080p24 otherwise.
Most of the time no video switching needs to be done as I leave the player in 1080p24 and most files I play are 720p24 or 1080p24.

The bonus that comes with using the plugin is switching off the LEDs when playing a file.

However, for the first time yesterday, I noticed that the LEDs didn't switch off when I started playing a file.
This suggested that the plugin wasn't kicking in as expected.

I tried a few other files and each time the LEDs would go off so assumed the plugin was working correctly.

I then realised that the offending file contained an apostrophe in its name (Brooklyn's).

After removing the apostrophe (Brooklyns), the LEDs switched off as per usual upon playing.

Anyone else notice this?
mankmeister
n00b
 
Posts: 1
Joined: Thu Jun 17, 2010 5:22 pm

Re: Auto framerate/resolution plugin for WDLXTV   

Postby psychodad » Mon Jul 05, 2010 7:50 am

@KAD:
Code: Select all
INFO: ffmpeg returned in 20 seconds -> format=mpeg2video, width=720, height=404, fps=29.970
...
ID=[97939] Expired! type=CALLBACK_TYPE_GETOBJECTPROGRESSINFO

the ffmpeg analysis of your video file lasts too long. the wd's playback command will timeout after 15 seconds or so. if ffmpeg needs more time the WD will hang. i cannot prevent this. i recommend you set a fixed resolution for hulu files by using the "video_modes" setting.

@mankmeister
at the moment i see no way to handle filenames with single quotes. please avoid such filenames.
psychodad
Developer
 
Posts: 186
Joined: Thu May 06, 2010 8:42 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby recliq » Mon Jul 05, 2010 10:46 am

@psychodad: where exactly is the problem with single quotes, this should be solvable ;)
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Auto framerate/resolution plugin for WDLXTV   

Postby psychodad » Mon Jul 05, 2010 10:49 am

the problem is, that the script is called by dmaosd by executing: autores.sh 'movie.mkv'. if the filename contains single quotes it will fail.
i used double quotes around the filename before, but then any "$" characters are interpreted by bash as variables. (some media servers are producing such filenames). Thats why i'm using single quotes now. Escaping the special characters inside the filename before executing the script isnt trivial because this would require some new assembler routines inside dmaosd. If you have any ideas to work around this problem let me know :-)
psychodad
Developer
 
Posts: 186
Joined: Thu May 06, 2010 8:42 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby recliq » Mon Jul 05, 2010 11:29 am

ok, that's a problem then indeed, didn't know about the filenames with $...
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Auto framerate/resolution plugin for WDLXTV   

Postby KAD » Mon Jul 05, 2010 8:20 pm

@psychodad

thanks for looking at those results, I also so expired and was afraid it had timed out but didn't know what to do about it
could you provide an example of how "video_modes" setting should look, in your first post you mentioned it's an egrep pattern, but I'm exactly sure what the filter path should look like, my case I want to access play via media servers, hulu ... and enforce 1080p60

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: Auto framerate/resolution plugin for WDLXTV   

Postby psychodad » Mon Jul 05, 2010 10:38 pm

if i remember correctly you are using the playon media server to access online content? then i would set a fixed resolution for all the video streams from this media server by using the ip/port as filter (assuming the mediaserver is always using the same ip/port):

Code: Select all
video_modes="
192\.168\.1\.142.63478:1080p60
*:1080p60|1080p50 ...
...
"

the line starting with "192" sets 1080p60 for all files coming from your playon media server.

you can watch the console output of the plugin to decide how your filter should look:
Code: Select all
INFO: selected file -> http://192.168.1.142:63478/hulu-8de65518-2658-4557-bc53-c4d184671e8a/1-hulu-8de65518-2658-4557-bc53-c4d184671e8a.mpg


if your filter works correctly script will say:
Code: Select all
filename matches pattern "192\.168\.1\.142.63478" -> setting available resolutions to: 1080p60
psychodad
Developer
 
Posts: 186
Joined: Thu May 06, 2010 8:42 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby KAD » Tue Jul 06, 2010 11:01 pm

psychodad, thanks for the example, but it didn't work for me,

first time I tried to play a file off my HDD it popped 720p60 on a 1080p23.967 file, but this is something I can live without for now, and I'll bet it works with hulu for other people with faster internet connection, when I get a few moments I'll post the output from log if I notice anything abnormal, just for info on future developing

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: Auto framerate/resolution plugin for WDLXTV   

Postby matos » Thu Jul 08, 2010 2:03 pm

Hi psychodad!
Great job, this is must have.
However when I press stop on a movie, the resolution doesn't return to the one I have on wdtv configuration settings.
I have on my autores.conf the set_menu_video_mode=1 but none deal.
Any hints on this? I want it to go to 1080p60, that's what I have on wdtv settings.
Thanks
matos
DLX'er
 
Posts: 66
Joined: Fri Apr 16, 2010 8:02 am

PreviousNext

Return to WDLXTV-G2 & WDLXTV-Live/Plus app.bins

Who is online

Users browsing this forum: No registered users and 2 guests