Bad Video Quality while streaming RTP with vlc
Posted: 04 Sep 2013 10:07
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:
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
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];
Regards,
Sudhish Kapoor