View Single Post
Old 2008-05-07, 17:52   #1 (permalink)
iosub
Portal Member
 
Join Date: Apr 2006
Location: San Sebastian
Posts: 377
Thanks: 7
Thanked 14 Times in 10 Posts

My System

fixed UNSUPORTED FIX FOR : 18882 Fixed mantis change .TS detects if open from MyRecordings

Hi
after the fix : 18882 Fixed mantis issue 0001228: MyVideos uses codec configured in Televison for *.ts files witch is ok... There is another bug because of the fix of this bug, now MyRecordings also get the codec information from MyMovies instead that form MyTv..

This create a bad scenario, for example:
I have setup the codecs for MyTv -- Video MScodec and Audio Mscodec.. and also I want the same for myrecordings
I have setup the codecs for MyMovies... Video FFDSHOW and Audio Ac3filter..

With the above fix, my TVrecordings uses FFDSHOW and Ac3filer witch is wrong and I have worse quality on video for my recordings that for my LiveTv...

If you make a diference between MyTv and MyMovies for .TS files you have all the choices, if I open from Myrecordings it should use MyTv codecs.. If I open from MyMovies it should use MyMovies codecs...

Do you think???

Ok, I did the fix myseft this is for Build19127, works as explained
The code change and the bin on the zip
Gex I have change the code this way:

protected bool IsVideoFile(string filename)
{
bool isTimeShiftStream=false;

if (filename.ToLower().StartsWith("rtsp://"))
{
string url=filename.Remove(0,filename.LastIndexOf('/')+1);
isTimeShiftStream=(url.Substring(0, 6) == "stream");
}
if (this._mediaType == g_Player.MediaType.Video)
{
Log.Info("Iosu TsReaderPlayer: IsVideoFile {0} == Video", this._mediaType);
return true;
}
else
{
Log.Info("Iosu TsReaderPlayer: IsVideoFile {0} == Tv or Recording", this._mediaType);
return false;
}

//cambio iosu return (filename.ToLower().IndexOf(".tsbuffer") < 0 && filename.ToLower().IndexOf("radio.tsbuffer") < 0 && !isTimeShiftStream);
Attached Files
File Type: zip Build19127FixMantis0001228.zip (863.9 KB, 45 views)

Last edited by iosub; 2008-05-20 at 18:30.
iosub is offline   Reply With Quote
This User Say Thank You: