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 foreverfree » Mon Aug 02, 2010 11:00 am

Thanx again for your work, gonna try it as soon as possibile :-)
foreverfree
n00b
 
Posts: 5
Joined: Mon Jul 12, 2010 1:24 pm

Re: Auto framerate/resolution plugin for WDLXTV   

Postby LapinFou » Thu Aug 05, 2010 6:22 am

Hi folks,

I installed the latest version 0.50.
Works like a charm. I confirm that some special mkv video (resolution 1080p, framerate 50hz in my case), are now well detected as progressive.
before played as 1080i50
now played as 1080p50

Thanks again for your work psychodad and thanks to take in account my suggestion.

Great Job!!
:mrgreen:
User avatar
LapinFou
Supporter
 
Posts: 8
Joined: Sat Jul 24, 2010 8:39 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby oldbrand7 » Sun Aug 08, 2010 8:12 am

with AUTORES=ON many mkv with AC3 or DTS play as normal stereo. not all files, just many.
then, with some lowres video, autores set 576p. i resolved it deleting every resolution under 1080p, because wdlive does a good upscale.
i need the autoframes detection, so i need to keep autores=on. i resolved adding the .conf (found in the autores-0.50.rar) and changing "stereo" with "digital".

in this way i have the frames detection but i can't play AAC sounds. not a problem because i have few of them. i prefer to have always ready DTS and AC3.

so the bug is that sometimes, when the plugin is set in stereo to play AAC sound, does mistakes with dts/ac3.

thanks, i think the autoframe function was the most wanted !!!


i also tried this way but didn't work.

audio_modes_filters="
Audio.*aac.*(5\.1|channels):stereo
Audio.*ac3.*(5\.1|channels):digital
Audio.*dts.*(5\.1|channels):digital
oldbrand7
WDTVer
 
Posts: 28
Joined: Sat Apr 24, 2010 1:29 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby psychodad » Mon Aug 09, 2010 10:39 am

@oldbrand7:
the reason why the script uses stereo for some of your movies with dts tracks is, that these movies contain more than one audio track, e.g. one audio track with dts, and one with aac.

the lines defined in audio_modes_filters are processed from the top to the bottom, and the first match decides about the audio mode.
your first line is "Audio.*aac.*(5\.1|channels):stereo", which means at first it searches for a multichannel aac audio track, if it founds one the output mode is set to stereo. to make your setting work as indended you have to use:

Code: Select all
audio_modes_filters="
Audio.*ac3:digital
Audio.*dca:digital
Audio.*aac.*(5\.1|channels):stereo
"

with this setting the plugin will first search for ac3 and dca (= DTS) audio tracks with any number of audio channels. on match output mode is set to digital.
only if none of the two patterns match it looks for a multichannel aac track.

but i think what you (and other users) really want is, that it uses stereo only if the multichannel aac track is the only audio track in your prefered language. to accomplish this try the following setting:

Code: Select all
audio_modes_filters="
\(eng\).*Audio.*ac3:digital
\(eng\).*Audio.*dca:digital
\(eng\).*Audio.*aac.*stereo:digital
\(eng\).*Audio.*aac.*(5\.1|channels):stereo
Audio.*ac3:digital
Audio.*dca:digital
Audio.*aac.*stereo:digital
Audio.*aac.*(5\.1|channels):stereo
"

replace "eng" with the language code of your prefered language. you can find the language codes here: http://www.w3.org/WAI/ER/IG/ert/iso639.htm
a short explanation what the above setting does do:
the first four lines will only match on audio tracks with the given language code.
lines 1-3 set output to digital if there is an audio track with ac3, dca (=DTS) or stereo aac.
line 4 sets output to stereo if a multichannel aac track is found in the given language.
lines 5-8 do the same but now for any language.
if none of the lines matches the default output mode will be used (should be digital).

psychodad
psychodad
Developer
 
Posts: 186
Joined: Thu May 06, 2010 8:42 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby oldbrand7 » Tue Aug 10, 2010 12:51 am

i'm really stupid with paste&copy on nano and vi (from telnet box in webfrontend) so i keep using the .conf file on hard disk.

i tried this.. (i prefer dts on ac3)

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

but, when i play a .mkv with 9 languages (italian AAC multichannel in 9th position) movie starts with 1st language (mpeg stereo german), as all movies. if i select italian i have no sound.

another movie, with 1:ita.ac3 2:ita.dts 3:eng.dts starts with ita ac3. it shound begin with ita dts on second position. (even if i see in media info that ita.ac3 is 1st audio..)

then i see all movies always start with 1st audio (the first on wdlive options/audio), no matter if it's dts or ac3, italian or english

so where's the mistake? wrong language code?

here's the .log with both movies played.

http://www.megaupload.com/?d=6HA49DTE
oldbrand7
WDTVer
 
Posts: 28
Joined: Sat Apr 24, 2010 1:29 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby b-rad.cc » Tue Aug 10, 2010 1:04 am

the mistake is that you aren't realizing that this plugin doesn't magically change to the default flagged audio channel when you start nor change to stereo on the fly when you switch to a multi-channel AAC track...(yet)...if you read the thread he says if he can figure it out it will be implemented eventually.
PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3002
Joined: Sat Apr 03, 2010 9:35 am
Location: New York

Re: Auto framerate/resolution plugin for WDLXTV   

Postby psychodad » Tue Aug 10, 2010 1:41 am

Hi oldbrand7,

you misunderstood the purpose of the setting "audio_modes_filters". Its function is not to preselect an audiotrack when you play a movie. It only switches the audio output mode of the wd before you play the movie to either stereo or digital (as you can do manually in the settings). The idea behind this function is, that the wd is unable to output multichannel aac digitally and the user has to configure stereo output to hear something. The plugin automates this process.
However automatically preselecting an audio and/or subtitle track is something i want to implement in a future version but that will definitivly take some time.

about your log file:
Code: Select all
INFO: selected file -> /tmp/media/usb/USB1/12B0DF25B0DF0DDB/[1080p] Full Metal Jacket.mkv
ERROR: failed to launch ffmpeg: ffmpeg -i /tmp/media/usb/USB1/12B0DF25B0DF0DDB/[1080p] Full Metal Jacket.mkv
ERROR: ffmpeg output was:
/tmp/media/usb/USB1/12B0DF25B0DF0DDB/[1080p] Full Metal Jacket.mkv: Cannot allocate memory
----------------------
ERROR: exiting ...

ffmpeg seems to be unable to handle the full metal jacket mkv (and one another movie too). therefore no video/audio parameters could be detected and resolution/audio is left unchanged. maybe these mkvs are just too big and there is not enough free memory on the wd or its a bug of ffmpeg. unfortunatly i cannot do anything about this.

for the other movies the detection seems to work as intended, e.g.:
Code: Select all
INFO: selected file -> /tmp/media/usb/USB1/12B0DF25B0DF0DDB/Bastardi senza gloria 25.mkv
INFO: ffmpeg output matches pattern '\(ita\).*Audio.*dca' -> setting audio output mode to: digital

here it detected an italian dts audio track and therefore switches to digital.
psychodad
Developer
 
Posts: 186
Joined: Thu May 06, 2010 8:42 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby oldbrand7 » Tue Aug 10, 2010 8:35 am

i undestood that plugin seeks DTS first (if i set it first) and if it founds a dts track then plays.
now i realized that it only searches to set stereo or digital, not to play my favourite audio track.

this way if i set ac3 and then dca, or dca and then ac3 there's no difference..isnt' it?
oldbrand7
WDTVer
 
Posts: 28
Joined: Sat Apr 24, 2010 1:29 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby psychodad » Tue Aug 10, 2010 9:35 am

correct ;)
psychodad
Developer
 
Posts: 186
Joined: Thu May 06, 2010 8:42 am

Re: Auto framerate/resolution plugin for WDLXTV   

Postby Win a 2 » Sun Aug 29, 2010 4:13 am

Hi everyone,

first of all: thx for the gr8 plugin :)

My questions:
1.
- plugin will always prefer progressive mode, interlaced mode has to be enforced with filepath filter

Why did you do that?
What exactly needs to be done the have interlaced movies played in interlaced mode?
2.
Code: Select all
INFO: ffmpeg returned in 1 seconds -> format=mpeg4, width=656, height=272, fps=25.000
INFO: video width 656 does not match any available resolution, scaling up to maximum possible resolution
INFO: suggested video output mode set to 1080p50, matching against available ones ...

I have some old XviD-Movies and all of them get scaled up to 1080p by WDTV but I want it to be played in the lowest resolution above the files resolution to have my TV doing the upscaling. 576p50 in this example.
Win a 2
Supporter
 
Posts: 2
Joined: Sun Aug 29, 2010 3:02 am

PreviousNext

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

Who is online

Users browsing this forum: No registered users and 1 guest