Page 1 of 1

Bad Video Quality while streaming RTP with vlc

Posted: 04 Sep 2013 10:07
by kapoorsudhish
Hi All,
I have written an application which does HD streaming using RTP on IPad1, but the quality of video is very bad. I have taken options from VLC player and applied the same on the media object as shown in bellow code:

Code: Select all

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; _mediaPlayer = [[VLCMediaPlayer alloc] initWithOptions:@[[NSString stringWithFormat:@"--%@=%@", kVLCSettingSubtitlesFont, [defaults objectForKey:kVLCSettingSubtitlesFont]], [NSString stringWithFormat:@"--%@=%@", kVLCSettingSubtitlesFontColor, [defaults objectForKey:kVLCSettingSubtitlesFontColor]], [NSString stringWithFormat:@"--%@=%@", kVLCSettingSubtitlesFontSize, [defaults objectForKey:kVLCSettingSubtitlesFontSize]], [NSString stringWithFormat:@"--%@=%@",kVLCSettingDeinterlace,[defaults objectForKey:kVLCSettingDeinterlace]]]]; VLCMedia *media; NSURL *url = [NSURL URLWithString:urlString]; media = [VLCMedia mediaWithURL:url]; [media addOptions:@{kVLCSettingStretchAudio :@(NO), kVLCSettingTextEncoding : kVLCSettingTextEncodingDefaultValue, kVLCSettingSkipLoopFilter : kVLCSettingSkipLoopFilter ,kVLCSettingStretchAudio : kVLCSettingStretchAudioOffValue}]; [_mediaPlayer setDeinterlaceFilter:@"blend"]; [_mediaPlayer setMedia:media]; [_mediaPlayer play];
After trying some options still the quality of video is very bad and the video is blocky and jerky. Can some information be shared as to how can the quality of video be improved??

Regards,
Sudhish Kapoor

Re: Bad Video Quality while streaming RTP with vlc

Posted: 04 Sep 2013 11:19
by fkuehne
Try passing kVLCSettingSkipLoopFilter @(0) - does it help?

Re: Bad Video Quality while streaming RTP with vlc

Posted: 04 Sep 2013 14:52
by kapoorsudhish
Thanks for the response Felix, the fix works fine for the static images, but as soon as a moving object is seen, the video becomes blocky and bad (i was unable to upload the picture of the blocky video). Is there some way i can reduce the blocky/jerkiness of the video?? Also is there a way to reduce the initial buffering??

Regards,
Sudhish