Aller au contenu

Photo

Codec help for Youtube


  • Ce sujet est fermé Ce sujet est fermé
12 réponses à ce sujet

#1
Tlazolteotl

Tlazolteotl
  • Members
  • 1 824 messages
This may be off-topic for the forum, but I'm trying to get input for uploading ME2 videos to youtube, so I guess it's valid ...
Youtube is no help, by the way .. their tech forum has multiple reports of the same problem I have, but no real solutions.

I've been using H.264 for all videos I make (not for youtube), and I like the quality ... better than XviD at about 3/4 the bitrate, anyhow.
The problem is, the x264 open source encoder, along with AAC audio, apparently has some compatibility issues with youtube, and the video length and/or framerate is being misunderstood by their transcoder.

So ... does anyone know of an optimum format for uploading?

I'm reluctant to use anything but H.264 for video, but anything else is an option.

Currently, I'm testing H.264 + MP3 (CBR) in a Matroska container.
Apparently, the issue at hand has to do with VBR audio, so I'm switching that around to see if it helps.

#2
BeresaadSoldier

BeresaadSoldier
  • Members
  • 169 messages

Tlazolteotl wrote...
The problem is, the x264 open source encoder, along with AAC audio, apparently has some compatibility issues with youtube, and the video length and/or framerate is being misunderstood by their transcoder.


Where'd you get this info from? I use Sony Vegas' built in h264 encoder and my uploads seem fine. I render in very high bit rate though - like 8 - 10 mbps.

#3
Tlazolteotl

Tlazolteotl
  • Members
  • 1 824 messages
From youtube forums. The issue isn't with H.264 itself, because that is propriety.

The problem is with the x264 open source clone.

I'm using dated software ... Premiere CS3, it doesn't have H.264 support.

#4
BeresaadSoldier

BeresaadSoldier
  • Members
  • 169 messages
You could perhaps encode in a different file format and then convert to h264 using free software? Just a suggestion, don't know if it will help.

#5
Tlazolteotl

Tlazolteotl
  • Members
  • 1 824 messages
I'm already doing that.

Which is why I'm using x264, 'cos everything that uses H.264 costs at least a few hundred dollars.


#6
Tlazolteotl

Tlazolteotl
  • Members
  • 1 824 messages
Update:

One video that had previously failed with x264+AAC (in MP4 container), just succeeded with x264+MP3 (in MKV container).

Will keep using matroska and see if it's reliable.

#7
cruc1al

cruc1al
  • Members
  • 2 570 messages
Youtube help site recommends MPEG-2 for 720p and 1080p videos. Try that?

#8
Tlazolteotl

Tlazolteotl
  • Members
  • 1 824 messages
Hmm ... I had heard the mpeg2 container now supports the H.264 codec, but I'm not so sure about it. Frankly, I'm reluctant to use any other codec due to H.264 simply delivering the best results.

Anyhow, matroska seems to be working, although I can't be sure.

I have had the "video too long" bug 6 times out of 100 or so videos, and 3 successful matroska videos are too small a sample size to judge.


#9
cruc1al

cruc1al
  • Members
  • 2 570 messages
Some of my early videos are encoded in 7000kpbs WMV9... I switchd to MPEG-2 because youtube recommended it, but I'm probably switching back to WMV9 because it has such a great compression quality. Simply put I get the same quality videos for half the file size. If u can't get h264 working for you, I'd recommend WMV9 over MPEG2.

#10
Tlazolteotl

Tlazolteotl
  • Members
  • 1 824 messages
I've used WMV9 before .. back when I was experimenting with transcoding.
Maybe it was my settings, but I found XviD at the same bitrate seemed to deliver better quality. I didn't have DivX, so I couldn't compare them with that though.

But .. soon as I tried H.264, I couldn't believe my eyes. The quality it delivers is simply phenomenal .. the videos have no blurring effect at all.

I uploaded all my dark messiah videos using H.264 + AAC without any problems (although their bitrate was only about 3500, so they were hardly crystal clear) .. the video too long error seems to be a relatively recent thing with youtube's transcoder.
I.e. all the "failed" videos I made can be watched just fine on my PC.

Dark Messiah chapter 2 part 1 - 3500 bitrate H.264 (and shameless self promotion of video walkthrough).

I'm just hoping the issue is, as the other people have said on youtube's technical help, a synching problem with variable bitrate AAC audio.
Which is why I'm trying the MKV container. MP3 audio doesn't work in the MP4 container.

#11
cruc1al

cruc1al
  • Members
  • 2 570 messages
I've done some comparing of MPEG-2 and H264 all I can say is the difference is pretty clear... I think I'll switch to using H264 since I just figured out that PowerDirector can export it in .m2ts which youtube apparently has no problem with. I encoded a 10000 kbps MPEG2 and a 6500 kbps H264 of the same 720p clip, and the latter looks both sharper and less rough and has better colors. Good times :P

Modifié par cruc1al, 30 avril 2010 - 04:33 .


#12
Tlazolteotl

Tlazolteotl
  • Members
  • 1 824 messages
Ooo .. m2ts .. isn't that what blu-ray players use?

Might have to look into that sometime .. always intended to make videos playable for blu-ray.

For now though, matroska seems to be working well enough. Although transporting the files via data DVD may be an issue .. most computers don't have the necessary codecs to play the files.

Oh well, can't have everything.

#13
Tlazolteotl

Tlazolteotl
  • Members
  • 1 824 messages
Ok, 22 videos uploaded with no errors ..

I reckon I can now safely recommend Matroska container, with H.264 video (x264 encoder) and MP3 audio (LAME MP3 encoder).