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 psychodad » Fri Jul 09, 2010 2:36 am

set the "additional_menu_video_modes" setting to "". this setting contains all video modes, which are valid for menu display (by default it contains all 1080 resolutions). afterwards set your wd to 1080p60 and you're done.
psychodad
Developer
 
Posts: 186
Joined: Thu May 06, 2010 8:42 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby Baswazz » Sun Jul 11, 2010 4:08 am

Nice thx for it. Works great. If you have problems with 'Appletrailerfs' trailers with AAC audio. Then this is the solution. :)
Baswazz
n00b
 
Posts: 7
Joined: Sun Jul 04, 2010 7:28 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby foreverfree » Mon Jul 12, 2010 2:00 pm

Hi, this is my first post and first of all i want to thank psychodad for this fantastic app.
I'm a total newbie and i have a problem.
The app works flawlessy with double audio mkvs, with all combinations ac3, dts, mp3, except for videos that contain a 5.1 aac track.
In that case the player switch to stereo.
Example : Movie-[BDrip][1080p23][X264][ENG-DTS][ESP-AAC].mkv if the second aac track is 2.0 there is no problem, if it's 5.1 then also the DTS track switch to stereo.
I'm connect to a onkyo AVreceiver thru HDMI.
I suppose i've to modify that part on the config file that causes the switch

audio_modes_filters="
Audio.*aac.*(5\.1|channels):stereo
"

But there in which way to keep the first track, DTS or AC3, in digital (i.e. passthru) and the second one in aac 5.1 in stereo ?

Thanx in advance

Foreverfree

P.s: Sorry for my bad english :-)
foreverfree
n00b
 
Posts: 5
Joined: Mon Jul 12, 2010 1:24 pm

Re: Auto framerate/resolution plugin for WDLXTV   

Postby psychodad » Mon Jul 12, 2010 10:03 pm

this feature works on a per file basis. this means its switches to stereo OR digital audio BEFORE playing a video file.
if it finds any audio track with multichannel aac it will switch to stereo.

i will look if switching audio output works while video is playing. if so, i'll think about a solution for this problem.
psychodad
Developer
 
Posts: 186
Joined: Thu May 06, 2010 8:42 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby foreverfree » Tue Jul 13, 2010 6:24 am

Ok, i've understood...

So in the meantime i'll delete that part of the config file and I'll change manually from digital to stereo in the settings menu of the WDTV for the files with double ac3-dts and aac 5.1.

Thanx again for your work.
foreverfree
n00b
 
Posts: 5
Joined: Mon Jul 12, 2010 1:24 pm

Re: Auto framerate/resolution plugin for WDLXTV   

Postby vevs » Sat Jul 17, 2010 11:38 pm

2psychodad
Firstly, thank you very much for this wonderful plugin! Well done!
I am not an expert on linux, but I think that the problem of single quotes can be solved by putting a backslash before them. Thus isolated special characters in bash.
Sorry for bad english, russian here. :)
vevs
Donor
 
Posts: 36
Joined: Sat Jul 17, 2010 11:21 pm

Re: Auto framerate/resolution plugin for WDLXTV   

Postby proove2613 » Sun Jul 18, 2010 1:17 am

psychodad wrote:***** Required firmware ******

WDLXTV-Live - 1.02.21
WDLXTV-G2 - 1.02.21

psychodad


Excuse me: is there available the 1.02.21 for the G2? I can't find it anywhere...
proove2613
WDTVer
 
Posts: 26
Joined: Sat Apr 24, 2010 10:08 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby psychodad » Sun Jul 18, 2010 4:00 am

Excuse me: is there available the 1.02.21 for the G2? I can't find it anywhere...

ah, sorry my fault ;) i meant WDLXTV-G2 - 1.01.77.

I am not an expert on linux, but I think that the problem of single quotes can be solved by putting a backslash before them. Thus isolated special characters in bash.

of course, escaping those special characters is possible in general. but patching the dmaosd binary to do this isn't an easy task ;) but i try to find a solution.
psychodad
Developer
 
Posts: 186
Joined: Thu May 06, 2010 8:42 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby cyberkalle » Sun Jul 18, 2010 1:34 pm

I have a problem with a 1080p25 movie
here the mediainfo:

General
Complete name : Z:\Video\Filme\Verdammnis - 1080p25 DTS.mkv
Format : Matroska
File size : 7.95 GiB
Duration : 2h 4mn
Overall bit rate : 9 157 Kbps
Encoded date : UTC 2010-05-28 12:33:10
Writing application : mkvmerge v3.4.0 ('Rapunzel') gebaut am May 15 2010 09:38:20
Writing library : libebml v0.8.0 + libmatroska v0.9.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Muxing mode : Container profile=Unknown@4.1
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 4mn
Bit rate : 7 656 Kbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.148
Stream size : 6.48 GiB (82%)
Writing library : x264 core 96 r1613 81e75e9
Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=7656 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : German

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : A_DTS
Duration : 2h 4mn
Bit rate mode : Constant
Bit rate : 1 510 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Stream size : 1.31 GiB (16%)
Language : German

and here the dmaosd.log

*****************************************************************************************************
* *
* auto resolution/framerate plugin by psychodad *
* *
*****************************************************************************************************
INFO: selected file -> /tmp/QNAP-TS219P/Public/Video/Filme/Verdammnis - 1080p25 DTS.mkv
INFO: turning off leds
INFO: file matches filter '*' -> setting available video output modes to: 1080p60 1080p50 1080p24 1080p23 1080i60 1080i50 720p60 720p50 576p50 576i50 480p60 480i60
INFO: multiple video output modes available, launching ffmpeg for video detection ...
INFO: ffmpeg returned in 3 seconds -> format=h264, width=1920, height=1080, fps=25.000
INFO: suggested video output mode set to 1080i50, matching against available ones ...
INFO: frame rate selection -> matches: 1080p50 1080i50 720p50 576p50 576i50
INFO: resolution selection -> matches: 1080p50 1080i50
INFO: scan type selection -> matches: 1080i50
INFO: current audio output mode=stereo, requested audio output mode=stereo
INFO: no change required ...
INFO: current video output mode=1080i50, requested video output mode=1080i50
INFO: no change required ...
************************************************************************************************

and here my autores.conf

##################### start of config ########################
#
# Set the video output resolutions/framerates you want.
#
# BE SURE TO SET ONLY OUTPUT MODES YOUR TV SUPPORTS, OTHERWISE WITH ENABLED FORCEHDMI OPTION YOU GET A BLACK SCREEN !!!
#
# The format is:
#
# video_modes="
# <pathfilter1>:<resolution1>|<resolution2>|...
# <pathfilter2>:<resolution1>|<resolution2>|...
# ...
# "
# pathfilter is an egrep pattern. The first filter matching the video filepath wins the race. Do NOT use spaces anywhere!
#
# Below is my setting as an example, it contains all valid video output modes too:
# My video filenames contain the refresh rate already ([60], [50], [24], [23.976]) and I want the WD to upscale to 1080p.
# If a video filename doesn't include the refresh rate let the script choose the best resolution/framerate.
# For most users its enough to remove the unwanted/unsupported resolutions in the last line.
#
video_modes="
\[60\]:1080p60
\[50\]:1080p50
\[25\]:1080p50
\[24\]:1080p24
\[23.976\]:1080p23
*:1080p60|1080p50|1080p24|1080p23|1080i60|1080i50|720p60|720p50|576p50|576i50|480p60|480i60
"


# Use the next setting to force an audio output mode for specific files.
#
# The format is:
#
# audio_modes="
# <pathfilter1>:<audio_mode>
# <pathfilter2>:<audio_mode>
# ...
# "
#
# pathfilter is an egrep pattern. Valid audio modes are: digital, stereo
# If no filter matches, the audio mode configured in the WD TV settings menu will be used.
#
audio_modes="
"


# Audio output mode configuration based on parsing of ffmpeg output (mediainfo currently not supported).
# This is an option for advanced users! Change it only, if you know what you're doing!
# Currently used to set the audio output mode to stereo for aac multichannel, because this one don't work
# with digital audio output
#
# The format is:
#
# audio_modes_filters="
# <egrep_pattern>:<audio_mode>
# <egrep_pattern>:<audio_mode>
# ...
# "
#
audio_modes_filters="
Audio.*aac.*(5\.1|channels):stereo
"


# Set the allowed video extensions (without dot), all others will be ignored
#
# !!! WARNING !!!
# ISO files are not supported by ffmpeg! Add this extension at your own risk!
#
valid_video_extensions="avi|mkv|vob|wmv|mpeg|mpg|m2ts|mov|mp4|3gp|3g2|ts"


# 1 = turn off leds when playing video files
#
turn_off_leds_on_play=1


# 1 = turn on leds after playing video files
#
turn_on_leds_after_play=1


# 1 = after video playback return to the video output mode configured in the WD TV video settings menu
# 0 = leave menu output mode as it is.
#
set_menu_video_mode=1


# Additional to the video output mode set in the WD TV settings menu you can define here which output modes
# are valid for menu display too. Thus reducing hdmi reconfigurations to a minimum.
#
additional_menu_video_modes="1080p60|1080p50|1080p24|1080p23|1080i60|1080i50"


##################### end of config ##########################

CONFIGVER=3

why does the movie play in 1080i ?
it must be 1080p !
cyberkalle
n00b
 
Posts: 1
Joined: Sat Jul 17, 2010 5:50 pm

Re: Auto framerate/resolution plugin for WDLXTV   

Postby psychodad » Sun Jul 18, 2010 10:49 pm

will be fixed in the next release ;)
psychodad
Developer
 
Posts: 186
Joined: Thu May 06, 2010 8:42 am

PreviousNext

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

Who is online

Users browsing this forum: No registered users and 0 guests