INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Login:   Username:  Password:   Log me on automatically    
Register I forgot my password I forgot my username Resend the activation key

Video to YouTube without reencoding

Forum Index -> Video -> Video Streaming Printer-friendly version
Reply to topic
Author Message
2ge
Member


Joined: 19 Apr 2008
Location: Thailand

Post Posted: Apr 20, 2008 00:42 Posts Comp View users profile Send private message Reply with quote

Hello,

I'd like to upload my video to youtube in mp4 format (ffmpeg, 2 pass, best quality I can get), but I want do conversion myself. Does anyone knows (because it is not written on youtube page AFAIK) which criteria must meet video ?

I downloaded mp4 video from youtube, from ffmpeg I got:

Code:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'youtube.mp4':
  Duration: 00:04:04.6, start: 0.000000, bitrate: 467 kb/s
    Stream #0.0(und): Audio: mpeg4aac, 44100 Hz, stereo
    Stream #0.1(und): Video: h264, yuv420p, 480x360, 29.97 tb(r)


my video (converted from camera) has:
Code:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
  Duration: 00:00:21.0, start: 0.000000, bitrate: 457 kb/s
    Stream #0.0(und): Video: h264, yuv420p, 480x360, 30.00 tb(r)
    Stream #0.1(und): Audio: mpeg4aac, 44100 Hz, stereo


so it should not reencode it, right ? Also 480x360 is really weird dimensions (not divisible by 16)


guns1inger
Member


Joined: 01 Apr 2004
Location: Miskatonic U

Post Posted: Apr 20, 2008 02:28 Posts Comp View users profile Send private message Reply with quote

Of course it will re-encode.

a) Youtube streams flv video, so your video will have to be re-encoded to FLV

b) The mp4 version was probably also encoded behind the scenes at youtube from what could have been any source.

c) Your framerates don't match, which could be enough to trigger a re-encode just on principal.
_________________
The views expressed in this post are mine alone, unless plagiarised from others
Read my new blog here


2ge
Member


Joined: 19 Apr 2008
Location: Thailand

Post Posted: Apr 20, 2008 12:06 Posts Comp View users profile Send private message Reply with quote

ok,

a) so it is really not possible upload video in mp4 format to youtube without reencoding, only flv is possible then ? I cannot believe this and it is not true.

b) why you need reencode mp4 to mp4, when source does match destination in every aspect ?

c) those 2 videos are not same, check length of those videos.


guns1inger
Member


Joined: 01 Apr 2004
Location: Miskatonic U

Post Posted: Apr 20, 2008 18:44 Posts Comp View users profile Send private message Reply with quote

a) Youtube converts all video to flv, even flv if it doesn't fit the profile exactly.

b) Youtube has a specification, and if you don't meet it, you get re-encoded. It is the same with any specification. You can't just throw any mpg file on a DVD and call it a DVD Video. You have to meet the DVD specification. Youtube has a specification, and you have to meet it.

c) I know they aren't the same video. The length is irrelevant. What is important are the video specs - resolution, bitrates, framerates - and your are different to the youtube clip.
_________________
The views expressed in this post are mine alone, unless plagiarised from others
Read my new blog here


2ge
Member


Joined: 19 Apr 2008
Location: Thailand

Post Posted: Apr 21, 2008 01:17 Posts Comp View users profile Send private message Reply with quote

a) I thoguth youtube is streaming all of videos in mp4 and flv is gone

b) I asked for this specification, what I should meet (dimensions, bitrate and so on), if you have it, please post.

c) same as b)
_________________
Long live king


webvideopro
Member


Joined: 14 Apr 2008
Location: United States

Post Posted: Apr 25, 2008 09:03 Posts Comp View users profile Send private message Reply with quote

I was under the impression that YouTube was reencoding all videos that were uploaded?

Also, I think they are still using FLV for the older and lower quality videos and MPEG4 H.264 for the new high quality versions.

2ge, 480x360 is a common size because it is the same pixel aspect ratio as 640x480 (NTSC Square pixel equivalent). Even though the 360 is not evenly divisible by 16, it is divisible by 8 so not too bad.

Here is a table of optimal frame dimensions:

http://www.flashsupport.com/books/fvst/files/tools/video_sizes.html

Even with the new high quality versions and 1GB upload limit, the highest bitrate they will display is 500-600kbps for audio and video combined. No reason to spend hours uploading a 10mbps+ clip when a 3-5mbps will look virtually indentical.
_________________
Take your skills to the next level @
http://webvideotechniques.com


2ge
Member


Joined: 19 Apr 2008
Location: Thailand

Post Posted: Apr 26, 2008 01:26 Posts Comp View users profile Send private message Reply with quote

it is possible convert video to format - which youtube accepts, and do nothing with it, just read http://readlist.com/lists/mplayerhq.hu/mencoder-users/1/5219.html and see video at: http://youtube.com/watch?v=DYbibozTnWk

I wasn't sure about mp4 - maybe it works too, but I don't have time to trying it (also youtube is blocked from Thailand using some provider, like mine (TOT)).

For dimensions OK - I use always div 16, also I am programming website like youtube, and we are using div 16 too, it is better.

Quote:
Also, I think they are still using FLV for the older and lower quality videos and MPEG4 H.264 for the new high quality versions.


yes and that's exactly what I am asking - what criterion must meet mp4 video to be not reencoded (I know it will be reencoded to flv)

thanks.
_________________
Long live king


NerdWithNoLife
Member


Joined: 27 Mar 2008
Location: United States

Post Posted: May 02, 2008 12:32 Posts View users profile Send private message Reply with quote

To my knowledge no one has found a way to slip an mp4 through without it being reencoded. I've been experimenting with no success so if you do find a way please share!!

The discrepancy I'm trying to resolve is my version is reported as ISO 14496-1 Base Media whereas after YouTube is done with it, it comes back ISO 14496-1 Version 2. But even if you did find a way there's always the chance they'll change the format slightly a week from now and it will get reencoded anyway.

Edit: I resolved that problem but it still gets reencoded. Maybe they just reencode everything. sad.gif


workinmatrix
Banned


Joined: 06 May 2008
Location: Luxembourg

Post Posted: May 10, 2008 02:37 Posts Comp View users profile Send private message Reply with quote

There is a tutorial "How To: Upload Lossless Quality HDV Videos to YouTube"

http://www.youtube.com/watch?v=08NI4cy4zik

And some pepole can upload a HD movie to Youtube ieek.gif
http://www.youtube.com/watch?v=e_HgzguhTKk&feature=related

I do not the cause why some special format files that Youtube do not reencode. confused.gif


waefwaeefwaefw
Member


Joined: 20 Feb 2008
Location: United States

Post Posted: Aug 08, 2008 07:52 Posts Comp View users profile Send private message Reply with quote

Hmm, strange. Why wouldn't they allow mp4? It's the safer format (there was a vulnerability that allowed you to trigger callbacks from flv).

So if the mp4 container is not possible, how about just remuxing it to flv?


jman98
Member


Joined: 08 Oct 2004
Location: Freedonia

Post Posted: Aug 08, 2008 07:59 Posts Comp View users profile Send private message Reply with quote

waefwaeefwaefw wrote:
Hmm, strange. Why wouldn't they allow mp4? It's the safer format (there was a vulnerability that allowed you to trigger callbacks from flv).

So if the mp4 container is not possible, how about just remuxing it to flv?


The guys who founded YouTube decided on FLV as the format because Flash works almost everywhere in a browser. It can be a bit troublesome in Linux, but even there you can get it working. It has nothing at all to do with safety or quality but what format could be the most easily supported across a variety of operating systems and browsers.


manono
Member


Joined: 28 Aug 2003

Post Posted: Aug 08, 2008 10:05 Posts View users profile Send private message Reply with quote

waefwaeefwaefw wrote:
Hmm, strange. Why wouldn't they allow mp4? It's the safer format (there was a vulnerability that allowed you to trigger callbacks from flv).

So if the mp4 container is not possible, how about just remuxing it to flv?

They allow MP4. Who said they didn't? Plenty of people upload MP4 videos. They still get reencoded, though.


webvideopro
Member


Joined: 14 Apr 2008
Location: United States

Post Posted: Aug 30, 2008 02:24 Posts Comp View users profile Send private message Reply with quote

The best solution I have found to take advantage of the high quality setting is to encode your videos to 640x480 (or 640x360 for 16:9) at 256kbps audio and 4000kbps video data rate. Even though YouTube will only encode to around 500kbps video, from testing I discovered that the YouTube data rate kept getting higher when I encoded from 2000, 3000, 4000. After 4000, the YouTube encoded rate capped out.

By encoding to 640x resolution and/or using a 16:9 ratio at the high data rate, it ensures that if they up the quality or resolution in the future thaht your videos will be able to take advantage of the higher settings without upscaling.

Here is a tutorial I put together on encoding for YouTube's high quality settting:
http://webvideotechniques.com/35/how-to-encode-your-videos-for-yo ... ity-option
_________________
Take your skills to the next level @
http://webvideotechniques.com


Reply to topic All times are GMT - 6 Hours
Forum Index -> Video -> Video Streaming Page 1 of 1





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
DVDFab DVD to DVD lets you backup DVDs to DVDr, AVI or MP4 for portable devices. More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics