Plugin: MP2Extended (1 Viewer)

pünktchen

Portal Pro
October 26, 2010
537
201
Home Country
Germany Germany
@pünktchen
what exactly is your software? :) Maybe I can install it myself also in a VM [emoji14] This would reduce some work for both of us^^ Unfortunately johan hasn't that option [emoji23] Sorry :cautious:
Emby - former MediaBrowser 3.
But i haven't updated the MediaPortal plugin yet. (startTime instead of starttime...)
 

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I'm an admin on my PC but it failed anyway
    Yes, there is a difference:

    even if the user can be admin, the UAC prevents processes from doing elevated stuff (like impersonation). This works if processes are started with "run as admin" and you confirm the UAC prompt.

    You should be able to achieve this by running Visual Studio itself "as admin" (I used this to debug TVServer long time before)
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    I just had time for a quick test yesterday. Uninstalled and reinstalled. Removed and readded Recordings and series shares. Started a reimport. When I got back after a couple of hours the MP2 client had crached. Restarting server and the MPiV initialization to series and recordings failed. I can post logs later if that is needed? It seems from conversation above that Henso is aware of the issue and its no use to test before its fixed?

    If running the MP2 service as admin user. What credentials should that be, admin on server with shares or laptop with MP2 server? Server with media shares has different password than the admin user on laptop.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    When I got back after a couple of hours the MP2 client had crached. Restarting server and the MPiV initialization to series and recordings failed. I can post logs later if that is needed?
    Logs are very very helpful. So it would be great if you could upload the logs :)

    It seems from conversation above that Henso is aware of the issue and its no use to test before its fixed?

    If running the MP2 service as admin user. What credentials should that be, admin on server with shares or laptop with MP2 server? Server with media shares has different password than the admin user on laptop.
    No you shouldn't do something different. Just install and use it like you did before. The conversation above was about attaching VisualStudio to the MP2 Server and get impersonation to work. Impersonation only works if you are an admin (or System as far as I know a Service runs under the system user, so everything is fine) :)

    In short: To impersonate while the debugger is attached VisualStudio must be started as an admin.

    @pünktchen
    Could you provide the latest build/binaries :sneaky:
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    Hi everyone and sorry for the late answer, I'm currently travelling.
    Morph, there is no such logic as you describe. We always 'impersonate' - no matter whether we are running as service, admin or regular user. The reason is that we don't really 'impersonate'. The local thread identity is not changed. The credentials are only used to access remote resources. Reason for using this way is (a) it also works if the credentials do not exist on the local machine but only on the remote one and (b) this requires the lowest privileges locally, as the local identity doesn't change.
    Reason for not checking whether service, admin or regular user is that the whole thing just requires two windows privileges - and these can be assigned to all kinds of users.
    I remember that I did a very deep analysis about these privileges and wrote it down here in the forum. I also remember that someone mentioned this should go to the wiki, but as usual, there was no time for that...
    I'll post here as soon as I found my analysis...
    Michael
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    @johanj
    I couldn't reproduce your issues :/
    It looks like hensos modifications re working correctly.

    In one of the older builds (installed in a VM) I get:
    [2015-10-31 11:38:00,148] [1312150615] [48 ] [INFO ] - TranscodeMetadataExtractor: Exception reading resource '{03dd2da6-4da8-4d3e-9e55-80e3165729a3}:////MEDIA-PC/MediaPortal/Recordings/Die Medizin der Zukunft - Discovery Channel - 2010-09-26.ts' (Text: '\\MEDIA-PC\MediaPortal\Recordings\Die Medizin der Zukunft - Discovery Channel - 2010-09-26.ts not found')
    [2015-10-31 11:38:23,800] [1312174267] [48 ] [INFO ] - VideoThumbnailer: Successfully created thumbnail for resource '\\MEDIA-PC\MediaPortal\Recordings\Die Medizin der Zukunft - Discovery Channel - 2010-09-26.ts'

    In the latest build I get:
    [2015-10-31 11:17:10,333] [646544 ] [70 ] [DEBUG] - MediaAnalyzer: Successfully ran FFProbe:
    ffprobe version N-75275-gd13a2df Copyright (c) 2007-2015 the FFmpeg developers
    built with gcc 4.9.3 (GCC)
    configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
    libavutil 55. 2.100 / 55. 2.100
    libavcodec 57. 1.100 / 57. 1.100
    libavformat 57. 0.100 / 57. 0.100
    libavdevice 57. 0.100 / 57. 0.100
    libavfilter 6. 3.100 / 6. 3.100
    libswscale 4. 0.100 / 4. 0.100
    libswresample 2. 0.100 / 2. 0.100
    libpostproc 54. 0.100 / 54. 0.100
    [mpegts @ 010c8de0] PES packet size mismatch
    Last message repeated 1 times
    Input #0, mpegts, from '\\MEDIA-PC\MediaPortal\Recordings\Die Medizin der Zukunft - Discovery Channel - 2010-09-26.ts':
    Duration: 00:26:48.95, start: 0.000000, bitrate: 3033 kb/s
    Program 137
    Stream #0:0[0x61](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:1[0x30]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x40](deu): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
    Unsupported codec with id 94215 for input stream 0

    [2015-10-31 11:17:10,339] [646550 ] [70 ] [DEBUG] - MediaAnalyzer: Successfully found MPEG2TS timestamp in transport stream: None
    [2015-10-31 11:18:49,148] [745358 ] [70 ] [INFO ] - VideoThumbnailer: Successfully created thumbnail for resource '\\MEDIA-PC\MediaPortal\Recordings\Die Medizin der Zukunft - Discovery Channel - 2010-09-26.ts'

    So I really don't know where your exceptions are coming from.
    I imported around 480 recordings and only got two exceptions:
    [2015-10-31 11:18:15,244] [711454 ] [67 ] [INFO ] - TranscodeMetadataExtractor: Exception reading resource '{03dd2da6-4da8-4d3e-9e55-80e3165729a3}:////MEDIA-PC/MediaPortal/Recordings/Galileo - ProSieben - 2012-04-11.ts' (Text: 'Object reference not set to an instance of an object.')

    So we really need the log files. For the future: please always upload the log files if something happens ;)

    Edit: I should mention that I used credentials to log on my MediaPc to access the recordings and the MP2 Server run as a Service.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom