Playing recorded TV in external player (mpc-hc) (1 Viewer)

TLD

Portal Pro
October 26, 2007
934
384
Rainy Washington
Home Country
United States of America United States of America
I see from another thread that MP is coded not to play .ts files with an external player, does anyone know if there is there any way to work around this and trick MP to play recorded TV in mpc-hc.
 

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    MP used to play video files in external player if setup to do that regardless of extension (as long as .ts was listed under recognised extensions), this was a couple of years ago so maybe it has changed. Have you tried this recently?
     
    Last edited:

    TLD

    Portal Pro
    October 26, 2007
    934
    384
    Rainy Washington
    Home Country
    United States of America United States of America
    MP used to play video files in external player if setup to do that regardless of extension (as long as .ts was listed under recognised extensions), this was a couple of years ago so maybe it has changed. Have you tried this recently?

    Yes, I have mpc-hc set up and working with other file types as the external player but when i play a .ts file in the Myvideos plugin it plays in the internal player, even though .ts is listed under recognized extensions for the external player to play.
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    I'm guessing you are doing this so you can use BOINC to detect the MPC-HC process. I suggest you just rename .ts files to .mp4 you could even write a simple script to do this.
     

    TLD

    Portal Pro
    October 26, 2007
    934
    384
    Rainy Washington
    Home Country
    United States of America United States of America
    I'm guessing you are doing this so you can use BOINC to detect the MPC-HC process. I suggest you just rename .ts files to .mp4 you could even write a simple script to do this.

    Yes your right but i have no experience with scripts is there a way to automatically convert .ts to .mp4 after they are recorded with a script?
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Code:
    set "Filename=%*"
    set Filename=%Filename:~0,-3%
    ren "%filename%.ts" "*.mp4"

    save above as c:\renamerecording.bat

    goto tvserver config
    enable comskip launcher plugin

    set when to launch:
    recording end

    set program:
    c:\renamerecording.bat

    set parameters:
    {0}

    Then run a test to see if it renames the file successfully.
     
    Last edited:

    TLD

    Portal Pro
    October 26, 2007
    934
    384
    Rainy Washington
    Home Country
    United States of America United States of America
    First i want to thank you for writing a script for me.
    my recording folder is R:\TV RECORDINGS so i changed the script accordingly. I hope it is correct.


    md "R:\TV RECORDINGS\"
    xcopy /s /y "R:\TV RECORDINGS\*.ts" R:\TV RECORDINGS\*.mp4"
    del /s /q "C:\tv recordings\*.ts"
    xcopy /s /y "R:\TV RECORDINGS\*.mp4" "R:\TV RECORDINGS\*.mp4"
    rd "R:\TV RECORDINGS" /s /q

    I am using comskip at the present time though it probably won't work after these changes will it?
    I can run this with windows task scheduler can't i or would that cause a problem if a recording was in progress?
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    No please don't use that first script I made it better
    also the way you changed the script would make it delete your entire tv recording folder, because you left out the temp directory.

    you can use both comskip and filerename just change to the following

    Code:
    call "c:\comskip\comskip.exe -t %*"
    ren "%*" "*.mp4"

    if it doesn't work change to
    Code:
    c:\comskip\comskip.exe -t "%*"
    ren "%*" "*.mp4"

    I made the file shorter as I just released the string manipulation is not needed.
     
    Last edited:

    TLD

    Portal Pro
    October 26, 2007
    934
    384
    Rainy Washington
    Home Country
    United States of America United States of America
    Just so i have this straight i use this script:

    call "c:\comskip\comskip.exe -t %*"
    set "Filename=%*"
    set Filename=%Filename:~0,-3%
    ren "%filename%.ts" "*.mp4"

    in a .bat file

    Then call the .bat file with the comskip launcher?
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    yes you can do that and it should work
    assuming your comskip.exe is located in c:\comskip\[DOUBLEPOST=1354948001][/DOUBLEPOST]ps. does mpc-hc even support comskip chapters ?
     
    Last edited:

    Users who are viewing this thread

    Similar threads

    Hi, I'm wish to be able to watch the recorded TV (*.ts) files on my Sony Bravia Android TV but cannot. The default media player app does not support the file type. So I installed VLC. VLC does read the ts files but the TV's remote does not allow to control basic VLC functions like FF or FR or pause etc... Tried 1-2 other apps, even...
    Hi, I'm wish to be able to watch the recorded TV (*.ts) files on my Sony Bravia Android TV but cannot. The default media player...
    Hi, I'm wish to be able to watch the recorded TV (*.ts) files on my Sony Bravia Android TV but cannot. The default media player...
    Replies
    0
    Views
    431
    Hi, First off: there are some issues with the latest Mediaportal (32bits vs 64bits), so that is one of the issues you're stumbling with. If you take the previous version (1.31) it should work as expected. For IPTV there is also a different option (with different pros and cons): Onlinevideos. I'm using that sometimes for my IPTV as...
    Hi, First off: there are some issues with the latest Mediaportal (32bits vs 64bits), so that is one of the issues you're stumbling...
    Hi I am trying to play a m3u file from my IPTV provider, but when I try to install the TV part of Media Portal v1.3.2 I get an...
    Replies
    1
    Views
    471
    I have looked at your log files, but as usual they are unintelligible gobbledegook. (I am sure that the original developers who wrote that code know what the log entries mean, but those developers have long since retired from the MP team.) I regret to say that I think that you will have to use the "brute force" method to track down...
    I have looked at your log files, but as usual they are unintelligible gobbledegook. (I am sure that the original developers who...
    Sometimes when displaying the OSD whilst playing a recorded TV show the video freezes and the sound continues for about 30 seconds...
    Replies
    1
    Views
    581
    @CyberSimian As I have just posted in the MP2 subforum I will stay with MP1 for the time being. Many thanks for all your very informative and detailed responses. I will take your advice and monitor the Scheduled recordings list for the discrepancies you have described. Cheers.
    @CyberSimian As I have just posted in the MP2 subforum I will stay with MP1 for the time being. Many thanks for all your very...
    I am in Australia. My problem is with recorded tv programs. Most times the program title and info are correct but quite often the...
    Replies
    36
    Views
    3K
    Hello MP Team, I have issues with mounting .iso files. Two seconds after mounting .iso and starting external player, the iso is unmounted again by MP and therefore doesnt show up in the drive any longer. Example: [2023-10-16 18:43:04,367] [Log ] [MPMain ] [INFO ] - Start process C:\Program Files (x86)\Elaborate...
    Hello MP Team, I have issues with mounting .iso files. Two seconds after mounting .iso and starting external player, the iso is...
    Hello MP Team, I have issues with mounting .iso files. Two seconds after mounting .iso and starting external player, the iso is...
    Replies
    0
    Views
    523
    Top Bottom