Plugin: MP2Extended (2 Viewers)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    If I tell ffmpeg that input format is image2pipe it seems to work.
    That is strange :D does it also work with ffprobe? Just curious^^

    I can see that part of the code is used for analyzing Url's. How did it end up there when extracting a subtitle?
    According from the callstack it comes from here: AddTargetVideoFormatAndOutputFileParameters to InitTranscodingParameters and finally to AddInputOptions.

    I don't know if data.InputResourceAccessor.ParentProvider.Metadata.NetworkResource is also true for files on a network share.
    But maybe you could use save casts:
    var someName = data.InputResourceAccessor as INetworkResourceAccessor;
    if (someName != null) {
    if ((someName .URL.StartsWith("rtsp://", StringComparison.InvariantCultureIgnoreCase))
    {
    data.GlobalArguments.Add("-rtsp_transport +tcp+udp");
    data.GlobalArguments.Add("-analyzeduration 10000000");
    }
    }else{
    // some debug logging to figure out whats wrong
    }
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    Added latest MPExt from above.

    I tried adding a local movie and now streaming starts but I have some issues. No sound(tried the same movie with MPExt and then I had sound). Tried both low and high quality ios profiles. I couldn't seek using the MPExt way with stop stream and continue at another duration. Seeking with the inbuild player where one seeks within the already transcoded duration and it works fine. When stopping the stream it didn't end the transcoding process so I had to kill it manually.

    Logs attached
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    I pushed some fixes for the issues.
    Thank you very much! I made a small adjustment which was suggested by Resharper. Attached are the new TranscodingService and MP2Ext.

    @johanj
    This shoudl hopefully fix your image and subtitle issues :)

    I tried adding a local movie and now streaming starts but I have some issues. No sound(tried the same movie with MPExt and then I had sound).
    You didn't add the audioId. I than set the variables to "-1". I guess that is the problem and it needs to be 1 or 0?! I need to check that.^^

    I couldn't seek using the MPExt way with stop stream and continue at another duration.
    I think this is not supported yet.

    Seeking with the inbuild player where one seeks within the already transcoded duration and it works fine. When stopping the stream it didn't end the transcoding process so I had to kill it manually.
    Henso did a nice job here :)
    I think it is intended to keep the transcoding running to have it in the cache for the future. Maybe there should be an option to prevent this in case somebody doesn't like this?! What do you think @henso ?
     

    Attachments

    • Plugins.rar
      1.9 MB

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    No, the audio id was 0, see attached. I don't want the service to continue transcoding if I tell it to stop transcoding:whistle:
     

    Attachments

    • image.png
      image.png
      1.7 MB

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    No, the audio id was 0, see attached.
    I will check it tomorrow. I thought I was looking at the URL, but maybe I just overlooked it. Almost Bedtime :ROFLMAO:

    I also will fix some more issues I found in your logs and provide a new build tomorrow. These little errors are so tricky :/
     

    pünktchen

    Portal Pro
    October 26, 2010
    537
    201
    Home Country
    Germany Germany
    Where do i have to put tv station logos if i don't have installed the MP2 client?
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    832
    Home Country
    Denmark Denmark
    Maybe there should be an option to prevent this in case somebody doesn't like this?!
    There already is. The UseCache option in the TranscodingServiceSettings config file. :cool:

    I guess that is the problem and it needs to be 1 or 0?!
    IIRC the stream ID for audio is usually 1 because the video is usually the first stream.

    I couldn't seek using the MPExt way with stop stream and continue at another duration.
    I don't remember if I tested this. I will try with aMPdroid. BTW does the free version of MPiV support streaming?

    I don't want the service to continue transcoding if I tell it to stop transcoding
    Technically I think you tell it to stop streaming. ;)
     

    Users who are viewing this thread

    Top Bottom