I need help developing a new site (1 Viewer)

Dj_Moren

Portal Pro
November 7, 2009
171
25
Hello, i'm back with new problems... Not sure if i this goes here... if not, please move it to codecs section.

I'll try to explain a little bit deep.

The problem is that i can't play "well" some .mp4 directly from online videos site utils, but if i download them with onlinevideos downloader i am able to play them. I say "well" because some play ok first 2 minutes for example and then start stuttering video and audio, some doesn't show any image but the audio works, but the same, after a little time the audio (in this case there is no image) starts stuttering. This is happening to me with last videos from mitele (new site i added today) and from some antena 3 site. If i try to play old videos from this sites they work well, no problem. I have been watching logs and aparently they are simmilar, the difference is in the aspect ratio. 2 examples:

This works in mitele:
Code:
2012-10-07 00:28:53.121896 [Debug][MPMain(1)]: VideoPlayer: FoundStreams: Type=Video; Name=V: English [eng] (h264 high L3.0, yuv420p, 848x480, 1105 kb/s), Filter=MediaPortal Url Source Splitter, Id=0, PDWGroup=0, LCID=1033
2012-10-07 00:28:53.122896 [Debug][MPMain(1)]: VideoPlayer: FoundStreams: Type=Audio; Name=A: SoundHandler [eng] (aac, 44100 Hz, stereo, 63 kb/s), Filter=MediaPortal Url Source Splitter, Id=1, PDWGroup=1, LCID=1033

This plays only sound and after 30 seconds more or less it starts stuttering (also from mitele):
Code:
2012-10-07 00:30:57.293999 [Debug][MPMain(1)]: VideoPlayer: FoundStreams: Type=Video; Name=V: Mainconcept MP4 Video Media Handler [eng] (h264 main L3.0, yuv420p, 720x404, 1095 kb/s), Filter=MediaPortal Url Source Splitter, Id=0, PDWGroup=0, LCID=1033
2012-10-07 00:30:57.293999 [Debug][MPMain(1)]: VideoPlayer: FoundStreams: Type=Audio; Name=A: Mainconcept MP4 Sound Media Handler [eng] (aac, 44100 Hz, stereo, 93 kb/s), Filter=MediaPortal Url Source Splitter, Id=1, PDWGroup=1, LCID=1033

The difference apparently is that first one is 848x480 and the second is 720x404.

Another example, this from antena3. This works:
Code:
2012-10-07 00:45:30.521944 [Debug][MPMain(1)]: VideoPlayer: FoundStreams: Type=Video; Name=V: h264 main L3.0, yuv420p, 848x480, 702 kb/s, Filter=MediaPortal Url Source Splitter, Id=0, PDWGroup=0, LCID=0
2012-10-07 00:45:30.522944 [Debug][MPMain(1)]: VideoPlayer: FoundStreams: Type=Audio; Name=A: aac, 22050 Hz, stereo, 48 kb/s, Filter=MediaPortal Url Source Splitter, Id=1, PDWGroup=1, LCID=0

And this from antena3 plays about 1 minute and a half and then starts stuttering a lot:
Code:
2012-10-07 00:48:16.202421 [Debug][MPMain(1)]: VideoPlayer: FoundStreams: Type=Video; Name=V: h264 high L3.0, yuv420p, 640x368, 863 kb/s, Filter=MediaPortal Url Source Splitter, Id=0, PDWGroup=0, LCID=0
2012-10-07 00:48:16.203421 [Debug][MPMain(1)]: VideoPlayer: FoundStreams: Type=Audio; Name=A: SoundHandler (aac, 44100 Hz, stereo, 93 kb/s), Filter=MediaPortal Url Source Splitter, Id=1, PDWGroup=1, LCID=0

Again, the difference i can see is the first one has 848x480 and the second 640x368.

As said, if i download this videos with the onlinevideos download funcion i can play them without any problem.

Here are the diferences of playing online a video or once downloaded:

- online:


- downloaded:


As i can see, it does the same, so i don't understand what could be the difference.

I have installed only SAF 6, not LAVfilters wich come with onlinevideos. I have dynamic refresh rate activated, but i think that this is not doing anything here...

I have my system configured to work with LAV filters:



If i do the test wich comes with onlinevideos i see that mp4 uses the defined LAV codec correctly:


I tried a lot of mp4 videos from Youtube and they all worked fine, no problem found.

So here is my problem.... Can anyone test if is able to play som recent videos from mitele and view them about 3 minutes without problems? Same thing form antena 3.

I'm going to put some test to do:

For Mitele site:
- Enter in PROGRAMAS -> 21 DÍAS -> TEMPORADA 4 -> PROGRAMA 30 - 21 DÍAS REALIZANDO TRABAJOS EXTREMOS
In this example i see black screen (no video) and audio starts OK but stutters about minute 0:50

- Enter in PROGRAMAS -> 21 DÍAS -> TEMPORADA 1 -> PROGRAMA 1 - 21 DÍAS ENTRE CARTONES
I can play this with no problem.


For Antena3 site:
- Enter in PROGRAMAS -> KARLOS ARGUIÑANO EN TU COCINA -> 2012 -> OCTUBRE -> KARLOS ARGUIÑANO EN TU COCINA - 5 DE OCTUBRE DE 2012
I play well with video and audio OK but it starts stuttering about minute 2:05

- Enter in PROGRAMAS -> KARLOS ARGUIÑANO EN TU COCINA -> 2010 -> ABRIL -> LA COCINA DE KARLOS ARGUIÑANO - 15 DE ABRIL DE 2012
I can play this video without any problem.

I'll be very pleased hearing a solution... Thank you in advance!
 
Last edited:

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    I played KARLOS ARGUIÑANO EN TU COCINA - 5 DE OCTUBRE DE 2012 and also got stuttering.
    I attached MPUrlSourceSplitter.log from that playback (which you should always for cases when it has problems during playback), so @georgius can take a look it at. From the log it looks like some loop at the end was executed lots of times.
     

    Attachments

    • MPUrlSourceSplitter.zip
      54.8 KB

    Dj_Moren

    Portal Pro
    November 7, 2009
    171
    25
    Sorry, i forgot uploading them, i thought i was forgetting something... :sleep: I attach the MPUrlSourceSplitter.log for Antena 3 KARLOS ARGUIÑANO EN TU COCINA - 5 DE OCTUBRE DE 2012 and for Mitele PROGRAMA 30 - 21 DÍAS REALIZANDO TRABAJOS EXTREMOS. Those logs are played till 5 -10 seconds after stuttering starts
     

    Attachments

    • MPUrlSourceSplitter Antena3.rar
      63.4 KB
    • MPUrlSourceSplitter Mitele.rar
      41.3 KB

    Dj_Moren

    Portal Pro
    November 7, 2009
    171
    25
    New tests... If i put to download a video and i start playing it while it's downloading, i can see it with no problem. It's very strange behaviour.
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    I played KARLOS ARGUIÑANO EN TU COCINA - 5 DE OCTUBRE DE 2012 and also got stuttering.
    I attached MPUrlSourceSplitter.log from that playback (which you should always for cases when it has problems during playback), so @georgius can take a look it at. From the log it looks like some loop at the end was executed lots of times.
    Sorry, i forgot uploading them, i thought i was forgetting something... :sleep: I attach the MPUrlSourceSplitter.log for Antena 3 KARLOS ARGUIÑANO EN TU COCINA - 5 DE OCTUBRE DE 2012 and for Mitele PROGRAMA 30 - 21 DÍAS REALIZANDO TRABAJOS EXTREMOS. Those logs are played till 5 -10 seconds after stuttering starts
    I checked logs, downloaded video and tried as file, result is always same. After while are logged messages about seeking in stream, but it's not affecting performance. It seems that in stream is some garbage or data, which are not necesary for decoding and playing and these data are skipped. I guess that problem is in download speed (unfortunately, this information isn't in logs).
     

    Dj_Moren

    Portal Pro
    November 7, 2009
    171
    25
    Hello, i'm back with 2 new problems.

    1. I have done a new site, EITB alacarta. It uses Brightcove for videos. I tried to use the BrightcoveUtil but i needed to change the method GetResultsFromFindByMediaId. As it is no overrideable, i have copied those methods to my class and change the method i needed. It is not the best solution, but it works. If you change them to overrideable i will change my code. That said, a lot of videos work, but there are another ones that doesn't. It gives me the error (my translate from spanish): "Unable to start playing. Unspecified error". I'm new with Brightcove so i don't know if i'm doing something wrong in those videos... Maibe you can help me. One video that doesn't work is for example: Programas A-Z -> ABC -> Aduriz:hitzen sukaldea -> Sukalde maisuak (Aduriz: La cocina de las palabras).
    If the content is geoblocked tell me and will try to get you an spanish proxy but i don't think it would be geobloked.

    2. The second problem comes wth a site i developed time ago. It is "mitele" site. In this case, when i skip for example 30 minutes forward just wen the video starts (it is just not buffered) it hangs mediaportal. If you play Mitele in a browser, it generates a new token for the video url every skip you do. So the problem i think that is the same here. I need to change that token every user skip is done. Is there any way to implement it? In this case it would work if i could call getUrl with every skip if the content is unbuffered.
    Here i know that there are some contents geoblocked but other ones not. I think this is not geoblocked: Programas -> 21 días -> Temporada 5 -> Programa 36 - 21 días buscando oro

    If you have any problem with the tests or you don't understand my poor english just tell me, i will try to solve it. The code of this sites is in the repository, so you can just download them from OnlineVideos.Sites.Dj_Moren in SiteUtilProjects.

    Thanks in advance!!
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    for the second question, i think you'd better contact georgius, he's the maintainer of the mpurlsourcesplitter. He'll know how to solve it.
    For the first one: I'm away for a week or so, so it may take a while to fully investigate.

    Edit: had a quick peek at your code, and i really think it should be possible to fix this with a regex (whitch matches the number as mediaid). Don't know for sure, you didn't include your config in onlinevideosites.xml
    Edit2: I'm working on it

    As for your english: perfectly understandable!
     
    Last edited:

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    You can do with this
    Code:
    		public override string getUrl(VideoInfo video)
    		{
    			string webdata = GetWebData(video.VideoUrl);
    			Match m = regEx_FileUrl.Match(webdata);
    
    			if (!m.Success)
    				return String.Empty;
    
    			AMFArray renditions = GetResultsFromFindByMediaId(m, video.VideoUrl);
    
    			return FillPlaybackOptions(video, renditions);
    		}
    
    		protected AMFArray GetResultsFromFindByMediaId(Match m, string videoUrl)
    		{
    			AMFSerializer ser = new AMFSerializer();
    			object[] values = new object[4];
    			values[0] = hashValue;
    			values[1] = Convert.ToDouble(playerId);
    			values[2] = Convert.ToDouble(videoUrl.Substring(videoUrl.LastIndexOf("/") + 1));
    			values[3] = Convert.ToDouble(array4);
    			byte[] data = ser.Serialize2("com.brightcove.player.runtime.PlayerMediaFacade.findMediaById", values);
    			AMFObject obj = AMFObject.GetResponse(requestUrl, data);
    			return obj.GetArray("renditions");
    		}
    if you derive your util from brightcove

    About the non-playing ones: I see there are (at least) 2 different sources:
    rtmp://brightcove.fcod.llnwd.net/a500/e1/uds/rtmp/ondemand/&mp4:102076681001/102076681001_986249873001_26930-20110610-122117.mp4&1367784000000&9bdcf33601fa40b0ea32006cc832f24e
    and
    rtmp://cp101675.edgefcs.net/ondemand/&mp4:23/102076681001/201304/1675/102076681001_2331553361001_147262-20130427-102416.mp4?__nn__=1545806548001&slist=23/102076681001/201304/1675/;23/102076681001/201304/3147/;23/102076681001/201304/3299/&auth=daEcWb4cKbBbjadbUboakbLcTb0dhc4aoaT-brHP4G-bWG-GBDo_FEn_AFwE_HmB&aifp=rtmpeuds17

    I think one of those 2 need some further investigation as to why it's not playing. Perhaps it's missing some parameters.
    Best check with rtmpdump (or google your site/rtmpurl with rtmpdump) and see if you can find the right params.
    Then it's probably looping over the playbackoptions after the call to fillplaybackoptions and adding those params.
    Or copy & modify fillplaybackoptions from the brightcoveutil.

    Good luck!
     

    Users who are viewing this thread

    Top Bottom