UNSUPORTED FIX FOR : 18882 Fixed mantis change .TS detects if open from MyRecordings (1 Viewer)

iosub

Portal Pro
April 26, 2006
573
30
San Sebastian
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);
 

vuego

Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,637
    764
    Göteborg
    Home Country
    Sweden Sweden
    I have the very same problem. I'd like to use different Audio Renderers for My TV/My Recordings and My Videos but it's not possible since build 19010.
     

    vuego

    Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,637
    764
    Göteborg
    Home Country
    Sweden Sweden
    Thanks iosub! It works very well.

    Hopefully this code can make it to the SVN.
     

    damaster

    Portal Pro
    November 23, 2007
    412
    35
    Home Country
    Canada Canada
    Thanks for this fix! I haven't tried it yet but all of my recordings and .ts files are playing back choppy and now I know why: in MyVideos, I use post-processing with ffdshow, which is evidently not possible with TS recordings.

    This definitely needs to get into the next SVN!
     

    vuego

    Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,637
    764
    Göteborg
    Home Country
    Sweden Sweden
    Will this work for 19158 as well?
     

    Users who are viewing this thread

    Top Bottom