Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...
   All Posts (amigamaniac)


(1) 2 3 4 ... 16 »


Re: Nouveau nvidia display corruption

Joined:
2011/9/17 15:53
From St.Petersburg
Group:
Member
Posts: 157
Offline
This bug has been declared many times... I managed to fing 7600gt nvidia card which works just fine...

Posted on: 2013/3/12 12:13
Transfer the post to other applications Transfer


Re: Our OWB and YouTube.js from dec 23

Joined:
2011/9/17 15:53
From St.Petersburg
Group:
Member
Posts: 157
Offline
For me with the modified sxript, for example, this video works http://www.youtube.com/watch?v=Gng3sPiJdzA

Click ViewWithoutFlash i.e. PLAY ciphers. 35 as the most common.

Posted on: 2013/1/2 10:44
Transfer the post to other applications Transfer


Re: Our OWB and YouTube.js from dec 23

Joined:
2011/9/17 15:53
From St.Petersburg
Group:
Member
Posts: 157
Offline
Well, I tested it for a day. Sometimes it works, sometimes - not. Needs further investigation, or may be it would be great to contact Fab.

Posted on: 2013/1/2 7:06
Transfer the post to other applications Transfer


Re: Our OWB and YouTube.js from dec 23

Joined:
2011/9/17 15:53
From St.Petersburg
Group:
Member
Posts: 157
Offline
Well, I am not a coder. but managed to improve the script to work correctly, as it seemed at the beginning. Then I found in some cases it doesn not work as it should.

Here it comes, if it helps:


// Youtube HTML5 converter
// version 0.88
// 2012-12-23
// Copyright (c) 2010, Arne Schneck, Rob Middleton(aka themiddleman), chromeuser8
// Reworked by Fabien Coeurjoly to be up-to-date and work properly with current HTML5 implementations and Youtube endless changes
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// Changes version 0.87 -> 0.88 :
// * Adapted to work again with latest changes from YouTube.
// Changes version 0.86 -> 0.87 :
// * Adapted to work again with latest changes from YouTube.
// Changes version 0.85 -> 0.86 :
// * Fixes download links after Youtube's latest changes.
// Changes version 0.84 -> 0.85 :
// * Don't attempt to execute anything of this script in HTML5 mode.
// Changes version 0.83 -> 0.84 :
// * YouTube suppressed the url_fmt_map this script relied on previously...
// Now using another method, let's hope it won't change too soon!
// * Removed some dead code and cleanup in a few places
// Changes version 0.82 -> 0.83 :
// * Added very basic support for YouTube channels (only first title is played).
// Changes version 0.81 -> 0.82 :
// * The player container height set by YouTube is too small to show entirely
// the HTML5 bultin-player controls. Adjusted its height accordingly.
// Changes version 0.80 -> 0.81 :
// * "get_video" mode isn't supported by YouTube anymore, so "raw" mode is now
// the default and only available mode.
//
// ==UserScript==
// @name Youtube HTML5 Converter
// @namespace none
// @description Adds links below the video and replaces Flash with the builtin HTML5 mediaplayer.
// @include http://youtube.com/watch*
// @include http://*.youtube.com/watch*
// @include http://youtube.*/watch*
// @include http://youtube-nocookie.com/watch*
// @include http://*.youtube-nocookie.com/watch*
// @include http://youtube-nocookie.*/watch*
// @include http://*.youtube.com/user/*
// @include https://youtube.com/watch*
// @include https://*.youtube.com/watch*
// @include https://youtube.*/watch*
// @include https://youtube-nocookie.com/watch*
// @include https://*.youtube-nocookie.com/watch*
// @include https://youtube-nocookie.*/watch*
// @include https://*.youtube.com/user/*
// @version $VER: Youtube HTML5 converter 0.88 (23.12.2012)
// @url http://fabportnawak.free.fr/owb/scripts/Youtube.js
// ==/UserScript==

args = {};
var player = document.getElementById("movie_player");

// ---------------------------------------------------------------------------------------------------------

// Only go further if the Flash player is there, else it's HTML5 mode
if(player)
{

var title = "video";
try {
title = document.getElementsByClassName('yt-uix-expander-head')[0].title;
}
catch(e) {
}

function getFormatName(quality) {
var ret = "(" + quality.toString() + ") unknown";
switch(quality)
{
case 5:
ret = "(" + quality.toString() + ") FLV H.263 400x240";
break;
case 34:
ret = "(" + quality.toString() + ") FLV H.264 640x360";
break;
case 35:
ret = "(" + quality.toString() + ") FLV H.264 854x480";
break;
case 18:
ret = "(" + quality.toString() + ") MP4 H.264 640x360";
break;
case 22:
ret = "(" + quality.toString() + ") MP4 H.264 1280x720";
break;
case 37:
ret = "(" + quality.toString() + ") MP4 H.264 1920x1080";
break;
case 38:
ret = "(" + quality.toString() + ") MP4 H.264 4096x3072";
break;
case 43:
ret = "(" + quality.toString() + ") WEBM VP8 640x360";
break;
case 44:
ret = "(" + quality.toString() + ") WEBM VP8 854x480";
break;
case 45:
ret = "(" + quality.toString() + ") WEBM VP8 1280x720";
break;
case 17:
ret = "(" + quality.toString() + ") 3GP MP4 176x144";
break;
}
return ret;
}

function runScript() {

unsafeWindow = window;

GM_getValue = function ( cookieName, oDefault ) {
var cookieJar = document.cookie.split( "; " );
for( var x = 0; x < cookieJar.length; x++ ) {
var oneCookie = cookieJar[x].split( "=" );
if( oneCookie[0] == escape( cookieName ) ) {
try {
var footm = unescape( oneCookie[1] );
} catch(e) { return oDefault; }
return footm;
}
}
return oDefault;
};

GM_setValue = function ( cookieName, cookieValue, lifeTime ) {
if( !cookieName ) { return; }
if( lifeTime == "delete" ) { lifeTime = -10; } else { lifeTime = 31536000; }
document.cookie = escape( cookieName ) + "=" + escape( cookieValue ) + ";expires=" + ( new Date( ( new Date() ).getTime() + ( 1000 * lifeTime ) ) ).toGMTString() + ";path=/";
}

var thescript = this;

function addScript(contents, id, isurl) {
var head, script;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
script = document.getElementById(id);
if(script != undefined) {
head.removeChild(script);
}
script = document.createElement('script');
script.type = 'text/javascript';
script.id = id;
if(isurl) {
script.src = contents
} else {
script.innerHTML = contents;
}
head.appendChild(script);
}

//http://diveintogreasemonkey.org/patterns/add-css.html
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
try {
style.innerHTML = css;
} catch(x) { style.innerText = css; }
head.appendChild(style);
}

/*
* pMan preferences manager for greasemonkey scripts
* http://userscripts.org/scripts/show/71904
*/
var pMan=function(a){var d=this;d.parentElm=null;d.PMan=function(){if(a.elmId)d.parentElm=document.getElementById(a.elmId);else{var c=document.createElement("div");c.style.width="300px";c.style.position="fixed";c.style.left="50%";c.style.marginLeft="-150px";c.style.top="150px";document.getElementsByTagName("body")[0].appendChild(c);d.parentElm=c}};d._save=function(){for(var c=0;c<a.prefs.length;c++){var b=document.getElementById("pManOption"+c);GM_setValue(a.prefs[c].name,b.value)}return false};d._hide= function(){d.parentElm.style.display="none";return false};d._savehide=function(){d._save();d._hide();return false};d.show=function(){for(var c="<div style='"+(a.bordercolor?"border:1px solid "+a.bordercolor+";":"")+(a.color?"color:"+a.color+";":"")+(a.bgcolor?"background-color:"+a.bgcolor+";":"")+"padding:3px;'><div style='font-weight:bold;text-align:center;padding:3px;'>"+(a.title||"")+"</div>",b=0;b<a.prefs.length;b++){c+="<div title='"+(a.prefs[b].description||"")+"'>"+a.prefs[b].name+" <select id='pManOption"+ b+"'>";for(var e=0;e<a.prefs[b].opts.length;e++)c+="<option value='"+(a.prefs[b].vals?a.prefs[b].vals[e]:a.prefs[b].opts[e])+"'>"+a.prefs[b].opts[e]+"</option>";c+="</select></div>"}c+="<div style='text-align:right'><a href='#' id='pManButtonCancel'>Cancel</a> <a href='#' id='pManButtonSave'>Save</a></div></div>";d.parentElm.innerHTML=c;document.getElementById("pManButtonCancel").addEventListener("click",d._hide,true);document.getElementById("pManButtonSave").addEventListener("click",d._savehide, true);for(b=0;b<a.prefs.length;b++)document.getElementById("pManOption"+b).value=d.getVal(a.prefs[b].name);d.parentElm.style.display=""};d.getVal=function(c){for(var b=0;b<a.prefs.length;b++)if(a.prefs[b].name==c)return a.prefs[b].vals?GM_getValue(a.prefs[b].name,a.prefs[b].vals[a.prefs[b].defaultVal]):GM_getValue(a.prefs[b].name,a.prefs[b].opts[a.prefs[b].defaultVal]);return"pref default doesnt exist"};d.PMan()};

var prefloc = document.createElement("div");
var views = document.getElementById('watch-ratings-views');
if(! views) {
views = document.getElementById('watch7-views-info');
if(!views) {
views = document.getElementById('playnav-video-details');
}
}
prefloc.style.width = "300px";
prefloc.style.margin = "auto";
prefloc.id = "ywofpreferences";
views.parentNode.insertBefore(prefloc,views);

var prefMan = new pMan({
title:"Youtube HTML5 Converter Preferences",
color:"black",
bgcolor:"white",
bordercolor:"black",
prefs:[
{
name:"Default Quality",
description:"If the default quality is not available the next best quality video will be played",
opts:[ getFormatName(5),getFormatName(34),getFormatName(35),
getFormatName(18),getFormatName(22),getFormatName(37),getFormatName(38),
getFormatName(43),getFormatName(44),getFormatName(45),
getFormatName(17),
"Flash"
],
vals:["5","34","35","18","22","37","38","43","44","45","17","Flash"],
defaultVal:3
},{
name:"Autoplay",
description:"",
opts:["On","Off"],
vals:["true","false"],
defaultVal:0
},{
name:"Player Size",
description:"The size of the player",
opts:["small","big"],
defaultVal:0
}
],
elmId:"ywofpreferences"
});

/*
* Players
* The default is the generic player that should work with whatever
* plugin is installed.
* All should have the following:
*
* string name
*
* string desctiption
*
* function init
* arguments: (none)
* returns "this" player object
*
* function writePlayer
* arguments: (string) id of the parent element to fill with player
* (string) video url
* (string) autoplay (true or false)
* (string) width (number and 'px')
* (string) height (number and 'px')
* returns: none
*
* function seek
* arguments: (int) time to seek to in seconds
* returns: none
* (If this doesnt work just use an empty function anyway.)
*/

var playersAvailable = [{
name:"HTML5 Player",
description:"HTML5 Builtin player",
init:function() {
return this;
},
writePlayer:function(parentDivId, url, autoplay, width, height) {
var parentDiv = document.getElementById(parentDivId);
parentDiv.style.height = parseInt(height)+'px';
var s_autoplay = autoplay ? "autoplay" : "";
parentDiv.innerHTML = '<video src="' + url + '" width="' + parseInt(width) + '" height="' + parseInt(height) + '"' + s_autoplay + ' controls></video>';
},
seek:function(seconds) {
// should get added someday
}
}];

// Add css for links.
// This is probably the best way to make text look like links, using the
// normal ways wont work in GM because there is nowhere to put
// "return false;" in the link.
addGlobalStyle(".link{color:#0033CC;}" +
".link:hover{cursor: pointer; text-decoration:underline;}");

var defaultQuality = prefMan.getVal("Default Quality");
var playerDiv = document.getElementById("watch-player-div");
if(! playerDiv) {
playerDiv = document.getElementById("watch7-player");
if(!playerDiv) {
playerDiv = document.getElementById("playnav-player");
}
}

var playerDivLoad = playerDiv.innerHTML; // For restoring flash.
var activePlayer = playersAvailable[0].init();


var flashvars = player.getAttribute("flashvars");
var ampSplit = flashvars.split("&");

for(var i = 0; i < ampSplit.length; i++) {
var eqSplit = ampSplit[i].split("=");
args[eqSplit[0]] = eqSplit[1];
}

var urlsAvailable = new Array();
var formatsAvailable = new Array();

var formatmap = decodeURIComponent(args['fmt_list']).split(",");
console.warn("Available YouTube Formats:");
for(var i = 0; i < formatmap.length; i++) {
formatsAvailable[i] = formatmap[i].split('/')[0];
console.warn(formatsAvailable[i]);
}

var urlmap = decodeURIComponent(args['url_encoded_fmt_stream_map']).split(",");
console.warn("Available YouTube URL:");
for(var i = 0; i < urlmap.length; i++) {
var zztmp = "";
var url = urlmap[i];
url = decodeURIComponent(url);
url = url.replace("url=", "").replace("sig=", "signature=");
if (url.indexOf("http") != -1) {
zztmp = url.split("&");
url = "";
for (var j = 0; j < zztmp.length; j ++) {
if (/^(type)/.test(zztmp[j])) {
} else {
if (/^(http)/.test(zztmp[j])) {
url = zztmp[j] + url;
} else {
url = url + "&" + zztmp[j];
}
}
}

pattern = /itag=([0-9]+)/ig;
matches = url.match(pattern);
itag = matches[0].replace(pattern, "$1");
url = encodeURI(url);
url = url.replace(/%5Cu0026/ig, "&");
url = url.replace(/%252C/ig, ",");
url = url.replace(/\&itag=[0-9]+/ig, "");
url = url + "&itag=" + itag;
url = url + "&title=" + title;
urlsAvailable[i] = url;
console.warn(urlsAvailable[i]);
}
}

if(defaultQuality != "flash") {
// If they don't want flash clear it asap so it doesn't start autoplaying.
playerDiv.innerHTML = "";
}

// Rewrite time links function it is our function instead
// unsafeWindow.yt.www.watch.player.seekTo = activePlayer.seek;

var baseDiv = document.getElementById('baseDiv');

function writePlayer(quality) {
// If we use the regular video URL in the media player, the video sometimes
// won't start. Adding '&begin=0' to the video URL seems to fix the problem.
var playerSize = prefMan.getVal("Player Size");
var watchVideo = document.getElementById("watch-video");
var contentDiv = document.getElementById("content");

if(playerSize === "big") {
if(baseDiv) {
baseDiv.setAttribute("class", baseDiv.getAttribute('class') + " watch-wide-mode");
}
if(watchVideo) {
watchVideo.setAttribute("class", watchVideo.getAttribute("class") + " wide");
}
if(contentDiv) {
contentDiv.setAttribute("class", contentDiv.getAttribute("class") + " watch-wide");
}
}
else {
if(baseDiv) {
baseDiv.setAttribute("class", "");
}
if(watchVideo) {
watchVideo.setAttribute("class", "");
}
if(contentDiv) {
contentDiv.setAttribute("class", "");
}
}
var width = (playerSize === "big") ? "960px" : "640px";
var height = (playerSize === "big") ? "505px" : "388px";

var qualityId = -1;
for(i = 0; i<formatsAvailable.length; i++)
{
if(formatsAvailable[i] == quality)
{
qualityId = i;
break;
}
}

activePlayer.writePlayer(playerDiv.id,
urlsAvailable[qualityId],
prefMan.getVal("Autoplay"),
width,
height);
}

function restoreFlash() {
playerDiv.innerHTML = playerDivLoad;
}

var haveFlash;
var noplayerDiv = document.getElementById("watch-noplayer-div");
if(noplayerDiv == null) {
haveFlash = true;
}
else {
haveFlash = false;
}


var linkbar = document.createElement("div");
var linkViewFlash = "";
var linkViewPreferences = "";
var downloadLinks = "";
var playLinks = "";

for(var i = 0; i < formatsAvailable.length; i++) {
if(typeof(urlsAvailable[i]) != "undefined") {
downloadLinks += '| <a href="' + urlsAvailable[i] + '&begin=0">' +
formatsAvailable[i].toString() + '</a> ';

playLinks += '| <a href="' + urlsAvailable[i] + '%begin=0">' +
formatsAvailable[i].toString() + '</a> ';
}
}

if(haveFlash) {
linkViewFlash = ' ♦ <a class="link" id="restoreFlash">View Flash</a>';
}

linkViewPreferences = '<a class="link" id="preferencesLink">Preferences</a>';
linkbar.innerHTML = '<div id="dlbar" style="padding-top: 8px;">'
+ 'Download '
+ downloadLinks
+ ' ♦ View without Flash '
+ playLinks
+ linkViewFlash
+ '<div style="float:right;">' + linkViewPreferences + '</div>'
+ '</div>';

views.parentNode.insertBefore(linkbar,views);

for(var i = 0; i < formatsAvailable.length; i++) {
if(typeof(urlsAvailable[i]) != "undefined") {
var playLink = document.getElementById('play' + formatsAvailable[i]);
var writePlayerFunction = function(qual) {
return function (event) {
writePlayer(qual);
};
};
playLink.addEventListener("click", writePlayerFunction(formatsAvailable[i]), true);
}
}

if(haveFlash) {
var restoreFlashLink = document.getElementById('restoreFlash');
restoreFlashLink.addEventListener("click", restoreFlash, true);
}

var preferencesLink = document.getElementById('preferencesLink');
preferencesLink.addEventListener("click", prefMan.show, true);


// Finally, write the player, if the desired format is not available we
// keep going down in quality until we find one.

if(defaultQuality != "flash") {

var defaultQualityId = -1;

for(i = 0; i < formatsAvailable.length; i++)
{
if(formatsAvailable[i] == parseInt(defaultQuality))
{
defaultQualityId = i;
break;
}
}

if(defaultQualityId < 0)
format = 18; // Try to force it anyway
else
format = formatsAvailable[defaultQualityId];

writePlayer(format);
}

//alert("Your default quality is set to " + defaultQuality + " and I am playing " + formatsAvailable[defaultQualityId]);

//playerDiv.children[0].webkitEnterFullScreen();

// Make sure we remove explicitely the HTMLMediaElement, since it can be leaked in some cases
function pageUnloaded()
{
playerDiv.removeChild(playerDiv.firstChild);
}

window.addEventListener("unload", pageUnloaded, false);

}

if(/Chrome/.test(navigator.userAgent)) {
var script = document.createElement("script");
script.type = "application/javascript";
script.textContent = "(" + runScript + ")();";
document.body.appendChild(script);
} else {
runScript();
}

} // endif(player)

Posted on: 2013/1/1 15:38

Edited by amigamaniac on 2013/1/1 17:18:30
Edited by amigamaniac on 2013/1/2 1:29:13
Transfer the post to other applications Transfer


Re: Feedback on 20.12.12 nightly

Joined:
2011/9/17 15:53
From St.Petersburg
Group:
Member
Posts: 157
Offline
Thanks! Works for me (haven't tested stability yet). Has some speed increase in Cube2 (about additional 4-7 fps in the Venice map)

added: Nexuiz works fine now, without problems with mouse pointer.

Posted on: 2013/1/1 12:46

Edited by amigamaniac on 2013/1/1 13:27:44
Transfer the post to other applications Transfer


Re: Our OWB and YouTube.js from dec 23

Joined:
2011/9/17 15:53
From St.Petersburg
Group:
Member
Posts: 157
Offline
Well, tested it again, and for me it only lets to download files now. Maybe the russian YouTube was changed later:)

Can anything be done with it, it woud be great to have the ability to watch YouTube back again?

Posted on: 2012/12/30 17:55
Transfer the post to other applications Transfer


Re: Feedback on 20.12.12 nightly

Joined:
2011/9/17 15:53
From St.Petersburg
Group:
Member
Posts: 157
Offline
Well. Hope, it helps, with Phlippe game (which before worked PERFECT) I got a recoverable alert

Error: 0x0100000F
PC: 0x0135C62E
Module Kickstart ELF Segment 1.text (0x0135400) offset 0x0000862E
Function Exec_FreePooled (0x0135C600) offset 0x0000002E

Posted on: 2012/12/30 17:12
Transfer the post to other applications Transfer


Re: Feedback on 20.12.12 nightly

Joined:
2011/9/17 15:53
From St.Petersburg
Group:
Member
Posts: 157
Offline
Right after clicking PLAY, It gets the error:

Error 0x8100000E
PC: 0x01357C1A
Module Kickstart ELF Segment 1.text (0x01354000) offset 0x00003C1A
Function Kernel_KrnSwitch (0x1357c10) offset 0x00000000A

Posted on: 2012/12/30 16:34
Transfer the post to other applications Transfer


Re: Feedback on 20.12.12 nightly

Joined:
2011/9/17 15:53
From St.Petersburg
Group:
Member
Posts: 157
Offline
Well, wormux stopped working at all, because of stack problems. It worked buggy before, but doesn't work now. I'll try to test it more from the cold boot.

Posted on: 2012/12/30 16:24
Transfer the post to other applications Transfer


Re: Feedback on 20.12.12 nightly

Joined:
2011/9/17 15:53
From St.Petersburg
Group:
Member
Posts: 157
Offline
Tested with nvidia G73 (G-Force 7600GT), XFX Pine Group Inc, AsRock G41-VS motherboard.

By the way, testing games I discovered, that Megaglest became: 1. more stack-hungry (at least, adding some stack led it to start, if being started for the first time), 2. buggy. If to start it and then to exit, it even doesn't start any more untill reboot...

Posted on: 2012/12/30 16:05
Transfer the post to other applications Transfer



 Top
(1) 2 3 4 ... 16 »




Search
Top Posters
1 paolone
paolone
4434
2 magorium
magorium
4095
3 nikolaos
nikolaos
4028
4 phoenixkonsole
phoenixkonsole
3929
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2796
7 mazze
mazze
2221
8 clusteruk
clusteruk
2112
9 damocles
damocles
1789
10 BSzili
BSzili
1513
© 2004-2018 AROS Exec