YouTube上传质量 [英] Youtube Upload Quality

查看:70
本文介绍了YouTube上传质量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google的GData API,以便从我的应用将视频上传到youtube.上传效果很好,但是上传的视频质量仅为360p,而原始视频的质量为720p.

I am using google's GData API in order to upload a video to youtube from my app. The upload works fine however the quality of the video uploaded is only 360p whereas the quality of the original video is 720p.

这是否按预期工作?如果可以,这种视频压缩是否有办法让我的应用上传HQ电影?

Is this working as intended? If so is there any way around this video compression that will allow my app to upload HQ movies?

这是我用来实现视频上传的代码,如果有帮助的话.

Here's the code I'm using to achieve the video upload if that's any help.

GDataYouTubeMediaGroup *mediaGroup = [GDataYouTubeMediaGroup mediaGroup];
[mediaGroup setMediaTitle:title];
[mediaGroup setMediaDescription:desc];
[mediaGroup addMediaCategory:category]; 
[mediaGroup setMediaKeywords:keywords];
[mediaGroup setIsPrivate:NO];

NSString *mimeType = [GDataUtilities MIMETypeForFileAtPath:outputURL.relativePath defaultMIMEType:@"video/quicktime"];

GDataEntryYouTubeUpload *entry;
entry = [GDataEntryYouTubeUpload uploadEntryWithMediaGroup:mediaGroup data:data MIMEType:mimeType slug:filename];

SEL progressSel = @selector(ticket:hasDeliveredByteCount:ofTotalByteCount:);
[service setServiceUploadProgressSelector:progressSel];

GDataServiceTicket *ticket;
ticket = [service fetchEntryByInsertingEntry:entry forFeedURL:url delegate:self didFinishSelector:@selector(uploadTicket:finishedWithEntry:error:)];

布伦顿

推荐答案

YouTube转码管道仅查看视频文件本身,以确定是否应生成视频的HQ/HD版本.在gdata API调用中传递的内容无关紧要.

The YouTube transcoding pipeline only looks at the video file itself to determine whether HQ/HD versions of a video should be generated. It doesn't matter what you pass along with it in the gdata API call.

代码转换管道寻找的内容包括视频大小以及平均比特率.例如,比特率非常低的720p视频可能不符合HD甚至HQ编码的条件.有时,错误编码的视频可能会导致其转码器解释错误的视频大小或比特率,因此请确保您的视频编码器没有做任何奇怪的事情.

Things that the transcoding pipeline looks for include the video size as well as the average bit rate. A 720p video with a very low bit rate, for example, may not qualify for an HD or even an HQ encode. Sometimes an incorrectly encoded video may cause the wrong video size or bit rate to be interpreted by their transcoder, so make sure that your video encoder isn't doing anything strange.

这篇关于YouTube上传质量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆