Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

I have some problem with video and its representation on youtube. When I upload video which was encoded with MPEG4 or H.264 codec, I get bad quality video after youtube processing.

What is this video. And what is my task. I get source video from Iphone, Ipad, Ipod. Format of this video is - mp4. Then, I decode this video on frames with Java Library - Xuggler. This library is a wrapper of ffmpeg. After some filters on frames, I encode this frames on final video. I use codec MPEG-4 and try H.264, final format - mp4. And this final video is fine. It has the same quality as source video, when I play this video on Windows Media Player. But, when I upload video on youtube, after processing I get video with bad quality.

This is characteristics of source video, after uploading on youtube it doesn't lose quality:

enter image description here

And this is characteristics of final video. It loses quality after youtube processing:

enter image description here

share|improve this question
    
Is the question just, "Why does my video lose quality when I upload to YouTube?" If so, it's because YouTube isn't in the business of providing high quality video - it provides vast amounts of streaming video, so you should expect a lot of compression, and probably transcoding. –  Dr Mayhem Feb 17 at 0:14
add comment

2 Answers 2

up vote 1 down vote accepted

I'm going to repost a section of my answer from this question, as it seems generally relevant:

YouTube (as well as Vimeo, and practically every other video website nowadays) works using the H.264 codec. Here are YouTube's instructions for how they'd like videos to be encoded for upload.

The TL;DR version of that page:

  • Container: .mp4
  • Audio Codec: AAC-LC
  • Video Codec: H.264

When you upload the incorrect codec - like AVC-HD you are using above, YouTube has to re-encode your video, resulting in the loss of quality and contrast you have been experiencing.

share|improve this answer
    
From my experience, they re-encode always. –  feklee Apr 20 at 15:49
add comment

This is just a result of the compression that Youtube chooses to apply. Your initial data rate for the video (3.5 megabits for an SD video) is exceptionally high and not really designed for streaming. Youtube probably sees that it is only an SD stream and then drops the bit-rate accordingly.

It may not be possible to get better quality since Youtube's system decides what compression settings to apply for their transcode, however you could try submitting videos which match with Youtube's suggested transcode settings and that might help.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.