Forum archive - Youtube Upload, increase quality/control (HQ hack obsolete)

http://www.supermediastore.com/



Forum Archive Home -> User guides -> Youtube Upload, increase quality/control (HQ hack obsolete)



Youtube Upload, increase quality/control (HQ hack obsolete)

45tripp posted 2007 Sep 14 20:22
The HQ hack of changing file durations to cheat youtube no longer works.
NOR can you still upload flv files with a total bitrate under 350k, and bypass re-encoding.
all gone, but default youtube is better than what it used to be


As a result of this:
http://forum.videohelp.com/topic333660.html

The facts:
at the moment you can upload an FLV1 Flash clip to youtube and have it pass under the radar unconverted.
Please note this applies to FLV1 only, VP6 will not work and will be reconverted.
This saves a lot of time during upload, because you're uploading a lot smaller files.
Saves suprises, as you know what you're getting before upload,
and you get control over your content.
The restriction (besides standard youtube duration restriction) is that your .flv has to
have a total bitrate under 350kbps, as reported by
Mediainfo



[s:f27ec1e020]And you can cheat :)[/s:f27ec1e020]
I'll show you how.

I think I tend to choose the hard way,
and I don't write guides, so i'll try and outline my process
and see how it turns out.

Tools:

Mediainfo
Mplayer/Mencoder http://tirnanog.fate.jp/mirror/mplayer/
or FFmpeg http://esby.free.fr/CelticDruid/mirror/ffmpeg/
Hex editor (vdub has one under 'tools')
7zip http://www.7-zip.org/ (to extract from archives)

Optional
Avisynth
DGMPGDec (for mpeg1/2 sources)
Audio extractor, encoder. (Mplayer, FFmpeg can do)
Avanti (ffmpeg gui) http://forum.videohelp.com/topic343287.html

Begin by puting,
mencoder / ffmpeg and your source video in a working folder.

Step 1 (optional)
AudioVisual prep.


Depending on what source you have and what you're attempting to do,
you may or may not want to go through this prep, and use avisynth.

I use avisynth for everything.
resize, crop, sharpen, blur, framerate alteration...
whatever.
Install avisynth if you haven't already.
read up on it. http://avisynth.org/mediawiki/Main_Page

Get your audio to uncompressed .wav
FFmpeg would be fine for 2 channel audio,
for multichannel you'd need external downmixing
:
ffmpeg -i test.mkv -vn -acodec pcm_s16le audio.wav

probably better to just use mplayer, straight to 2 channel
:
mplayer test.mkv -ao pcm:fast -vc null -vo null

Many tools, many ways...

Basically you want to resize your material to 4/3. (Youtube display)
If it's 4/3 already it's dead simple.
If it's wide, you have to letterbox.
This is not a resizing guide.
Read DJRumpy's guide for a better understanding of such things:
http://forum.videohelp.com/topic174200.html

You may also wish to reduce framerate,
and do other filtering in avisynth.

So,
you have your source.
If it's Mpeg1/2, index with DgIndex (read the documentation)
Open a text file with notepad and write your script,
something like this:
:

LoadPlugin("C:\Program Files\AviSynth 2.5\dgdecode.dll")
a = mpeg2Source("300.d2v").crop(106,0,-106,-0).lanczos4resize(448,336).changefps(20)
b = wavsource("300.wav")
audiodub(a,b)

Save with the avs extension, say "300.avs", in the folder containing
your source video and ffmpeg.

The above was 2.35:1, and I preferred to chop the sides rather than pad top/bottom.
I use a sharp resizer, because that's what I like.
(Although i used bilinear in most of my testing)
I dropped the framerate to get more mileage from the bitrate.
I opted for a resolution the size of the standard youtube display.

You can do anything you like!

Step 2
Encode


Continuation for step 1...


:

ffmpeg -i 300.avs -pass 1 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 400k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell 300.flv

ffmpeg -i 300.avs -pass 2 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 400k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell -y 300.flv


Remember,
there's a 350kbps total bitrate limit.
If you don't wish to cheat and change the duration info of your file,
you have to stay under that limit.
If not, you have the 10 min youtube limitation.
In which case your file can be up to ~27MB

(If you're going to use ffmpeg, you might consider using a nice gui like
Avanti http://forum.videohelp.com/topic336318.html
there's a flash template ready for easy configuration)

note: audio samplerate must be 44100, 22050 or 11025.
you can of course change samplerate before you get to the encoder.


Skipped step 1...

You can use mencoder to simplify the process.
Mencoder has powerful filters and is capable of many things,
so if you just want to get on with encoding you can probably just
feed your source to mencoder and go.

:

mencoder input.avi -o men.flv -af resample=22050:0:0 -sws 9 -vf scale=448:-3,expand=448:336 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=400:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=48:mode=3 


More complex would be say working with an elementary mpeg2 file
telecined, and an external audio file:
:

mencoder videofile.m2v -fps 30000/1001 -ofps 24000/1001 -o men2.flv -audiofile audio.wav -af resample=22050:0:0 -sws 9 -vf filmdint,scale=448:-3,expand=448:336 -of lavf -ovc lavc -lavcopts
vcodec=flv:vbitrate=400:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=48:mode=3 


You can of course do 2 pass encoding,
and use more mencoder filters,
but i'd be using avisynth if i wanted to tamper.

Step 3
[s:f27ec1e020]Cheat
[/s:f27ec1e020] (Obsolete)

You cheat by changing the reported duration info in the flv header.
Actual duration doesn't change.

Open your flv in a hex editor.
I used HEXcellent. ( http://www.torry.net/pages.php?id=1176 )

Look for "duration"
you're looking for the block of 16 numbers after '40'

starting from the left you have the first value, we'll call it 'a'.
That signifies 2*2^a seconds,
so "5000 0000 0000 0000" is 2*2^5=64 seconds.
The second value, say 'b', is b/16*(2*2^a).
The third value is sixteenths of the second value and so on...

"82C0 0000 0000 0000" is 10 mins, our limit.
Although up to 11 min has been successfully tested:
"84A0 0000 0000 0000"
(A is 10, B=11, C=12, D=13, E=14, F=15)

See appendix for useful hex values.

So say we have this file:



open it in the hex editor,
change the values, either using a calculator and 'reason',
or just keep trying upping the duration bit by bit.



And you get this:



Now legal!

Step 4
Upload


(don't use the uploader mentioned in the thread,
this may result in a youtube re-encode,
upload at youtube directly)

and you end up with something like this:
http://www.youtube.com/watch?v=34tQi8HIpsA
where i upped things just a bit.
448x336 keeping 400k, audio at 48k, dropping frames to 20fps
original duration 1m48sec, changed to 2m23sec

I also put up a sample pushing things to the max. (Not that i recommend you do so)
Took a 1280x720 sample and cropped to 960x720. It was an avc mkv with 5.1 aac
(shooting myself in the foot a bit) with roughly a total bitrate of 1300k and i
encoded 2 mins, to flv (1500k) with 192k audio. Got about 25MB.
Changed duration in header to 10 mins.
http://www.youtube.com/watch?v=OoVkD2k4byM

As a note I think one should aim at getting acceptable quality with a total bitrate
below 500k.
Having 'heavy' videos that aren't streamable is not the point of the guide.

But basically you have the freedom to do what you please.
The whole process has the benefit of flexibility.
You have a great amount of control this way.

gl


appendix

Hex values
4E00 (the rest zeroes) = 1 min
5E00 = 2 min
6680 = 3 min
6E00 = 4 min
72C0 = 5 min
7680 = 6 min
7A40 = 7 min
7E00 = 8 min
80E0 = 9 min
82C0 = 10 min
849F = 10:59 min
84A0 = 11 min



manono posted 2007 Sep 14 20:57
Helluva guide, 45tripp, for someone that says he doesn't write guides. I'm sure it'll be much appreciated.


Cornucopia posted 2007 Sep 14 23:43
45tripp, that is probably the best quality video I've ever seen on Youtube! :D
Way to go!

Still not quite clear about the hex values for the time fields, but I can play with it...

And, is it just the standard h.263Sorenson codec that is allowed for video?

Also noticed you said early on to use 11/22/44kHz, but then you ended up using 48k--so you can cheat there too?

Scott



45tripp posted 2007 Sep 15 05:36
Thanks manono.

Cornucopia :

And, is it just the standard h.263Sorenson codec that is allowed for video?

Also noticed you said early on to use 11/22/44kHz, but then you ended up using 48k--so you can cheat there too?


Yes flv1 only.
vp6 gets re-encoded.

no I couldn't have used 48khz.
It's an flv container limitation.

Where you can also cheat is framerate.
A youtube re-encode won't let you keep anything above 30fps.
this way you can keep say 40fps



slacker posted 2007 Sep 15 10:26
Very nice!

However, with Flash 9.0 none of this will be necessary.



mgh posted 2007 Sep 15 12:49
:salut: superb guide. thanks.


mgh posted 2007 Sep 16 12:10
Works beautifully. Uploaded a video 400x300, actual total kbps 518. Original video 5mins 25 secs, header changed to 8mins 31 secs. Funny thing though, after downloading the video from you tube
and checking with mediainfo, the header again shows 5 mins 25 secs.



ricardouk posted 2007 Sep 20 18:46
Hi, can anyone recommend a Gui for the tools mentioned here? i tried the free riva flv encoder but results at 450kb are not as good as the video in the tutorial

thanks



45tripp posted 2007 Sep 21 04:57
i looked at winff, and it seems to use the command almost verbatim.
you may want to edit the preset to remove framerate,scaling options.

you could also ask Chris K to add a preset for Avanti. http://forum.videohelp.com/topic336318.html

With mencoder the easiest would probably be simple mencoder shell gui (smsg)
don't really know what else.

winff is ready to go though

gl



ricardouk posted 2007 Sep 21 05:50
so far i tried:

Riva flv encoder but macroblocks were visible a bit to much even at 500 bitrate at 320.240

AutoFF refused to open avs files and avi(dv) files
http://forum.doom9.org/showthread.php?t=129697

Avanti needs a profile for flv

Automen, nice tool that at the same bitrate of the others prouced by far the better quality, not as any blocks.
http://forum.doom9.org/showthread.php?p=1018336

will try winff, thanks for your suggestions



45tripp posted 2007 Sep 21 06:52
ricardouk :

Avanti needs a profile for flv


It's coming.

Hadn't noticed Autoff.
looks promising.

I don't like the way you have to have mediainfo
and what not in the same folder as Automen, plus it's not configurable.
slight hinderance as it may be, it's stopped me from trying it so far.



ricardouk posted 2007 Sep 22 05:25
hi i tried several programs and using a dv video as source i cant get the video quality as your 300 trailer at 400k at 448.336 resolution.

i need to use 500k+bitrate for the blocks to disappear

Any tips?

Thanks

45tripp :

I don't like the way you have to have mediainfo
and what not in the same folder as Automen, plus it's not configurable.
slight hinderance as it may be, it's stopped me from trying it so far.


That was the one that i had best results, no bitrate configuration, had to play with the final size and checking with mediainfo each one to see the bitrate used



45tripp posted 2007 Sep 22 09:49
My video is not block free.

Tried DV and can confirm,
it looks like shit.

ricardouk :

Any tips?

there are many ideas in the thread.
could drop resolution, framerate, maybe crop.
I butchered framerate, dropping almost 20% of the frames.
could probably attempt using some filtering.

Nothing better than what you've already done though:
Raise bitrate!!

ricardouk :

That was the one that i had best results, no bitrate configuration, had to play with the final size and checking with mediainfo each one to see the bitrate used

tedious!



mgh posted 2007 Sep 23 09:48
using winff, the final combined bitrate is shown in the dos window accurate to 0.1 kbps. You need not use media info.


mikejf posted 2007 Sep 24 18:31
You can use higher bit rates with method below, but time limit around 2:00-2:45 minutes only. Here is a vid at YT I made using 960 Kbps, Frame rate=15. Source was vhs in SP mode from cable TV:

http://www.youtube.com/watch?v=dHl-AUQNe0c

This method uses Total Video Converter v3.10. Avi source vid file must be in 640x480 size. For a 2 minute vid wth 1000 bit rate use these settings:

type:FLV Video
Audio:44100/320
Codec:auto
Frame Rate: 15 (custom, enter no less then 15 but can be higher if you lower bit rate)
Bit Rate: 1000 (1000 for 2 minutes which YT calcs each 1000 as 4 minutes, or if vid is 1 minute you can use 2000 brate, which YT calcs as 8 minutes)
Activate high quality settings: checkmark
Video Resize: Original, 4:3

MUST use TVC v3.10, not 3.11.

The trick is to use the highest bit rate and not have YT recode. A 2:30 minute video might work with 15 frame rate, at 860 bit rate. If YT recodes, try again with lower bit rate. At 15 frame rate a 1000 bit rate seems to = 4 minutes on TY. I have not tried editing the header with hex editor to try and post longer vids, it may work.

The vid posted above was made with TVC, and oddly MediaInfo reports zero frame rate of .flv file:

General File size:20.8 MiB
General StreamSize: 274 Bytes
Codec: Sorenson H263
Video#0 Frame rate of 0:000. (don't know why it reports zero, it was made at 15)
Video#0 Bit rate: 960 Kbps
Video#0 StreamSize:15.6 MiB



lordsmurf posted 2007 Sep 24 18:46
Good job.


45tripp posted 2007 Sep 25 09:54
mikejf,
goyomora posted his method in the thread.
and it helped directing me towards my method.

Mine is superior.
a. no crap payware
b. i.e better encodes
c. no stupidly high audio bitrates.
d. any resolution you like, above 640x480 too
e. A 2:30 minute video might work with 15 frame rate, at 860 bit rate.
If YT recodes, try again with lower bit rate.

I already know what works before uploading.
f. .....
g. ....

In essence,
complete control

try it.

gl



mikejf posted 2007 Sep 25 13:09
45tripp :
mikejf,
goyomora posted his method in the thread.
and it helped directing me towards my method.

Mine is superior.
a. no crap payware
b. i.e better encodes
c. no stupidly high audio bitrates.
d. any resolution you like, above 640x480 too
e. A 2:30 minute video might work with 15 frame rate, at 860 bit rate.
If YT recodes, try again with lower bit rate.

I already know what works before uploading.
f. .....
g. ....

In essence,
complete control

try it.

gl


Excellent, I will try it. But is your method limited to under 350 bit rate? Also, can they play up to 3-5 minutes, or even up to 10 miuntes in the hq mode?
Mikejf



45tripp posted 2007 Sep 25 17:31
mikejf :

Excellent, I will try it. But is your method limited to under 350 bit rate?

:)
No. A reported total bit rate under 350k
File duration is altered to cheat.

If you follow the guide you'll see how it works.

The limit is the youtube 10min mark.
So if you want to upload 5 mins, the best you can do is double reported duration,
hence doubling max total bitrate to ~700k

gl



trevmar posted 2007 Sep 29 10:18
Excellent tutorial. I used 'SUPER' for the encoding, it produced excellent 345-347 KBps videos, and YouTube was happy to pass them through unscathed. I used the default webpage uploader.

However, there are now three native resolutions used by YouTube
448 x 336 for the old format pages
480 x 360 for the new Beta YouTube pages
424 x 318 is the default embedded resolution in the HTML it offers

So, what is the best resolution to encode a video so that it will display best in all three modes? Is there any mathematical whiz that can point out a resolution which scales cleanly to all these modes ? One problem is that 360 is not divisible by 16, which means it can't be encoded, I think. Sigh... Maybe I made an error...



45tripp posted 2007 Sep 29 14:52
They're all 4:3,
so you want to be in 4:3 too.
320x240 is fine.

if you want to up the rez, you have to up the bitrate too,
else you'll litter your material with artifacts.

gl



trevmar posted 2007 Sep 29 14:57
I am sorry. I should have been more clear in my question. My point is that there is significant advantage from being in the native display resolution, so that scaling is not required on playback.


45tripp posted 2007 Sep 29 16:29
Doesn't change my answer much.

trevmar :
One problem is that 360 is not divisible by 16, which means it can't be encoded, I think. Sigh...
Maybe I made an error...

You can.
It's just more efficient having mod16 encodes, and hence preferable.

trevmar :

My point is that there is significant advantage from being in the native display resolution, so that scaling is not required on playback.

You seem to be answering yourself.
Pick the resolution you're most likely to be displayed in then.

You could do that,
or you could just go to the highest rez so you're always downscaled,
or to the mod16 rez closest to the highest rez,
or the mod16 rez of the existing choices.
Try...

My choice?
448x336

gl



anyonecancopy posted 2007 Oct 06 16:21
Dear 45Tripp,

I tried virtually every type of encoding software, including the TVC Goyomora Method and other methods.. AND BE FAR , The BEST Method is yours..

In My YouTube Channel (anyonecancopy), I started off with regular YouTube encoding while then graduating from Regular to The "Goyomora" Technique, to finally Your High End Encoding Method.....Its easy and Free :)

Now all My newer videos ARE of Very High Quality, I have even received Honors from YT :)

I appreciate Your wonderful tutorial here.

PS: I am a Female, so If I can do it, anyone can


:)
Alexa



45tripp posted 2007 Oct 06 16:56
You are welcome


Timmychuck posted 2007 Oct 06 19:37
I just use TVC way. Work very well for me.
I uploaded a That 70's show clip



Captain Satellite posted 2007 Oct 13 04:50
Amazing but much too daunting for a geezer like me. I downloaded TVC and I'm getting the worst blocking. What are your settings, Timmychuck? I'd love to able to get this kind of quality by I couldn't swing this guide, must be my brain or lack thereof.


45tripp posted 2007 Oct 13 12:22
yes, tvc is crap.

it's not so difficult.
try again. be specific about where you get stuck.

gl



ricardouk posted 2007 Oct 13 17:12
try avanti, 45stripp kindly made a profile for it (thanks). From all that i tried it it was the one that gave me the best results even when "respecting" the 350 bitrate rule.


Captain Satellite posted 2007 Oct 13 18:16
Well, I d/l avanti and have no idea what it is for or what to do with it. I don't think there's anything you could do to improve my I.Q. It's obviously a great guide judging by the comments here, it's just completely beyond my comprehension from Step 1. I do appreciate your response.


ricardouk posted 2007 Oct 14 05:19
This is how i setup avanti, i wont have to trick youtube since the bitrate is kept under 350.




Captain Satellite posted 2007 Oct 14 06:48
So it's an encoder, OK. Well, I just encoded an .mpg file but I can't encode an .avi file. How do I do that? Also, what's that in the 'User VIDEO Options' box?

By the way, in the original guide in this thread, I was able to use the hex editor to edit .flv files that I encoded using TVC and Adobe Elements.

How do I get an .avi file loaded into avanti? Thanks!



ricardouk posted 2007 Oct 14 07:38
no need to convert the mpg file into avi, just open the "folder" icon next to the "1" in red in the picture above, select the mpg file and avanti will acept and convert it.


Captain Satellite posted 2007 Oct 14 08:39
I know that more info is needed to help me so here it is. I HAVE to be doing something wrong.







Click here for an .mpg clip of this file.

Click here for the avanti .flv file that I uploaded to youtube.

Click here for the youtube clip I uploaded from the avanti file.

Click here for the TVC .flv file that I uploaded to youtube.

Click here for the youtube clip I uploaded from the TVC file. (This clip was exported from Adobe Premiere Elements as an .mpg file because I wanted to tweak the color and contrast). The original file is 16:9.


I entered '345' in the bit rate box in Avanti but the encoded file said it was '487' before I ran it through HexEdit. Please let me know if you need anymore info. I appreciate any help that anybody is willing to offer. I hope that I am at least on the right track. :oops:



ricardouk posted 2007 Oct 14 09:10
Captain Satellite :

I entered '345' in the bit rate box in Avanti but the encoded file said it was '487' before I ran it through HexEdit. Please let me know if you need anymore info. I appreciate any help that anybody is willing to offer. I hope that I am at least on the right track. :oops:


i havent tampered my flv files, if you look at my fisrt pic youll se ive put 294 for video and 48 for audio as bitrares. 294+48= 342. i ended up with a bitrate of 348.

if you follow my values ypu wont have to "hexefy" your flv.

what is the problem you're facing? if you want 128k for audio youll have to reduce you video bitrate a lot...... loosing quality



Captain Satellite posted 2007 Oct 14 09:19
Ok, I see. I don't think that accounts for the quality of my youtube upload, does it? As I understand it, can't I maintain the higher audio bitrate if I hexedit, therefore losing nothing?

My reason for the post is that compared to the other youtube uploads in this thread, mine looks like crap. Is that as good as I'm going to get considering my source?

Thanks for the reply. :)



ricardouk posted 2007 Oct 14 11:12
My 2 cents:

Not everyone has a fast internet connection, your source file has a duration of 30 seconds and the file you uploaded to youtube "weighs" 12 megs, to us on 512k connection is a nighmare to watch it because it takes so much time to load. i understand that you want people to see the audio quality but 12 megs for a 30 second clip. If you entend to share your videos remember that.

your video(hexefied)30sec=12megs ---> http://youtube.com/watch?v=p-KmpeNmulk

my(yours, 350k)) video 30sec= 1.27megs ----> http://www.youtube.com/watch?v=p-hJbu3MkZo

by the way i think your video on youtube looks great.



ricardouk posted 2007 Oct 14 11:23
ooopos, i think you gave the wrong link for the mpg because the one i downloaded has only 30 seconds duration


Captain Satellite posted 2007 Oct 14 12:37
Click here for what I have now after more experimenting. Now I'd like to learn more about 45tripp's method. I'd like to undertstand what is going on in Steps 1 and 2. Does it work in conjunction with avanti?

Sorry your connection is slow, but I think most people that watch videos online have a high speed connection. Thanks for the help - I couldn't have gotten this far with out you! (I honestly think this is as good as it is going to get). :D



ricardouk posted 2007 Oct 14 13:35
Captain Satellite :
but I think most people that watch videos online have a high speed connection.


i disagree and WORLDWIDE STATS confirms it, at 350k (youtube bitrate limit, wonder why?) the video goes smoothly without hickups.

the video looks good, but it freezes for a few seconds every 3 seconds.(net speed)

No need to thanks thats what the forum is for

Steps 1 and 2 are for people that like to use ffmpeg (the engine behind avanti) with commnad lines (Dos "alike"), Avanti is a program made for users that dont like to use command lines(me), youll get same quality with either method as long the settings are the same.



45tripp posted 2007 Oct 14 16:29
See!
You managed just fine.

Captain Satellite :
Well, I just encoded an .mpg file but I can't encode an .avi file. How do I do that? Also, what's that in the 'User VIDEO Options' box?

Of course avanti can encode avis...
can't really tell what you are doing wrong without more info.

"user video/audio options" is essentially access to the commandline.

ricardouk :

i havent tampered my flv files, if you look at my fisrt pic youll se ive put 294 for video and 48 for audio as bitrares. 294+48= 342. i ended up with a bitrate of 348.

cutting it rather fine.
I remember 342k being the max combined audiovisual elementary bitrate. I think I had one fail as it hit the 350k when muxed.

Captain Satellite :
As I understand it, can't I maintain the higher audio bitrate if I hexedit, therefore losing nothing?

That's the point.
Control!
Here audio has priority...
You should be willing to sacrifice video.

Captain Satellite :

My reason for the post is that compared to the other youtube uploads in this thread, mine looks like crap. Is that as good as I'm going to get considering my source?

Your source does not help. Fine detail, in the focus area. Already got ringing...
Not as compressible as you'd like.
That's what filtering is for.
You can filter to make your source more compressible.
Which is the answer to the DV question, i think, Ricardo asked. DV can be ugly, noisy, shaky... not nicely compressible.
Also a lot you can do when in control of the camera...
That shirt is not helping.

Your clip didn't look like crap.
The worst thing about it was the messed up aspect ratio.
It sounds good too.
I owe you a dollar!

Captain Satellite :
Now I'd like to learn more about 45tripp's method. I'd like to undertstand what is going on in Steps 1 and 2. Does it work in conjunction with avanti?

Step 2 is encoding.
You've done that just fine.

Step 1 is the more complex part. (noted optional and advanced)
Source prep.
Inverse telecine, de-interlacing, and so on...
You have a progressive clip, so that was one less worry.
You could benefit from some filtering though.

Yes it works fine with Avanti.
Avanti is set up to work harmoniously with avisynth.

btw
Ricardo do you not have avisynth installed?
I noticed the red warning in avanti about the ffmpeg/avisynth combo not found.
That's not a problem anymore, so I assume you don't have avisynth installed or have a filter in the plugins folder you shouldn't. if there's a problem, report in the thread to Chris.

Captain Satellite :

Sorry your connection is slow, but I think most people that watch videos online have a high speed connection.

Untrue.
I'm with Ricardo.
I'm sure you know your target audience better than we do though.

Anyway,
filtering is an art, or fine game...
and you have to decide when it's worthwile and how much time the source deserves...
I just played with a few simple things.
noise reduction and blur.
i liked the way you went with colouring, but thought it heavy.
dropped framerate all the way to 20fps. No heavy motion here. Can easily half the framerate I'd say.
encoded with the same settings you first posted.
http://www.youtube.com/watch?v=uVZiFDF0m_A

gl



Captain Satellite posted 2007 Oct 14 19:33
45tripp :
See!
You managed just fine.


Thanks for taking the time to answer my post, 45tripp. I got the .avi to work after all, BUT, I tweaked the color and contrast in APE and exported the file as .mpg. I've always enjoyed a saturated picture, personal preference I suppose.

45tripp :
"user video/audio options" is essentially access to the commandline.


I would like to learn more about this. Are there other guides that can teach me how to use this feature?

45tripp :
That's the point.
Control!
Here audio has priority...
You should be willing to sacrifice video.


I've tried to go lower than 700 kbps but the picture is blocked. That's why my final file is 19.5 mb.

45tripp :
Your source does not help. Fine detail, in the focus area. Already got ringing...
Not as compressible as you'd like.
That's what filtering is for.
You can filter to make your source more compressible.
Which is the answer to the DV question, i think, Ricardo asked. DV can be ugly, noisy, shaky... not nicely compressible.
Also a lot you can do when in control of the camera...
That shirt is not helping.


I don't know what ringing is, sorry. :oops: I would love to learn more about filtering. Is that what I would use avisynth for? Is there a good guide for that? I shot the video so if you could suggest anything that I should be doing on that end I could try that. I just grabbed a shirt, I agree! :lol:

45tripp :
Your clip didn't look like crap.
The worst thing about it was the messed up aspect ratio.
It sounds good too.
I owe you a dollar!
I suppose "crap" is a stretch. I'm comparing it to your stuff, so in comparison it looks like crap. Right now I'd trade my licks for some video editing skills. :roll:

45tripp :
Step 1 is the more complex part. (noted optional and advanced)
Source prep.
Inverse telecine, de-interlacing, and so on...
You have a progressive clip, so that was one less worry.
You could benefit from some filtering though.


I'm wondering how hard this would be to learn how to do. I'm really willing to tweak these clips. I can't expect or ask you to go into that in this thread but if you could point me in the right direction, I'd be grateful.

45tripp :
Yes it works fine with Avanti.
Avanti is set up to work harmoniously with avisynth.


Time to do some guide hunting.

45tripp :
Untrue.
I'm with Ricardo.
I'm sure you know your target audience better than we do though.


I don't and I am wrong. Thanks to both of you for bringing this to my attention!

45tripp :
Anyway,
filtering is an art, or fine game...
and you have to decide when it's worthwile and how much time the source deserves...
I just played with a few simple things.
noise reduction and blur.
i liked the way you went with colouring, but thought it heavy.
dropped framerate all the way to 20fps. No heavy motion here. Can easily half the framerate I'd say.
encoded with the same settings you first posted.
http://www.youtube.com/watch?v=uVZiFDF0m_A

gl


Damn, that looks great! It looks better than my 20mb file. I'll bet you kept the size down too. I would like to know how you did that but I'm not sure you'd want to go into that. Maybe point me towards some guides? I'm willing to spend as much time as it takes, so time and effort are not an issue for me. I tried dropping my framerate in avanti and it didn't do anything to the size of the file.

I know that there's a lot to digest in my reply, but your guide is so great it really pumped me up. As far as "no thanks" being necessary, ricardo, anytime that somebody sacrafices some of their time to help me, thanks are certainly in order.



ricardouk posted 2007 Oct 15 03:51
45tripp :
btw
Ricardo do you not have avisynth installed?
I noticed the red warning in avanti about the ffmpeg/avisynth combo not found.
That's not a problem anymore, so I assume you don't have avisynth installed or have a filter in the plugins folder you shouldn't. if there's a problem, report in the thread to Chris.


i get that warning when i try to open avs files, i have avisynth 2.57 installed.

I noticed a new version up will test and see if the same error pops up. Than

Edit: That error still shows up, will report it. Thanks



45tripp posted 2007 Oct 15 10:51
Captain Satellite :

Thanks for taking the time to answer my post, 45tripp. I got the .avi to work after all, BUT, I tweaked the color and contrast in APE and exported the file as .mpg.

No need to use ape for tweaking colour.
exporting to mpg sounds unhealthy.

45tripp :
"user video/audio options" is essentially access to the commandline.

Captain Satellite :
I would like to learn more about this. Are there other guides that can teach me how to use this feature?


no, not really.
read the ffmpeg manual.
Soopafresh linked to a how to yesterday
http://forum.videohelp.com/topic338564.html

Captain Satellite :
I don't know what ringing is, sorry. :oops: I would love to learn more about filtering. Is that what I would use avisynth for? Is there a good guide for that? I shot the video so if you could suggest anything that I should be doing on that end I could try that. I just grabbed a shirt, I agree! :lol:

Ringing is trailing noise around a moving object.
Yes avisynth. Essential tool. Start using it, there's no going back.
http://avisynth.org/mediawiki/Main_Page#New_to_AviSynth_-_start_here
which also links to this:
http://www.animemusicvideos.org/guides/avtech/index.html
a good read.

There's the doom9 forum where developers of filters hang,
and people churn out scripts that take days to run.
If you're pumped, visit and start reading.
It's good to find a specific task and start reading about it, and how other people deal with it.

The speakers are heavy on detail that doesn't interest us.
Mostly the shirt though that I find objectional :)

Captain Satellite :

Damn, that looks great! It looks better than my 20mb file. I'll bet you kept the size down too.

Well it's really blurred, but compared to the alternative, yes it does look good.
Your 700k has more detail but still retains some ugly artifacts.
I used the settings you first posted. 345k video, 128k audio. Pushing to 500k, maybe a bit high for easy dreamy streaming.

Captain Satellite :

I would like to know how you did that but I'm not sure you'd want to go into that.

I can tell you exactly. My only concern is people blindly using what I crudely cooked for anything.
:
directshowsource("vhelptest.mpg")
bicubicresize(320,240)
tweak(cont=1.2, bright=-20, sat=1.3, hue=4)
FFT3DGPU()
blur(0.1)
changefps(20)

Of course I'd always use dgindex, and load with mpeg2source(),
was just too bored to bother this time.
(fft3dgpu() is an external filter)

Captain Satellite :

I tried dropping my framerate in avanti and it didn't do anything to the size of the file.

Never used ffmpeg for framerate change. Can't comment on it.
As you see I used avisynth.

Captain Satellite :
Right now I'd trade my licks for some video editing skills. :roll:

Does one need the devil to seal such deals?
I don't have editing skills though.

gl



Captain Satellite posted 2007 Oct 16 15:13
That is A LOT to digest - thanks! I have a lot of reading to do! :D


Habboi posted 2007 Oct 17 11:06
Hello there I am very glad I found this little guide. I wanted to improve the quality of my videos and managed to find this via Google.

Anyway I just wanted to say I've followed your guide and at first found it a bit hard to understand but a fresh mind helped. Anyway I wanted to explain what I did as I have some questions in a minute.

Basically I recorded a game via FRAPS which saves the video as an uncompressed .avi...Now with my set of videos I add a small title intro using Sony Vegas 7.0. I first experimented and found that saving to AVI meant that the video would not be converted to FLV by MPlayer. So I tried a WMV and that worked. Only problem I've found is it doesn't convert any video unless I add to the command line:

-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames

As it complains it cant initialise the Muxer.

So adding that in it converts my 336x488 WMV video into an FLV file. Now I changed the audio to 48k and raised the bitrate from 400 to 1000. This was my first try as I now realise it affects the netload. Anyway using HEXCELLENT (German Version since that is all I could find) I edited the duration and thus the bitrate lowered to 345...

I uploaded it to youtube and got the following results:

http://www.youtube.com/watch?v=IJjPlak9rbc

As you can see it is pretty good and I am happy with that. A 1 minute and I think 43 seconds video that was changed to 3:34 isn't bad. Anyway that was just a test and from the feedback it seems changing it to 1000 wasn't a good idea. So here are my questions:

Basically since 1000 isn't a good idea since my 'real' videos will be much longer. Possible 10 mins + so what is a good suggested bitrate? I want a really good quality set of videos and I am not too concerned with audio quality...I suppose I should go back to 44k instead of 48.

Also should I therefore cut the videos up to preserve quality? Like Part 1 Part 2 kinda thing? I assume that the longer a video is. The more you have to edit it with HEX the worse the quality gets? Forgive me I'm not a big video editor technical kinda guy.

And lastly can you suggest anything else...Perhaps why I have to add that command line or why it refuses to convert my AVI to FLV...Just to give you an idea the AVI is around 1 gig uncompressed so that could be why? Oh also do you think Youtube will catch on and remove the videos that use this?

Thanks for reading. I look forward to a reply.



45tripp posted 2007 Oct 17 16:30
Habboi :

Only problem I've found is it doesn't convert any video unless I add to the command line:
-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames

Your mencoder copy is outdated.
get mplayer from here
http://oss.netfarm.it/mplayer-win32.php

Habboi :

Now with my set of videos I add a small title intro using Sony Vegas 7.0. I first experimented and found that saving to AVI meant that the video would not be converted to FLV by MPlayer.

why not?
errors?
try again with newer version.
very long intro btw.

Habboi :

So I tried a WMV and that worked.

wmv is fine.
it was an option when forced into 2 step encodes

Habboi :

Anyway using HEXCELLENT (German Version since that is all I could find)

http://www.torry.net/pages.php?id=1176

Habboi :

Anyway that was just a test and from the feedback it seems changing it to 1000 wasn't a good idea.

Probably not. try again around the 500k mark

Habboi :
Audio. I suppose I should go back to 44k instead of 48.

I've used 32k

Habboi :

Basically since 1000 isn't a good idea since my 'real' videos will be much longer. Possible 10 mins + so what is a good suggested bitrate?
Also should I therefore cut the videos up to preserve quality? Like Part 1 Part 2 kinda thing? I assume that the longer a video is. The more you have to edit it with HEX the worse the quality gets?

if you want quality, then yes you'll have to split them up.
if you want to upload 10+ mins then quality will obviously suffer. you'll have to shorten duration with hexcellent and will have to use a lower bitrate. (kill audio?)

Habboi :
Oh also do you think Youtube will catch on and remove the videos that use this?

No


gl



Habboi posted 2007 Oct 17 19:04
Alright thanks for the reply. Following your advice and using the updated programs I am pretty happy. Although at 500 Kbit it still looks horrible. I'm experimenting to see if everyone is happy with 750 Kbit...Funny thing is with 1000 Kbit the video worked fine for me and I even re-downloaded it after removing saved data and there was no lag. But with 750 I got 2 instances where it paused for a bit...

Thanks anyway. I'll come back if I have any more questions.



Cornucopia posted 2007 Oct 17 21:44
Habboi, a shooter cap like that doesn't have lots of motion, or lots of fine/random detail, or lots of color depth. So...

You could preprocess your clip with Virtualdub (etc) making an intermediate lossless file that is 10/12/15/20fps (instead of 30), smoothed more, and 8/10/12/15/16bits of color depth (instead of 24). Subsequent processiing would make MUCH better use of the FLV's compression bitbudget--even with reduced overall bitrate--and without much noticeable difference in final/perceptible quality. This process can be extrapolated even further (w/ judicious editing, tweaking audio more, etc--basically "VBR"-style optimizing without actual VBR encoding).

Scott



Biggiesized posted 2007 Oct 17 23:21
45tripp,

I figured out the whole hex editing thing for duration, but I can't for the life of me understand how the frame rate values work. Could you expain how to derive proper values for them? I have a video for instance that was 59.94 FPS and I have no idea how you account for that.

Also, is it theoretically possible to (assuming I don't want to mess up the video timeline metadata) to edit the reported bitrates for video and audio so they appear under a combined 350 Kb/s? I know changing the duration averages them out lower, but I hate having a messed up timeline like the TVC method.



Biggiesized posted 2007 Oct 18 01:49
Nevermind I figured out the hex value for 30 FPS (reported):

3E followed by fourteen zeros.

I'd still like an answer to the other part of my question, though.

Thanks.



mgh posted 2007 Oct 18 04:31
You tube corrects the time info in the file available for download/streaming while processing to change some header information :lol: The time reported on download page at you tube is your "hexed" value.
Using command line as suggested by 45tripp using WinFF (2 pass), you get acceptable videos with most sources without "hexing"
@320x240-310kbps video-32 kbps 11025 kHz audio at 25 fps
@352x264-with audio and video settings as above at 20 fps
They are not free of blockiness, but when it occurs, it is mostly in the background and not so noticeable.



45tripp posted 2007 Oct 18 17:42
Biggiesized :
but I can't for the life of me understand how the frame rate values work. Could you expain how to derive proper values for them? I have a video for instance that was 59.94 FPS and I have no idea how you account for that.

what ever for?

Biggiesized :

Also, is it theoretically possible to (assuming I don't want to mess up the video timeline metadata) to edit the reported bitrates for video and audio so they appear under a combined 350 Kb/s?

The thought crossed my mind. I've not found anything.
Probably not, but if you get anywhere, let me know.

mgh :
You tube corrects the time info in the file available for download/streaming while processing to change some header information :lol: The time reported on download page at you tube is your "hexed" value.

neither here nor there.
duration is fixed after metadata injection, but upload has already bypassed re-encode and
at youtube playback, you still get misreported duration.



Guiboche posted 2007 Oct 18 20:09
Well, I've tried EVERYTHING to get this to work. No luck.

At first, I couldn't figure out the command line encoder. But, I just copied your source right outta this window. And did the exact same settings.

I also used the same uploader. YouTube keeps re-encoding the vid. Here's what MediaInfo reports:



It says it's below 350k, but YouTube still re-encodes the vid.

Oh well... :cry:



Captain Satellite posted 2007 Oct 18 21:54
"It says it's below 350k, but YouTube still re-encodes the vid.

Oh well... "

How do you know that? Don't you need to be 320x240 in order to not be re-encoded?



Guiboche posted 2007 Oct 18 22:08
Well the creator of this guide uploaded both 448x336 and 920x720 videos. Neither were re-encoded. As stated on the first post of this thread:

http://www.youtube.com/watch?v=34tQi8HIpsA
http://www.youtube.com/watch?v=OoVkD2k4byM



Revan89 posted 2007 Oct 18 22:11
Thanks soo much 45tripp,

Your method is the greatest. I tryed with Riva, SUPER and Moyea's converters, but your way can't be beaten. It took a lot of time to figure out some parts, mostly because I've never had use mencoder before, and Avisynth was kind of overwhelming.

After a lot of trail an error, the way I used to convert my video was by opening de Command Promt and writing:
:
"C:\mencoder.exe" "C:\video.avi" -o "c:\video.flv" -af resample=44100:0:0 -sws 9 -vf scale=448:-3,expand=448:336 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=600:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=64:mode=3

As you can see, I changed some things, starting by the bitrate, from 400 to 600, to the audio bitrate, if its that... cause Iam not sure.

I had to struggle a lot with the resolution of my video, as it had a very rare aspect ratio (5:4), with a resolution of 720x576. The original encoders of this video made some letterboxing on it, and removing it was a pain. After testing various "solutions", I opted for Vdubmod, wich opened my source video from wich I cutted the letterbox and added some filters to improve quality. I saved it as an RGB, cause frameserver to mencoder didn't worked for me. The I used the above code in command promt, and FINITO, here are my results:

http://www.youtube.com/watch?v=gY80r8FbahU
(My source video was kind of old, so the quality isn't outstanding, but Iam extremely happy with the results)

THANKS AGAIN.

Edit: Sorry, I forgot to ask you how can I change the framerate (fps) of the video?? If you could add that line of code to the one above, that would be GREAT. THANKS



Captain Satellite posted 2007 Oct 18 22:56
Guiboche :
Well the creator of this guide uploaded both 448x336 and 920x720 videos. Neither were re-encoded. As stated on the first post of this thread:

http://www.youtube.com/watch?v=34tQi8HIpsA
http://www.youtube.com/watch?v=OoVkD2k4byM


Thanks. I thought they would be re-encoded if they weren't.



Guiboche posted 2007 Oct 18 23:03
Well, I just tried Revan89's commandline. Didn't change anything accept the location of the filenames. Still no dice. And I've used HEXcellent to give the file a 10 minute mark. With a said rate of 107k. Way below 350k. Youtube still re-encoded it.



Oh well. Time to give up......



45tripp posted 2007 Oct 19 02:38
Captain Satellite :

Don't you need to be 320x240 in order to not be re-encoded?


no.
neither do you have framerate restrictions for that matter either

Revan89 :
I saved it as an RGB, cause frameserver to mencoder didn't worked for me.

Edit: Sorry, I forgot to ask you how can I change the framerate (fps) of the video?? If you could add that line of code to the one above, that would be GREAT. THANKS


You can't frameserve to mencoder with vdub.
you can put avisynth in between though.
vdub -> avisynth-> mencoder

I never change framerate in mencoder, but the switch is -ofps

Guiboche :
Well, I just tried Revan89's commandline. Didn't change anything accept the location of the filenames. Still no dice. And I've used HEXcellent to give the file a 10 minute mark. With a said rate of 107k. Way below 350k. Youtube still re-encoded it.

Looks fine.
upload the flv, i'd like to try.



mgh posted 2007 Oct 19 05:42
the duration is misreported at you tube, but if you download the video and check with mediainfo, the duration is correct. That is why it plays normally.


Revan89 posted 2007 Oct 19 12:48
Here is a video I just uploaded where you can apreciate the quality a little better. I think I used a bitrate of 800kbps.

http://www.youtube.com/watch?v=vf2MjxPXr8Y

By the way, thanks 45tripp for the fps change command.



Habboi posted 2007 Oct 19 14:37
I have a new question. Basically does the speed of your internet affect whether a video with 800Kbit would lag? Because I can play a 1000 Kbit video with ease and yet others are saying it freezes aka the netdownload is too much. So I assume then that they need a fast speed to play the vids with no pauses?


ricardouk posted 2007 Oct 19 17:37
Habboi :
So I assume then that they need a fast speed to play the vids with no pauses?


yes a 1000kbit bitrate video wouldnt freeze because to freeze it needs to move a litlle first :) here it just loadsssssssssssss



45tripp posted 2007 Oct 19 18:14
mgh :
the duration is misreported at you tube, but if you download the video and check with mediainfo, the duration is correct. That is why it plays normally.

I know,
it just happens to be immaterial

Habboi :
I have a new question. Basically does the speed of your internet affect whether a video with 800Kbit would lag?

of course!
once the stream has loaded (pause and wait for it), there are no lags



Habboi posted 2007 Oct 19 19:30
Heh that isn't what I meant sorry. From the feedback I have got even on a full load people have said it freezes at the same point each time. As if their GFX card wasn't good enough or something...Perhaps that is it?

I mean I get the same effect playing a 2 gig 640x480 vid on VLC Player so I assume these people are playing the 1000Kbit on a low end PC...

Am I right?



Guiboche posted 2007 Oct 19 22:36
Thanks to 45tripp I got it working! :D

http://www.youtube.com/watch?v=8OfQwq3gaLI
http://www.youtube.com/watch?v=wkHtFwExyOI



Revan89 posted 2007 Oct 19 22:42
Habboi :
I mean I get the same effect playing a 2 gig 640x480 vid on VLC Player so I assume these people are playing the 1000Kbit on a low end PC...

Am I right?

You are right. Iam from Chile, and many of my friends computers arent very good... mostly somo 4 year P4 with 256mb of RAM and no video card.

Connection speed doesnt mean anything once the video is loaded.

Greetings



Habboi posted 2007 Oct 20 05:59
So then your 600 Kbit vids have lagged for them? Maybe not continuous but at certain points the video just stops...I assume?


ricardouk posted 2007 Oct 20 06:14
Revan89 :

Connection speed doesnt mean anything once the video is loaded.


the video doesnt play after its loaded, it is streamed, played back as it is loaded.

internet connection does matter!



Habboi posted 2007 Oct 20 07:39
Alright someone professional here tell me straight. What defines whether a video will pause for some and not for others? The higher the Bitrate...The more it happens so is it internet speed or the power of your PC?

It's strange because I keep saying I can play a 1000 Kbit fine with no lag or pauses. But then others complain...This seems to happen outside of where I live as all my friends (UK) say it plays fine...Does that have any relevance?



ricardouk posted 2007 Oct 20 08:23
Habboi :
Alright someone professional here tell me straight. What defines whether a video will pause for some and not for others? The higher the Bitrate...The more it happens so is it internet speed or the power of your PC?


the internet speed no doubt, no need to get "professional help"., i lived in the uk for 7 years and the adsl penetration in the country is very high, you got all those cable companies, the country cable structure was very well planned mate.

example:
http://www.cable.co.uk/compare/regions/broadband-providers.html?s ... &y=0&=Find

take a look at the speeds and the companies, not every country got that

if people have a very slow pc chance is it wont be able to handle a fast net connection to begin with....



Habboi posted 2007 Oct 20 13:42
Thank you that was very clear and precise. I think I have everything I need to know now. Until next time.


45tripp posted 2007 Oct 20 17:14
Guiboche had problems due to using the uploader mentioned in the thread.
I've edited the guide to reflect this.



Revan89 posted 2007 Oct 22 22:53
Youtube has been updated, and with the update, the resolutions have increased too. Now the encoding should use de 480x360 resolution.


ricardouk posted 2007 Oct 23 15:16
can you provide a link?

i still see 320x240 as official:
http://www.google.com/support/youtube/bin/answer.py?hl=en&answer=55745



Revan89 posted 2007 Oct 24 17:26
trevmar :
However, there are now three native resolutions used by YouTube
448 x 336 for the old format pages
480 x 360 for the new Beta YouTube pages
424 x 318 is the default embedded resolution in the HTML it offers


As you can see by the new design layaout of youtube, the beta has gone official. Besides that, Some videos I uploaded 5 days ago, with the 448x336 resolution matched perfectly to the player's screen, now they have a black space when I press the "original resolution" button. Check it if you want to: http://youtube.com/watch?v=vf2MjxPXr8Y

The embedded resolution its the same, by the way.



Revan89 posted 2007 Oct 25 18:31
I have just uploaded a video with the 480x360 resolution.... just watch as it fits perfectly to the screen:

http://www.youtube.com/watch?v=xwgVADWeNkw



wiseant posted 2007 Oct 25 23:44
Yo Revan89,

I just downloaded your youtube video - www.youtube.com/watch?v=xwgVADWeNkw

How the heck did you get a bitrate of 760+?
Did you do any "hex" edits or is this the new youtube that accepts 480x360?
Also, I noted that online youtube indicates a duration of 10 minutes when the actual duration is 4:19 at 24 fps!
Also, just wondering if you know how to get h264 (x264) video and/or aac (mp4) audio into a flv container - I tried ffmpeg and it indicated that the flv codec did not accept aac (mp4) audio

TIA



Biggiesized posted 2007 Oct 26 00:51
Anybody know why YouTube is re-encoding my video?

http://www.sendspace.com/file/azpmff

That's the source file I'm using. There was no reason to hex edit anything since FPS were under 30 and the A/V bit rate was under 350 kb/s. YouTube is re-encoding it (it doesn't look too much worse than my master) and shitting on the audio (the re-sampling of my already 22 KHz sampled audio sounds god awful combined with the mono sound).

thx.flv



Revan89 posted 2007 Oct 26 09:03
Biggiesized :
Anybody know why YouTube is re-encoding my video?

http://www.sendspace.com/file/azpmff

That's the source file I'm using. There was no reason to hex edit anything since FPS were under 30 and the A/V bit rate was under 350 kb/s. YouTube is re-encoding it (it doesn't look too much worse than my master) and shitting on the audio (the re-sampling of my already 22 KHz sampled audio sounds god awful combined with the mono sound).

thx.flv

How did you uploaded the video to youtube??
If you used a third party program, thats yours problem. You have to upload videos thru the site for this system to work.



45tripp posted 2007 Oct 26 18:37
Biggiesized :
Anybody know why YouTube is re-encoding my video?

look to your audio. probably the wrong side of standard.
I changed audio (upped bitrate, consequentially hexed)
http://www.youtube.com/watch?v=cgXraovJsjQ

wiseant :

How the heck did you get a bitrate of 760+?
Also, I noted that online youtube indicates a duration of 10 minutes when the actual duration is 4:19 at 24 fps!

read the guide

wiseant :
Did you do any "hex" edits or is this the new youtube that accepts 480x360?

Of course he did.
what's changed to 480x360 is the display size

wiseant :

Also, just wondering if you know how to get h264 (x264) video and/or aac (mp4) audio into a flv container -

you don't
http://labs.adobe.com/wiki/index.php/Flash_Player:9:Update:H.264

gl



Biggiesized posted 2007 Oct 26 20:50
45tripp :
Biggiesized :
Anybody know why YouTube is re-encoding my video?

look to your audio. probably the wrong side of standard.
I changed audio (upped bitrate, consequentially hexed)
http://www.youtube.com/watch?v=cgXraovJsjQ


What do you mean I have the wrong side of standard?

I've been using LAME encoded MP3 stereo audio @ 22 KHz and ~48 kb/s ABR for all of my videos. I've never had a problem with any of them. I see you fixed this, but my question is why would you need to hex edit it at all? You can check out any of my other well encoded videos (I have some that are several months old--they weren't encoded in mencoder so ignore them) and you'll see they use the same specs and uploaded without an issue.



Biggiesized posted 2007 Oct 27 03:16
Okay I tried to remaster it with CBR audio @ 48 kb/s instead of ABR (because then it might not hit 48 kb/s on average--mine was actually around 44 kb/s).

It still didn't work when I uploaded it to YouTube. It's like something has changed with them. I've never had to hex a video that met all of YouTube's hidden requirements in the past. Why do you suppose this is happening?

I also fixed the AR ratio of the video. I had it mis-set at 2:1 when it should have been 2.35:1 (an error in anamorphic encoding on my part).

thx_widescreen.flv



Revan89 posted 2007 Oct 27 19:13
wiseant :
How the heck did you get a bitrate of 760+?

Encoding the video with Mencoder. I have "mencoder.exe" in my "C:" drive. Then I put the video I want to convert in my C: drive and I applied this code in Command Line (Start->All Programs->Accesories->Command Line) with subtle changes, depending on the video. (You have to put the name of your video in the code line)
:
"C:\mencoder.exe" "C:\myvideo.avi" -o "c:\converted_video.flv" -af resample=44100:0:0 -sws 9 -vf scale=480:-3,expand=480:360 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=600:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=64:mode=3

Where its says "vbitrate", the number next to it is where you can asign the bitrate of your videos.
wiseant :
Did you do any "hex" edits or is this the new youtube that accepts 480x360?
Also, I noted that online youtube indicates a duration of 10 minutes when the actual duration is 4:19 at 24 fps!

The only hex edits that I used were to change the video's duration. The 480x360 resolution can be achieved just by evading youtube's encoder. As simple as that. So, use the Hex Edit trick to change the duration of the video, as it is explained in this tutorial, and create an .flv file with an apparent bitrate of 350kbps or less.

Thats all.



45tripp posted 2007 Oct 28 15:12
Biggiesized :

What do you mean I have the wrong side of standard?
I've been using LAME encoded MP3 stereo audio @ 22 KHz and ~48 kb/s ABR for all of my videos.
You can check out any of my other well encoded videos (I have some that are several months old--they weren't encoded in mencoder so ignore them) and you'll see they use the same specs and uploaded without an issue.

no you can't check any of your videos.
my luck being what it is, I had to go through 3 to finally get one like you describe.
next time link specifically.

my estimation is it's non standard.
i'm no expert. take it for what it is.
I have pinpointed audio as the problem though.
should be enough.

the files you mention aren't the same.
if only for the reason that they pass and the 'thx' fails.
you've not provided any info, so i could barely guess, and i'm not in the mood to test in any case.
it could be different serttings, it could be the source, it could be a specific encoder vs another,
it could be a specific version of a single encoder vs another version....
you'll have to test it out.

Biggiesized :
I've never had to hex a video that met all of YouTube's hidden requirements in the past. Why do you suppose this is happening?

well obviously it's not meeting requirements.
I have no idea at this moment why.

Biggiesized :

I see you fixed this, but my question is why would you need to hex edit it at all?

because like I said, i increased the audio bitrate.
specifically i used ffmpeg to pass the video untouched, and re-encode the audio to 64k leaving it
stereo and at 22050.
the higher total bitrate meant i had to hex.

gl



frifox posted 2007 Oct 29 01:19
lol i just had to register to post this :)

i hex edited the 480x360 flv and changed duration from 25 minutes to 10 minutes! uploaded original, youtube rejected it. uploaded hexed flv, youtube didnt bother with it and the video went live! :lol:

i know that the original flv's bitrate has to be much lower than the 340Kbps limit, but thats not a problem for me since i typically upload music tracks with static background pic as a vid (1FPS)...


DEMO LINK:
http://youtube.com/watch?v=ZTvtF5njjWQ



45tripp posted 2007 Oct 29 11:17
I never doubted it,
but it was untested.
thanks for testing.

btw 10:32?
i wonder if that means you can go to 10:59...
I didn't put the 10 min limitation to the test either.



frifox posted 2007 Oct 29 13:11
i believe by saying "10 minute limit" they meant "everything below 11", aka 10:59 and below etc...

btw, i tried downloading the youtube video and download speed is around 135KBps to 160KBps. at some times it glitched down to 100KBps but not below it, so if using 100KBps as the lowest common denominator can we conclude that its safe to upload 800Kbps video and have it NOT glitch when watching?


oh and also a question. could you fake both the flv duration AND bitrate?



Biggiesized posted 2007 Oct 29 21:34
I'm not sure what happened with my last few video attempts, but my latest works just fine. :)

Check it out:

http://youtube.com/watch?v=xYxc7QUpx00

You might find it familiar... :P



sdsumike619 posted 2007 Oct 30 02:30
What is the best source file to start out with? I have expensive NLE at my disposal so I can pretty much create anything from the timeline. Also, I am having one heck of a tough time understand the hex code and how it corresponds to minutes, seconds. How do you know what duration to set it to? Can we just use 10:00 all the time? If not, can you post the correct hex codes for those sixteen digits for say, one minute, two mins, three mins, four mins, five mins and so on?


45tripp posted 2007 Oct 30 06:43
Biggiesized :
I'm not sure what happened with my last few video attempts, but my latest works just fine. :)

well...
what changed?

frifox :
i believe by saying "10 minute limit" they meant "everything below 11", aka 10:59 and below etc...

i'll have to give it a try sometime

frifox :

so if using 100KBps as the lowest common denominator can we conclude that its safe to upload 800Kbps video and have it NOT glitch when watching?

lowest speed in which country?

frifox :

oh and also a question. could you fake both the flv duration AND bitrate?

no


@sdsumike619
yes you can use a single command line quite effectively.

sdsumike619 :
What is the best source file to start out with?

a compressible one.

sdsumike619 :
I have expensive NLE at my disposal so I can pretty much create anything from the timeline.

frameserve the source.
when using an intermediary encode,
vp6 and h264 work well.

sdsumike619 :
How do you know what duration to set it to?

nothing wrong with trial and error.

sdsumike619 :
Can we just use 10:00 all the time?

you can...
it would be rather foolish though.

sdsumike619 :

If not, can you post the correct hex codes for those sixteen digits for say, one minute, two mins, three mins, four mins, five mins and so on?

4E00 (the rest zeroes) = 1 min
5E00 = 2 min
6680 = 3 min
6E00 = 4 min
72C0 = 5 min
7680 = 6 min
7A40 = 7 min
7E00 = 8 min
80E0 = 9 min
82C0 = 10 min
849F = 10:59 min (if someone would like to test it)


gl



sdsumike619 posted 2007 Oct 30 13:31
Ok, so a compressable one to me means regular DV AVI, is that fine? You said previously in this thread not to use VP6 because Youtube will re-encode it. Is that not the case anymore? Thank you for posting those hex codes, I would not have been able to figure that out! Is there a way to achieve the same results using avanti as your command line? When I compared the results from avanti with following your guide as best I could.

:

mencoder lesson.avi -o lesson.flv -af resample=22050:0:0 -sws 9 -vf scale=448:-3,expand=448:336 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=400:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=48:mode=3 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames



45tripp posted 2007 Oct 30 13:48
sdsumike619 :
Ok, so a compressable one to me means regular DV AVI, is that fine?

yes,
may need some filtering, according to taste

sdsumike619 :

You said previously in this thread not to use VP6 because Youtube will re-encode it. Is that not the case anymore?

not changed, nor is it likely to ever.
you were talking about doing things in 2 steps.
encode 1,
encode 2.
In such a case i've used both h264 and vp6 as the first step encode.

sdsumike619 :
Thank you for posting those hex codes, I would not have been able to figure that out!

np

sdsumike619 :
Is there a way to achieve the same results using avanti as your command line? When I compared the results from avanti with following your guide as best I could.

Avanti is already set up the way it should be.
I prefer mencoder over ffmpeg too,
but there shouldn't be that much of a difference,
assuming the settings are the same that is.

sdsumike619 :

:

-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames


update mplayer/mencoder.

gl



sdsumike619 posted 2007 Oct 30 13:57
I thought I downloaded the latest version from your link... what version should I have?
So now as I understand it, your command line code encodes to FLV at 400kbps. Then we use the hex editor to increase the duration and doing so will lower the reported bitrate? Is it best to get as close to 350 as possible? Or does it not even matter since the actual bitrate isn't changing? When I increased it to 10 mins, the reported bitrate I think was 36kbps. So what I'm trying to determine is if I should be shooting for as close to 350 as I can without going over?



Biggiesized posted 2007 Oct 30 20:14
I always do 2-pass encodes with 290 kb/s set as the video bit rate and I have a specially prepared ABR stereo .mp3 at 48 kb/s. Muxing them together typically keeps me around 345-349 kb/s total (there is typically 9 kb/s in overhead).

Sometimes with the film content I use, doing more than 2-passes yields video bit rates much higher than my target because the encoder chooses a bit rate close to yours, but one that it deems the best for that content (be it on or off the mark).



45tripp posted 2007 Oct 31 16:26
sdsumike619 :
I thought I downloaded the latest version from your link... what version should I have?

http://sourceforge.net/project/showfiles.php?group_id=205275&pack ... _id=546081

sdsumike619 :

So now as I understand it, your command line code encodes to FLV at 400kbps.

you can change the bitrate...

sdsumike619 :
Then we use the hex editor to increase the duration and doing so will lower the reported bitrate? Is it best to get as close to 350 as possible? Or does it not even matter since the actual bitrate isn't changing?

Yes, it matters.
Unless you don't care how much duration is misreported.
Get close to 350.

sdsumike619 :
So what I'm trying to determine is if I should be shooting for as close to 350 as I can without going over?

No need to spend much time on it. Just get close.

Biggiesized :

Sometimes with the film content I use, doing more than 2-passes yields video bit rates much higher than my target because the encoder chooses a bit rate close to yours, but one that it deems the best for that content (be it on or off the mark).

:?:
multipass vbr is accurate.
i've not heard of oversized mencoder encodes. undersized yes.
and i've exerienced failed encodes where mencoder informs that the bitrate is too low for the parameters set


gl



sdsumike619 posted 2007 Oct 31 18:43
Here's a question, when I execute the command line, it puts all that initialization stuff up on the screen and then as it's going sometimes it says "skipping frame!" or "1 duplicate frame(s)!" Is this bad? Also, I tried frameserving from Vegas using the debugmode frameserver and it doesn't work with this particular application, nor TVC, nor Avanti.. It keeps saying that the input file is no good. How can I frameserve to these applications so I don't have to encode another big AVI file? Instead of AVI, I've found that MP4 gives a pretty good result if used as an input file..


45tripp posted 2007 Oct 31 21:08
sdsumike619 :
Here's a question, when I execute the command line, it puts all that initialization stuff up on the screen and then as it's going sometimes it says "skipping frame!" or "1 duplicate frame(s)!" Is this bad?

no

sdsumike619 :

Also, I tried frameserving from Vegas using the debugmode frameserver and it doesn't work with this particular application, nor TVC, nor Avanti..

Go via avisynth.
render with vegas to the signpost.avi,
and load into avisynth with:
:
avisource("signpost.avi")

encode your movie.avs

Avanti has a force avisynth mode btw.
load the vegas signpost.avi into avanti and force avisynth mode,
encode.

gl



sdsumike619 posted 2007 Oct 31 21:14
ok I've never used avisynth before, it's command line too? Can you explain these two steps in a bit more detail:

avisource("signpost.avi")
encode your movie.avs

is avisource an executable file? I don't really understand because I haven't used it before. I understand that you want me to render the signpost avi file from vegas. But them from there, I don't follow.. Did you mean movie.avi What file do I use as a source for mencoder?



45tripp posted 2007 Oct 31 22:10
but you have avisynth installed...
at least from your post in the avanti thread, that's what i gathered
"avisynth/ffmpeg combo sound"

If it's installed, (if not, install!)
load the avi exported from vegas into avanti,
and on the "start process" button right click to select "avisynth FORCE mode" (this remains selected
until you change it again regardless of program shutdown; avanti keeps settings)
there is a little red icon next to the 'source 1' input box called "A:", click on the A making the box yellow,
then start the encode.

Anyway,

avisynth is a frameserver.
you install it.
then you open a text editor, like notepad, write a script and save the text file with an .avs extension,
that avs file then serves as your video, you load the movie.avs file into your encoder.

don't let the word script scare you,
for this task all that is required is a single line.
open a text file in notepad and write the following, where 'signpost.avi' is your exported from vegas file:
:
avisource("signpost.avi")

then save the file as 'movie.avs' in the same directory that 'signpost.avi' is.
from now on treat 'movie.avs' as your video.

gl



sdsumike619 posted 2007 Oct 31 22:15
Ok, so from your last reply, it sounds like you're giving me two options, correct? One is to use avanti (apparently when I right click to select "avisynth FORCE mode" it should make it work whereas before it was saying the file format was no good) And the other method is to use Vegas to frameserve to avisynth to frameserve to mencoder, do I have it right now?


45tripp posted 2007 Oct 31 22:19
the option is the same,
you frameserve with vegas to avisynth to the encoder.

with Avanti the avisynth script is created for you,
if you want to use mencoder you'll have to write it yourself.



sdsumike619 posted 2007 Oct 31 22:24
OK I'll have to try that later.. Right now I'm encoding video for Brightcove, which by the way comes out fantastic following their guidelines. Earlier I made one for YouTube using your method with mencoder, I upped the bitrate to 800kbps and then used the hex editor to increase it from 53 seconds to 2 minutes so then mediainfo only reported the bitrate as something like 312 if I remember right. The video looked great on Youtube.. So for anyone reading this thread thinking it sounds impossible, I'm a total beginner, just copy his command line to notepad and change the input/output filenames and bitrate if you want and then you're good to go, just paste it on the command line and hit enter, it does the rest!


Toastie posted 2007 Nov 02 11:07
45tripp :


:

ffmpeg -i 300.avs -pass 1 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 400k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell 300.flv

ffmpeg -i 300.avs -pass 1 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 400k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell -y 300.flv






Shouldn't that second line from the bottom say "-pass 2"? I am new to this, but I interpreted the last two lines to be the parameter for the 2nd pass, since it has the "-y" to delete the inital results. If I am wrong on that, please let me know.

Thanks.



sdsumike619 posted 2007 Nov 02 11:32
OK so thanks to 45tripp, I've got Youtube down pretty good... Is there any kind of trick with Google video? They don't accept FLV but that's what they encode to, so what can we do? Everything I upload there looks like crud.


45tripp posted 2007 Nov 02 13:30
I don't know any google tricks.

@toastie,
typo, fixed.



Toastie posted 2007 Nov 02 18:14
The source was interlaced and could have been a bit cleaner, so I did this:

AviSynth:

LoadPlugin("C:\Documents and Settings\Administrator\My Documents\My Downloads\Working files\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnDot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LeakKernelDeint.dll")
a = mpeg2Source("AR.d2v").UnDot().LeakKernelDeint(1).Lanczos4Resize (480,360).changefps(20)
b = wavsource("AR.wav")
audiodub(a,b)


ffmpeg.bat file:

ffmpeg -i AR.avs -pass 1 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 658k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell AR.flv

ffmpeg -i AR.avs -pass 2 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 658k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell -y AR.flv


The file is actually 4:52 long, and with the bitrate set to 658 and 48K 22050 mono audio, the file size is 25,460KB. Used the Hexcellent hex editor to change it to 10 minutes (82C0) and the combined bitrate reported by Mediainfo was 348. Close enough.

http://www.youtube.com/watch?v=7brcBuoC8DY


Pretty sharp!



frifox posted 2007 Nov 05 03:41
45tripp :

frifox :

so if using 100KBps as the lowest common denominator can we conclude that its safe to upload 800Kbps video and have it NOT glitch when watching?

lowest speed in which country?


sdsumike619 :

If not, can you post the correct hex codes for those sixteen digits for say, one minute, two mins, three mins, four mins, five mins and so on?

4E00 (the rest zeroes) = 1 min
5E00 = 2 min
6680 = 3 min
6E00 = 4 min
72C0 = 5 min
7680 = 6 min
7A40 = 7 min
7E00 = 8 min
80E0 = 9 min
82C0 = 10 min
849F = 10:59 min (if someone would like to test it)


gl

1. USA
2. I found if you use "84 B0" for duration, video slips under the radar and youtube player shows an even 11:00 :) demo: http://youtube.com/watch?v=0quY-nTlSuE


oh, and btw i'm using latest Sorenson Squeeze and for some reason 350Kbps CBR video looks MUCH better than 350Kbps 2-Pass VBR video... am i missing something here, i thought VBR was supposed to be better???



Toastie posted 2007 Nov 05 09:14
frifox :

1. USA
2. I found if you use "84 B0" for duration, video slips under the radar and youtube player shows an even 11:00 :) demo: http://youtube.com/watch?v=0quY-nTlSuE



I saw that on the page for your sample video, you say:

> Restrictions are that the video has to be 25fps,
> and audio should be 80Kbps stereo.


Do you mean 25fps is youtube's max fps? I had thought from reading this thread that 20 fps was the max allowed, but maybe that was just the suggestion for getting the most out of this technique?

Also, do you know what the real youtube upper limitation is for the audio? I thought that 48K 22050 mono audio was the most, but maybe that was just a suggestion? If the audio sounds ok at 48K 22050 mono or just isn't that important I do think that is good to use and allows for more encoding bit rate for the video.


Thanks!



zoobie posted 2007 Nov 05 10:23
I've found increased quality control by simply not uploading to youTube at all and using one of my hosted domains. Of course, it's not free but I have my choice of formats, length, bitrates, fps, audio, and overall PQ.
Will be adding HD-WMV, too.



45tripp posted 2007 Nov 05 11:27
Toastie :

Do you mean 25fps is youtube's max fps? I had thought from reading this thread that 20 fps was the max allowed, but maybe that was just the suggestion for getting the most out of this technique?


20 was specific to what I was doing,
and suggestion.
30 is the max. If you let youtube re-encode you that is,
otherwise there is none.

Toastie :

Also, do you know what the real youtube upper limitation is for the audio? I thought that 48K 22050 mono audio was the most, but maybe that was just a suggestion? If the audio sounds ok at 48K 22050 mono or just isn't that important I do think that is good to use and allows for more encoding bit rate for the video

Again suggestion,
you can find 320k stereo if you look.

frifox :

2. I found if you use "84 B0" for duration, video slips under the radar and youtube player shows an even 11:00 :) demo: http://youtube.com/watch?v=0quY-nTlSuE

thanks for testing

frifox :

oh, and btw i'm using latest Sorenson Squeeze and for some reason 350Kbps CBR video looks MUCH better than 350Kbps 2-Pass VBR video... am i missing something here, i thought VBR was supposed to be better???

it is in most cases.
can't comment on squeeze, as i've never used it.

zoobie :
I've found increased quality control by simply not uploading to youTube at all

always good to fly solo



sdsumike619 posted 2007 Nov 05 15:57
Since I don't know all the particulars of your command line command, can you help me to write a command to convert an NTSC DV AVI source (720x480, 29.97fps, non-interlaced) to the new 480x360 frame size FLV using mencoder? I really want to achieve the highest possible quality on this one, especially the audio. And the length is just under 5 minutes. Does mencoder let you do two pass? If so what would the command be? Thanks so much!


45tripp posted 2007 Nov 06 11:33
Just beacause display size is 480x360,
doesn't mean you have to encode to that resolution...

DV can benefit from filtering.

Filtering aside,
I guess something like this:

:
mencoder dv.avi -o menc.flv -af resample=44100:0:1 -srate 44100 -sws 9 -vf scale=480:-3,expand=480:360 -of lavf -ovc lavc -lavcopts vcodec=flv:vpass=1:vbitrate=550:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=128

mencoder dv.avi -o menc.flv -af resample=44100:0:1 -srate 44100 -sws 9 -vf scale=480:-3,expand=480:360 -of lavf -ovc lavc -lavcopts vcodec=flv:vpass=3:vbitrate=550:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=128



gl



frifox posted 2007 Nov 06 14:34
45tripp :
Just beacause display size is 480x360,
doesn't mean you have to encode to that resolution...

and as a tip:


QUOTE:
Video codecs such as On2 VP6 and Sorenson Spark perform best when the frame width and height use multiples of 16. While you can use any width and height in your encoding settings, non-optimal dimensions can result in poor image quality and reduced frame rate. For the best image quality and playback, you should always use width and height dimensions that use a multiple of 16 (best), 8 (better), or 4 (good). In fact, I would recommend that you refrain from using 4 or 8 multiples unless absolutely necessary, if you can verify with cross-platform tests that quality or playback haven't been compromised. Refer to the following tables to pick dimensions for your layout.

Optimal frame dimensions are here:
http://www.flashsupport.com/books/fvst/files/tools/video_sizes.html



bayme posted 2007 Nov 10 15:34
OK, I have some homemade source video files (OpenDML AVI, with 44.1 kHz PCM audio, all uncompressed), 640x480, 25fps, RGB Raw Bitmap (no codec required for Windows). The file I'm first trying is 5 GB in size.

I was trying to use mencoder to convert them. They have already been filtered much, so I don't need avisynth.

This is my favored commandline for now:
:
mencoder pbd.avi -af -sws 9 -vf scale=448:-3,expand=448:336 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:mv0_threshold=0:trell:v4mv:cbp:
last_pred=3:predia=2:dia=2:precmp=2:cmp=4:subcmp=3:preme=2:vpass=3:psnr
-oac mp3lame -lameopts cbr:br=160:mode=3 -o presencer.flv


When trying that I get a sh*tload of errors. Any and all advice is welcome here..
Thanks in advance..



45tripp posted 2007 Nov 10 19:04
the first thing to do is to remove vpass=3


Scotty J posted 2007 Nov 11 05:06
Pretty dang slick bud. I haven't really played around with it too much, I pretty much just followed your example to see how it turned out. I am very impressed.

Here are two links, the first is the one that I uploaded a while back to Google Videos, the Second is one that I just upload this morning. The difference if very clear (pardon the pun LOL). Below the links, I'll post my AVISynth script and my FFMpeg script. The FFMpeg scripts was pretty much right off your example, I just changed the names to protect the innocent.

I did run into one slight dilemma, and it was nice to be able to work it all out on my own. I've been lurking around here and Doom9 for about 2 years. This stuff is very cool, but it gets REAL complicated quick. The problem that I ran into is, there are 4 static pics at the intro of the clip. When I resized the video, it cropped the edges of them, so I had to whip out Photshop, change the graphic, I used avysynth to add the borders and to even everything out. Thanks again for a very interesting lesson.

Google Vid
YT Vid

AVISynth Script
:

DirectShowSource("C:\Work\test.wmv",0,audio=false).Crop(18,0,-18,-0).Lanczos4Resize(448,336).ConvertFPS(20).ConvertToYV12()
v1=Trim(165,4115)
p1=Imagesource("C:\Work\1.jpg",end=41,fps=20).AddBorders(0,18,0,18).Lanczos4Resize(448,336).ConvertToYV12()
p2=Imagesource("C:\Work\2.jpg",42,end=83,fps=20).AddBorders(0,18,0,18).Lanczos4Resize(448,336).ConvertToYV12()
p3=Imagesource("C:\Work\3.jpg",84,end=125,fps=20).AddBorders(0,18,0,18).Lanczos4Resize(448,336).ConvertToYV12()
p4=Imagesource("C:\Work\4.jpg",126,end=164,fps=20).AddBorders(0,18,0,18).Lanczos4Resize(448,336).ConvertToYV12()
vid=AlignedSplice(p1,p2,p3,p4,v1)
a1=DirectShowSource("C:\Work\test.wmv")
AudioDub(vid,a1)


FFMpeg Script
:

ffmpeg -i test.avs -pass 1 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 400k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell test.flv

ffmpeg -i test.avs -pass 2 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 400k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell -y test.flv
[/code]


bayme posted 2007 Nov 11 22:53
45tripp :
the first thing to do is to remove vpass=3
Doesn't change one bit. The result gives almost the exact same errors.
I got the vpass idea from doom9 and http://www.mplayerhq.hu/DOCS/tech/encoding-tips.txt



45tripp posted 2007 Nov 12 11:35
you got the wrong idea.

anyway,
might be something with your actual file.

could try adding -vc rawrgb32 or -vc rawbgr32flip

if you like upload a few frames somewhere and i'll try.

gl



LordOfTheStrings posted 2007 Nov 13 02:30
Is there any way you can simplify this tutorial a bit?

I am completely new to advanced video editing techniques - I've never touched mencoder, and I cannot for the life of me understand Hex Editing.

All I know is that I created a very high quality video on my computer, and when I uploaded it to YouTube, it came out looking like this:

http://www.youtube.com/watch?v=KtiM-e3wiCc

Please help!



45tripp posted 2007 Nov 14 02:48
LordOfTheStrings :
Is there any way you can simplify this tutorial a bit?

It's simple enough.
Go through it step by step and you'll manage.

If you read through the thread you'll see nobody got stuck for long.

LordOfTheStrings :

I am completely new to advanced video editing techniques - I've never touched mencoder,

Don't use mencoder.
Use ffmpeg and a gui. I've linked to Avanti.
It has a template ready.
Gui, template...
minimal input required.

LordOfTheStrings :

and I cannot for the life of me understand Hex Editing.

It's simple.
Follow the steps. Use the program linked to, do what you see in the pictures...
I've even posted hex values for durations up to 11 minutes in single min increments.
It doesn't get easier than that.

gl



Captain Satellite posted 2007 Nov 14 07:02
Almost nobody. I never could get my conversion to look as good as yours and didn't want to drag the Q and A on too long...


45tripp :
LordOfTheStrings :
Is there any way you can simplify this tutorial a bit?

It's simple enough.
Go through it step by step and you'll manage.

If you read through the thread you'll see nobody got stuck for long.

LordOfTheStrings :

I am completely new to advanced video editing techniques - I've never touched mencoder,

Don't use mencoder.
Use ffmpeg and a gui. I've linked to Avanti.
It has a template ready.
Gui, template...
minimal input required.

LordOfTheStrings :

and I cannot for the life of me understand Hex Editing.

It's simple.
Follow the steps. Use the program linked to, do what you see in the pictures...
I've even posted hex values for durations up to 11 minutes in single min increments.
It doesn't get easier than that.

gl



45tripp posted 2007 Nov 14 16:56
Captain Satellite :
Almost nobody.

Nobody.
You completed the procedure successfully, yes?

Captain Satellite :
I never could get my conversion to look as good as yours

That's filtering, a separate issue (beyond the scope of the guide).
I recall providing the exact filter parameters though.

but if you'd like to have another crack at it,
pm me with the specifics.

gl



Captain Satellite posted 2007 Nov 15 06:27
45tripp,

My questions and posts can become very annoying because it takes me a while to comprehend what you're trying to convey. I didn't know how to load the parameters into avanti or am not even sure if that's where they go.

What I did upload to youtube had increased quality but the files were big and kept stopping to load up on computers that had not yet played them.

I thought I was doing really well until I asked somebody what they thought and they said they got impatient because the video kept hanging. I abandoned the whole thing and deemed my attempt a failure, not your procedure.

I appreciate your generous offer at helping me through PMs, but feel that your time could be better spent.

Here are my latest uploads. They need help no doubt.


45tripp :
Captain Satellite :
Almost nobody.

Nobody.
You completed the procedure successfully, yes?

Captain Satellite :
I never could get my conversion to look as good as yours

That's filtering, a separate issue (beyond the scope of the guide).
I recall providing the exact filter parameters though.

but if you'd like to have another crack at it,
pm me with the specifics.

gl



45tripp posted 2007 Nov 15 13:05
pm me an untouched source.


LordOfTheStrings posted 2007 Nov 15 15:50
Well, I decided to take a stab at it, and I have to say, wow. Incredible results. I can't post a link right now since I'm at work and I don't want to go on YouTube through their internet (you never know what might happen). Just check out my channel though, and you'll see it.

Awesome exploit though! Thanks for the tutorial 45tripp!

Now let's just hope that YouTube doesn't catch on and patch it up. =o



halsboss posted 2007 Nov 15 16:07
<deleted>


racer-x posted 2007 Nov 16 11:11
Great guide!!!

Ive never uploaded a video to youtube before, but this guide helped a lot. It allowed me to encode one of my brother's old music videos and upload it for him with good quality (for youtube), thank's!

Here's the video:
http://www.youtube.com/watch?v=QrVVtSIUXZ8

You may not understand the language, but the girls are pretty hot.



hifipj posted 2007 Nov 16 11:26
Hi all,

I've been quietly following this thread and wanted to drop a quick note to thank everyone who has contributed. I have finally been successful in uploading HD videos to youtube without re-encoding, here's a sample of my work:

http://www.youtube.com/watch?v=4xkJluPLrZk

As a content producer HD videos, I wanted to find a way to put some samples up on YT with the best possible quality, that's how I found this thread. I just wanted to add a couple quick things that might be of help to others looking to do the same thing, who haven't been successful yet.

First, again thanks to everyone who helped here, esp. 45tripp for his great guide.

here's what I would add to this knowledgebase:

First, the guide should be clearly delimited into 2 parts:
How to create a high-quality FLV that is in the correct format for YT pass-thru without re-encoding, and
How to modify the FLV using MediaInfo and Hexcellent to change the shown bitrate.

I know it is kind of divided this way, but at first when I started reading it, it seemed like ALL the steps were needed to have a successful result, and being not a big fan of using command-line software, I wasn't really excited about trying everything with mencoder or the other mentioned program. I am, however, very comfortable working/editing HDV in Adobe Premiere Pro (I use CS3), and Premiere has an FLV output option with the Adobe media encoder.

So I first tried that, first scaling the HDV to 448x336, then to 480x360. I tried a few bitrates, between 1500 and 4000kbps. Anyway, Adobe media encoder isn't the best downscaler in the world, the resulting video certainly looked good but had some jaggies on moving diagonal lines.

I ran into a problem when I tried to upload; I used the hex editor as instructed and checked the videos in MediaInfo; all the tests I tried to upload were between 300 and 345Kbps, and the other specs were in line with the suggestions. But whatever I tried, YT always insisted on reencoding. I was getting really frustrated, until I read the very fine print in one of 45tripp's replies, that you MUST use Sorenson encoding for the FLV, not VP6.

Repeat: you have to use SORENSON, any videos with VP6 will get re-encoded. This was a big bummer for because, in my opinion, Sorenson FLV encoding blows! Compared to VP6, using tests with HD source material, Sorenson consistently required about twice the bitrate to have the same quality of video (lack of pixellation, macroblocking, etc) as VP6. Encoding 480x360 FLVs for YT, I could get very good quality, with almost no macroblocking, at 2000Kbps using VP6. With Sorenson, I have to go to 3000-3500Kbps to get similar quality. I also tested both ways using Sorenson Squeeze 4.5, the VP6 videos still look better.

The next main thing I wanted to mention is that the suggested workflow isn't written in stone. You can do this quite easily if you are working with a nonlinear editor, like Premiere or Vegas, and can send out FLVs directly from the NLE. I ended up not doing that, getting better results by sending out a 1920x1080 AVI from premiere (via frameserving to TMPGExp), then encoding my FLVs in Sorenson Squeeze, using 2-pass VBR encoding. The quality was better this way than creating the FLVs straight from Premiere. So don't be scared if these directions sound daunting to create a YT-ready FLV, there are many ways to do it. I know the suggested method has the benefit of using free software, and this is definitely a big point if you don't have a NLE or Sorenson at your disposal.

Also, keep a close eye on that 27Mb maximum file size, it is right on. I ended up encoding my 1-minute videos at about 3700Kbps, then HEX'ing them to 10:59, which showed a reported bitrate around 340Kbps. And the file sizes are just under 27Mb.

Anyway, thanks again to everybody who posted on this thread, with a lot of trial and error I was able to come up with the workflow that's best for me, but I couldn't have gotten there without this thread.

Regards,
Patrick



hifipj posted 2007 Nov 16 11:30
One other thing I forgot to mention:

Another side effect of the reported time being wrong, is that YT will give you a thumbnail image of your video ONLY from the first frame of the video. At least that's what it did for me, with several tests. Because when you think about it, if the reported time is, for example, 10 minutes, but your video is really only 1 minute, the sample images YT pulls from the middle and end will always be black. The only thumbnail that's usable will be from the very beginning of the video. So if you have a nice fade-in from black at the beginning of your video, like I usually do, your thumbnails will all show black once the video is uploaded.

Sorry if this was mentioned here before, I didn't see it and wanted to help those who may not know this.



Captain Satellite posted 2007 Nov 16 17:15
hifipj,

I'm on broadband and your video is hanging/stopping A LOT. Same problem I had. Back to the drawing board.



hifipj posted 2007 Nov 17 02:51
All the high-bitrate encoded videos do that. It's because you are downloading a 27Mb file, and unless your connection can stream 3700Kbps, it's going to hang while it is buffering.

Once the video is buffered completely, you just hit "replay" and it plays smoothly in real-time. I'm on a 56K connection and watching it play smoothly right now in real time.

I put instructions on my video's page to let people know they have to wait for it to load fully, then play. Also, you may need to right-click the video window, go into settings for flash player, and increase the amount of data youtube can store on your computer to Unlimited. This way it saves the entire clip in your browser cache and doesn't try to go and re-download it every time you play.

Regards,
Patrick


BTW--has anyone figured out a similar method that works for Yahoo! Video? I tried uploading a YT-ready high bitrate video to Yahoo, but it won't accept FLVs. Is there a way to get high bitrate videos onto Yahoo also, without re-encoding?



hifipj posted 2007 Nov 17 07:31
Wow! I just came across this press release:

http://tech.yahoo.com/blogs/hughes/21018


YouTube to Stream High-Quality Videos Soon

Fri Nov 16, 2007 3:05AM EST

See Comments (2)

It's about time. YouTube co-founder Steve Chen told those attending the NewTeeVee Live conference today that YouTube will be streaming high-quality videos in about three months. Webware says the service is "testing a player that detects the speed of the viewer's Net connection and serves up higher-quality video if viewers want it."

Streaming video requires a lot of bandwidth, so in order to make the site's content available to everyone, they have to stream it at a fairly low bit rate. The resolution is not stellar, but for most of us, being able to watch videos quickly takes precedence over video quality.

Chen also told Webware that videos uploaded to YouTube have been stored in their native resolution, so once this new player rolls out, high-quality videos will be available immediately.

The video sharing site currently asks users to upload videos in MPEG-4 format, at a 640 x 480 resolution, even though videos are encoded into low-resolution Flash files and resized to a 320 x 240 resolution.

This is actually great news for YouTubers, and personally I'm glad the company isn't making us wait another year or two for this type of upgrade. Yay for YouTube!



Captain Satellite posted 2007 Nov 17 08:19
45tripp accomplished results equal to yours without that problem, that is why I was so impressed. Others have done this as well. I uploaded a high quality video but it did the same thing as yours. Nice effort though.

Also, nobody is going to go through the trouble of reading instructions and configuring their computer to watch your videos. If they do, you've got some major fans out there.



hifipj :
All the high-bitrate encoded videos do that. It's because you are downloading a 27Mb file, and unless your connection can stream 3700Kbps, it's going to hang while it is buffering.

Once the video is buffered completely, you just hit "replay" and it plays smoothly in real-time. I'm on a 56K connection and watching it play smoothly right now in real time.

I put instructions on my video's page to let people know they have to wait for it to load fully, then play. Also, you may need to right-click the video window, go into settings for flash player, and increase the amount of data youtube can store on your computer to Unlimited. This way it saves the entire clip in your browser cache and doesn't try to go and re-download it every time you play.

Regards,
Patrick


BTW--has anyone figured out a similar method that works for Yahoo! Video? I tried uploading a YT-ready high bitrate video to Yahoo, but it won't accept FLVs. Is there a way to get high bitrate videos onto Yahoo also, without re-encoding?



frifox posted 2007 Nov 17 08:28
WOAH, ive noticed that if you hex edit the duration, youtube's player on their page will misinterpret the duration... BUT their EMBED player, aka the one they give us to use for embedding our videos in external web page, interpret the duration properly!

9:06 HEXed to 11.00:
http://frifox.wordpress.com/youtube-hexed-duration/

25:08 HEXed to 10:32:
http://frifox.wordpress.com/youtube-25-minute-video/



racer-x posted 2007 Nov 17 19:32
I like this method a lot. I've only joined Youtube yesterday and already posted 3 good quality (for youtube that is) videos. My latest is a sports clip I encoded @ 800 kbps and Hexed it from 1 to 3 min duration. It looks pretty good considering the high detail and motion.

Here's the 1 min clip:
http://www.youtube.com/watch?v=YOmP5F-RknY



Captain Satellite posted 2007 Nov 18 08:56
That looks amazing, racer-x. My efforts have come nowhere near that.


zoobie posted 2007 Nov 18 11:41
youTube has to take all those copywritten videos off once noticed.

I don't find any advantage in streaming vs downloading except you can see some of the footage and it's quality before finally viewing. Streaming seems to be more of a lame security technique to me than anything else.



LordOfTheStrings posted 2007 Nov 18 12:49
If only there was a way to Hex Edit the bitrate itself. That way, we wouldn't have to mess with the duration, and we could upload longer videos with this type of quality.

I made a 3-minute video at 1250kbps, and used Hex Editor to bring the duration up to 11 minutes and the bitrate to 345kbps, but since 11 minutes is longer than 10 minutes, YouTube wouldn't accept it. =(



frifox posted 2007 Nov 18 13:41
LordOfTheStrings :
If only there was a way to Hex Edit the bitrate itself. That way, we wouldn't have to mess with the duration, and we could upload longer videos with this type of quality.

if i understood the process correctly, youtube CALCULATES total bitrate with the following function:

(FileSizeInKB / DurationInSeconds) * 8 = FinalBitrateInKbps

so as you see above, final bitrate is dictated by filesize and duration.... we can't fake file size, duh lol, but we CAN fake the duration 8)



Neptuna_Fish posted 2007 Nov 18 15:47
Okay. Before I attempt to try this method out myself, I just want to be sure of a few things:

*deep breath* Am I correct in assuming that with this flv/hex hack we're creating a Trojan horse in that YouTube will interpret our videos as being within their limits (350k total bitrate, otherwise it'll undergo the dreaded re-encoding process), however the actual media info may reveal a video having a bitrate as large as 3600kbps and the audio with a bitrate of 320kbps and a sample rate of 48,000, BUT! the only real limitation on our part is that the video cannot exceed 25fps and must be encoded by the Sorenson codec? *wheezes*

About this Sorenson codec...I use SUPER for all of my encoding and transcoding or whatever, but when it comes time to encoding something with an flv wrapper (?...I'm total noob when it comes to terminology as well), there are no alternatives. Like, for example, if I were to select .avi as my container I would get a variety of output codecs to choose from (i.e., DivX, Xvid, H.263, H263+, etc), but when I choose FLV as the container, the only output codec option I have is FLV >_>; there is no vp6 or Sorenson or what have you to select.

*sigh*

There are other video sharing sites out there, like Blip.tv, that do not re-encode videos and impose time limits (total file size cannot exceed 1gig, though), but because YouTube will remain the most widely visited site of them all for some time, I'm willing to jump through all these hoops to upload the best possible quality that I'm able to.

Other great alternatives to YouTube that I know of:

- MegaVideo: 5gig max with no time limits (that I'm aware of) and no reprocessing (that I'm aware of).
- GUBA: I think videos can't exceed 500MBs, but there are no time limits (not that I'm aware of) and as long as the video is in .flv, no reprocessing...that I'm aware of.



45tripp posted 2007 Nov 18 18:16
Neptuna_Fish :

*deep breath* *wheezes* *sigh*

relax

Neptuna_Fish :
Am I correct in assuming that with this flv/hex hack we're creating a Trojan horse

Yes.

Neptuna_Fish :

however the actual media info may reveal a video having a bitrate as large as 3600kbps and the audio with a bitrate of 320kbps and a sample rate of 48,000, BUT! the only real limitation on our part is that the video cannot exceed 25fps and must be encoded by the Sorenson codec?

No
You can't have a sample rate of 48000 Hz in the flv container.
There are no framerate limitations.
The limitation is duration, or reported duration.

Neptuna_Fish :

I choose FLV as the container, the only output codec option I have is FLV >_>; there is no vp6 or Sorenson or what have you to select.

That's the one.

vp6 won't work with this method.
I see hifipj mentioned that he thought vp6 was mentioned in fine print...
Well in the very first sentence of the guide I say this works with flv1, ie with nothing else.
I thought it specific enough but I'll edit and stress it.
And no super can't do vp6 anyway.

Neptuna_Fish :

- GUBA:

Last time i tried GUBA, it's interface was exceptionally poor.

gl



seven_deuce offsuit posted 2007 Nov 18 21:01
Is it possible to have DV video look as good? 10 minute DV video will suffer from the less than 350kbps method.


Neptuna_Fish posted 2007 Nov 20 01:02
Wow. Pretty cool, 45tripp...but does the fps absolutely have to be below 25 or would the total bitrate be impossible to keep below 350k if it were any higher? Also, in YouTube, the video plays as though it has a lot of frames missing even after it loads. Do you have any idea why that could be?

http://youtube.com/watch?v=rrXlljXUdr8
The clip length is 55sec; Scale = 960x720; Aspect = 4:3; FPS = 23.976; Video bitrate = 3600kbps

The fuzz at the top is the fault of my dvd recorder (Panasonic DMR-ES15) or maybe there's something in the settings I need to tweak. It's a refurb that I bought from Fry's.

Edited to Add...

I guess I should include the copy of the clip should anyone care to compare the two and see what I'm talking about: http://www.flyupload.com/?fid=4518597



Cornucopia posted 2007 Nov 20 09:56
Neptuna_Fish :
...The fuzz at the top is the fault of my dvd recorder (Panasonic DMR-ES15) or maybe there's something in the settings I need to tweak. It's a refurb that I bought from Fry's...


That's not "fuzz", that's either VITC Timecode (SMPTE recorded in the vertical interval) or Closed Captioning, or both. And they're supposed to be there on broadcast clips. Your recorder is GOOD in that it is capable of capturing that as well as the picture (some strip it off first). This can be handy if you want to view CCs later on, or convert to DVD subtitles, or edit according to timecode, etc.

If you really don't want it on your web-distributed files, just crop it out (or mask with black to keep the rez the same) when compressing.

Scott



Cornucopia posted 2007 Nov 20 10:02
seven_deuce offsuit :
Is it possible to have DV video look as good? 10 minute DV video will suffer from the less than 350kbps method.


As good as what?
__Original DV video? No.
__These other clips? Doubt it (most of those were from film sources). Depends on quality of your DV camera and your skill at shooting.
__Other GOOD uploaded files? Quite Possibly. Use good deinterlacer and resize algorithms first, and make sure you don't incorrectly mess with colorspace. (NTSC DV is 4:1:1, PAL DV is 4:2:0, IIRC). Apply NR filters as appropriate.

Scott



bayme posted 2007 Nov 20 18:20
...


pozole posted 2007 Nov 27 16:39
Hi everybody

I'm a newbie on all digital video stuff and this forum. I recently bought a Panasonic PV-GS320 3CCD camcorder that grabs great images and colors. I tried to upload some videos to youtube to show the quality of the image this camera renders, but all looked great on my computer, but looked like shit when uploaded to YouTube.

Then I came across this thread and followed the technique explained here.

This is the result of my first encoded video with this camera:

http://www.youtube.com/watch?v=0FiMapmrr2s

Thanks to 45tripp for the technique.



Captain Satellite posted 2007 Nov 27 17:15
That looks great. I'm using the same camera and mine looks like crap. I've officially given up.


pozole :
Hi everybody

I'm a newbie on all digital video stuff and this forum. I recently bought a Panasonic PV-GS320 3CCD camcorder that grabs great images and colors. I tried to upload some videos to youtube to show the quality of the image this camera renders, but all looked great on my computer, but looked like shit when uploaded to YouTube.

Then I came across this thread and followed the technique explained here.

This is the result of my first encoded video with this camera:

http://www.youtube.com/watch?v=0FiMapmrr2s

Thanks to 45tripp for the technique.



jfharper posted 2007 Nov 30 12:36
How do you know if YT reconverts your flv? Does it:
A) Not show "(processing, please wait)"
B) tell you it is reencoding
c) other



Captain Satellite posted 2007 Nov 30 21:20
jfharper :
How do you know if YT reconverts your flv? Does it:
A) Not show "(processing, please wait)"
B) tell you it is reencoding
c) other


d) "&^%$! It still looks like sh*t!" :cry:



jfharper posted 2007 Dec 01 09:37
bummer, avanti is no longer available...


reez posted 2007 Dec 01 22:47
ok....im amazed. i try my butt off to get my vids HQ and im also trying to get it OVER 10mins...but i really don't understand what it is you're TALKING ABOUT..im VERY NEW AT ALL THIS STUFF, but is it like this?
convert a vid with no more than 350bitrate with any converter and use hex editor to change the duration?

i try to understand it, but i just don't
like what do you mean by

"Begin by puting,
mencoder / ffmpeg and your source video in a working folder."

and

"Get your audio to uncompressed .wav
FFmpeg would be fine for 2 channel audio,
for multichannel you'd need external downmixing
Code:
ffmpeg -i test.mkv -vn -acodec pcm_s16le audio.wav

probably better to just use mplayer, straight to 2 channel
Code:
mplayer test.mkv -ao pcm:fast -vc null -vo null"

i would really like to figure out how to do it...if i just get some help with these few things.



45tripp posted 2007 Dec 04 08:59
jfharper :
How do you know if YT reconverts your flv? Does it:

it doesn't take as much time to go live,
it looks/sounds as intended,
and to be sure, download it and see it's of identical size to the upload

jfharper :
bummer, avanti is no longer available...

It will be soon

reez :
ok....im amazed. i try my butt off to get my vids HQ and im also trying to get it OVER 10mins...

one or the other

reez :

convert a vid with no more than 350bitrate with any converter and use hex editor to change the duration?

no.
if it's under 350k you don't have to hex.
if it goes over 350k you have to cheat by hexing so that it appears to be under 350k.

reez :

i try to understand it, but i just don't
like what do you mean by
"Begin by puting,
mencoder / ffmpeg and your source video in a working folder."

I'm providing example commandlines for the specific tools.
If you can't handle using a commandline utility just use an ffmpeg gui like:
Avanti or WinFF

gl



ricardouk posted 2007 Dec 07 18:06
Automen has been updated and we can do all sort of thing, select resizers,crop,bitrate among other things

Thanks to the author



sexiesadie909 posted 2007 Dec 08 17:14
OK, so I'm starting at step 1 and already I'm stuck. I was able to download the "MediaInfo" program.
And I've been trying to get the Mplayer/mencoder program, but it won't work?? I went to the link..
http://tirnanog.fate.jp/mirror/mplayer/ and I had to download and install some weird 7 zip program.
So then i went back and downloaded the first file in the list(not even sure wich file is for me??? i have WinXP):
mplayer2007.12.03.7z 03-Dec-2007 18:18 4.2M

I navigated to the file from within the 7 zip program, right-clicked and extracted to my chosen folder.
I went to that folder, figuring i would be now installing the program. I saw mplayer.exe and mencoder.exe
I clicked on each but both give me and error about a missing .dll file. So i figured files were missing from the 7zip file? So i tried the:
mplayer2007.12.03.Pent-M.7z 03-Dec-2007 17:15 4.3M

Went thru the whole process again, only to have the exact same thing happen.
Help???
Thanks



sexiesadie909 posted 2007 Dec 09 19:34
OK, so I managed to download and install mencoder from the other site...
http://www2.mplayerhq.hu/design7/dload.html
(I chose the "MPlayer 1.0rc2 Windows" one)

But in order for me to get rid of the pixel blocks, I have to set the vbitrate to be at LEAST 1500 or higher.
But doing this, mencoder generates an flv that has like a 1600bit rate wich is not able to be brought down below
a reported 350rate via the Hex editor.

Also, mencoder creates an flv with black strips across the top and bottom....

I am starting with a 3min 41sec 720 x 480 29.97fps Microsoft DV AVI file with a Pixel Aspect Ratio of: D1/DV NTSC (0.9) DeInterlaced ....exported from my timeline in Adobe Premiere 6.5.

I came to realize 45trip, must've already started with a 4:3 ratio, and thusly did not include a switch for that in his command code he put there. So, I included it in my command to look as follows...

mencoder 2007xmasTEST4.avi -o 2007xmastest5_1500rate25fps4to3.flv -lavcopts aspect=4/3 -ofps 25 -af resample=44100:0:1 -srate 44100 -sws 9 -vf scale=480:-3,expand=480:360 -of lavf -ovc lavc -lavcopts vcodec=flv:vpass=1:vbitrate=1500:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=128

But mencoder still generates an flv with the strips at the top and bottom and with the 4:3 switch in that code, it makes the file size be 41.9MB! So something is wrong. Maybe i put the switch in the wrong place?

Also, as you see i stuck in the 25fps swtich, hoping that would lower the bitrate, but it didn't help.

So these are my 2 issues. I do not know if getting mencoder to resize properly to the 480x360 will fix my pixel block issue(having to make the bitrate be so high at 1500). I figured I would try some adjustments in Avisynth, thinking I could create a file with the proper 4:3 ratio to load into mencoder and also maybe sort the pixel block issue. So I downloaded Avisynth from here....

http://sourceforge.net/project/showfiles.php?group_id=57023&packa ... _id=366702

There are two there, a zip and an exe. I downloaded both. I peeked into the zip and saw a bunch of files, but did nothing with them. The exe, I clicked on it and I went thru the install process. But went I went to open it, there is no exe file?

Lastly, I am using SUPER, in order to play back the generated flv's to check the quality.That is where I see
any flv's below 1500bitrate have the pixel blocks. So I know for sure I'm starting with poor quality, even before
I upload to YouTube. Any input would be greatly appreciated. Thanks!



reez posted 2007 Dec 11 01:06
mmmmm 1 stupid question. if i use Winff Gui, does it NOT use your highly recommended mencoder and use something else?...because when it encodes i dont see anything like mencoder in the command box...thanks again for helping


Tab posted 2007 Dec 11 09:54
I'm having some trouble with the hex editing part. My duration string is only nine characters long, and I haven't been able to modify it with any success. I used FFMPEG rather than mencoder to encode, so maybe I'll try out mencoder and see if that helps at all.




Timmychuck posted 2007 Dec 13 07:27
Here is a Christmas video I uploaded to YouTube. Very good quality
Hope you like. I use Ultra Flash Video FLV Converter software


http://www.youtube.com/watch?v=jkrTrHkkGAQ&feature=related



Captain Satellite posted 2007 Dec 13 07:31
Timmychuck, GREAT quality but I'm on high speed and it's freezing every few seconds. Got a link for that converter software?


45tripp posted 2007 Dec 13 13:24
Tab :
I used FFMPEG rather than mencoder to encode,


makes no difference to what you're doing.
you've marked 18 digits,
it's only 16, ie the "05" at the end is not part of what you want to change.
And you only really need to change the first 4 digits.
look at the guide pics again.
use a diff hex editor.

sexiesadie909 :
Any input would be greatly appreciated

A 1500k bitrate is ridiculous

sexiesadie909 :

I came to realize 45trip, must've already started with a 4:3 ratio, and thusly did not include a switch for that in his command code he put there.

no.
mplayer doesn't always detect aspect ratio (or detect it correctly),
DV is such a case.
Don't autoscale, resize directly:
:
-vf scale=480:360



sexiesadie909 :

it makes the file size be 41.9MB!
Also, as you see i stuck in the 25fps swtich, hoping that would lower the bitrate, but it didn't help.

the only thing that will lower bitrate is a lower bitrate,
change "vbitrate=1500"


sexiesadie909 :

Avisynth
The exe, I clicked on it and I went thru the install process. But went I went to open it, there is no exe file?

there's no exe,
once installed you can work with avisynth scripts.
they're simple enough, you create simple text files, write simple arguments and save with an .avs extension.
the .avs file acts as your video.
look it up.

gl



Timmychuck posted 2007 Dec 13 14:51
Captain Satellite, Thanks for your comment.

Want you to know , doing videos this way do take time to load.
So let the video load first by pausing it ,then play.

Heres the link you wanted

http://www.aone-soft.com/flash_video_flv_converter.htm



cordlessmart posted 2007 Dec 17 17:32
I have been following this thread and have a question.

Is there a formula for figuring out what I should set the bit rate to vs the length of the video or guess?


Wondering if a brilliant programmer will adopt these tactics to a Encoder program that has all the formulas figured out in the program. If you have the info it should be easy to adopt to any encoding program already out there.

For example.. If I have a video thats 640*480 thats 5 min and the size is ? then what would I set the bit rate to in order to get the maximum quality knowing that the limit is 10 min as the standard encoder that google converts it too. It seem im just guessing here, I did see the hex conversions for the hex editor but im trying to figure out whare to start.. Is there a math formula that I can plug into a spreadsheet then fill in the gapes like ok I have 604 * 480 at 5min plug that in to a formula and get out what the settings would be for YT .. ?

As stated in previous posts it would be easier to break this into (2) parts.. How to encode a flash movie for its peak performance. and (2) then how to hex edit so YT takes that great quality and uses it..

Thanks



firesun posted 2007 Dec 19 01:18
it is good, but I prefer to put flv files on my own website.


45tripp posted 2007 Dec 19 07:47
cordlessmart :

Is there a formula for figuring out what I should set the bit rate to vs the length of the video or guess?

If you're refering to quality,
bit rate and length have nothing to do with each other.
If you're refering to the size-bitrate-length relationship,
I'll quote this from the videohelp calculator page:
:
Manually calculate the bitrate
The basic bitrate formula is

(Size - (Audio x Length )) / Length = Video bitrate

L = Lenght of the whole movie in seconds
S = Size you like to use in KB (note 700 MB x 1024° = 716 800 KB)
A = Audio bitrate in KB/s (note 224 kbit/s = 224 / 8° = 28 KB/s)
V = Video bitrate in KB/s, to get kbit/s multiply with 8°.

°8 bit = 1 byte.
°1024 = 1 kilo in the computer world.

Example
90 minutes video, L = 90 x 60 = 5 400 seconds
700 MB CD but be sure that if fits use a bit lower like 695 MB, S = 695 x 1024 = 711 680 KB
Audio bitrate, A = 224 kbit/s / 8 = 28 KB/s

(711 680 - (5400 x 28) ) / 5400 = 104 KB/s x 8° = 830 kbit/s.


cordlessmart :

I did see the hex conversions for the hex editor but im trying to figure out whare to start..

hex editing is where you end.
it's only the cheat.
You take a 2 min clip with a high bitrate and you edit it to appear like it's say 5 mins so apparent bitrate
falls under 350k.
You can do the math and calculate the exact length you have to hex to so X bitrate falls under 350k,
but you can also just use trial and error.

cordlessmart :

Is there a math formula that I can plug into a spreadsheet then fill in the gapes like ok I have 604 * 480 at 5min plug that in to a formula and get out what the settings would be for YT .. ?

No.
At least it won't always be reliable.

Final quality is dependent on the quality of your original and it's compressibility.
Different sources can be very different.
Peak performance is aquired by flying manually.

A mathematical indicator of quality is "bits/pixel-frame".
I certainly don't use it.
But you could use it to calculate target resolution, based on a selected bitrate (i.e you select it),
useful enough if you have a target bitrate and just want to change resolution based on that.

If you're aiming for steady quality, and set resolutions, it's easier to let the encoder do the work and
encode with a constant quant setting.

cordlessmart :

As stated in previous posts it would be easier to break this into (2) parts.. How to encode a flash movie for its peak performance. and (2) then how to hex edit so YT takes that great quality and uses it..

As answered previously, the guide is already clearly divided in sections.
It's not going to change.
Also, peak performance is relative. I've shown the best tools to use, and outlined the best methods.
I don't plan on doing more.


For youtube I think the aim should be to get the best you can out of a 400-500k bitrate.
I want it streamable.
And with the cheat you increase apparent length by about 40%, which is ok.


gl



speeder posted 2007 Dec 23 12:53
ok...this guy didn't used hex X_X how did he get so nice quality on his uploadings
http://www.youtube.com/watch?v=1Nsw_JjOxAk



ricardouk posted 2007 Dec 23 13:58
that video has been "hexified", i dont know if the correct bitrate is displayed if you download the flv or the "hexefied" bitarate.

on my 521k connection the videos that follow the 350 bitrate, playback from begining to end without stopping once, that video stops and plays, stops again and plays and so on, so i bet 99% its "hexefied".

i dont understand the fixation with "hexefying" the videos, ruins the viewing experience as a large percentage of global net connections are still under 1 meg, i gave up viewing that video after 20 seconds and five stops for chaching, another detail for the "hexefying" masters is that a lot of isp GLOBALLY have monthly restrictions on net traffic or have to pay extra, so putting 5 minutes videos that are 100 megas in size not such a good idea.

my videos altough not cristal clear look fine if i contain the bitrate under 350
http://youtube.com/watch?v=gwGcCEW0wII (audio+video bitrate =302k)

most people still use small screens so making your videos "HD" and "heavy" will only "benefit" a "small" percentage.



hcl404 posted 2007 Dec 23 14:11
To those still wondering why your videos lag/buffer so much:
Youtube has a bandwidth limit of 150kbps or so. On occasion it might spike up to 400-500kbps but don't count on that to happen all the time. Now obviously if you upload a high enough bitrate video it will require more than the 150kbps limit Youtube places for buffer-free playback. I have a 6mbps with Comcast BTW. Maybe the limit is different for other people.

Anyway here is a test video that I've tried using this guide. I use an older of Xvid4PSP for this since it happens to use mencoder for flv output.
480x272, 512kbps video/128kbps audio
http://www.youtube.com/watch?v=ZoRPaN5u51s



MrE posted 2007 Dec 23 22:27
Excellent guide!

Using tips here I was able to visibly improve some home videos I was trying to share with family and friends on Youtube.

Reading the first post, the technique did seem a little complicated. (scripts and command lines, etc).

I'm newbie at editing/converting/transcoding and had been using MediaCoder to convert my videos. Thought I'd be in for lots of reading on how to use the other programs, but luckily MediaCoder is just another gui for MEncoder and ffmpeg, so I was able to use the same settings, etc that you listed to convert my camcorder videos to flv, then used the Hex editor and MediaInfo to change duration, and it all worked great.

Thanks again!



reez posted 2007 Dec 24 06:22
k so i guess there IS a way to DAMN YT 10min limit to HELL...but now we need a tutorial on HOW to do so....for noobs

http://www.youtube.com/watch?v=AeV7Dg_pY1k

i have been able to upload past 10 but it still displays 10 on the player, this guy has been able to make it DISPLAY 25



anthony111 posted 2007 Dec 24 08:23
can someone give me the settings of mencoder for youtube


45tripp posted 2007 Dec 31 16:13
Happy New Year!

first,
Avanti 0.22 has been released.
I'll update the first post with the new link.
http://forum.videohelp.com/topic343287.html


speeder :
ok...this guy didn't used hex X_X how did he get so nice quality on his uploadings
http://www.youtube.com/watch?v=1Nsw_JjOxAk

that's a pretty old upload,
could have been under a different set of rules.

ricardouk :

i dont understand the fixation with "hexefying" the videos, ruins the viewing experience as a large percentage of global net connections are still under 1 meg, i gave up viewing that video after 20 seconds and five stops for chaching, another detail for the "hexefying" masters is that a lot of isp GLOBALLY have monthly restrictions on net traffic or have to pay extra, so putting 5 minutes videos that are 100 megas in size not such a good idea.

I mostly agree with Ricardo.
I'm part of the internet underprivileged.
Streamability is important.
I did show the full capabillity of the cheat, but that doesn't mean I endorse heavy cheating.
This is still youtube...
I do like the idea of cheating enough to get a satisfactory result though.
I think the aim should be under 500k.

reez :

i have been able to upload past 10 but it still displays 10 on the player, this guy has been able to make it DISPLAY 25

interesting,
i don't have any idea how though.
you'll have to ask the uploader.

anthony111 :
can someone give me the settings of mencoder for youtube

already in the guide,
read it again.

gl



ricardouk posted 2008 Jan 02 07:08
To the youtube poster:
:
http://www.youtube.com/watch?v=gwGcCEW0wII
"How the hell is this under 350kbps?! The video looks way too clear"


judging by your comment it seems you read my comment above, yes the video has a bitrate under 350k, all i did was use the correct tools:

avisynth script:
:
directshowsource("")
lanczosresize(320,240)


then "fed" the script to Automen, selecting no resizing, 22050/48k for audio, 2 pass conversion.

at 340/350k one minute of flv is about 2.4 megs, download the video from youtube and do the maths.

Even if a file gets Hexefied it possibe to "see" its bitrate looking at the size of the video.

My point: its possible to have good quality videos at 350k



ricardouk posted 2008 Jan 02 07:19
I find Automen better than Avanti when converting to FLV, with the exact same settings Avanti produces more ringing "effect"

http://forum.doom9.org/showthread.php?p=1018336



Daostrasz posted 2008 Jan 03 21:26
I just wanted to say thanks for the excellent guide :)

My World of Warcraft videos have always looked really crappy after going through the youtube blender, now my latest one doesn't look too bad at all:

http://youtube.com/watch?v=LNN0f5_Vlzg

27.7MB - 400kbps - 480x360 - 8 mins 13s. 344kbps after being hexed to 10 mins 59s.

Youtube passed it through and I'm well happy :)

I have my mencoder.conf looking like:

:
vf=scale=480:360
sws=9
of=lavf=1
#
ovc=lavc=1
lavcopts=vcodec=flv
lavcopts=vbitrate=400
lavcopts=mbd=2
lavcopts=v4mv=1
lavcopts=mv0=1
lavcopts=cbp=1
lavcopts=aic=1
lavcopts=cmp=3
lavcopts=subcmp=3
lavcopts=trell=1
#
oac=mp3lame=1
lameopts=abr=1
lameopts=br=48
lameopts=mode=3
af=resample=22050


If you have any suggestions on how to squeeze a little more quality out of youtube I'd be grateful :)



micel posted 2008 Jan 06 19:29
Amazing what you guys have figured out! How'd this even come about? :?

How long would you say this process takes and is there a lot of trial and error?



virtona posted 2008 Jan 07 06:38
I have tried this method with success. In fact it's easy when you use a video compression tool like Sony Vegas or
Sorenson Squeeze.

Btw, the maximum hexadecimal duration value that youtube accepts is 84A7 EFFF FFFF FFFF



45tripp posted 2008 Jan 08 06:35
micel :
Amazing what you guys have figured out! How'd this even come about? :?


the genral youtube discussion is linked to at the beginning of the guide.

micel :
How long would you say this process takes and is there a lot of trial and error?


encoding takes as long as encoding takes...
the hex edit is a matter of 2 minutes.

virtona :
In fact it's easy when you use a video compression tool like Sony Vegas or Sorenson Squeeze.


exactly.
you can use your own encoder tools.
I outlined my method, because it's mine and because it uses freeware and provides good quality.
other encoding options are available and the principles still stand.

virtona :

Btw, the maximum hexadecimal duration value that youtube accepts is 84A7 EFFF FFFF FFFF


ok :)


tripp



reez posted 2008 Jan 08 16:34
hi, can someone please help me. Sometimes when i encode a movie to upload on youtube, it goes out of sync. I'm using winff and the movie is in avi. how do i fix this?


45tripp posted 2008 Jan 09 08:50
be
specific
be be
specific

one would need a lot more details to be able to help,
and
optimally a source sample file that presents the problem.


(if you upload a sample I probably won't be able to look at it for some time)



reez posted 2008 Jan 09 16:32
the sound is just faster than the video, WB removed my crap already,
winff settings:
video bit rate: 900
Frame rate: 30
video size: 480/360
convert to: flv for web use 4:3
audio bit rate: 256
audio sample rate: 44100

vid to be converted:
General #0
Complete name : C:\Rez Music\Ratatouille[2007]DvDrip[Eng]-aXXo\Ratatouille[2007]DvDrip[Eng]-aXXo.avi
Format : AVI
Format/Info : Audio Video Interleave
Format/Family : RIFF
File size : 702 MiB
PlayTime : 1h 51mn
Bit rate : 883 Kbps
StreamSize : 7.40 MiB
Writing application : VirtualDubMod 1.5.10.1 (build 2366/release)
Writing library : VirtualDubMod build 2366/release

Video #0
Codec : DivX 5
Codec/Family : MPEG-4
Codec profile : Streaming Video Profile/Level 1
Codec settings/Packe : No
Codec settings/BVOP : Yes
Codec settings/QPel : No
Codec settings/GMC : 0
Codec settings/Matri : Default
PlayTime : 1h 51mn
Bit rate : 762 Kbps
Width : 664 pixels
Height : 274 pixels
Display Aspect ratio : 2.423
Frame rate : 23.976 fps
Resolution : 8 bits
Chroma : 4:2:0
Interlacement : Progressive
StreamSize : 606 MiB
BitRate_Nominal : 752841.880

Audio #0
Codec : MPEG-1 Audio layer 3
PlayTime : 1h 51mn
Bit rate : 112 Kbps
Bit rate mode : CBR
Channel(s) : 2 channels
Sampling rate : 48 KHz
Resolution : 16 bits
Video0 delay : 2s 472ms
StreamSize : 89.0 MiB
Writing library : Xing (new)


note that this works with most files its just a few files that it gives the sync problem
thanks again for the help



45tripp posted 2008 Jan 09 17:06
that tells me almost nothing

which is why samples are good

standard procedure,
put it in vdub, direct stream copy video,
and use full audio processing to go to uncompressed

convert the new avi file to flv.


why are you encoding to a bitrate higher than the one of source at a resolution a lot lower??
why are you going to a framerate of 30 when source is 23.976??

gl
tripp



reez posted 2008 Jan 09 17:16
AHHH..cuz im a f*ckin idiot..i will try this. thanks for the help man
do you OWN VIDEOHELP YET?



MrE posted 2008 Jan 09 20:53
This would have made an excellent article in 2600 magazine.


reez posted 2008 Jan 12 17:22
another problem...how do i get the video to display the ACTUAL time after the HQ hack
http://www.youtube.com/watch?v=bx-nam90054

i asked him but he doesnt ANSWER
thanks



Cornucopia posted 2008 Jan 12 17:32
You don't (at least not in normal window).

Have your read the guide at the beginning? It's explained there.

Scott



reez posted 2008 Jan 12 18:11
....are you telling me it's NOT possible..because i just gave you an example to show that it IS possible..did you click the link?
http://www.youtube.com/watch?v=bx-nam90054
if you click the button next to the fullscreen button on the player..you will see it NOT in 320/240, which means he used th HQ hack



mkochsch posted 2008 Jan 13 10:38
Thank you for the excellent post, it's working great for me.
I'm using mEncoder and the hex editor in VirtualDub to encode and mod playtime or duration time, respectively.

Question: I'm shooting video on digital still cameras at 30 fps "progressive" all the time (m-jpeg). What options can I add or drop (for example, I'm thinking I don't need to deinterlace the video.)
Also, I'm trying to figure what the "trell" and mdb=2 options do in the line:

trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3

One last thing, on one test I tried to drop my frame rate, as suggested, from 30 to 20 by using the options cited in the original post and when I played the resulting flv back on mPlayer the whole thing was "fast-forward", i.e. it was still playing back at 30 fps. I never bothered to upload to YouTube however. Thx.

~m



Salva Veritate posted 2008 Jan 13 16:15
I'm using WinFF and SUPER to convert to 580 kbps (5:50 video), and I'm still getting significant blocking.


bayme posted 2008 Jan 13 18:17
Salva Veritate :
I'm using WinFF and SUPER to convert to 580 kbps (5:50 video), and I'm still getting significant blocking.

I've had this too. It's because ffmpeg uses 4:2:0. One way to avoid it causing blocking is to have double, or almost double, the resolution of the target one as your source avi.
So, let's say you want 448x336 FLV1 as your result. ffmpeg does best when you feed it double that, i.e. 896x672 pixel resolution (and let ffmpeg do the resizing). One way to get a source like that is to upscale it with virtualdub or whatever you use in the first stages of videocreation..



Salva Veritate posted 2008 Jan 13 18:32
Ohh, I think I gotcha. I've been feeding it 320x240 files (sourced from 720x540 I think) and it spits out at the same size. Which is stupid, I guess. Youtube is 448x336? I guess I'll try 896x672. Thanks!


Salva Veritate posted 2008 Jan 13 20:09
D: Still getting blocking with both WinFF and SUPER, and a lot of it!

Converting from an XviD 896x672 1200 bitrate, 29.97 fps, 160 kbps mp3 audio to Sorenson H263 FLV 448x336 589 bitrate, 29.97 fps, 128 kbps mp3 audio.



bayme posted 2008 Jan 13 21:22
Salva Veritate :
Converting from an XviD 896x672 1200 bitrate, 29.97 fps, 160 kbps mp3 audio to Sorenson H263 FLV 448x336 589 bitrate, 29.97 fps, 128 kbps mp3 audio.

Try the source as is, so 720x540(?). As long as it's much bigger, close to double, of the target resolution, it should do fine. Converting from the same resolution seems not to be the best idea (or so I've learned in the ffmpeg users mailing list).

By the way, the reason I mention 448x336 is because it's a multiple of 16;
http://www.flashsupport.com/books/fvst/files/tools/video_sizes.html

What would be best for YouTube is a matter of what you create it for;
Current YT embed code uses 420x315, so if you use the FLV total user control option (hexedit etc.), in theory you should use that (except ffmpeg doesn't support it). If your viewers all look at it using the YouTube page of the video itself, I think it's 480x360. But, as you know, YouTube upscales from 320x240.

Here's a YouTube targeted ffmpeg commandline I use (without the linebreaks of course):
:
"c:\path.to\ffmpeg.exe" -i "d:\input_big.avi"
-acodec libmp3lame -ac 2 -ar 44100 -aq 8
-vcodec flv -s 448x336 -r 24 -qscale 12 -g 180 -cmp 3 -subcmp 3 -mbd 2
-flags aic+cbp+mv0+mv4+trell "d:\output.flv"
( this way you can use the latest ffmpeg compile from http://ffdshow.faireal.net/mirror/ffmpeg/ which also might rid you of some blocking.. )

I no longer use passes for a target bitrate, I let ffmpeg make its decisions based on the source-video, and use -qscale 11, 12 or 13. Also, -aq 8 creates VBR audio of around ~100 kbit/s, which is way sufficient.



Salva Veritate posted 2008 Jan 13 22:34
I forgot to mention I have no idea what to do with code and I rely on GUIs for everything. =\

I used the source MPEG-2 lossless video and still got the same blocking. D= I'm using footage a friend shot of a band, and it's a 5:55 song so I can't encode to a much higher bitrate, because I won't clear the 350 kbps maximum after the cheat.



bayme posted 2008 Jan 14 17:59
Salva Veritate :
I forgot to mention I have no idea what to do with code and I rely on GUIs for everything. =\

I used the source MPEG-2 lossless video and still got the same blocking. D= I'm using footage a friend shot of a band, and it's a 5:55 song so I can't encode to a much higher bitrate, because I won't clear the 350 kbps maximum after the cheat.

Not so hard. Make sure you know the locations where your files are.
Let's say you download ffmpeg.exe, which is what you need for this.
It's packed in a 7zip file, for which you can even get a TotalCommander plugin;
http://www.totalcmd.net/plugring/7zip_plugin.html

Put the files from the 7zip in a place like c:\somefolder\ so the path for ffmpeg.exe will be:
c:\somefolder\ffmpeg.exe

Know where your source avi is. Let's say it's here:
d:\moviesfolder\inputmovie.avi

Then run notepad and create a new text-file with it, and save it as something ending with .bat, like ffencode.bat
remember where you store this file.

Inside ffencode.bat, you put:

:
"c:\somefolder\ffmpeg.exe" -i "d:\moviesfolder\inputmovie.avi" -acodec libmp3lame -ac 2 -ar 44100 -aq 8 -vcodec flv -s 448x336 -r 24 -g 120 -qscale 12 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell "d:\moviesfolder\output.flv"

(all should be one long line!)

Replace the stuff between " " signs with the right names for your situation.
When done, just run/double click the bat file.

By far the most important parts in the command line are the "-r" and "-g" values (which none of the GUIs offer you to change much). For moving video I'd go with a framerate of 18 as the lowest and 25 as the highest rate (for FLV as your target format). -r 24 is my personal favorite. If you're just showing still images pasted together making a video, try -r 12. If you use only 1 image for the entire video, use -r 1 ;-)
Then there's the amount of keyframes or intra frames to put in, using -g. This is the most influential setting with regards to the size (and bandwidth requirement) of the resulting FLV. A keyframe is heavy in size;
-g 24 with -r 24 would give you 1 keyframe each second. -g 240 with -r 24 gives you 1 keyframe every 10 seconds, which is the minimum I would recommend, so don't use a higher number as your -g value than 10 times the framerate (the -r value in the command line in the bat file).
Remember, the lower the -g value, the bigger the FLV (and higher the bandwidth it needs).



Salva Veritate posted 2008 Jan 14 18:47
Holy crap it worked! Thanks!

....Damn it. I'm still getting very visible blocking even though I used the block-free source video and encoded to **900+ kbps** with your method. I tried it out with 3 other clips and I still get poor quality videos. It seems that for some reason it's just impossible to get good quality FLV's, at least on my computer. =\



reez posted 2008 Jan 14 18:50
is it possible to locate the string for the BITRATE..just wondering..i mean thre must be a way to change those numbers and leave the duration alone


bayme posted 2008 Jan 14 19:07
reez :
is it possible to locate the string for the BITRATE..just wondering..i mean thre must be a way to change those numbers and leave the duration alone

No, that's not what happens here. The hexediting trick is a cheat;
YouTube checks the filesize and the duration of the content you've uploaded.
Both together make up the bandwidth it will use when played from YT's servers.
If that calculation says it's over 350 kbit/s, YT will re-encode it.

You let YouTube think it's a longer video than it actually is, so that their calculation comes up with a bandwidth use below 350 kbit/s. The calculation being done by YT is the same thing MediaInfo does (and shows). As explained in the first post..



bayme posted 2008 Jan 14 19:26
Salva Veritate :
....Damn it. I'm still getting very visible blocking even though I used the block-free source video and encoded to **900+ kbps** with your method. I tried it out with 3 other clips and I still get poor quality videos. It seems that for some reason it's just impossible to get good quality FLV's, at least on my computer.
This is why I explained how to use the commandline, so you can do a lot more with it than with the GUIs. :happy:
First, try and lower the framerate, but raise the amount of keyframes. Might rid you of blocks (but it all depends on what kind of video material it is). For example, use -r 16 -g 16 (a keyframe every second).

If you need lower bandwidth overall, change the -qscale 12 to -qscale 13, or 14, or 15.
With "-qscale" 1 is excellent quality and 31 is worst quality.

For more questions and solutions, do check the reference http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html and the ffmpeg users mailinglist archives: http://news.gmane.org/gmane.comp.video.ffmpeg.user



reez posted 2008 Jan 14 19:42
thanks for the info...BUT..i have a problem see when you watch this video
http://www.youtube.com/watch?v=bx-nam90054
and then click on the resize button located next to the fullscreen button on the player...you will notice it doesnt go DOWN to 320/240 and it is still 2:18mins...YET, if i DOWNLOAD it and check it with medainfo, then it gives me 320/240 and even displays in 320/240 when playing it. so what gives



ricardouk posted 2008 Jan 15 05:20
reez :
...you will notice it doesnt go DOWN to 320/240 ..


it does resize here using Firefox 2.0.0.11 and IE 7



reez posted 2008 Jan 15 12:18
yes but NOT to 320/240
check any OTHER video and then recheck THIS one ...you will see it's a bit bigger



bayme posted 2008 Jan 15 14:56
reez :
yes but NOT to 320/240
check any OTHER video and then recheck THIS one ...you will see it's a bit bigger

Can you please post this elsewhere? It has nothing to do with this thread.
By the way, it works fine here. The crappy cartoon sizes down to 320x240.



reez posted 2008 Jan 15 16:27
thats just not possible..it doesnt go down to 320/240..more like 420/340. my browser is fine, its just THAT GuY'S VIDS THAT DO THIS. It has to do with manipulating the flv for youtube..which is what this thread is about...if there's a better place to post this please tell me.


bayme posted 2008 Jan 19 11:01
reez :
http://www.youtube.com/watch?v=bx-nam90054
and then click on the resize button located next to the fullscreen button on the player...you will notice it doesnt go DOWN to 320/240 and it is still 2:18mins...YET, if i DOWNLOAD it and check it with medainfo, then it gives me 320/240 and even displays in 320/240 when playing it. so what gives
If the video is 320x240 when you've downloaded it, it is also being played by YouTube as such. In fact, when I check this video in cache (from what YT actually plays back on their site) it IS 320x240.

Better check your eyesight, it looks as small as all the other videos.



Spritemoney posted 2008 Jan 19 12:33
vp6 worked for me! (i like H.263 better), and I went over 350 Kbps and it still worked!


bayme posted 2008 Jan 19 15:17
Spritemoney :
vp6 worked for me! (i like H.263 better), and I went over 350 Kbps and it still worked!

Show us the money, then.



ricardouk posted 2008 Jan 20 16:22
link?


ApplePro posted 2008 Jan 20 17:22
Hello guys,

I'm developing video upload feature for my website for already 2 months. I've done everything, but I still have some problems.

I'm trying to encode videos for youtube with mencoder (linux) and I have a few questions.

Why did this movie (it's under 350 kbps) was reencoded by YouTube (same video uploaded on YouTube)? I've used same command with some other movies and YouTube didn't reencoded them:

:
first: /usr/local/bin/mencoder -really-quiet -vf scale=448:-3,expand=448:336 -sws 9 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=250:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3:vpass=1 -frames 800 -ofps 24000/1001 -oac mp3lame -lameopts abr:br=64:mode=0 -channels 1 -srate 22050 -of lavf -lavfopts format=flv -o /home/re/video/2/25.flv /home/re/ff/logo7.avi /home/re/video/2/25temp
second: /usr/local/bin/mencoder -really-quiet -vf scale=448:-3,expand=448:336 -sws 9 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=250:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3:vpass=2 -frames 800 -ofps 24000/1001 -oac mp3lame -lameopts abr:br=64:mode=0 -channels 1 -srate 22050 -of lavf -lavfopts format=flv -o /home/re/video/2/25.flv /home/re/ff/logo7.avi /home/re/video/2/25temp


The output is:
Broken frame at 0x1E1A2 Broken frame at 0x1E1A2

I wonder how can I fix this? What should I add to my command line?


--------------------
Another question is how can I set maximum bitrate for the movie? When I use vbitrate=250, for example, some movies encoding with higher bitrates (>350 Kbps including sound), but some movies encoding with pretty low bitrate (around 300). Is there any option that will set real maximum bitrate for the video?

--------------------
Also, I'd like to know what are the best settings for mencoder? I use command line (see above), but I get extremely low quality movies, like this one.


--------------------

And the last, but not least. Why when I do 30 fps > 24 fps or 24 fps > 15 fps with mencoder's -ofps 24000/1001 OR -ofps 15, I get really jerky videos. I mean every movement in those videos looks really ugly, like video plays fast, then slows down for a moment, then plays faster etc. Sample (look at the camera movement at 20-23 seconds).

I wonder how can I fix it?



Please answer for all or some of these questions. Any help will be really appreciated.



ApplePro posted 2008 Jan 22 09:08
Anyone please? :o


ApplePro posted 2008 Jan 23 09:25
The problem with quality is because video is jerky. When I use same output framerate, video quality is pretty good. But I'd really like to use framerates like 15 fps or 12 fps for YouTube.

I wonder, how can I change framerate, so movies play smoothly?

And seconds unanswered question is how to control bitrate (if I need exactly the setted bitrate +-10 kbps)? WIll third pass help?



benrtc posted 2008 Jan 24 11:59
I've seen that severe blocking at the beginning of encodes before but can't remember what was used to encode the source for re-encoding. It looks like something down the chain that's not encoding some frames. I had this problem on an old laptop but can't recall if it was too little resources or buggy codec. There should be absolutely no severe blocking at the beginning of the video which may be related to the stalled looking duped frames or looking like a bufferunderun that handles it by duping last good frames.

According to MediaInfo 25.flv has 316kbps video - what YT sees as too much. You need to load that into a hex editor and make a simple change so that the total video and audio bit rate as it will appear to YT as below 350kbps. The actual bit rate is not changed.
See the beginning of this thread.

Haven't run into the broken frame. I'm surprised it doesn't just drop the frame and tell you about it without stopping.



45tripp posted 2008 Jan 25 07:58
looks like the koureion

ApplePro :
The problem with quality is because video is jerky. When I use same output framerate, video quality is pretty good. But I'd really like to use framerates like 15 fps or 12 fps for YouTube.


exactly,
changing framerate can be jerky.
I've said i use avisynth for filtering though, can't really rate the difference in mencoder's performance.

ApplePro :
I wonder, how can I change framerate, so movies play smoothly?

try avisynth.
maybe provide a source sample of this problem clip,
so someone else can try.
Like i said i use avisynth for framerate conversion, but mencoder should do ok.

ApplePro :
And seconds unanswered question is how to control bitrate (if I need exactly the setted bitrate +-10 kbps)? WIll third pass help?


try adding vratetol=800 to -lavcopts

gl



imcryz posted 2008 Jan 25 14:39
I NEED HELP!!! :shock: :shock: :shock:

I am trying to use mencoder. I have my video and all the stuff on the C:\ drive...

I run the command prompt and put the following in for my first pass:

"mencoder 1.wmv -o 1.flv -vf scale=480:-3,expand=480:360 -ovc lavc -lavcopts vcodec=flv:vpass=1 -nosound"

everything goes smooth...

then for the second pass I put the following in:

"mencoder 1.wmv -o 1.flv -af resample=44100:2:1 -sws 9 -vf scale=480:-3,expand=480:360 -of lavf -ovc lavc -lavcopts vcodec=flv:vpass=2:vbitrate=1000:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=128:mode=0"


and I get some kind of error saying:

"requested bitrate is too low
Couldnt not open Codec .
FATAL: Cannot initialize video driver

Exiting . . . "


If someone could PLEASE help me with this proble, it would be GREATLY appreciated!

Thanks!



45tripp posted 2008 Jan 26 02:17
use the same settings for pass 1 as you do for pass 2.


imcryz posted 2008 Jan 26 19:53
Do you mean use the exact same thing as in:
"mencoder 1.wmv -o 1.flv -vf scale=480:-3,expand=480:360 -ovc lavc -lavcopts vcodec=flv:vpass=1 -nosound"

or do I have something set differently for the second pass then from the first?

I got this set up from a tutorial on you tube...so I am just copying nad pasting, I really dont understnad the "language" behind it...



45tripp posted 2008 Jan 27 04:04
i mean exactly the same like this:
:

mencoder 1.wmv -o 1.flv -af resample=44100:0:0 -sws 9 -vf scale=480:-3,expand=480:360 -of lavf -ovc lavc -lavcopts vcodec=flv:vpass=1:vbitrate=1000:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=128:mode=0

mencoder 1.wmv -o 1.flv -af resample=44100:0:0 -sws 9 -vf scale=480:-3,expand=480:360 -of lavf -ovc lavc -lavcopts vcodec=flv:vpass=2:vbitrate=1000:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=128:mode=0



imcryz posted 2008 Jan 27 13:36
Ok...

when I change the # from vpass=1 to vpass=2 for the second pass....thats then I get that "FATAL" error I posted above.


Also, when I just do ONE pass...change the HEX number and upload it to youtube, I am havingt 2 problems:

1) its not high qulaity, cuz I guess its not "tricking" youtube
2) my video portion is in fastforward, while the audio is normal...

you can see what I mean here: http://www.youtube.com/watch?v=19gse9_TM8Y

45Tripp thanks for your continued support...hopefully we can get this figured out...



45tripp posted 2008 Jan 28 10:46
you're not providing any info.

at the very least you should supply:
source info
and console output from mencoder.

best idea is to upload a source sample
(which i'm not saying i'll look at soon)

are you using a recent mencoder version?

gl



bayme posted 2008 Jan 28 10:49
OK guys and gals,

Recently bumped into uploads that, despite being under 350 kbit/s (A+V in total) were getting re-encoded either way. It seems to have something to do with the actual duration of the original. Videos under 3 minutes have a lower barrier. The shorter it is, the lower the bandwidth of it should be.

This one for example had to be 348 or less, and this one had to be 344 or less for it to pass the re-encode.

On further inspection it might be a size issue. If your uploaded FLV is under 10 Mb in size, YouTube behaves differently.



imcryz posted 2008 Jan 28 21:11
bayme :
OK guys and gals,

Recently bumped into uploads that, despite being under 350 kbit/s (A+V in total) were getting re-encoded either way. It seems to have something to do with the actual duration of the original. Videos under 3 minutes have a lower barrier. The shorter it is, the lower the bandwidth of it should be.

This one for example had to be 348 or less, and this one had to be 344 or less for it to pass the re-encode.

On further inspection it might be a size issue. If your uploaded FLV is under 10 Mb in size, YouTube behaves differently.


can you explain to me what a source sample is?? I supplied a URL for what my video is doing...

do you want a Screen Shot of what mencoder says on that second pass?

I am using the latest version of mencoder (downloaded it last week)



hypnoticpimp posted 2008 Jan 29 03:46
Im trying to add my subtitle richman.srt to this .vob file. but it doesnt show the subtitle at all. heres the command i enter in cmd

mencoder -sub newlogo.srt test.vob -o men.flv -af resample=22050:0:0 -sws 9 -vf scale=448:-3,expand=448:336 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=500:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=48:mode=3


Can someone please tell me how i can add my subitle .srt file that i created to place on the video? cause that above code, doesnt show the subtitle



45tripp posted 2008 Jan 29 09:23
hypnotic

console output....
but it's probably not finding the subfont.
easiest to find a true type font you want, download and put in the working folder
as font.ttf, then add to the commandline
:
-font font.ttf


imcryz :

can you explain to me what a source sample is?? I supplied a URL for what my video is doing...

do you want a Screen Shot of what mencoder says on that second pass?

your youtube upload is useless to me.
a sample of the source (the file you are encoding, the first material)

i want the complete text of:
the mencoder commands and the console output (the messages it prints out while working)

gl



hypnoticpimp posted 2008 Jan 29 11:17
the font that i used for my .srt file was arial black, do u know where i can find the ttf for arial black


hypnoticpimp posted 2008 Jan 29 11:31
i placed the arialblack font that i found in my windows/font folder, into the working directory of mplayer, and i entered this code in cmd

mencoder -font font.ttf -sub newlogo.srt test.vob -o men.flv -af resample=22050:0:0 -sws 9 -vf scale=448:-3,expand=448:336 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=500:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=48:mode=3


and the program crashed, , a error box comes says "Mplayer Has Stopped Working". I use Windows Vista. did i place the font code, in right place?



45tripp posted 2008 Jan 29 15:14
you've done the right thing with the fonts

thankfully I'm vista free!

i've had mencoder permanently stop working before,
since then i use versions specifically compiled for my processor

gl



hypnoticpimp posted 2008 Jan 29 18:05
so theres no way to fix this , so i can get the subtitles to show on video?


mikejf posted 2008 Jan 30 15:07
************ MIKE'S SUPER EASY HQ GUIDE ***************

Many thanks to 45tripp for the HQ guide. However, I still find it too complicated, and seems others do to. I have spent hours trying to just to install mencoder, etc. Finally I gave up with mencoder and just use easy gui programs. So, here is my guide for those that want the easiest way to upload HQ, still based on 45tripp's method.

My guide shows what I do to upload a 3 minute video with HQ video and stereo audio. You should be able to get a 4 minute video, with a lower bit rate, but I haven't done that yet. I start with a .avi video

MIKE'S EASY HQ GUIDE FOR A 3 MINUTE VIDEO (UP TO 3 MIN)

1. SOURCE VIDEO- My source is an uncompressed .avi video in 640x480, 30 frames/sec, 44100Hz/16bit stereo PCM.

2. EDIT/CLEAN THE AVI - next I clean up and edit (if needed) the .avi using VirtualDub. Basically make the video look good- apply deinterlace, adjust brightness, color, etc. Make it look as good as possible. You can also edit out parts. Save as new .avi

3. ENCODE A FLV- now it's time to create your .flv video from the source .avi. I use Riva FLV Encoder 2.0 with these settings:

VIDEO
Movie Size:448x336
Deinterlace: yes
Framerate:15
Bitrate:1000

AUDIO
Bitrate:128
Sampling Rate: 44100
Channels: Stereo

Important: your .flv file size must be under 27mb, if over, try lower bitrate

4. TEST THE FLV - play your .flv video to make sure it's ok- I use FLVPLAYER.EXE

5. EDIT THE HEADER- your .flv will be re-encoded by YT so to prevent that you must edit the header of the .flv using instructions in post #1. What I do is:

install and run HEXcellent
open your .flv
Look for "duration" on the right side, You're looking for the block of 16 numbers after '40'
change the block of 16 to indicate 10 minutes: 82C0 0000 0000 000
(you can also try 9 minutes, or up to 10:59 minutes)
save

6. EXAMINE FILE INFO - use MediaInfo to see that the PlayTime is under 10:59 and the Bit Rate is under 350. If not, redo step 5 with a higher time (up to 10:59), examine in MediaInfo again and check that Bit Rate is under 350.

Done!

Again, this works for me, and is my easy guide for making videos with 1000 bit rate and stereo audio up to 3 minutes, maybe 4 minutes. At 1000 bitrate, there is very little blocking effect.

How's this look to you 45tripp?



hypnoticpimp posted 2008 Jan 30 17:46
but how bout for videos thats are 8 minute long, like your source video file is 8 minutes long


beyondseries posted 2008 Jan 30 19:05
I've studied this entire thread for hours, and spent hours more trying out various encoding tests, but my results -- without Hex editing -- look only marginally better than a straight-from-Adobe Media Encoder FLV file (and that's due to Avanti I think). Just hoping someone (read: 45tripp!!) can let me know if the sample clips are as good as it gets. Because I've seen other YT videos that originate from DV, yet look much better than my encodes.

Details: I've got 16:9 HDV footage shot on Sony HVR Z1U 1080 60i camera, and edited in Adobe Premiere Pro 2.0 (PP). The final project will consist of clips between 3 and 5 minutes. I don't want to do any hex / time cheating. The test clip below uses some of the most anti-YT footage I've got, ie, jerky camera movements, pans, lots of action (to see the full extent of any differences.)

Using Adobe Media Encoder, within PP, I export a high bitrate FLV w/ these settings:On2vp6 codec, 1,000 kbps video, 29.97 framerate, mp3 audio codec, 48 kbps audio, mono, 320x240 framesize, 1.333 pixel aspect ratio.
Resulting in this: http://youtube.com/watch?v=PsXle_PGQoM

Using Avanti, for a high bitrate FLV, I first export an Uncompressed AVI from PP (detailed settings on video page description), then encode an FLV with these settings: Sorenson spark codec, 2800 kbps video, 29.97 framerate, 48 kbps audio, mono, 320x240 framesize, No to deinterlace.
Resulting in this: http://youtube.com/watch?v=wSFdH_QM0z4

Using Avanti, for a low bitrate FLV (ie, a la this guide) WITHOUT time cheating, I use the same uncompressed AVI from PP, and encode an FLV with these settings: Sorenson spark codec, 280 kbps video, 29.97 framerate, 48 kbps audio, mono, 320x240 framesize, No to deinterlace.
Resulting in this: http://youtube.com/watch?v=sYnGHPlZRvA

Results: The Avanti FLV encodes do look slightly better than Adobe Media Encoder FLVs -- the leaves in the background (at 0:30 and 0:41) don't seem to vibrate like they do in the Adobe Media Encoder video, and the title words at the end (0:52) look smoother. Blockiness on action and camera movement appears the same. But the Avanti hi and lo videos appear the same! (I checked w/ MediaInfo and the lo version maintains its 339kbps in YT).

Questions: Sorry for the drawn-out post, but I want my project to look as good as possible, and this forum appears to be the best and most responsive source i've found for youtube encoding. My questions are:
1. Is this the best quality I can get from my clips (given that it's HDV footage)?
2. Hey! How come my Avanti videos get re-encoded to full screen by YT, when clips I've encoded with other programs (that result in the same frame size and aspect ratio for the raw video) maintain a 16:9 once uploaded to YT? What can I change in Avanti?

I've spent so much time on this, without getting anywhere really, that I'm tapped out. Any help would be like manna from heaven!

thx,
Ram



mikejf posted 2008 Jan 30 21:22
Ram, it appears to me that YT re-encoded all three of your video tests to around 350bitrate (guess). That's what we don't want. You will never get the HQ results when YT does the encoding.

I might be wrong, but there are only two ways to I know to bypass YT encoders, Method #1 and #2 described below. All other ways fail, no matter what software, camera, or technique you use. You must use one of these two:

Method #1 is in first post and discussed in the whole thread. My "MIKE'S SUPER EASY HQ GUIDE" two posts up details an easy way to do it.

Method #2 is known as goyomora method and uses no hacking, but I've been limited to only 2 minutes of HQ results. Learn about goyomora at his YT site:
http://www.youtube.com/user/goyomora

If you plan on using Method #2 you must use Total Video Converter ersion 3.10 (not ver 3.11)

It's good you used the same video to test your uploads, although that clip is only :54 seconds and dark. I recommend you try the same video (or a brighter one) with my easy method. You will should be able to get that clip to play back at even a higher bitrate than 1000 since it's only 0:54 sec.

Then you should start testing with 3 minute videos, which should also still work with my easy method. When satisfied, only then try longer videos, 4 and 5 minutes. I know my easy method works great for 3 minute videos and plays back at 1000 bitrate. (A 4 minute video would need a lower bitrate)



45tripp posted 2008 Jan 31 11:43
mikejf :

How's this look to you 45tripp?


it looks fine.

a few comments though:

mikejf :
However, I still find it too complicated, and seems others do to.


many newbies have managed.
it's a matter of persistence.

I point to a gui already...
what's wrong with using Avanti?
doesn't get easier.

you can use any encoder your heart pleases....
i thought it clear...
maybe i'll edit the guide to say so in plain language.

I'm outlining my method
which i happen to think provides the best quality.
you can always encode with super or riva or whatever and skip to the cheat...

also i make it clear I don't recommend uploading 1000kbit/s files.

and I believe in hex editing just enough for the files to be eligible.
why make a 3 min file look like 11 mins when it can be presented as a 6 min file?



beyondseries :
I don't want to do any hex / time cheating.


why not?
a little cheating goes a long way...

dv is difficult footage.
at least push for every bit.
get to 349k/s
(i've not run into the problems bayme has)
sacrifice audio more... go down to 32k/s.
try some filtering on the video stream.

your hi quality attempt didn't pass.
try again.

your adobe vp6 method is good. one of the better ways
but...
bigger uploads, re-encoding, no control.
my way wysiwyg
smaller uploads, no re-encoding, no surprises.


gl



duro posted 2008 Feb 01 03:00
Hi 45tripp, great tutorial. I was doing something similar last year by adding a still image for say like 7 mins to a 3 min video and running through mencoder and bypassing encoding resulting in a sharp video, but the hexing way is great.

How do you think this video has bypassed enconding?
http://www.youtube.com/watch?v=qhvGvGNXCOA&feature=dir
It looks pretty sharp and is only timed at 3 mins by youtube and for me it downloads faster but still retaining good quality and shows normal time so you don't constant comments from users. Try the re-size button and its 480x360 and gone through unencoded. Their older videos are typical encoded ones. Any ideas how, or are youtube helping them in some way.

Cheers



45tripp posted 2008 Feb 01 05:42
duro :
Hi 45tripp, great tutorial. I was doing something similar last year by adding a still image for say like 7 mins to a 3 min video and running through mencoder and bypassing encoding resulting in a sharp video, but the hexing way is great.

inventive

duro :

How do you think this video has bypassed enconding?
http://www.youtube.com/watch?v=qhvGvGNXCOA&feature=dir

has it?
it's typical youtube quality.
not much action in tennis :)



kodaismahhussy posted 2008 Feb 02 06:37
Great stuff, I love this little hack. The specified bitrate went unnoticed as far as 349 kbps. What got me puzzling was celticdruid's ffmpeg build. The latest snapshot had problems muxing together more than two streams--whether input directly through AviSynth or separately with "ffmpeg -i video.flv -vcodec copy -i audio.mp3 -acodec copy output.flv"--so I had to use a different build to get that working. I now also prefer encoding video and audio separately (video with ffmpeg, audio with LAME.exe...). God, I've fallen in love with CLI now. xD

One of my results (@ 1200 kbps): http://www.youtube.com/watch?v=BG1IqRWu-MU



45tripp posted 2008 Feb 02 10:00
kodaismahhussy :
The latest snapshot had problems muxing together more than two streams--whether input directly through AviSynth or separately with "ffmpeg -i video.flv -vcodec copy -i audio.mp3 -acodec copy output.flv"--so I had to use a different build to get that working.


muxing external mp3 is broken since 10891

kodaismahhussy :

I now also prefer encoding video and audio separately (video with ffmpeg, audio with LAME.exe...).


generally not the best idea,
no reason for it anyway

kodaismahhussy :

God, I've fallen in love with CLI now. xD


it happens

nice encode

tripp



kodaismahhussy posted 2008 Feb 02 12:50
45tripp :
muxing external mp3 is broken since 10891
I tried the way you did it, I loaded the audio via wavsource() and tried reencoding, but ffmpeg crashed when it figured out I want to make a two-stream file. :/

I'm just glad I found a method that works for me. Thanks again. :)



superzombie23 posted 2008 Feb 03 00:49
Someone tell me how the heck this person gets this awesome quality without hex editing the duration? Also, you can't seek ahead of the loaded part for some reason.
http://youtube.com/watch?v=35yH1e0YdEc



F.R.3.3.D.O.M posted 2008 Feb 03 11:38
Thx for posting this tut 45tripp! I have been able to upload high quality vids now on youtube with no problems.

Here are some of my vids i have already done.

http://www.youtube.com/watch?v=UGfkYaC8fuc

http://www.youtube.com/watch?v=eSGPsnYD4IE

http://www.youtube.com/watch?v=kM6Yc1fGgkc

Also if anyone is having problems with there vids skipping frames in mencoder i found a way to get rid of that problem.

Here is the vid on it.
http://www.youtube.com/watch?v=YIH9DWRee-0



superzombie23 posted 2008 Feb 03 12:38
Since a new page was just made, making another post about this. HOw is the quality SO high on this YT video w/o a duration hack
http://youtube.com/watch?v=35yH1e0YdEc Also, can't seek ahead of the loading portion for some reason.

I think this question I'm posing has been unanswered and asked a few times already in this thread. Someone please give an explanation about non-duration hacking with HQ videos.

Edit: strangely, it looks lower quality than I perceived it to be yesterday lmao... weird.



ricardouk posted 2008 Feb 03 13:52
Superzombie you can get good quality videos without the hack, theres not much action in it anyway, also animation is more compressible for what i heard here.

We can get good quality videos by maintaining the bitrate under 350, just need the right tools and a good source video.

seeking ahead does work here

heres an example:
http://youtube.com/watch?v=gwGcCEW0wII

the bitrate is if i remember correctly under 340



superzombie23 posted 2008 Feb 03 14:42
O.k... well all I think what he did after doing some tests was use flv with a very high bitrate >.>... oh well w/e.


satl posted 2008 Feb 04 02:35
I downloaded Avanti, but I don't have the "Flash" video option under "Codec" in the Destination Video settings. Just Demux video, mpeg1, mpeg2, mpeg4, XviD, etc... How do I get the "Flash" video option?

Thanks!



anthony111 posted 2008 Feb 04 04:43
hew ricardouk, what software did you use to make your video high quality without the duration hack.


superzombie23 posted 2008 Feb 04 09:10
anthony111 :
hew ricardouk, what software did you use to make your video high quality without the duration hack.


I'm pretty sure he used Automen GUI, which is the same as mencoder; he mentioned it earlier. Anyhow, it's very easy to get a non-duration hack HQ video. It just really depends on the source. I can easily make anime look HQ with sub 350 bitrate.

Here is are 2 versions of a video that you can compare.

Actually I think i uploaded the low quality with 350+ bitrate, but it's the same result as uploading it sub 350 -.-

Low quality (no duration hack): http://youtube.com/watch?v=W2LCxseX-14
High quality (duration hack): http://youtube.com/watch?v=d18A5iFR7RU

You can definitely see a big difference when they're side by side. The duration hack version is much more defined and clearer than the non-duration hack. However, that's anime... I'm sure a different type of source means a bigger difference. My point is that the LQ version isn't too bad compared to the HQ. I'd rather have a non-cheating duration so people aren't confused. FOr now, i'm trying to make the LQ higher lol.

I'm testing to see if it's even worth the trouble of uploading a video with sub 350 bitrate b/c the results are probably going to look the same as uploading a 350+ bitrate video w/o a duration hack.



45tripp posted 2008 Feb 04 15:43
F.R.3.3.D.O.M :
Thx for posting this tut 45tripp!


you're welcome

satl :
I downloaded Avanti, but I don't have the "Flash" video option under "Codec" in the Destination Video settings. Just Demux video, mpeg1, mpeg2, mpeg4, XviD, etc... How do I get the "Flash" video option?


load the "uni_flash_hq" template and it will auto-register the flash codec.

superzombie23 :

I'm testing to see if it's even worth the trouble of uploading a video with sub 350 bitrate b/c the results are probably going to look the same as uploading a 350+ bitrate video w/o a duration hack.


it's not the same. at the very least you know what you'll have online before uploading.
it's worth it.

tripp



hypnoticpimp posted 2008 Feb 04 20:04
how can u convert mtv.com videos? cause i downloaded there flv, but when u upload to youtube they get alll messed up,


hypnoticpimp posted 2008 Feb 04 20:14
also 45trippp whats your youtube account


superzombie23 posted 2008 Feb 04 21:16
Strangely, the duration hack stopped working for all the videos I've tried to upload today. If I hex edit 11 mins, it goes right back to its old time when it appears on youtube. :cry: This is weird.


Vulcan55 posted 2008 Feb 04 23:23
I wanted to do this really bad, but even though I followed all the steps, the video duration remains unchanged and the video quality is crap. I guess the same is happening to that guy. ^^^
do you know if there is something that can be done to make it work, or is this a permanent "fix" by youtube?



superzombie23 posted 2008 Feb 04 23:29
Vulcan55 :
I wanted to do this really bad, but even though I followed all the steps, the video duration remains unchanged and the video quality is crap. I guess the same is happening to that guy. ^^^
do you know if there is something that can be done to make it work, or is this a permanent "fix" by youtube?


It's possible that in their last maintenance, they made youtube smarter. I can't believe they did that ;-; I'm not that tech savy to find out a new way of doing things like this.



TheMaestro1 posted 2008 Feb 05 06:48
Yeah, they fixed it. It's recoding everything I throw at it, even when I try to reupload previous hex edited videos that uploaded before w/o being encoded.


ricardouk posted 2008 Feb 05 07:00
anthony111 :
hew ricardouk, what software did you use to make your video high quality without the duration hack.


Hi Anthony, i use Automen.

heres how i do it, i will use the iron man tv spot.
heres the avisynth script:
:
Video = DirectShowSource("C:\test\iron_man.avi", convertfps=true, audio=false)
Audio = DirectShowSource("C:\test\iron_man.avi", video=false).Normalize()
AudioDub(Video, Audio)
ConvertToYV12
AddBorders(0,44,0,44)
Lanczos4Resize(320,240)


and here's the configuration screenshots:




here you can find the video with a bitrate of 345k:
http://www.youtube.com/watch?v=b19isy_3Ivg



ricardouk posted 2008 Feb 05 07:43
TheMaestro1 :
Yeah, they fixed it. It's recoding everything I throw at it, even when I try to reupload previous hex edited videos that uploaded before w/o being encoded.


i havent seen anything being recoded here, i tested it with some different bitrates (345, 332 etc), i guess its only for videos above 350

superzombie23 :

Low quality (no duration hack): http://youtube.com/watch?v=W2LCxseX-14


i knew anime was better "compressible", but didnt expect that :) , that is a good quality video.



reez posted 2008 Feb 05 10:26
hi thanks so much for the help. But i have a few problems. Sometimes when i try to encode a 480p,720p,1080p HD quicktime movie using Winff...it doesn't go. The command box opens and then closes, it doesn't happen with EVERY HD video..just a few. Plus i'm unable to get the 16:9 aspect ration with winff...i tried everything, it ends up as 16:9 but youtube stretches it to 4:3..although after clicking the resize button on the player it shrinks to 16:9. But i've seen others actually get the black bars with out youtube stretching it. Pleases explain how to do this. Again thanks for all your help.


reez posted 2008 Feb 05 11:13
oh damn did they fix it????...i dont seem to be able to do it anymore


zoobie posted 2008 Feb 05 11:14
if youtoob is displaying 4:3, you'll have to put your widescreen into a 4:3 container to display porportionately via black bars. an art video may get away with letting youtoob stretch 16:9 to 4:3 but with standard video, it will appear distorted.

I tried to remove a little viewed video there and it thru an error...maybe start a thread on how to get video OFF youboob...heh heh

PS - I'm wondering why youtoob would pull the plug if you're uploading under 350kbps...hmm

1 of these places was considering ads to display before the video...so your production would be sponsored by some corporate conglomerate whether you liked it or not...



reez posted 2008 Feb 05 11:18
zoobie :
if youtoob is displaying 4:3, you'll have to put your widescreen into a 4:3 container to display porportionately via black bars. an art video may get away with letting youtoob stretch 16:9 to 4:3 but with standard video, it will appear distorted.

I tried to remove a little viewed video there and it thru an error...maybe start a thread on how to get video OFF youboob...heh heh


you mean DOWNLOAD A YOUTUBE VIDEO?..there are so many ways..use keepvid.com



zoobie posted 2008 Feb 05 11:29
eh? download a amateur youtoob video? I'm a little busy now creating a production...

actually, the most viewed videos are, ironically, CBS News clips...or so I read



bayme posted 2008 Feb 05 14:01
ricardouk :
We can get good quality videos by maintaining the bitrate under 350, just need the right tools and a good source video.

There are two main points, in my opinion, to achieve the maximum.
- Lower the framerate to as low as you think is acceptable. 21 fps is fine for most videos with movement, for example. Many are even OK with 15 to 18 frames/sec.
- Use a VBR mp3 audio stream, use the lame encoder for it, use 22 kHz samplerate, and if not acceptable 44.1 kHz. Go with a bitrate that ends up with ~90 kbit/s, which will do for most stereo-video sources.

Also, the recent mencoder engine ends up giving higher quality than ffmpeg's. Many tools use ffmpeg for FLV. I've been testing them side by side a lot the last couple of months, and mencoder clearly wins from ffmpeg, except on high framerate targets. With mencoder you get best results using lower framerates (24 or below).



bayme posted 2008 Feb 05 14:21
ricardouk :
TheMaestro1 :
Yeah, they fixed it. It's recoding everything I throw at it, even when I try to reupload previous hex edited videos that uploaded before w/o being encoded.

i havent seen anything being recoded here, i tested it with some different bitrates (345, 332 etc), i guess its only for videos above 350

Didn't notice much different yet. Uploaded one of actual 380 kbit/s hexed it to 349 and it got through on feb. 3rd. But they've been offline just after that "for maintenance", so maybe now it's changed. I need to check myself.



reez posted 2008 Feb 05 14:34
not 3rd, NOW..TODAY they changed it..or last night actually


TheMaestro1 posted 2008 Feb 05 14:36
it looks like they are only recoding the hex edited videos I upload.


bayme posted 2008 Feb 05 14:48
TheMaestro1 :
it looks like they are only recoding the hex edited videos I upload.

Have you tried lowering to 330 kbit/s hexedited? (Also see my message from january 28th in this thread)
How large are the files you uploaded that got re-encoded?
(trying to find the next loophole in their check-methods here..)
If they did 'fix' it, they must be using an advanced new method using its filesize, maybe total framecount or actually load the video in a server-based virtual player to do checks on it.



cinetech posted 2008 Feb 05 17:28
TheMaestro1 :
it looks like they are only recoding the hex edited videos I upload.


That's right, YT seems to be implementing a more strict FLV file check.
However, I've uploaded a < 350Kbps stereo FLV file and it worked.



ricardouk posted 2008 Feb 05 17:37
reez :
...Plus i'm unable to get the 16:9 aspect ration with winff...i tried everything, it ends up as 16:9 but youtube stretches it to 4:3..although after clicking the resize button on the player it shrinks to 16:9. But i've seen others actually get the black bars with out youtube stretching it. Pleases explain how to do this. Again thanks for all your help.


hereŽs how i add black bars to 4:3 to get the 16:9 aspect:

since im not that "fluent" with making avisynth scripts i use AVS2DVD to make the script for me and then edit the script by replacing 720x576 by 320x240.

here's a screenshot, hope it helps:


the final avisynth script becomes this:
i removed the reference to dgpulldown and the last line about converting the audio to 48000

:
Video = DirectShowSource("C:\test\iron_man.avi", convertfps=true, audio=false)
Audio = DirectShowSource("C:\test\iron_man.avi", video=false).Normalize()
AudioDub(Video, Audio)
ConvertToYV12
AddBorders(0,44,0,44)
Lanczos4Resize(320,240)



reez posted 2008 Feb 05 18:05
THANKS SOOOO MUCH RIC YOU"RE AWESOME :D


ricardouk posted 2008 Feb 05 18:34
Thanks reez

just passing on the knowledge i've learned here :)

to avoid any confusions as i remember videohelp had a "report piracy" section...the iron man.avi in the screenshot is the iron man tv spot .... just in case someone reports this....



bayme posted 2008 Feb 05 19:27
cinetech :
That's right, YT seems to be implementing a more strict FLV file check.
However, I've uploaded a < 350Kbps stereo FLV file and it worked.
Yes, but was it originally higher than 350 kbit/s? THAT's what is important here.


reez posted 2008 Feb 06 06:15
ricardouk :
Thanks reez

just passing on the knowledge i've learned here :)

to avoid any confusions as i remember videohelp had a "report piracy" section...the iron man.avi in the screenshot is the iron man tv spot .... just in case someone reports this....


hey ric are you still able to do the high quality hack?



ricardouk posted 2008 Feb 06 06:47
yes, its still working, the last one i uploaded with a bitrate of 346k took about 30 seconds to appear online:
http://www.youtube.com/watch?v=7ev0HXPok8g

well if you're asking if i hexefy my uploads i don't, i dont do any "hacks", i just follow the bitrate limit, but ill try one later today



duro posted 2008 Feb 06 07:52
I just uploaded a video and it got re-encoded. I used the 11 min hex hack and the file ended up 340 kbps, the file is 26.8 mb in size. I wonder if they've just blocked the 11 min limit?

I've been using mencoder for about 12 months and mainly just creating stereo music videos with just normal video quality in flv format. I hope these new hacks and the new HQ tutorials video on youtube haven't jeopardized the old stereo hack as well. It seems not with ricardouk newly uploaded video though, I'll try some tests later on.

45tripp, that tennis video I linked somehow has changed to standard quality. When I posted, that channels latest two videos were hi res quality and definitely 480x360 but now they're definitely not high quality and its the same url. It sounds odd or impossible but they were high quality for a few days, anyway no worries.



mmmarie posted 2008 Feb 06 10:32
its nice to see that ricardouk still managed to do the HQ trick. btw, can i ask something on how to edit the program with 480x360? cuz i tried the 320x240 but it looked crappy. the video im trying to upload has a run lenght of 3:17. so how do you do some editing for higher resolution with under 350 kbps still????


ricardouk posted 2008 Feb 06 10:50
mmmarie can you post a link to your source? or host it at rapidshare or similar?


Like i said before i dont hexefy the videos i upload, fortunally they look good, but they all have 320x240 resolution with the bitrate under 345k.

avisynth, automen and a good source video is all i use, after the conversion i use mediainfo to check if the bitrate is under 345k, some of the videos look bad because i didnt knew of the trick (350+flv), others i didnt have a good source to begin with.

i dont do anything else to the video, just uploaded another one:
http://www.youtube.com/watch?v=ED-MYGiSdY8



cinetech posted 2008 Feb 06 11:16
ricardouk :


i dont do anything else to the video, just uploaded another one:
http://www.youtube.com/watch?v=ED-MYGiSdY8


looks great.
btw, may i ask why you changed the aspect ratio?
it seems the original is 1.85:1.



ricardouk posted 2008 Feb 06 11:20
just checked the original source and the aspect ratio is 2:35


cinetech posted 2008 Feb 06 11:37
ricardouk :
just checked the original source and the aspect ratio is 2:35


i guess you meant 2.35:1 which is for 35mm anamorphic
then again, will u encode the file using that ratio?
i love to see it.



reez posted 2008 Feb 06 13:37
hey ric thanks for the avstodvd tutorial but i have a problem. i downloaded a file from stage6 and it's a divx file...not avi. when i browse for source file(using avstodvd) it doesnt show up as if it's not supported. but winff does that type of file with nor problem, is there a way around this?


mmmarie posted 2008 Feb 06 14:10
hello ricardouk. here is the video i wanted to put on youtube in HQ

http://www.megaupload.com/?d=199XAOU3



ricardouk posted 2008 Feb 06 14:11
Reez rename the file to avi, for example movie1.divx becomes movie1.avi, divx files are avi files, the divx extension is used for chapters, menus and subs because avi doesnt do it, renaming it works.

Cinetech i see what you mean, the scripts i make i use avstodvd and it makes them taking in consideration the final resolution is 720x576 .

i changed the resolution in the script to 320x240 so im guessing the AddBorders value should change aswell like from 44 in the example to something lower, but i dont know how to do it, what values i should add, ive been looking in PDA's conversion forums for the answer but i havent found it.

its not perfect my solution but at least i now have the 16:9 look on the videos i wasnt getting before

Maybe 45stripp could help us out



ricardouk posted 2008 Feb 06 14:15
mmmarie im on a 512 net connection, its going to take a while to download it but ill see what i can do tonight


ricardouk posted 2008 Feb 06 15:25
HereŽs your video, 320x240 resolution and 338k bitrate:

http://youtube.com/watch?v=gwb5hve1Gvw



kodaismahhussy posted 2008 Feb 06 15:40
So yeah, we have a problem. The duration length hack doesn't work anymore. Any other ideas? xD


ricardouk posted 2008 Feb 06 17:56
yes, i can only remember one site that has no limits on video types and size uploading without reconverting them

http://blip.tv/

you can use heyspread.com to move your youtube HD(if they havent been converted by now) videos to blip.tv, its not free but its cheap, a few cents by each upload

http://heyspread.com/

dont know any other service that does it for free



superzombie23 posted 2008 Feb 06 19:28
stage6 is a good video site... pretty high quality.


cinetech posted 2008 Feb 06 19:31
ricardouk :
Cinetech i see what you mean, the scripts i make i use avstodvd and it makes them taking in consideration the final resolution is 720x576 .


I was thinking more on cropping the source to that aspect ratio 2.35:1,
and then try to letterbox to a 4:3, 320x240.
If you achieve that, it'll be easier to compress since it'll be more black,
from the bars.

Hopefully you can do it.



mmmarie posted 2008 Feb 06 20:08
ricardouk :
HereŽs your video, 320x240 resolution and 338k bitrate:

http://youtube.com/watch?v=gwb5hve1Gvw


oh thank you. so you just used the same format you demostrated before right? thankies



frifox posted 2008 Feb 06 20:30
if anybody wants to experiment... try playing around with OTHER filetypes and try to figure out if youtube reads duration/bitrate/etc metadata from the file's header (or from footer/middle or wherever it reads it from lol).

this way we might discover another hole that will allow us to fake the meta data (aka duration)



hypnoticpimp posted 2008 Feb 07 00:15
Someone make a new tutorial on how to get high quality video to upload on youtube , without it re encoding again, looks like youtube fixed it


hypnoticpimp posted 2008 Feb 07 00:28
ricardo. i opened up automen, but where do i load up the avs file at, can u show intstructions on how to load up your avs file to work with automen? so it can start converting


ricardouk posted 2008 Feb 07 05:47
just "drag and drop" the file on Automen


45tripp posted 2008 Feb 07 06:40
all good things come to an end.

i'll update the guide to indicate the hq hack no longer works.
uploading flv's is still useful as ricardo shows,
but eye popping quality has gone.

ricardouk :

i changed the resolution in the script to 320x240 so im guessing the AddBorders value should change aswell like from 44 in the example to something lower,


strangely 44 is close, for the 2.35:1, but the method is all wrong.

for 4:3 just resize:
lanczos4resize(320,240)

for 16:9:
lanczos4resize(320,180).addborders(0,30,0,30)

for 2.35:1:
lanczos4resize(320,144).addborders(0, 48, 0, 48 )

duro :
45tripp, that tennis video I linked somehow has changed to standard quality.


sabotage!

gl,
tripp



ricardouk posted 2008 Feb 07 07:00
Thanks 45stripp, just tried your values on differente sources ans playing it back on MPC
works, the aspect ratio is showed correctly.

Thanks



ricardouk posted 2008 Feb 07 08:41
cinetech :
I was thinking more on cropping the source to that aspect ratio 2.35:1,
and then try to letterbox to a 4:3, 320x240.
If you achieve that, it'll be easier to compress since it'll be more black,
from the bars.



got it working now:

avs script for imitating 2.35.1 aspect ration on a 4:3 video:
:
DirectShowSource("C:\test\2_35_1_source.avi")
Lanczos4Resize(320,144)
AddBorders(0,48,0,48)


video on youtube:
http://www.youtube.com/watch?v=5f_uyXs1X30



avs script for imitating 1.78.1 aspect ration on a 4:3 video:
:
DirectShowSource("C:\test\1_78_1_source.avi")
Lanczos4Resize(320,180)
AddBorders(0,30,0,30)


video on youtube:
http://www.youtube.com/watch?v=9bNoIA4b8pU



cinetech posted 2008 Feb 07 11:36
ricardouk :
go it working now:
avs script for imitating 2.35.1 aspect ration on a 4:3 video:
:
DirectShowSource("C:\test\2_35_1_source.avi")
Lanczos4Resize(320,144)
AddBorders(0,48,0,48)

video on youtube:
http://www.youtube.com/watch?v=5f_uyXs1X30


looking good!
although i don't get why you're using 25fps?
if your source is pal, you should use 12fps.
it'll still play well and smooth, while you gain
more kbps for encoding.

for my 30 fps source videos, i use 15fps for FLV <350kbps



ricardouk posted 2008 Feb 07 11:47
yes, im trying to do this in "steps", first i want to get the aspect ratio problem sorted and then optimize the videos by changing the framerate.

doing it in small steps instead of doing it all at once :)

Thanks

Edit: Automen doesnt have a fps conversion option, ive asked Buzzqw if he could implement the feature in Automen, he listens the users of his programs, hopefully he will implement it, fingers crossed : :)



45tripp posted 2008 Feb 07 12:15
yeah
it's a mystery to me how you managed the previous one.
288x130?
of course it would have been fine if you had added vertical padding to 216.

ricardouk :

Edit: Automen doesnt have a fps conversion option,


you don't need it too.
add to the end of your avisynth script:
changefps(12.5)



ricardouk posted 2008 Feb 07 12:22
Eheheheheh

when selecting the resolution in Automen instead of selecting keep original resolution acidentaly i choose 288 lol


I thought the fps conversion had to be done by mencoder when converting to flv....



buzzqw posted 2008 Feb 07 13:25
i cannot promise anything... but i will look at these request

BHH



dtfinch posted 2008 Feb 07 13:46
In the last few days I've been seeing a lot of high quality videos on YouTube, encoded by YouTube itself. They've been making the switch one channel at a time, encoding new videos at 480x360 (~760kbps) with 44.1khz mono audio (96kbps), and reencoding past videos at 448x336.

The switchover doesn't seem to have reached any of my own channels yet.



45tripp posted 2008 Feb 07 14:03
ricardo, it's better to change framerate in avisynth.

dtfinch :
They've been making the switch one channel at a time, encoding new videos at 480x360 (~760kbps) with 44.1khz mono audio (96kbps),


examples?

dtfinch :

and reencoding past videos at 448x336.


what good is that?
it's counterproductive and impractical.
also quite unlikely.


tripp



dtfinch posted 2008 Feb 07 17:00
Some examples:

new 480x360:
http://www.youtube.com/watch?v=30pC2LxU90c
http://www.youtube.com/watch?v=_rEPvpvEiFE

old 448x336:
http://www.youtube.com/watch?v=QrwAigJo_Vc
http://www.youtube.com/watch?v=oiI0xGkfJTQ

And the old announcement where they said they'd do this right about now:
http://www.webware.com/8301-1_109-9817732-2.html?part=rss&tag=feed&subj=Webware



Captain Satellite posted 2008 Feb 07 17:22
dtfinch :
Some examples:

new 480x360:
http://www.youtube.com/watch?v=30pC2LxU90c
http://www.youtube.com/watch?v=_rEPvpvEiFE

old 448x336:
http://www.youtube.com/watch?v=QrwAigJo_Vc
http://www.youtube.com/watch?v=oiI0xGkfJTQ

And the old announcement where they said they'd do this right about now:
http://www.webware.com/8301-1_109-9817732-2.html?part=rss&tag=feed&subj=Webware


If there's a difference in quality there, my eyes are worse than I thought. :lol:



dtfinch posted 2008 Feb 07 17:31
err.
I get the lower quality videos when I log in with a different account.

This must look pretty bad.

Just click around the recent videos. I run across one every couple pages.



dtfinch posted 2008 Feb 07 18:18
This is what they served me:
http://www.sendspace.com/file/qdgfy1



45tripp posted 2008 Feb 07 19:43
:
..confirmed that in YouTube's internal archive, all video is stored at the native resolution in which it was sent.


ok...
that kind of waste of space makes it feasible,
but still impractical for a large portion of content.

i don't know about this 'intelligent' streaming,
my speed is low in any case
but i did notice this new control bar to the playback window
(new to me at least, i hardly watch youtube, so it could be 'older')
http://www.youtube.com/watch?v=qMqY8LPSfhI


i gave myspace a try and it's interesting
encodes to vp6, keeps resolutions under 448x (i'd say)
a nice playback window in which wide videos are treated with proper resizing.

tripp



ricardouk posted 2008 Feb 07 20:26
im still doing some tests, i encoded 4 clips:

1 - flv 12fps - bitrate 345 - resolution 320x240

2 - flv 18fps - bitrate 345 - resolution 320x240

3 - flv 25fps - bitrate 345 - resolution 320x240

4 - x264 25fps - bitrate 345 - resolution 320x240
youtube doenst support h264, but adobe flash player plays it, http://blip.tv does accept it

they all have the same final size(2.46m) except the x264 (2.89m) because the audio is 53k instead of the 48k

Which one looks better to you? you can find the clips here: http://ricardosantos.com.pt/youtube/



atropine posted 2008 Feb 08 01:45
dtfinch :
In the last few days I've been seeing a lot of high quality videos on YouTube, encoded by YouTube itself. They've been making the switch one channel at a time, encoding new videos at 480x360 (~760kbps) with 44.1khz mono audio (96kbps), and reencoding past videos at 448x336.

The switchover doesn't seem to have reached any of my own channels yet.


If this is true and you're not a crazy guy, then this is ridiculous.

Why don't they just upgrade their flash player to Flash8, and encode videos with the hugely more efficient VP6 codec. They probably wouldn't have to even increase the current bit rate to get that sort of resolution, and much better quality.

Not meaning to be rude, but I think it's more likely you're a crazy guy than youtube sticking with the flash6 player/sorenson codec and just doubling the bitrate.



atropine posted 2008 Feb 08 02:06
kodaismahhussy :
So yeah, we have a problem. The duration length hack doesn't work anymore. Any other ideas? xD


I don't know why youtube has deliberately disabled the ability to do this. It's not like this hack effected it's network in anyway. Just Because the video/audio bitrate was higher ddidn't mean youtube were sending more data at a higher speed.

I bet some non technical idiot at youtube got all upset about this, and demanded the hack be fixed, without even realising it did nothing to impede the network in any way.



dtfinch posted 2008 Feb 08 03:06
I noticed on the high quality videos it passes an extra argument to the player, "fmt_map". On the page I looked at it was "6/720000/7/0/0". The 2nd value is the bitrate requirement for that video. If your measured bandwidth is less, it'll show the old 320x240 version.

I wrote this greasemonkey script (my first one) to lower the bitrate requirement if it's been set:
:

// ==UserScript==
// @name           forcehq
// @namespace      http://youtube.com/forcehq
// @description    lowers the hi/low bitrate threshold to 10kbps. If no HQ version exists, you'll probably get a blank video.
// @include        http://@youtube.com/watch*
// ==/UserScript==

var alreadyran=false;
function forcehq() {
   if(alreadyran) return; //Odd issue with Firefox 3 and greasemonkey
   alreadyran=true;
   if(unsafeWindow.swfArgs.fmt_map || unsafeWindow.document.location.href.indexOf("force")>=0) {
      unsafeWindow.swfArgs.fmt_map="6/10000/7/0/0";
      unsafeWindow.writeMoviePlayer("playerDiv");   
   }
}

document.body.addEventListener('load', forcehq, true);



It only resets fmt_map if it's already set, but you can force it by adding "&force" to the watch? url, but then if there is no HQ version on the server, you'll get a blank video. I've found instances where fmt_map wasn't set even though there was an HQ version, but it definitely won't be set if there isn't.

I also checked how the video url differs between the low and high quality versions:
:
Old video url:
http://ash-v303.ash.youtube.com/get_video?video_id=30pC2LxU90c&signature=5B3A7EDF6D680ECCEE26F5529B2D8FE2D099EE1A.1493942100B758C1FDF46CEA6C3892A4542D1C95&ip=[censored]&ipbits=16&expire=1202476646&key=1
   
New url:
http://vp.video.google.com/videodownload?version=2&secureurl=UAAAAGlzskLnFf9kxHqNw27eY7-ouVX_2RFRlm3UhNTGHsmNsmIz8nvK_Zt5Wv5kKMTJtuRLN6f2OIzUs8O-falXgqX4ktcoHSuMslw_wK9UTfhU&sigh=PRWGQ2EWAxjEOu1yvFxPKeTJZqM



ricardouk posted 2008 Feb 08 03:33
New Automen version available: "optimize video for youtube" option added :)

Thanks a million Buzzqw

http://forum.doom9.org/showthread.php?p=1097663#post1097663



dtfinch posted 2008 Feb 08 03:37
The last 3 numbers in fmt_map is the required Flash version. I'm pretty sure H.264 is on the way, since they gave themselves enough room to specify 9.0.115 instead of just 8 or 9.


dtfinch posted 2008 Feb 08 03:53
My earlier guess that availability changed from user to user was way off.

When browsing youtube with my main account, I'm using a Firefox 3 nightly. I use different browsers for my other accounts, and in those cases the fmt_map argument isn't set even if there's an HQ version. Either the difference is cookie related or they've turned it on just for certain browsers until they're done testing.



dtfinch posted 2008 Feb 08 20:07
If I delete my cookies, I still get high quality videos in Firefox 3.

Edit: I also cleared my Flash local storage to see if that had any effect. This also cleared its bandwidth statistics, so I had to watch a video and let it finish downloading before it'd serve anything high quality again.



frifox posted 2008 Feb 08 20:42
those who are watching this topic might be interested in this:
Youtube: high quality uploads with no 10min limit

enjoy :)



atropine posted 2008 Feb 08 20:48
frifox :
those who are watching this topic might be interested in this:
Youtube: high quality uploads with no 10min limit

enjoy :)


It's like this forum is full of crazy people.

Read the first message in this 11 page thread. That's what the bulk of this thread is about. And it doesn't work any more



frifox posted 2008 Feb 08 20:51
atropine :

It's like this forum is full of crazy people.

Read the first message in this 11 page thread. That's what the bulk of this thread is about. And it doesn't work any more

here is one of my uploads, 2hrs ago, works:
http://youtube.com/watch?v=SWhn82rrpgw



atropine posted 2008 Feb 08 20:56
I do appolgise.

You rock!



zoobie posted 2008 Feb 08 21:54
atropine :
It's like this forum is full of crazy people.


more like copy clowns...no offense :D



cinetech posted 2008 Feb 09 05:01
frifox :
atropine :

It's like this forum is full of crazy people.

Read the first message in this 11 page thread. That's what the bulk of this thread is about. And it doesn't work any more

here is one of my uploads, 2hrs ago, works:
http://youtube.com/watch?v=SWhn82rrpgw


All I see is a picture with music.
How difficult is to compress that?
Show me real videos, people moving, etc.



frifox posted 2008 Feb 09 10:16
i used picture with music cuz it was the easiest video to make... but yesterday youtube busted thas hole as well. so no more hex tricks at all :(


bayme posted 2008 Feb 09 15:12
Point is, I don't know if you've all noticed, but they can barely manage the bandwidth load as it is during peak-times (like right now). I also notice their clustering is getting bumpy and slow on updating dynamic pages, another sign of very high load on their servers.

I really don't think they'll allow upping the 350 kbit/s limit anytime soon. They might change codec and FLV-player, but even if re-encoding of all content is required, do you realize what that means? They can never release their "/watch?v=" statics or embedded player until AFTER they've re-encoded their entire data-back-end. A new player on YT will not be backwards compatible (i.e. it can't play the old content as well). They can't change "a channel at a time", simply because of their global dependencies. The local versions all get their base-content from the main servers, as far as I can tell.

Since YouTube's live playback storage must be around the Exa-bytes in total by now, it would take quite an amount of time and processing to change things at the video-base end.



Mexican001 posted 2008 Feb 09 15:34
so, we can not upload high quality videos anymore at youtube. That suck!


atropine posted 2008 Feb 09 17:59
bayme :
.

I really don't think they'll allow upping the 350 kbit/s limit anytime soon. They might change codec and FLV-player, but even if re-encoding of all content is required, do you realize what that means? They can never release their "/watch?v=" statics or embedded player until AFTER they've re-encoded their entire data-back-end. A new player on YT will not be backwards compatible (i.e. it can't play the old content as well). .


Interesting points you bring up. Ok how about this. They flick the switch and all new content is encoded with VP6 codec and played back with Flash8 player, while old content remains to be played back with Flash6 player. As old content is upgraded (possibly interpolation will be used to make it seem like higher resolution) to VP6, the default player for it then automatically changes to Flash8. Eventually everything will be Flash8 , VP6 codec.

How does that sound as a possibility or will that not work for some reason?



dtfinch posted 2008 Feb 09 18:30
Two more flvs I downloaded from YouTube, to add to the last 4 I posted. I tried to go for popular and featured videos this time.

http://www.sendspace.com/file/jbue6q

Maybe I'm just really good at restoring low quality videos, or maybe all the authors uploaded their videos elsewhere at a higher resolution, like that old guy who looks like he could barely turn on a computer. Or maybe someone else who's using a Firefox 3 nightly can test to see if YouTube made that the deciding factor for testing.

If you decompile player2.swf with flasm, you'll find the part that parses and checks the fmt_map parameter against your player version and measured bandwidth to determine which video to request between lines 11884 and 12211. If the line numbers are different when you try it (if they've since updated it), it'll be one of the two functions containing "fmt_map".



dtfinch posted 2008 Feb 09 18:39
My user agent string is "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b4pre) Gecko/2008020504 Minefield/3.0b4pre", in case that's all they're checking.


atropine posted 2008 Feb 09 19:46
dtfinch :
Two more flvs I downloaded from YouTube, to add to the last 4 I posted. I tried to go for popular and featured videos this time.

http://www.sendspace.com/file/jbue6q

Maybe I'm just really good at restoring low quality videos, or maybe all the authors uploaded their videos elsewhere at a higher resolution, like that old guy who looks like he could barely turn on a computer. Or maybe someone else who's using a Firefox 3 nightly can test to see if YouTube made that the deciding factor for testing.

.


I installed firefox 3 just for you and I'm getting the videos at 320x240 as I would have expected to.

But I don't like to doubt videohelp forum members would you please give me a direct link to one of the videos you say you view in high resoltuion. You gave this link as an example of a video you're viewing in bigh resolution/ high bitrate:-

Tender Vibes - http://youtube.com/watch?v=wx-CZIoNPJY
Well the direct server link for me is:
http://74.125.15.102/get_video?video_id=wx-CZIoNPJY&origin=chi-v2 ... _video.flv

And that is a 320x240 normal youtube video, What is the direct link to the mysterious high resolution version of that video that you get?

If you post that link, maybe we could all use that and see the high resolution version ourselves.(if you're not crazy)



dtfinch posted 2008 Feb 09 19:57
When I viewed the video, it requested:
http://youtube.com/get_video?video_id=wx-CZIoNPJY&t=OEgsToPDskJZ7 ... DG3s&fmt=6

which redirected to:

http://vp.video.google.com/videodownload?version=2&secureurl=UAAA ... B5kaBaGVwg

which redirected to:

http://ehmutd.vp.video.l.google.com/videodownload?version=2&secur ... GVwg&rdc=1



dtfinch posted 2008 Feb 09 20:48
The value for the "t=" part of the first url ( http://youtube.com/get_video?video_id=wx-CZIoNPJY&t=OEgsToPDskJZ7 ... DG3s&fmt=6 from my last post on the previous page) comes from the "var swfArgs =" line in the html, in case they've started keying it by IP or if there's a timeout or something.


atropine posted 2008 Feb 09 20:56
I can see that there is a 12mb video attached to the google video link , but it won't allow me to stream or download. Well it transfers about 1KB/s, but that's a waste of time . Very strange indeed.


dtfinch posted 2008 Feb 09 21:06
I checked again and only the beginning of the t parameter matches swfArgs.


dtfinch posted 2008 Feb 09 21:48
You could try going to about:config, adding a value named "general.useragent.override" and setting it to "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b4pre) Gecko/2008020504 Minefield/3.0b4pre"

Then go to the vibes video, view the page source and see if it added the fmt_map value to swfArgs. If it's there, let the video finish downloading once (you don't have watch it all) to give it a chance to update its bandwidth statistics, then refresh the page. If fmt_map isn't there, then it has to do with more than the useragent string. If it is there, but it's still low quality, then it might have measured your bandwidth to be too low. In either case, there's also that greasemonkey script I posted a while back, and adding "&force" to the url. All it does is add that missing fmt_map parameter with a low bandwidth requirement. You'll see the video box reload once after the page has loaded if it script does what it's supposed to.



Spritemoney posted 2008 Feb 09 23:01
atropine :
kodaismahhussy :
So yeah, we have a problem. The duration length hack doesn't work anymore. Any other ideas? xD


I don't know why youtube has deliberately disabled the ability to do this. It's not like this hack effected it's network in anyway. Just Because the video/audio bitrate was higher ddidn't mean youtube were sending more data at a higher speed.

I bet some non technical idiot at youtube got all upset about this, and demanded the hack be fixed, without even realising it did nothing to impede the network in any way.

Actually in FEB 2nd (2 days b4 they fixed it) it was on wikipedia



bayme posted 2008 Feb 09 23:59
atropine :
They flick the switch and all new content is encoded with VP6 codec and played back with Flash8 player, while old content remains to be played back with Flash6 player.
I think you miss how the YT flow goes with new video. If you flip the switch at the upload-stage, then you need to somehow make sure that all people playing back the newly uploaded video will use the compatible (newer) player for it. How are you going to separate the two at playback for the entire world and global site interface?
Just think, YT shows players almost everywhere onsite and offsite, small and large. You'll then end up with videologs on channels having to show the two different players at one time. It will be an incredibly messy procedure if you do it that way.

I predict they will change it at the player-level in 1 go. By;
- re-encoding what is already uploaded (which might take days,
and will be done on separate offline machines), then
- shutting down the upload option for the entire world's audiences for as long as it takes
to get the remaining (latest fresh) uploaded content re-encoded, then
- shut down the entire site worldwide
- switch the playback static content of the site to using the new player,
- changing clusters and matching database-entries to the new encoded videos (takes about 40 minutes as well, at least)
- voila.

Maybe if they do this they can also finally add a decent thread-layout for their video text-comment sections in the same go.



bayme posted 2008 Feb 10 00:14
atropine :
I don't know why youtube has deliberately disabled the ability to do this. It's not like this hack effected it's network in anyway. Just Because the video/audio bitrate was higher ddidn't mean youtube were sending more data at a higher speed.
Of course it is!
People normally using a maximum of 350 kbit/s, are now pulling out the bandwidth that would normally be used by 2 or more users within the same time. Without the hack they remain at their maximum bottleneck.

And I'm guessing, with the incredible and still exponentially growing amount of petabytes they serve, they need to calculate their bandwidth bottlenecks really carefully. Just think:
If only 100000 videos worldwide are pulling 700 kbit/s instead of the YT staff's estimated 350 kbit/second (a low estimate of what we're causing), that would already mean 100000 times 350 kbit/s EXTRA,
which is an overhead of 35 GIGAbits/sec of 24/7 traffic. Trust me, that's NOT cheap, not even today,
and something like that you *will* notice as a slowdown on all videos if they weren't prepared to serve the extra amount..

I'm not at all surprised they try to do things against this.



atropine posted 2008 Feb 10 00:33
bayme :
atropine :
I don't know why youtube has deliberately disabled the ability to do this. It's not like this hack effected it's network in anyway. Just Because the video/audio bitrate was higher ddidn't mean youtube were sending more data at a higher speed.
Of course it is!
People normally using a maximum of 350 kbit/s, are now pulling out the bandwidth that would normally be used by 2 or more users within the same time. Without the hack they remain at their maximum bottleneck.

.


NO!!! I disagree, but that's what youtube probably thinks.

When I stream 350kbit youtube videos , the video is normally fully downloaded before i'm even half way through watching it. The speed that youtube sends out the data is a constant. The bitrate of the video doesn't matter at all as the constant doesn't change. If you encode with a bitrate too high, then you'll get constant buffering, If you encoded at around 500kbit, then that worked perfectly.

But what is important to note is that youtube always sends me data at higher than 500kbit with any video I watch on youtube. That is my point. They do not send out data at a faster speed because you're watching a higher bitrate video, and they send out no more data than would be sent for a legal 10minute video anyway.



stsin posted 2008 Feb 10 02:40
Wish I looked here first, instead of wasting all that time figuring out why YT is now reconverting my files.

After finding this thread about a month ago, I uploaded some of my favorite AMVs that looks great:
http://www.youtube.com/watch?v=t7v26Q3SkaA
(I might have got carried away with the bitrate on that one, and though usually plays fine without lagging, lowered the bitrate on later uploads)
http://www.youtube.com/watch?v=VBhn8w64UtM
http://www.youtube.com/watch?v=VsFLFRS7mfY

Now that we no longer can upload high bitrate files without YT reconverting, here's some of my attempts on videos under 350Kbps (had to sacrifice a lot to put as much bitrate into each frame):
http://www.youtube.com/watch?v=wgO3CZXwg94
http://www.youtube.com/watch?v=GEV86JOiJ_0
Though this video is already 9mins long, wish I had the extra 2 mins, which would have made this look much better. But oh well, still better than letting YT do the conversion. I regret not uploading this days ago.

I used to check if YT did any conversion by checking the frame size. Now that I'm having to resize to 320x240 to remove the artifacts, can't do that anymore and now listen if it stays in stereo since YT converts to mono.

I just use Avanti GUI with FFmpeg. Adding ffmpeg options in the 'user VIDEO options', like -padtop etc. to keep aspect ratio. In otherwords, I don't touch avisynth. But is it better to use avisynth instead? And if I where to use it, curious which filters would be helpful in making it more compressable.



Spritemoney posted 2008 Feb 10 08:55
bayme :
atropine :
They flick the switch and all new content is encoded with VP6 codec and played back with Flash8 player, while old content remains to be played back with Flash6 player.
I think you miss how the YT flow goes with new video. If you flip the switch at the upload-stage, then you need to somehow make sure that all people playing back the newly uploaded video will use the compatible (newer) player for it. How are you going to separate the two at playback for the entire world and global site interface?
Just think, YT shows players almost everywhere onsite and offsite, small and large. You'll then end up with videologs on channels having to show the two different players at one time. It will be an incredibly messy procedure if you do it that way.

I predict they will change it at the player-level in 1 go. By;
- re-encoding what is already uploaded (which might take days,
and will be done on separate offline machines), then
- shutting down the upload option for the entire world's audiences for as long as it takes
to get the remaining (latest fresh) uploaded content re-encoded, then
- shut down the entire site worldwide
- switch the playback static content of the site to using the new player,
- changing clusters and matching database-entries to the new encoded videos (takes about 40 minutes as well, at least)
- voila.

With decent preparation such migration can be done with only (guessing here) 10 hours downtime for the Upload option (nobody can upload anything), depending on what servers they use for re-encoding, and with an hour entire website downtime (during overlap of upload downtime). It'll be worth it.

Maybe if they do this they can also finally add a decent thread-layout for their video text-comment sections in the same go.

one little problem........ Flash 6/7 is in 90% in devices (computers, wii, etc) a lot of gadgets use Flash 7, that's to blame adobe, and some computers have flash 7 still!



bayme posted 2008 Feb 10 08:55
atropine :
NO!!! I disagree, but that's what youtube probably thinks.
Sorry, there is no disagreeing involved here. It is fact. Science, math, you should try and learn about it.
Have you even checked the SIZE of the files you upload? They are bigger, in most cases double or more that of what it originally would be. What do you think? That added size magically transports itself to the viewers with the same bandwidth and speed as smaller files without the added part or something?
Then you have no idea what streaming video is.



bayme posted 2008 Feb 10 08:59
Spritemoney :
one little problem........ Flash 6/7 is in 90% in devices (computers, wii, etc) a lot of gadgets use Flash 7, that's to blame adobe, and some computers have flash 7 still!

That's not YouTube's problem. If the OS of the user does not support a new YT player, it will require updating at Adobe, or at the brand that supplies firmware with the new Flash for the OS.
Remember, it used to be Flash 4 once, for 90% of the world.



atropine posted 2008 Feb 10 09:03
bayme :
atropine :
NO!!! I disagree, but that's what youtube probably thinks.
Sorry, there is no disagreeing involved here. It is fact. Science, math, you should try and learn about it.

Then you have no idea what streaming video is.


Like I said, when the hack was in place the maximum data allowed was 350kbit/s x10min. So no more data was sent than for a legal 10min video. You also fail to grasp the understanding that youtube don't send out data at the bitrate of the video. A 350kbit video isn't sent out at 350kbit/s by youtube. It's sent out around the double the speed. It's a constant value not related in anyway to the bit rate of the video. This is especially noticeable when people upload low bitrate low frame rate, low resolution videos from their phones. Even if it's a 10 minute video, the data would have downloaded in less than a minute. Just because it takes 10minutes to watch doesn't mean the data is being sent as you watch. This is basic stuff

If you didn't' know that, and you still don't understand. I won't be having another conversation with you again.



bayme posted 2008 Feb 10 09:24
atropine :
But what is important to note is that youtube always sends me data at higher than 500kbit with any video I watch on youtube.
This is only determined by the size of the pipe, and of your internet connection, not the actual transfer of data difference. It's not a correct statement by the way, YT does not "send" you data, you pull it from them. Also, it will not be 500 kbit/s that you can pull from them at all times. YT slows down a lot at peak-times, because their pipes reach their limits almost weekly. Check, for example, this graphic:
http://www.ams-ix.net/technical/stats/cgi-bin/16all?log=totalall;png=yearly
we roughly went from 100 Gbit/s to 250 Gbit/s in 1 year time.

atropine :
They do not send out data at a faster speed because you're watching a higher bitrate video, and they send out no more data than would be sent for a legal 10minute video anyway.
This is the weirdest assumption ever. Like I wrote earlier: They transfer petabytes daily. What do you think they do for that?
They need to calculate averages, carefully check the overall usage. Extra minutes is extra data, no matter how you play it.

And yes, they DO send out data at a faster speed with a higher bitrate video. They will note the over-requirement of it at least.



atropine posted 2008 Feb 10 09:32
bayme :

atropine :
They do not send out data at a faster speed because you're watching a higher bitrate video, and they send out no more data than would be sent for a legal 10minute video anyway.
This is the weirdest assumption ever. Like I wrote earlier: They transfer petabytes daily. What do you think they do for that?
They need to calculate averages, carefully check the overall usage. Extra minutes is extra data, no matter how you play it.

And yes, they DO send out data at a faster speed with a higher bitrate video. They will note the over-requirement of it at least.


You just don't have common sense. When the hack was in place, you hacked the time so that although your video was 5mins in length, you hacked it so youtube thought it was a 7minute video and total data sent out was 350kbit/s x 7minutes. So youtube knew exactly how much data it was sending out.

Youtube Do not send out data at higher rates or lower rates depending on the bit rate of a video. For the love of god, go make 175kbit/s video and upload it, then make a 350kbit video and upload it, Then stream them both while using a bandwidth monitor to check the speed ti downloads at. It will download at exactly the same speed.

You are ignorant. I resent ignorant people having attitude with me.



bayme posted 2008 Feb 10 09:44
Trust me, I know what I'm writing about.
What YT does is very smart by the way (needed to be), at times when their pipes are full or almost full (busy times), their player only pulls the required data from the servers at the time it is actually needed. It will NOT "hand out" the entire video-data for every viewer you load, it will only hand it out at the moment of actual requirement, when your viewer repeatedly demands it because the cursor is closer at the spot where the data is not in yet. Clearly, you must have seen this happen yourself at one time, or did you never notice that?

I know, it's hard to not be right at times, but honestly, you're wrong about your assumptions. They're not stupid at Google/YouTube's tech department, most of what they do is very well thought through. Every little bit of extra data on their static pages is a disastrous difference when you have as many viewers as they have.



atropine posted 2008 Feb 10 10:03
bayme :
Trust me, I know what I'm writing about,

I know, it's hard to not be right at times, but honestly, you're wrong about your assumptions. They're not stupid at Google/YouTube's tech department, most of what they do is very well thought through. Every little bit of extra data on their static pages is a disastrous difference when you have as many viewers as they have.


Clearly you don't know what you're talking about. I just watched the download speed of 3 of my videos as I played them on youtube. the 3 bit rates of the videos were 64kbit/s 350kbit/s & 460kbit/s . The download speed for all 3 was exactly the same.

You don't have to trust me on this, never trust a person that says trust me. Just try it yourself, and educate yourself a little.



mohnitor posted 2008 Feb 10 10:34
If you have a 350 kbps file, that last 10 seconds, then download time with your 500 kbps speed will be 7 seconds. (watching 10 seconds)

If you encode this video with 500 kbps: download and watching lasta 10 seconds. So 3 seconds more download time = more traffic.

Moving a bigger file thru the net means more traffic.

Funny discussion. You have to move kb, mb, well : filesize. Speed only determines the time it needs to get into your PC. But not the trafficamount.

As you say: bitrate doesnŽt matter because they all have the same download speed is so stupid, because even you must know that a higher bitrate needs more time to completely download. THATŽS more traffic !



atropine posted 2008 Feb 10 10:46
mohnitor :
If you have a 350 kbps file, that last 10 seconds, then download time with your 500 kbps speed will be 7 seconds. (watching 10 seconds)

If you encode this video with 500 kbps: download and watching lasta 10 seconds. So 3 seconds more download time = more traffic.

Moving a bigger file thru the net means more traffic.



This is true mohnitor. But due to the nature of the hex time hack, youtube see your video as being longer than it is, and so still accurately know how much data you have downloaded. The previous posters argument was that the hack impedes network performance as their statistics are no longer reliable due to the hack. This is false.

The hack did not impede network performance at all, except in saying that (as an example) your 5 minute video had the total data transfer of a 7minute video. But as youtube sees your video as a 7minute video anyway and nobody has a problem with people uploading 7minute videos that's a moot point.



bayme posted 2008 Feb 10 10:53
Bandwidth in its simplest terms refers to the amount of data that flows across a network wire in a given time period. Hosting providers are charged a certain amount per month or per year for an allocated amount of bandwidth from backbone providers and data centers. True available bandwidth is always limited in a world where usage is growing exponentially, and therefore costs money.

Currently YouTube hosts about 142 million playable videos,
the average size of them is 8 Megabytes (a low estimate).

Let's say each internet user sees 2 YT videos daily (another low estimate),
this makes for ( http://www.internetworldstats.com/stats.htm )
1319872109 times (2 x 8 =) 16 Megabytes, thus
21117953744 Megabytes of data a day that YouTube serves to the world.
That's 21 Petabytes a day.

Now, if out of the 142 million videos they host, in a short period of time,
the average size for the video rises from 8 to 8.1 Megabytes
(because of the hack, because your video takes up 11 minutes instead of the average 3),
this results in the following:
1319872109 times (2 x 8.1 =) 16.2 Megabytes, thus
21381928165.8 Megabytes of data a day in total,
an extra of 263974422 Megabytes.
That's 263 terabytes on top of the normal DAILY average bandwidth use.

To you apparently that means nothing, doesn't even exist.

To me that means an extra cost of thousands of euros a day. :shock:

You may behave like a stubborn ignorant brat all you like, sir,
but these are the facts we're dealing with here.. :D



atropine posted 2008 Feb 10 11:16
bayme :


(because of the hack, because your video takes up 11 minutes instead of the average 3),
this results in the following:
1319872109 times (2 x 8.1 =) 16.2 Megabytes, thus
21381928165,8 Megabytes of data a day in total,
an extra of 263974422 Megabytes.
That's 263 terabytes on top of the normal DAILY average bandwidth use.

To me that means an extra cost of thousands of euros an hour. :shock:
:D


Well first I take issue with your assumption that anyone was using bitrates equivalent to 11 minutes of legal data for 3 minute videos, as such ridiculously high bit rate videos would never stream, just constantly buffering. Most hacks other than for experimental purposes resulted in bitrates for videos of around 500kbit/s. This is a good bitrate as youtube servers (unless they're ill) will pump out quite a bit more bandwidth than that, so even if you have intermittent local congestion you shouldn't see any buffering,.

The other thing you have to consider is the percentage of people that knew and were using the hack. it would be in the tiny fraction of a percentage. So yes more data is downloaded if you have a 5min video encoded at 500kbit/s but considering the millions of videos and users, the extra bandwidth used (and known by youtube so as to factor in bandwidth provisos) means very little, or even nothing.

I wish you'd stop defending youtube.. They are the bad guys for removing this hack



ricardouk posted 2008 Feb 10 13:15
atropine :
They are the bad guys for removing this hack


I actually agree with the decision, i think people are forgeting something, the net speed of the youtube user, the net speed in my district is between 256 and 521, and not for a second i think that we are the only ones in teh world, imposing 350k bitrate insures a fluid stream with no pauses to EVERYONE even on lower connections.

Statistics say that a big percentage of people worldwide have slow net connections, i wouldn't use youtube if they were streaming 700k videos, whats the point of waiting 10 minutes to watch a 2 minute video.

by having the 350k limit everyone or virtually everyone can see a video from the beginning to the end with without stoping 10 times to cache the video.

youtube is thinking worldwide.

if you want to stream high quality videos, there loads of other services that will host your videos, without recoverting them and even give you a permalink if you want to use a diferent player to play it.

anyway people are CHEATING THE RULES WITH HEXEFYING the videos, if it was your servers/system/website being cheated would you be happy with it?



diddyman4real posted 2008 Feb 10 21:31
i wanna upload past 10 minutes. i dont even care about the damn quality, just let me upload past that, thats all i want, can we all atleast work on doing that much?


superzombie23 posted 2008 Feb 11 09:26
diddyman4real :
i wanna upload past 10 minutes. i dont even care about the damn quality, just let me upload past that, thats all i want, can we all atleast work on doing that much?


I don't know if it's possible to do that anymore, but I was able to before the hex hack was fixed.



Mexican001 posted 2008 Feb 11 15:38
so, we can not upload high quality videos on youtube anymore. Thats suck!


wwechamp posted 2008 Feb 11 15:58
Oh well kids! What can ya do right? If anyone finds out the next flaw in youtube then do not post it here! The Youtube team may read it. Instead we have to message in inbox. Just make sure that one of the guys wanting to know is not the youtube team pretending to be one of us lol.


bayme posted 2008 Feb 11 18:04
.. never mind
(may be deleted by admin/mod)



45tripp posted 2008 Feb 11 19:08
stsin :

I just use Avanti GUI with FFmpeg. Adding ffmpeg options in the 'user VIDEO options', like -padtop etc. to keep aspect ratio. In otherwords, I don't touch avisynth. But is it better to use avisynth instead? And if I where to use it, curious which filters would be helpful in making it more compressable.


assuming extra filtering, yes it's better to do it all in avisynth, and sequence it the way you want.

in the first post there's a link to the general youtube discussion page,
you'll find filtering ideas there.
but basically, just degrain/smooth/deblock.

the new Avanti will have a crop/scale/pad gui page,
more clicking. less typing.

gl



atropine posted 2008 Feb 11 20:01
45tripp :

you'll find filtering ideas there.
but basically, just degrain/smooth/deblock.

the new Avanti will have a crop/scale/pad gui page,
more clicking. less typing.

gl


The way I improve the quality of my videos, is by using dual resolution and masking. It would depend on your subject matter as to weather this could work for you. But my videos have people in them and they are what I want kept as best quality. So I have my target subjects in 320x240 resolution, and background in 160x120 resolution(upscaled). I feather between the masking so that the difference doesn't really show that much. By doing this I can use high quality stereo audio, but still have good quality for my main subject, but at the loss of resolution for background objects/scenery. You could use use a Gaussian_blur or bokeh filter instead.



dereknp81 posted 2008 Feb 11 22:46
Dear Sirs,

I don't think i'm crazy, or too awful newbish, but: Any Flv i try to upload is rejected.

AND

:
Failed (invalid file format)

This status message means that the file type of your video isn't supported by our site. YouTube does not currently accept videos in Flash (.flv) format. You may need to try using software other than the software that came with your camera, such as Windows Movie Maker (included with every Windows installation), or Apple iMovie. By opening your video file with one of these programs and then saving as .avi, .mpg, .wmv, or .mov, you should be able to upload your video with no problems.


So, have I just read 12 pages of the wrong forum post, or am I missing something? I'm not actually concerned with video quality, I just want stereo audio.



atropine posted 2008 Feb 11 22:55
dereknp81 :
Dear Sirs,

I don't think i'm crazy, or too awful newbish, but: Any Flv i try to upload is rejected.

AND

:
Failed (invalid file format)





You need to upload in FLV1 (sorenson) format, not FLV4 (VP6) and make sure your audio is mp3, sample rate of 11,22, or 44khz



cinetech posted 2008 Feb 12 04:15
dereknp81 :
So, have I just read 12 pages of the wrong forum post, or am I missing something? I'm not actually concerned with video quality, I just want stereo audio.


Encode your videos using Flash 7 aka Spark H.263, not On2Vp6 Flash codec.
Encode for stereo sound but maintain overall video + audio rate to <350kbps.
The lowest I use is 2 audio channels 22.050 KHz at 48K

Read the forum to find out how to encode Flash using FFmpeg, Riva FLV Encoder or MEncoder.
However, you can use the pricey, friendly interface, easy-to-use Sorenson Squeeze.

If you do this, YouTube will not reject your video.
In fact, it won't touch it at all.

Cheers



yeoz posted 2008 Feb 12 09:30
Don't know how long this will last, but, a workaround to youtube's HQ hack-fix (for clips considerably shorter than ten minutes) is to simply pad your FLV file with null or empty frames up to 10:59:59. Penalty is less than 1kB per null frame, and, with multipass encoding, the bits that would've been used but aren't needed for the null frames would get moved around so that the video itself (and not the null frames at the end) end up with the bulk of the available bits.

Right now I'm just using avisynth to pad the source file with null frames, but, i'm sure that's not the best way to do it. Can anyone recommend a FLV joiner and/or a FLV muxer? I'm probably also going to try muxing audio manually, instead of letting mencoder do it, to see if I can gain any extra bitrate that way.



wwechamp posted 2008 Feb 12 11:24
Thanks for info!


45tripp posted 2008 Feb 12 14:31
yeoz :
Don't know how long this will last, but, a workaround to youtube's HQ hack-fix (for clips considerably shorter than ten minutes) is to simply pad your FLV file with null or empty frames up to 10:59:59.


no reason why it should stop working

as much was already suggested by Duro:
duro :
Hi 45tripp, great tutorial. I was doing something similar last year by adding a still image for say like 7 mins to a 3 min video and running through mencoder and bypassing encoding resulting in a sharp video, but the hexing way is great.

tackier than a clean hack, but viable.

atropine :
So I have my target subjects in 320x240 resolution, and background in 160x120 resolution(upscaled). I feather between the masking so that the difference doesn't really show that much.


i don't like the theory of it,
but feel free to share a practical example of this procedure so someone might try it out.


tripp



hypnoticpimp posted 2008 Feb 12 14:36
45tripp/ Can you please make a new video tutorial to get hi quality on youtube, with the new youtube HQ Fix


bayme posted 2008 Feb 12 15:23
You can always try this:
http://forum.videohelp.com/topic345987.html



wonderpierrot posted 2008 Feb 12 16:09
bayme :
You can always try this:
http://forum.videohelp.com/topic345987.html


I've been using Any Video Converter for quite some time now and find the quality surprisingly good, compared to other alternatives.

I've been also oddly noticing YouTube additionally re-encoding some of my vids at higher resolution and at higher bitrate than the normal, like what dtfinch has mentioned earlier. The higher quality resolution is 480 x 360 compared to 320 x 240 and uses a higher bitrate (although I'm not certain the numeric value). Apparently it seems to take quite some time for the higher quality video to replace the original low quality video.

I'm wondering if YouTube is actually going through that phase to get alternate high quality versions of uploaded videos to users. As of the moment, it's weird that only random clips are getting the high quality improvement. It also seems that only videos uploaded at 640 x 480 get the benefit of receiving an additional higher quality version, at least in my experiences.



atropine posted 2008 Feb 12 23:12
wonderpierrot :

I've been also oddly noticing YouTube additionally re-encoding some of my vids at higher resolution and at higher bitrate than the normal, like what dtfinch has mentioned earlier. The higher quality resolution is 480 x 360 compared to 320 x 240 and uses a higher bitrate (although I'm not certain the numeric value)..... It also seems that only videos uploaded at 640 x 480 get the benefit of receiving an additional higher quality version, at least in my experiences.


It's interesting that youtube archive the original videos uploaded. I had always imagined that once encoded they were deleted.



reez posted 2008 Feb 13 10:47
hey everyone..i use to use the hex hack to upload past 10mins..but now my video gets rejected because of TOS violation..i was wondering if they fixed that too?


wwechamp posted 2008 Feb 13 11:20
Yes the violation thing has been happening more lately.


reez posted 2008 Feb 13 11:57
its weird how it happens too. I saw that the correct time was displayed next the vid but when you click "watch video" through the "edit video" page i then get the TOS violation. It's like it went through but then 2 seconds later got removed


bayme posted 2008 Feb 13 12:14
reez :
its weird how it happens too. I saw that the correct time was displayed next the vid but when you click "watch video" through the "edit video" page i then get the TOS violation. It's like it went through but then 2 seconds later got removed

I received two Copyright Infringement notices yesterday as well. They've blatantly taken two videos down, comments and all lost. I don't like YouTube for doing it that way, they could have asked first. The only reason I have videos there is because of the community element, I couldn't care less about copyrights, I make no money over it, nor does anyone lose money over it. Viacom just plain blows bullshit around on innocent users.
In my case these videos were already up there a loooong time. Which makes it even more ridiculous (and useless if you ask me). They don't understand the internet: Once digitally out there, the damage is done, there is no "preventing more damage" possible.



reez posted 2008 Feb 13 12:26
youtube is the best place to upload movies imo..because its in shitty flash and no one spreads around FLASH FORMAT. also reuplaoding anywhere makes it worst. plus there's this loser i met who works for a company that is hired to take down copyright infringement..the thing is this guy follows me now and i cant associate any new video with my name HAHA..im pretty sure he's thae one who took your stuff down. he even has a yt account and brags to you before taking down..anyway i guess the 10min limit hack is screwed, back to the drawing board


stsin posted 2008 Feb 13 19:59
wonderpierrot :

I've been also oddly noticing YouTube additionally re-encoding some of my vids at higher resolution and at higher bitrate than the normal, like what dtfinch has mentioned earlier. The higher quality resolution is 480 x 360 compared to 320 x 240 and uses a higher bitrate (although I'm not certain the numeric value). Apparently it seems to take quite some time for the higher quality video to replace the original low quality video.

I'm wondering if YouTube is actually going through that phase to get alternate high quality versions of uploaded videos to users. As of the moment, it's weird that only random clips are getting the high quality improvement. It also seems that only videos uploaded at 640 x 480 get the benefit of receiving an additional higher quality version, at least in my experiences.


A friend sent his new video to me on YT and the first thing I noticed was the great quality. Checked the size and it was greater than 320x240. Replied to him saying how it looked great. But when I went back to that page minutes later, it looked like the old crappy YT quality. This time the size was at 320x240. So I reloaded the page and it went back to the HQ version that I first saw. Probably at 480x360 that you mentioned.

So there seems to be two streaming versions stored by YT now? He just uploaded it hours ago. And I wonder why I got the old style YT version on second viewing?

edit: checked that video and it was back to the 320x240 blocky version. I kept refreshing and it was staying that way...till around the 7th refresh which it finally streamed the better version.

Here's an examinating of that file taken from my Firefox Cache with Mediainfo:
Complete name : H:\WUTemp\955890F0d01.flv
Format : Flash Video
File size : 18.9 MiB
PlayTime : 2mn 33s
Bit rate : 1038 Kbps
timestamp : 0.000 / 0.000
starttime : 0.000
totalduration : 153.000
totaldatarate : 1038.093
bytelength : 19853711.000

Video #0
Codec : Sorenson H263
PlayTime : 2mn 32s
Bit rate : 934 Kbps
Width : 480 pixels
Height : 272 pixels
Display Aspect ratio : 16/9
Frame rate : 23.993 fps
Bits/(Pixel*Frame) : 0.298

Audio #0
Codec : MPEG-1 Audio layer 3
Bit rate : 96 Kbps
Bit rate mode : CBR
Channel(s) : 1 channel
Sampling rate : 44.1 KHz
Resolution : 16 bits
Writing library : Xing (new)

edit2:
When I said HQ, I didn't mean that it looked as good as what most of us uploads. Just that it was much better than normal. I mean if we had 1Mbps to play around with, it would look nearly flawless. I also remember it stuttering the first time viewing it, knowing now because of the high bitrate.



wonderpierrot posted 2008 Feb 13 21:03
The implementation is a bit buggy atm, I'm getting from high quality to low quality on and off as well, but not as drastic as you. It's actually pretty consistent for me, I'm getting the high quality videos 90% of the time. It might be due to your internet speed too, I attempted to view my high quality videos on a limited signal wireless connection and could not get the high quality videos to show, at least on Firefox.

I also found that YT is giving all my new videos high quality versions now, or maybe it was because they are all in AVI DIVX 640 x 480 format (the wmvs I uploaded earlier never got high quality versions, even at 640 x 480 resolution).

And wow, 1Mbps? These videos barely even stutter for me and play as smoothly as a regular YT video. When the HQ hex hack worked all the videos I uploaded with 1Mbps stutter like crazy.



dtfinch posted 2008 Feb 13 22:48
The player tracks your bandwidth, and updates it each time you finish downloading a video. If the estimate is too low (below 720kbps), like if youtube was congested the last couple videos you watched, it'll select the low quality video next time. I posted that greasemonkey script on page 11 to get around that.


bayme posted 2008 Feb 13 23:43
I have yet to see an actual example of this. Any links, please?
I haven't seen this happen on any of my videos, they are static in quality. Where and when ever I view them. (And yes, I do check this on different internet access systems.)

Also, I have a very hard time believing this, since as it stands, YT is at (and last night over) its bottleneck for Western Europe and US night around 22:00 CET, and 22:00 EST. You people do not seem to realize they serve close to 25 petabytes each day, the pipes simply aren't thick enough to handle much more (yet).



reez posted 2008 Feb 14 07:29
why in gods name wont anyone post links to these "oh so amazing" quality changes..how do YOU check if it's a higher quality?..by DOWNLOADING them or simply clicking the RESIZE button on the player..if resize button is how you've been doing it then I have the same problem too.


wonderpierrot posted 2008 Feb 14 07:47
Not the best example, but here: http://www.youtube.com/watch?v=W1hkK4AxW7A

If it doesn't show the 480 x 360 version YT determined your bandwidth isn't high enough and you can attempt the greasemonkey script dtfinch wrote.



reez posted 2008 Feb 14 08:03
ooookkaayyyy, this is what i was talking about. I click the RESIZE BUTTON on the player and it DUZNT go down to 320/240...it STAYS at 480/360. BUT when i DOWNLOAD the SAME file and check/play it, it IS at 320/240...


reez posted 2008 Feb 14 10:15
ricardouk :


hereŽs how i add black bars to 4:3 to get the 16:9 aspect:

since im not that "fluent" with making avisynth scripts i use AVS2DVD to make the script for me and then edit the script by replacing 720x576 by 320x240.

here's a screenshot, hope it helps:


the final avisynth script becomes this:
i removed the reference to dgpulldown and the last line about converting the audio to 48000

:
Video = DirectShowSource("C:\test\iron_man.avi", convertfps=true, audio=false)
Audio = DirectShowSource("C:\test\iron_man.avi", video=false).Normalize()
AudioDub(Video, Audio)
ConvertToYV12
AddBorders(0,44,0,44)
Lanczos4Resize(320,240)


hey ric sorry but it's not working for me ..does the file HAVE to be avi or sumthing?..because mine is quick time. here's how i did it:
my avs code:


:
Video = DirectShowSource("C:\Rez Music\IJ_KOTCS_trailer1_480p.mov", convertfps=true, audio=false)
Audio = DirectShowSource("C:\Rez Music\IJ_KOTCS_trailer1_480p.mov", video=false).Normalize()
AudioDub(Video, Audio)
ConvertToYV12
AddBorders(0,44,0,44)
Lanczos4Resize(320,240)


i drag it into automen i copy YOUR settings(which i found here http://forum.videohelp.com/topic336882-240.html#1809329 ) and click start...but it wont GO. I was wondering if you are able to see what i'm doing wrong..thanks for the help though



ricardouk posted 2008 Feb 14 11:49
I had to convert the MOV files to AVI(xvid) with a hight bitrate (2000) so that we dont loose much quality and then use the avi to convert to flv.


reez posted 2008 Feb 14 12:27
ricardouk :
I had to convert the MOV files to AVI(xvid) with a hight bitrate (2000) so that we dont loose much quality and then use the avi to convert to flv.


THANKS RICK i got it to work..but can you tell me how accurate Gspot is at telling the bitrate of the finished flv? I encoded a vid with Winff and checked it with Mediainfo which said it was 444 kbps...but Gspot said it was 349

hey cool blog man



ricardouk posted 2008 Feb 14 15:01
hi, i just reinstalled xp on my pc and im reluctant to install mediainfo as it messes around with some icons and theres no way(that i know of ) on mediainfo to undo that.

but answering your question, i didnt even know gspot scanned flv, i always used mediainfo, but you can try avinaptic, dont know if it supports flv but it doesnt harm trying it....



bayme posted 2008 Feb 14 15:01
wonderpierrot :
Not the best example, but here: http://www.youtube.com/watch?v=W1hkK4AxW7A

If it doesn't show the 480 x 360 version YT determined your bandwidth isn't high enough

Right, so my bandwidth isn't high enough with a Gigabit fiber straight to the backbone?
No greasemonkey script will convince YouTube my bw is high enough here.

Because it's showing a stupid 320x240 low quality flv. Still not convinced.



stsin posted 2008 Feb 14 15:47
bayme :
I have yet to see an actual example of this. Any links, please?
I haven't seen this happen on any of my videos, they are static in quality. Where and when ever I view them. (And yes, I do check this on different internet access systems.)

Also, I have a very hard time believing this, since as it stands, YT is at (and last night over) its bottleneck for Western Europe and US night around 22:00 CET, and 22:00 EST. You people do not seem to realize they serve close to 25 petabytes each day, the pipes simply aren't thick enough to handle much more (yet).


This is the 1Mbit video I was talking about earlier:
http://www.youtube.com/watch?v=jRgdfdeKIFM

The poster didn't even know there was a higher quality version, till I told him to keep reloading the page till the better version shows up.

Something else I noticed. He uploaded the original at 16/9 AR. At the low 320x240 version the AR looks fine, but when the HQ version streams it's stretched fullscreen to 4/3 AR. So YT displays the correct AR on it's low version now?

btw, my bandwidth is on the lower average for ADSL. So maybe it's something else?



reez posted 2008 Feb 14 16:11
ricardouk :

but answering your question, i didnt even know gspot scanned flv, i always used mediainfo, but you can try avinaptic, dont know if it supports flv but it doesnt harm trying it....


so what do YOU use to tell the Kbps?

stsin :

This is the 1Mbit video I was talking about earlier:
http://www.youtube.com/watch?v=jRgdfdeKIFM
The poster didn't even know there was a higher quality version, till I told him to keep reloading the page till the better version shows up.


...i dont really think there is a second version..YES it looks REALLY good. But when i download it, it is the same crappy 320/240 version. Since he uploaded the vid at 16:9, remember YT gives it the black bars....so maybe the player somehow knows that and treats it separate from the vid...GOD this crap is complicated im going to sleep



stsin posted 2008 Feb 14 16:23
Mediainfo seems the most accurate, atleast it's pretty similar to what YT uses.

Why download, when it's obviously linking to the old version? Just snatch it from your browser cache.

From what dtfinch said earlier, the HQ version is probably coming from a different server. Not throttling it's bandwidth as much, why that 1Mbit video streams better than the hexed version.



wonderpierrot posted 2008 Feb 14 17:09
bayme :
wonderpierrot :
Not the best example, but here: http://www.youtube.com/watch?v=W1hkK4AxW7A

If it doesn't show the 480 x 360 version YT determined your bandwidth isn't high enough

Right, so my bandwidth isn't high enough with a Gigabit fiber straight to the backbone?
No greasemonkey script will convince YouTube my bw is high enough here.

Because trust me, it's showing a stupid 320x240 low quality flv.
Still not conviced.


Try using IE7. When Firefox doesn't load the HQ videos on some of my computers IE7 seems to load them, at least on the 2nd or 3rd refresh.



reez posted 2008 Feb 14 18:01
oh why must u force this placebo effect on us?...*sigh* now i dont know WHAT im seeing. Ok to save us all this trouble, how about you upload the vid that YOU consider to be this "abnormal HQ vid..with BRAINS of it's OWn" to rapidshare so that we may download and see. SOUND GUD?...i think YES?...so that i may now SLEEP!?..and wake up to da LIES TOMORROW?!!?


dtfinch posted 2008 Feb 14 19:40
On Windows, I use a program called Hobocopy to copy all the flash videos (fla*.tmp) from my temp folder, since Flash locks them read-exclusive. On other systems it's a simple drag and drop from /tmp/.

A YouTube specific video downloader which generates the appropriate url for the 320x240 video and downloads it, rather than retrieving the video you already downloaded, will always get the 320x240 video at the 320x240-specific url it generated, until they update them to support the new video url scheme.

I've already posted sendspace links to 6 videos that you can watch and compare to their 320x240 counterparts.



45tripp posted 2008 Feb 14 20:13
guys,
all this discussion about streaming capabilities is off topic.
you can discuss it elsewhere.
and you may start by asking if anyone outside the US has seen this upgrade effect,
i doubt it,
which is another reason why it interests me very little right now.

ricardouk :
hi, i just reinstalled xp on my pc and im reluctant to install mediainfo as it messes around with some icons and theres no way(that i know of ) on mediainfo to undo that.


you don't have to use the installer,
find the zipped version and unzip somewhere...

tripp



ricardouk posted 2008 Feb 15 03:34
yes, i was using the portable version of it, and it still messed up some icons, it takes over mp4, ifo, bup and some other ones....

:
so what do YOU use to tell the Kbps?


nothing at the moment, trying to find something that doesn have the above side effects



reez posted 2008 Feb 15 07:18
thanks ric

dtfinch :
I've already posted sendspace links to 6 videos that you can watch and compare to their 320x240 counterparts.


so can you give us the links?

45tripp :
guys,
all this discussion about streaming capabilities is off topic.
you can discuss it elsewhere.


aww man this awesome thread is done already? i was jus starting to have fun



yawoo posted 2008 Feb 16 10:23
I have used the following command to generate flv file, and have modified the HEX code to duration to 10mins.
But after I upload to youtube, it still re-encode and produce bad quality video. Anyone can correct me?

:
mencoder.exe "F:\JOI\joi_cctv.avs" -srate 44100 -oac mp3lame -lameopts abr:br=64:mode=3  -ovc lavc -lavcopts vcodec=flv:vqscale=7 -of lavf -lavfopts format=flv -o "d:\joi_cctv.flv"





superzombie23 posted 2008 Feb 16 14:28
yawoo :
I have used the following command to generate flv file, and have modified the HEX code to duration to 10mins.
But after I upload to youtube, it still re-encode and produce bad quality video. Anyone can correct me?

:
mencoder.exe "F:\JOI\joi_cctv.avs" -srate 44100 -oac mp3lame -lameopts abr:br=64:mode=3  -ovc lavc -lavcopts vcodec=flv:vqscale=7 -of lavf -lavfopts format=flv -o "d:\joi_cctv.flv"




The HQ hack is OBSOLETE. Read the title of thread.



bayme posted 2008 Feb 16 17:07
dtfinch :
On Windows, I use a program called Hobocopy to copy all the flash videos (fla*.tmp) from my temp folder, since Flash locks them read-exclusive.
Strange.. I have always been able to simply copy YT flv from cache. The firefox cache, IE cache, and Opera cache. I use TotalCommander in Windows. It does nothing special while copying.
What exactly would be "read-exclusive"? Or is this something strange from Vista? I use XP x64, 2003 or Longhorn/2008. the read-exclusive thing is something I've never noticed.

wonderpierrot :
Not the best example, but here: http://www.youtube.com/watch?v=W1hkK4AxW7A

Try using IE7. When Firefox doesn't load the HQ videos on some of my computers IE7 seems to load them, at least on the 2nd or 3rd refresh.

Nothing special happening here.

This is a trace to the particular source data for the flv:
:
Tracing route to ash-v93.ash.youtube.com [64.15.118.214] over a maximum of 30 hops:

1     0 ms     0 ms     0 ms  gbll881.--.net [192.168.88.1]
2     3 ms     3 ms     3 ms  0.ge-0-3-5.xr3.3d12.xs4all.net [194.109.7.37]
3    16 ms     7 ms    19 ms  0.so-7-0-0.xr1.tc2.xs4all.net [194.109.5.14]
4    47 ms     6 ms     6 ms  po1.ccr01.ams03.atlas.cogentco.com [195.69.144.124]
5   109 ms    14 ms    14 ms  te1-1.mpd02.lon01.atlas.cogentco.com [130.117.1.170]
6   117 ms   237 ms   171 ms  te2-2.ccr04.jfk02.atlas.cogentco.com [154.54.5.122]
7   107 ms    92 ms   109 ms  te3-3.mpd01.jfk01.atlas.cogentco.com [154.54.24.149]
8    90 ms   202 ms    92 ms  vl3490.mpd01.ewr03.atlas.cogentco.com [154.54.1.30]
9   301 ms   209 ms   193 ms  you-tube-llc.demarc.cogentco.com [38.101.84.66]
10     *        *        *     Request timed out.
(YT is firewalled)


Denizzje posted 2008 Feb 16 17:54
reez :
ricardouk :

but answering your question, i didnt even know gspot scanned flv, i always used mediainfo, but you can try avinaptic, dont know if it supports flv but it doesnt harm trying it....


so what do YOU use to tell the Kbps?

stsin :

This is the 1Mbit video I was talking about earlier:
http://www.youtube.com/watch?v=jRgdfdeKIFM
The poster didn't even know there was a higher quality version, till I told him to keep reloading the page till the better version shows up.


...i dont really think there is a second version..YES it looks REALLY good. But when i download it, it is the same crappy 320/240 version. Since he uploaded the vid at 16:9, remember YT gives it the black bars....so maybe the player somehow knows that and treats it separate from the vid...GOD this crap is complicated im going to sleep


Now that is really strange. I first watched it on Firefox and it showed the higher quality version on the first time. I actually went reloading because I expected better. Then I opened it in IE7 because that should have opened the HQ version. And then I saw that what I first saw is actually the HQ version and now I saw a blocky, just ugly video. I kept reloading it but the HQ version wouldn't return. Then I opened it in FF again, and now it doesn't want to show up again anymore on FF too... Veeeeeeeery strange.



reez posted 2008 Feb 16 19:39
IMO all this wud be solved if the people who "got" this HQ version from there CACHE wud just POST DOWNLOAD LINKS


45tripp posted 2008 Feb 16 20:17
@yawoo

yes the hack has been patched.

but
1. you can still upload your stream with bitrates under 350k and have them pass through untouched
2. you can still cheat duration, if you're willing to pad the stream with still images.
3. you can use an alternate service.
4. you can wait for the youtube upgrade


tripp



wonderpierrot posted 2008 Feb 16 20:26
reez :
IMO all this wud be solved if the people who "got" this HQ version from there CACHE wud just POST DOWNLOAD LINKS


How would doing that prove its existence? Anyone can take a video and convert it to high quality 1000kps FLV and upload it.

If already 5 people, including myself, has witnessed the high quality videos then that should prove that it is out there.

Unfortunately I am unable to upload a 6th high quality video after the 5th one, and I attempted nearly everything possible to get it working (change video format, resolution, compression settings, uploading 5 more low quality vids, waiting days). If anyone is able to figure out the process of how YouTube is creating and presenting these alternate high quality versions of videos then I and everyone else would greatly appreciate it.



SpongeFreak52 posted 2008 Feb 17 00:23
Wait a minute. If the HQ trick is blocked, how are these videos still possible? Note that this one was uploaded only 5 days ago from now.

http://youtube.com/watch?v=dgISAjQsNCg

If someone could give me specs for that kinda vid, I'd be very gracious.



45tripp posted 2008 Feb 17 03:11
SpongeFreak52 :
Wait a minute. If the HQ trick is blocked, how are these videos still possible? Note that this one was uploaded only 5 days ago from now.


45tripp :

2. you can still cheat duration, if you're willing to pad the stream with still images.



SpongeFreak52 posted 2008 Feb 17 06:31
Hm...this is strange. See, I had uploaded a series of 121 videos for a video game, and now that I go back to earlier numbers, I see that some of them are much larger than normal as stated above with the resize button.

The weird thing is that let's say we have videos 1, 2, 3, 4, and 5.
1 is HQ (http://youtube.com/watch?v=aHQ7L14EkJ8&feature=related)
2 is LQ (http://youtube.com/watch?v=MelAAyRcgnk&feature=related)
3 is LQ (http://youtube.com/watch?v=hll_9tn3-so&feature=related)
4 is HQ (http://youtube.com/watch?v=5-rQu80IpYc&feature=related)
5 is LQ (http://youtube.com/watch?v=3212BcRJnWQ)

What I want to know is why numbers 1 and 4 are in better quality. Could it be that those have already made the switch to better quality videos? Because I used the exact same settings for all 5 of those videos, and they were all originally 640 x 480. The bitrates were similar as well.

So this could be a simple "it's made the switch to HQ" scenario, or something very strange is going on. Any ideas?



bayme posted 2008 Feb 17 08:43
SpongeFreak52 :
What I want to know is why numbers 1 and 4 are in better quality.
They aren't, from where I see them.

What's with all the silly animated stuff here on this forum? What's the average age here? ;-)



yawoo posted 2008 Feb 17 09:59
That mean YT has re-encoded some of video if the original uploaded quality is good?
For example, video 4, you can download new re-encoded version from YT.
Play this video,
http://youtube.com/watch?v=5-rQu80IpYc

View the page source, and search for "&t=", u will find that there is a new parameter "fmt_map" nearby.
Copy the "t=" string between two "&", and then use the format of the following string,

http://www.youtube.com/get_video?video_id=5-rQu80IpYc&fmt=6&t=OEg ... SSdqaOHfpJ

You need to change the string behind "&t=" as shown in your page source. As result, u can download the
better quality video from YT directly.



yawoo posted 2008 Feb 17 10:57
Just find that a number of video I uploaded to YT at the early of Feb, have been upgraded to good quality also. All uploaded formats I used are 640x480 Xvid + MP3.


SpongeFreak52 posted 2008 Feb 17 12:24
Interesting. While I can't disagree with what you've said, I think the switch's ETA depends on the original format uploaded. For example, I had used WMV formats up until about video #65, and that's the last one that's had good quality so far. After #66, I was using XVID AVI files, and none of those have been upgraded yet. Very strange.


bayme posted 2008 Feb 17 12:35
yawoo :
u will find that there is a new parameter "fmt_map" nearby.

http://www.youtube.com/get_video?video_id=5-rQu80IpYc&fmt=6&t=OEg ... SSdqaOHfpJ

You need to change the string behind "&t=" as shown in your page source. As result, u can download the
better quality video from YT directly.

First of all, the fmt_map string isn't in the source when I view it here in NL, Europe.
Second, the get_video request yields no results here either.

However, using the normal view-string, so:
http://www.youtube.com/watch?v=5-rQu80IpYc&fmt=6
does give me a 448x336 flv of about 650 kbit/s AV in total. With 96 kbit/s CBR mp3 audio at 44.1 kHz in mono
(which is kind of disappointing by the way, but may depend on the upload). I think they should use lame vbr mp3 at least.

Can someone come up with something other than game or animated videos example?



yawoo posted 2008 Feb 17 12:52
bayme :

First of all, the fmt_map string isn't in the source when I view it here in NL, Europe.
Second, the get_video request yields no results here either.

However, using the normal view-string, so:
http://www.youtube.com/watch?v=5-rQu80IpYc&fmt=6&t=OEgsToPDskIXTT ... SSdqaOHfpJ
does give me a 448x336 flv of about 650 kbit/s AV in total. With 96 kbit/s CBR mp3 audio at 44.1 kHz in mono
(which is kind of disappointing by the way, but may depend on the upload). I think they should use lame vbr mp3 at least.

But again, can someone come up with something other than game or animated videos here?


If it don't show up fmt_map in the page source, it may mean your speed is too low to show up HQ mode, I think.
Thanks for your guessing the link, it works for forcing the HQ mode. Here is the example for u,

http://www.youtube.com/watch?v=DKw7mu6lzso&fmt=6



reez posted 2008 Feb 17 12:59
bayme :

However, using the normal view-string, so:
http://www.youtube.com/watch?v=5-rQu80IpYc&fmt=6&t=OEgsToPDskIXTT ... SSdqaOHfpJ
does give me a 448x336 flv


using this method I've seen some at 480/360...why aren't they consistant with the ratio?



yeoz posted 2008 Feb 17 13:19
SpongeFreak52 :
Wait a minute. If the HQ trick is blocked, how are these videos still possible? Note that this one was uploaded only 5 days ago from now.

http://youtube.com/watch?v=dgISAjQsNCg

If someone could give me specs for that kinda vid, I'd be very gracious.
Hey, that's my video :P
(cut a lot of stuff I ended up sending to SpongeFreak52 over IM)



Denizzje posted 2008 Feb 17 13:28
SpongeFreak52 :

The weird thing is that let's say we have videos 1, 2, 3, 4, and 5.
1 is HQ (http://youtube.com/watch?v=aHQ7L14EkJ8&feature=related)
2 is LQ (http://youtube.com/watch?v=MelAAyRcgnk&feature=related)
3 is LQ (http://youtube.com/watch?v=hll_9tn3-so&feature=related)
4 is HQ (http://youtube.com/watch?v=5-rQu80IpYc&feature=related)
5 is LQ (http://youtube.com/watch?v=3212BcRJnWQ)

What I want to know is why numbers 1 and 4 are in better quality. Could it be that those have already made the switch to better quality videos? Because I used the exact same settings for all 5 of those videos, and they were all originally 640 x 480. The bitrates were similar as well.


This seems to be changing all the time. Earlier when I looked, 1 was NOT HQ, but 4 and 5 were. Now, only 1 jumped to HQ while the rest was LQ.

Number 33 is upgraded too: http://www.youtube.com/watch?v=qnUiYKr7p74



bayme posted 2008 Feb 17 13:44
yawoo :
If it don't show up fmt_map in the page source, it may mean your speed is too low to show up HQ mode, I think.
Thanks for your guessing the link, it works for forcing the HQ mode. Here is the example for u,

http://www.youtube.com/watch?v=DKw7mu6lzso&fmt=6

Ah, OK, 805 kbit/s, but again only mono audio at cbr 96 kbps.

The strange thing about the missing fmt_map string in my source (also for this example) is that the video streams in way fast enough here to handle the bitrate. So either YT's calculations are wrong about that (which I doubt they are even doing), or they offer pages based on IP4 source (which is easy to do).

So, concluding this (45 trip is right, it doesn't belong here), it seems YT/Google is test-offering the high quality format as we speak, but only to certain IP-based locations. They might not offer it to Western Europe, simply because (as I wrote earlier) YT-traffic is running at its bottleneck already. We need thicker pipes between YT and Europe to handle the higher quality during peak-hours, or the EU needs more of its own servers, or a better type of clustered proxy for the videos.



Denizzje posted 2008 Feb 17 13:48
So for my information, we as Dutch can see the HQ movies if they are already 'switched', but not yet foorce them like yawoo did with that Chinese movie because we can't see the 'fmt code' in the source? I don't see it either.


reez posted 2008 Feb 17 13:50
so we start a new thread?


SpongeFreak52 posted 2008 Feb 17 13:50
See, for me though, most of them 1 through about 65 are upgraded. It's probably just because they're my videos though. I'm about to try Yeoz's method now. I'll give you guys the results. ^_^

And yes, I think it would be better if a new thread was started.



bayme posted 2008 Feb 17 14:00
Denizzje :
So for my information, we as Dutch can see the HQ movies if they are already 'switched', but not yet foorce them like yawoo did with that Chinese movie because we can't see the 'fmt code' in the source? I don't see it either.

Adding "&fmt=6" behind the watch URL tells you if it is already converted, obviously.
So, for example:
http://www.youtube.com/watch?v=pwAkEaGyRzc
http://www.youtube.com/watch?v=pwAkEaGyRzc&fmt=6
this one clearly isn't offered with the extra quality format (yet?).


OK, I started a new thread: http://forum.videohelp.com/topic346256.html



Denizzje posted 2008 Feb 17 14:29
bayme :
Denizzje :
So for my information, we as Dutch can see the HQ movies if they are already 'switched', but not yet foorce them like yawoo did with that Chinese movie because we can't see the 'fmt code' in the source? I don't see it either.

Adding "&fmt=6" behind the watch URL tells you if it is already converted, obviously.
So, for example:
http://www.youtube.com/watch?v=pwAkEaGyRzc
http://www.youtube.com/watch?v=pwAkEaGyRzc&fmt=6
this one clearly isn't offered with the extra quality format (yet?).


OK, I started a new thread: http://forum.videohelp.com/topic346256.html


Thank you. Indeed, one of my videos is converted too.

http://www.youtube.com/watch?v=pVAURHf-2MQ
vs
http://www.youtube.com/watch?v=pVAURHf-2MQ&fmt=6

Alright, lets continue in the new thread.



hypnoticpimp posted 2008 Feb 18 12:41
any1 know another service, where they cant reencode flv files?


zoobie posted 2008 Feb 18 12:43
you could just get a regular host then upload anything you wish for a few bucks a month...


gus999 posted 2008 Feb 18 17:10
Ok, i'm in the uk, and am experiencing the same "upgrading" of videos rendered at 640x480 as wmv files. I don't know whats going on at YT but i wish they'd stop being so darn secretive about it!
So, to all those of you questioning certain posters sanity, IT'S TRUE!!!
I can't provide examples as theyre all test vids set to private (nothing dodgey, just crap!) but the quality is good, (considering the source, not HD) and when you try to resize them smaller in the viewing window they WONT! :)
I use Sony Vegas Pro8, record in cockpit heli videos on a sandisc v5 with an sd card in it (640x480 25fps, pal bullet cam).



bayme posted 2008 Feb 18 17:53
gus999 :
Ok, i'm in the uk, and am experiencing the same "upgrading" of videos rendered at 640x480 as wmv files. I don't know whats going on at YT but i wish they'd stop being so darn secretive about it!
So, to all those of you questioning certain posters sanity, IT'S TRUE!!!
Yes, we all know by now: http://forum.videohelp.com/topic346256.html

Here's what I think is going on:
They are so secretive about it, because the decision involves quite a daring move for Google/YouTube, and they're not sure if they can even handle it yet, traffic-wise, and with regards to copyright-territories. BayTSP (Viacom's agent claiming infringements at YT) is probably f*cking it all up for YT.

Also, if they now allow the videos to use up to 1 Megabit/s bandwidth, then why not also raise the 350 kbit/s limit we had to deal with in this thread? Should they allow the users to have control over what quality users would like their content to be offered in, or should they avoid lag and make connection-speed the determining factor for the version/quality they offer? They are probably discussing all this as we speak.



reez posted 2008 Feb 18 18:03
they're probably reading this friggin thread trying to figure out wat da hell to do


bayme posted 2008 Feb 20 15:23
,.


diddyman4real posted 2008 Feb 21 06:35
45tripp :

2. you can still cheat duration, if you're willing to pad the stream with still images.
[/quote]



please explain what you mean by pad the stream. i want to cheat the duration of a video, tell me how please. :D



wwechamp posted 2008 Feb 21 14:16
If you don't know how to pad a file then all is lost for you lol. :?
But seriously it would be easier for you if there was an example somewhere.



benrtc posted 2008 Feb 23 05:59
Nevermind. The video below WAS in 480x360 but is now 320x240. Perhaps YT is experimenting.

http://www.youtube.com/watch?v=yLhzqDjCs8w



45tripp posted 2008 Feb 23 09:52
benrtc :
Perhaps YT is experimenting.


they are,
add &fmt=6 to the end of the url
http://forum.videohelp.com/topic346256.html


as for padding,
it's simply adding still images to pad the stream to the desired length.
many ways to do it,
any editor will do.

somenone actually had an example up,
but took it down...
oh well.

i'll post an example using avisynth
(you can't just copy paste this stuff)

so lets say you start with a progressive ntsc dvd clip at 4/3,
you've got a duration of 120 seconds.
first decide by how much you intend on extending the length of the clip.
50%, 100%, 200% or up to the 11 min max?

I'll go for 50%
so we want an extra 60 seconds of blank footage.
at a framerate of 23.976, thats ~ 24x60 = 1440 frames.
keep in mind the blank clip has to match the properties of your clip,
and you can add some text to your blank frame to signify the end.
so as an example in avisynth:

:
LoadPlugin("C:\Program Files\AviSynth 2.5\dgdecode.dll")
a = mpeg2Source("VideoFile.d2v").lanczos4resize(448,336)
b = wavsource("audio.wav")
c= BlankClip(length=1440, pixel_type="yv12", width=448, height=336, fps=24000, fps_denominator = 1001, audio_rate=48000, stereo=true).subtitle("fin", align=5, size=36)
d = audiodub(a,b)
e=d+c
return(e)


and then you encode your avs,
so that your total bitrate stays below 350k
(as an example):

:
mencoder videoblank.avs -o mencblank.flv -af resample=22050:0:0 -of lavf -ovc lavc -lavcopts vcodec=flv:vpass=1:vbitrate=301:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=32:mode=3

mencoder videoblank.avs -o mencblank.flv -af resample=22050:0:0 -of lavf -ovc lavc -lavcopts vcodec=flv:vpass=3:vbitrate=301:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=32:mode=3


gl
tripp



frifox posted 2008 Feb 23 12:20
45tripp :

as for padding,
it's simply adding still images to pad the stream to the desired length.
many ways to do it,
any editor will do.

somenone actually had an example up,
but took it down...
oh well.

i added black frames with white text in sony vegas, does the same job...

example taken down? well, if anybody needs another example, here is one:
--[ Duration: 2:05
--[ Video Size - 640x480
--[ Video Bitrate - 1200Kbps
--[ Video Framerate - 25fps
--[ Audio Bitrate - 128Kbps
--[ Audio Codec - VBR MP3 (LAME)
--[ http://www.youtube.com/watch?v=bwkrpCqvcR0


btw, can we add those black frames using only ffmpeg? that will reduce the whole video uploading process by removing sony vegas out of the equation...



45tripp posted 2008 Feb 23 13:02
frifox :

i added black frames with white text in sony vegas, does the same job...


45tripp :

many ways to do it,
any editor will do.


frifox :

example taken down?


an example of methodology,
not of uploaded content.



frifox posted 2008 Feb 23 13:05
oh, then pardon me for misunderstanding :uglylol:


stsin posted 2008 Feb 24 12:45
YT's HQ conversion is too sporadic to rely on for now. None of my huge test videos have been converted. Even if they do, it will be Mono and quality still won't be as good as from us using similar bitrate. That is for those who can see the HQ version. Plus we lack control, other than attempting to filter it so YT may compress it better. If look at YT's 750+ Kbps conversions, I still see artifacts and such. So I'll look back on YT's HQ version when they get it finalized, and allow users to set an option to force video to HQ when exists, because their 320x240 version looks like total poop.

Been trying to convert videos under 350Kbps with no padding. Now even playing with avisynth (and yes, it is awesome). Correct time and all.
http://www.youtube.com/watch?v=A47MeRCW1Qs
I have slower paced vids which look even better and are quite acceptable to stay under 350Kbps with no padding.

But with some videos I sure missed the HQ version from a month ago, so I too started to pad the ends, even though it may be annoying to some.
http://www.youtube.com/watch?v=W3KxpVo7PAE

When padding, I add 75% of the original in extra frames with avisynth, so the streaming won't stutter for most people. Going all the way to 10:59 for short videos is way too much, not quite as enjoyable for that extra quality.

I still use ffmpeg with Avanti as the GUI. Now feeding it with avisynth scripts. The type of filters to use is something I'm still figuring out. Any suggestions for favorite filters to help compressability are welcomed. To get even more bitrate for the video, I started to use VBR audio. Avanti GUI doesn't have a VBR option for Lame, so I just demux and use lame.exe. Sometimes the -aq option is still huge and force -abr which gives acceptable quality...depends on video. Then mux it to the final with Avanti.



45tripp posted 2008 Feb 25 15:59
stsin :
Now feeding it with avisynth scripts. The type of filters to use is something I'm still figuring out. Any suggestions for favorite filters to help compressability are welcomed.


there are some filtering suggestions in the general youtube discussion thread,
linked to in my first post of this guide.
i think most of it was vdub filtering, but still you could frameserve from vdub to avanti.
Also there's an avisynth example script somewhere in this thread from me too.
basically strip noise/detail.

stsin :

Avanti GUI doesn't have a VBR option for Lame


because ffmpeg has no option for it.


gl



bayme posted 2008 Feb 25 16:28
45tripp :
:
mv0:mbd=2:cbp:aic:cmp=3:subcmp=3

Hey, just some hints from users in the mencoder list I've seen on those filters/commands:
http://thread.gmane.org/gmane.comp.video.mencoder.user/7898/focus=7902
I have removed mv0 and the cmp from my mencoder batch-files, they don't do much for quality, except when you encode cartoons.

The filters I currently have left in, and know are compatible with the YouTube player, are:
mbd=2:trell:v4mv:aic:cbp:last_pred=3:predia=4:dia=4:preme=2:vratetol=900

Maybe useful to some..



acid_burn posted 2008 Feb 29 23:29
Hey guys! I found some dude who manage to get his video with the right dimensions and duration.
http://ca.youtube.com/watch?v=6TL4SllcWD0



acid_burn posted 2008 Feb 29 23:33
oops looks like the video is before feb4th. Try this one and check the date.
http://ca.youtube.com/watch?v=JbbPtZbI9ZI
no idea how he did it, anyone care to explain?



dtfinch posted 2008 Mar 01 00:25
45tripp :
stsin :
Avanti GUI doesn't have a VBR option for Lame

because ffmpeg has no option for it.

They just never got around to documenting it well. Use -aq instead of -ab and give it the VBR level (1-9 for mp3). The range changes from one audio format to another.


acid_burn: I think they've started serving you 480x360 videos by default.



MisterH posted 2008 Mar 01 17:26
Now that stage6 has gone south, we might see more HD experimenting from youtube.
Either that or they'd take them as an example of why hosting HD content isn't such a great idea.



45tripp posted 2008 Mar 01 19:57
dtfinch :
They just never got around to documenting it well. Use -aq instead of -ab and give it the VBR level (1-9 for mp3). The range changes from one audio format to another.


yes...
ffmpeg documentation is horrendous!

@acid_burn, MisterH

is you wish to follow youtube experimentations, developments,
they're keeping track here:
http://forum.videohelp.com/topic346256.html



StreamHunter posted 2008 Mar 03 20:56
benrtc :
Nevermind. The video below WAS in 480x360 but is now 320x240. Perhaps YT is experimenting.

http://www.youtube.com/watch?v=yLhzqDjCs8w


Try to add &fmt=18 at the end of your link...this is YT's HD experiment...



hypnoticpimp posted 2008 Mar 09 13:15
Can someone please tell me how i convert this to flash hi quality. So i can upload on a server. I tried mencoder but i got alot of skipping frames, When converting this .mov file

Heres the stats

File type - Quicktime (.MOV)

Video -

mp4v - ISO MPEG- 4

status - codec status undetermined
Frames 23.976

Display - 720 x 480


Audio

Codec - mp4a Mpeg-4 AAC LC
Info - 48000Hz 128 kb/s tot Stereo (2/0)

Status Undetermined



ricardouk posted 2008 Mar 17 08:12
bayme :
...or should they avoid lag and make connection-speed the determining factor for the version/quality they offer?...


That is the only way to go... what is the point of having high quality videos if most people will experience lag when playing them, i would stop using youtube

raising the limit is not the answer in my opinion, providing the link to the High quality version and let the user decide like they are doing now is the right decision.



olibi posted 2008 Mar 18 10:16
Hello. Changing the duration doesn't affect the bitrate... I still can't upload without it being re encoded... Any help on how to fix?


bayme posted 2008 Mar 18 16:10
olibi :
Hello. Changing the duration doesn't affect the bitrate... I still can't upload without it being re encoded... Any help on how to fix?

Check frifox's channel and info: http://www.youtube.com/watch?v=9UnQWdPhU8Y



crazymonk848 posted 2008 Mar 20 21:08
never mind... :\ great guide, but i don't think i will ever understand it. Do you have any suggestions to get good quality a much simpler way? I've tried everything i could find but the video I've been working on still looks horrible...i worked on it for 2 weeks just to have youtube trash the quality...and its been about 3 days that i've tried to improve it, but nothing has helped.


bayme posted 2008 Mar 21 00:21
crazymonk848 :
never mind... :\ great guide, but i don't think i will ever understand it. Do you have any suggestions to get good quality a much simpler way? I've tried everything i could find but the video I've been working on still looks horrible...i worked on it for 2 weeks just to have youtube trash the quality...and its been about 3 days that i've tried to improve it, but nothing has helped.

What have you "tried",
what are the properties of your source video (everything you know about it),
what quality do you want it to be,
can you show us an example upload?

Either way, have you read the words in the subject of this thread?



crazymonk848 posted 2008 Mar 21 00:41
well, tbh i can't remember everything i've tried so far i've rendered it at least 15 times in different formats that were supposedly supposed to give great quality >.> but htey didnt...and i remmoved/deleted them. this is what i had the very first upload tho (a wmv file)

duration:4:25
bit rate: 5837kbps
dimenstion: 720x480
size:67.9 MB
http://www.youtube.com/watch?v=9v1ehZG6Ybw

and i know those are nothing like youtube suggests...i've never changed the settings before i've alwasy used default and the quality is reduced but never this badly.

another thing i tried was to convert it to flv or watever with total video converter and the results were the same... http://www.youtube.com/watch?v=iLNg8QDxz30

right now i'm uploading a avi file to see if that changes it at all :\

and i saw on another thread about using SUPER to convert it to flv instead of total video converter but i havnt tried taht yet :\

i dont mind if the quality isnt the greatest i just want something that is decent....i spent 2 weeks editing that and put in alot of time and effort and you can harldy tell with that crappy quality

and yes... i have read through this..its just too much for me tho, those programs are way above anything i could do right now. i'd like to learn...someday i guess...but i really just want to be able to watch my video without being so disapointed in it.



bayme posted 2008 Mar 21 02:11
But do you want to have good looking video with the high quality settings of YouTube (&fmt=6 or &fmt=18), or do you want the low quality Flash video to be good enough already?

If you want the low quality to look OK, try this: http://forum.videohelp.com/topic345987.html
or the mencoder settings mentioned further on in that thread.

Be sure to check the total bitrate of the FLV file you want to upload, use Mediainfo for that. It needs to be 349 kbit/s, maximum.

Don't upload anything other than 640x480, 480x360, 448x336 or 320x240 pixels resolution, and use square pixel Aspect Ratio 4:3.
If your source is anything other than that, letterbox it before uploading. You can use VirtualDub for that by adding a filter under the Video menu. Add the "resize" filter, set the right values, like "Maintain aspect ratio", and then resize to (for example) 448 w 336 h. with letterboxing.
You can also add a Sharpen filter below that and preview and set it to what looks good, etc.
You can add the x264 video for Windows encoder to use within vdub, and then use x264's "singlepass lossless" for Compression under the Video menu in vdub,
then save your avi and make your FLV out of that avi.

I'd use mencoder for that myself, but you can try Any Video Converter instead, if a batch file is too difficult for you.



crazymonk848 posted 2008 Mar 21 14:20
Thanks a lot, i'm trying those first steps right now - hopefully it'll turn out alot better

i still don't understand this part tho
:
If your source is anything other than that, letterbox it before uploading. You can use VirtualDub for that by adding a filter under the Video menu. Add the "resize" filter, set the right values, like "Maintain aspect ratio", and then resize to (for example) 448 w 336 h. with letterboxing.
You can also add a Sharpen filter below that and preview and set it to what looks good, etc.
You can add the x264 video for Windows encoder to use within vdub, and then use x264's "singlepass lossless" for Compression under the Video menu in vdub,
then save your avi and make your FLV out of that.
I'd use mencoder for that myself, but you can try Any Video Converter instead, if a batch file is too difficult for you.



crazymonk848 posted 2008 Mar 21 14:53
This one is much better :D http://www.youtube.com/watch?v=HvLQBpS_hqY

but what else could i do to make it just a little better at 1:14 so you can read it? if its possible. i'd really like that to be better, i'm trying some other things tho also..but i'm mostly jsut guessing



stsin posted 2008 Mar 21 23:32
Even though YT is going HQ, I still feel sick that it's worse than what we can do with the same bitrate. And even though forcing HQ will be selectable in our profile, I'm afraid it will be with the mono (FMT=6) version. Expecting viewers to type fmt=18 on every video is asking too much.

After saying that, I've been messing with what to feed YT to improve it's conversion. I've already noticed that some MP4s (h264) look much better than others using the same clip. My personal PS3 profile with all the bells and whistles look much worse than the default H264 HQ profile, after YT converted it. After 8 more uploads, I'm close to pinpointing which x264 setting is causing it. But that led me to think about the almost endless other comparisons to do with other file formats. I really don't want to use WMV, lol. I even uploaded a very high bitrate XviD from using the -sameq option of a high bitrate H264. Was almost 300 megs, and after it got uploaded, took forever to do it's conversion...just to put a 'failed' marker on it the next day :) Personally, I think 640x480 at a fair bitrate is good enough. Noticing no difference when going higher. Probably can go lower.

Has anyone tried uploading an H264 in an FLV container, and seeing if the fmt=18 conversion will leave it unaltered? Or even a high bitrate flv for fmt=6 conversion?



bayme posted 2008 Mar 22 14:52
stsin :
Has anyone tried uploading an H264 in an FLV container, and seeing if the fmt=18 conversion will leave it unaltered? Or even a high bitrate flv for fmt=6 conversion?
Yes, and I did not succeed. That is to say, it gets converted whatever I upload, is my impression. I'm afraid they knew about the bypass for the 350 flv1 and 'bank on that' by not even checking. It's weird though, because the 349 kbit/s FLV1 bypass still works. In fact, they've left all my old ones alone, and only added those format 6 and 18 versions to them, which tells me the new HQ versions come from an entirely different server-software setup/system command.

After trying many times as mp4, flv, 600 to 700 kbit/s (I even tried a hex-edited header that lied it was (C) 2007 Google Inc. v06.24.2007), the conversions still looked like crap. I tried on this video: http://www.youtube.com/watch?v=mVCBSIn_1j0&fmt=18 and this is the best I can get out of it, pretty much. This upload was encoded as large singlepass lossless x264 avi and it's a really tough one to convert (for anyone, really), because it has so much noise in it (most of it got lost in the conversions by YT though). Check the weird blocks appearing here and there. All because their encoder doesn't understand the tiny pixels of noise moving around all over the place. It wanted to make sharp edges where it didn't have to. (Can't blame Google/YT for that, but it was a good one to test with..)

By the way, it seems the biggest culprit for quality on YT is the amount of pixels of your upload. Try uploading a really sharp 320x240 and all 3 versions look wonderfully smooth. ;-)

I've also seen some different results from people using pixel-resolutions that are out of the ordinary. If your upload is not 4:3, they always seem to make the fmt=6 version (or something weird like that)..



atropine posted 2008 Mar 28 01:35
atropine :
So I have my target subjects in 320x240 resolution, and background in 160x120 resolution(upscaled). I feather between the masking so that the difference doesn't really show that much.


i don't like the theory of it,
but feel free to share a practical example of this procedure so someone might try it out.


tripp[/quote]

hey, I never saw this request before. I dont' think it really matters now that HQ has arrived, and people prefer padding the end to get extra resolutinon.

This is an example of always keeping the singer at 320x240, but always keeping the background at low resolution so the available data always is left for the singer, unless the background is the focal point for a particular scene. It works especially well with this video because of the dark areas. You may say, well why bother, dark areas don't eat up much data, but they did in this video, so I experimented doing this dual resolution thing. I believe the outcome is good, the singer is always in high quality (well 320x240 HQ) and although you can see that the background is of lower resolution it really doesn't detract because the background is not the focus for the viewer.

I experimented with this video, found it helped me keep the fast movement and frame rate and the singer in high quality, but never bothered doing this again. I think I like that blank padding at the end technique the best.

http://au.youtube.com/watch?v=E9i6HqSEcWg



ricardouk posted 2008 Mar 28 19:10
Hi everyone!

just a question about optimizing FLV videos under 350k, ive been using Mencoder and the following script to convert to FLV:
:
mencoder 123.avi -o men.flv -af resample=22050:0:0 -sws 9 -vf scale=320:-3,expand=320:240 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=285:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=48:mode=3


from the one i tried on this thread i achieved the best results with one and i like the way Mencoder automatically adds the black bars to preserve aspect ratio, does anyone know any furthertweaks i can add to the bat to increase quality?

A few months ago i tested mencoder and ffmpeg and Mencoder and ffmpeg gave me blocky results, so i only used Mencoder, recently i came across a script for ffmpeg that produces better quality encodes(still testing) but i dont know how to add the black bars like Mencoder does:
:

ffmpeg -i 123.avi -pass 1 -s 320x240 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 285k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell -y out.flv

ffmpeg -i 123.avi -pass 2 -s 320x240 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 285k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell -y out.flv

does anyone know how to do it?

also Bayme on another thread posted the following bat for mencoder but on running it it open a dos window and closes itself again.
:
"c:\megui\tools\mencoder\mencoder.exe" "s:\m_s448.avi" -o m_s.flv -mc 0 -ofps 25
-srate 44100 -oac mp3lame -lameopts vbr=2:q=8:aq=0:mode=1:lowpassfreq=16500
-ovc lavc -of lavf -lavfopts format=flv -lavcopts vcodec=flv:vbitrate=300:keyint=200:
mbd=2:trell:v4mv:aic:cbp:last_pred=3:predia=4:dia=4:preme=2:vratetol=900:vpass=1

"c:\megui\tools\mencoder\mencoder.exe" "s:\m_s448.avi" -o m_s.flv -mc 0 -ofps 25
-srate 44100 -oac mp3lame -lameopts vbr=2:q=8:aq=0:mode=1:lowpassfreq=16500
-ovc lavc -of lavf -lavfopts format=flv -lavcopts vcodec=flv:vbitrate=300:keyint=200:
mbd=2:trell:v4mv:aic:cbp:last_pred=3:predia=4:dia=4:preme=2:vratetol=900:vpass=2


what im i doing wrong?


Thanks



45tripp posted 2008 Mar 28 19:18
@atropine

again i meant a show of method, not content,
interesting singer though.


@ricardo

that's the best i could squeeze of mencoder.

i managed a bit better with ffmpeg,
to close the gap on mencoder but i don;t have it handy.

run the bayme .bat from the command console so you can see where it is failing.


tripp



ricardouk posted 2008 Mar 28 19:27
Found out what was wrong with te last script, i had to put the everything in 2 lines instead of copy/paste.

45tripp do you know if its possible to scale the video( i think that mean preserve aspect ratio) in ffmpeg like with Mencoder? Or we can only do it by using an avisynth script ?



45tripp posted 2008 Mar 28 19:48
ricardouk :
Found out what was wrong with te last script, i had to put the everything in 2 lines instead of copy/paste.


i guessed that

ricardouk :

45stripp do you know if its possible to scale the video( i think that mean preserve aspect ratio) in ffmpeg like with Mencoder? Or we can only do it by using an avisynth script ?


forgot to answer that.
no, you can't autoscale in ffmpeg.
you have to manually calculate.

you could probably create your own autoscale script, but why not just use mencoder.


tripp



ricardouk posted 2008 Mar 28 20:02
thanks, im using Mencoder for my conversions, just wanted to test ffmpeg again and compare results.

ive made a avisynth script and upon looking at the 2 results with same settings i can see there are parts where Mencoder is better than FFmpeg and vice-versa, will upload those 2 samples tomorrow.

Once again thanks



stsin posted 2008 Mar 28 22:42
ricardouk :

A few months ago i tested mencoder and ffmpeg and Mencoder and ffmpeg gave me blocky results, so i only used Mencoder, recently i came across a script for ffmpeg that produces better quality encodes(still testing) but i dont know how to add the black bars like Mencoder does:
:

ffmpeg -i 123.avi -pass 1 -s 320x240 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 285k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell -y out.flv

ffmpeg -i 123.avi -pass 2 -s 320x240 -ab 48k -ar 22050 -ac 1 -vcodec flv -b 285k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell -y out.flv

does anyone know how to do it?


Can use -padtop and -padbottom.

So for 16/9 AR: -s 320x180 -padtop 30 -padbottom 30

(well, it's not autoscaling, but can have separate scripts for common ARs.)



Koppel posted 2008 Apr 30 12:07
Need advice on how to use avisynt scripts with automen (mencoder) and avanti (FFmpeg).
My source is usually DV... sometime in near future HDV

What am I doing wrong?

- create new folder
- I put the file 001.avi in this folder
- I make a txt file which contains the script and name it 001.avs (assuming the script needs the same name as the input)
- change the input/output filenames in the script to match my filenames
- load the *.avs file into avanti or mencoder

Using ricardouk script:
:
mencoder 123.avi -o men.flv -af resample=22050:0:0 -sws 9 -vf scale=320:-3,expand=320:240 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=285:trell:v4mv:mv0:mbd=2:cbp:aic:cmp=3:subcmp=3 -oac mp3lame -lameopts abr:br=48:mode=3

Automen gives an error: Attention! Computed bitrate is less than 50...

Can anyone explain how to use these scripts properly with automen?



ricardouk posted 2008 May 01 15:25
Hi!

Its not my script, its 45trip script.

You should name the file "something.bat" not "something.avs"

you've put a mencoder script on a avisynth script, thats why it gives out the error

1- put mencoder, the video source and the script on a folder, making sure the extension is "bat"

2 - click on the bat fie twice

3- thats it, just wait



Hotcooler posted 2008 May 11 13:02
I tested some different FLV's and that's the best I can get out of ~340kbit limit on youtube. 480x360 @ 25fps, 264 video bitrate, 64 - audio.

http://www.youtube.com/watch?v=PUTVcRe6HnE

:

ffmpeg -i %input% -vn audio.wav

lame --abr 64 audio.wav --resample 44.1 -q0 audio.mp3

ffmpeg -i audio.mp3 -acodec copy audio.flv

ffmpeg -i %input% -pass 1 -an -vcodec flv -b 264k -r 25 -g 300 -cmp 2 -subcmp 2 -mbd 2 -flags aic+cbp+mv0+mv4+trell+umv+gmc+obmc video.flv

ffmpeg -i %input% -pass 2 -an -vcodec flv -b 264k -r 25 -g 300 -cmp 2 -subcmp 2 -mbd 2 -flags aic+cbp+mv0+mv4+trell+umv+gmc+obmc video.flv

ffmpeg -i video.flv -vcodec copy -i audio.flv -acodec copy output.flv


It's the best I can get out of it... P.S. For some reason cant change "-me". I believe it may help quality a bit.

P.S. Tried to match youtube conditions to get video converted to HQ... Source: 1280x720 @ 60fps...

Got this : http://www.youtube.com/watch?v=DRWgOMExd3w

Converted to FLV with that settings got this: http://www.youtube.com/watch?v=jorHYP1bxaY

Pretty good. But it's good conditions - really low motion.



ricardouk posted 2008 May 11 16:57
ive been experimented for months with this scripts and 45tripp mencoder script had teh best results for me, ffmpeg produces more blocks.

Animation videos/cartoons are easier to compress, less blocks, have you tried any other video source?



Zfree posted 2008 May 18 04:04
Has anyone else found that the 350 Kbps re-encoding bypass no longer works? I just uploaded a 480x360 video that's 344 Kbps with static frame padding. For a few minutes it shows up fine without being re-encoded. After several minutes it gets re-encoded and the resolution is resized to 320x240. Funny enough the lower quality re-encoded file is larger and has a bitrate of 364 Kbps. :lol:

I haven't tested out 320x240 <350 Kbps videos and <350 Kbps videos without padded frames to see if they still work though.

My last working <350Kbps upload was 1 week ago. Maybe the change happened on the May 16th maintenance.



k. posted 2008 May 18 05:55



MyDanny posted 2008 May 19 11:33
Hey guys.

I got huge problems getting ANY quality changes uploading videos on youtube.
They ALL look horrible and i cant understand it.

I tried the method at the first side (ff and ME).

Also tred those:
http://youtube.com/watch?v=03p3UlvkAT4 (WMV Method)
http://www.youtube.com/watch?v=I1LuS2n9_c8&NR=1 (ANother WMV)
Also tried the VMUTUBE Method (Batch File using encoders to create a FLV).

Then i tried like 10-15 different own settings.
Like mp4,avi and wmv. Mostly used Xvid or h.264.
Used 320x240, also 448x336, sometimes 640x480.
I played with alle the friggin settings !

ALL my tests on Youtube looked as crappy as before !
There were huuuuge artifacts.
The only thing that looked like i want it were the pictures i used in my fast motion video.

I can tell you, my source file has a nice quality !
Also most of the FLV files with your method here looked very nice when they came out !
But when they were uploaded they sucked.
They all had under 350K and i used also the HEX Editor.
I read every Tip. My CAM is recording with 4:3, i checked that also out !

Im really sad and im not an idiot ... It cant be that hard ! 10 year old kids upload better stuff with Windows Movie Maker. Is Vegas 8 the matter ?

Or is there a bug with the Youtube-Uploader ?
(I use this 2nd Uploader, cause the FLASH doesnt work - the one youtube offers if the other does not work).
Or isnt it possible to load videos with a good quality up ? Did they completely fix it ?
I dont wont HD mega clear videos, i want a normal quality !



connect posted 2008 May 19 13:05
Hello,

I haven't gotten time to scan all the posts in this thread but as i see youtube updates it's quality settings quite often and i can't keep in pace... My best quality i've gotten is http://www.youtube.com/watch?v=d9oVWbf4Jl8&fmt=18

What are good settings currently? I have tried so many different things, programs, encoders.. but no good... could anyone help me out? What settings to use converting uncompressed avi? Could anyone quote some tutorial if it's posted some pages before in this thread or something.

cheers!

4



Zfree posted 2008 May 19 18:06
You guys probably want to look at this thread. They talk about uploading non-FLV video files to get the higher quality option. The thread here is mostly about uploading FLVs that's under <350Kbps. It won't work with wmv, avi, etc...

MyDanny :

I can tell you, my source file has a nice quality !
Also most of the FLV files with your method here looked very nice when they came out !
But when they were uploaded they sucked.
They all had under 350K and i used also the HEX Editor.


The hex method hasn't been working for a while. Look at the 1st post. Recently the <350Kbps method no longer works for me but I'm trying to see if anyone else has the same problem. Anyone successfully or unsuccessfully uploaded a <350Kbps after May 16th and didn't get it re-encoded?



Koppel posted 2008 May 21 15:21
Zfree :
Anyone successfully or unsuccessfully uploaded a <350Kbps after May 16th and didn't get it re-encoded?

Yes I uploaded 448x336 flv files to certainly know if they get re-encoded or not. My first try was at 348Kbps or so, didn't pass. Next try was at a lower bit rate, 311Kbps and that passed fine.
Later I tried 346Kbps and that also passed without re-encoding.

So if the <350Kbps trick doesn't work, lower the bit rate just a little and it might pass.



MyDanny posted 2008 May 21 18:25
1) How to create a file (batch i guess ?) that runs on click MEncoder with
the commands given on first side of the thread ?!

I tried some batch, but it never worked.
What to write in it exactly ?

Dont want to copy in CMD !

2) I use the MEcoder Script given ... vbitrate:400 <--- is this what sets the bitrate ?
Cause i set this to 310 and when i check my FLV file, MediaInfo says: over 500 Bit Rate ???
How to get exactly what i want OR at least around 310 ?



frifox posted 2008 May 21 20:07
today i tried uploading a 140Kbps FLV file, and it got re-encoded to LQ 10 minutes after uploading. tried many variations of this trick, still same result...

uploading the "<350Kbps FLV" trick doesnt work anymore :(



Koppel posted 2008 May 22 03:25
frifox :
today i tried uploading a 140Kbps FLV file, and it got re-encoded to LQ 10 minutes after uploading. tried many variations of this trick, still same result...

uploading the "<350Kbps FLV" trick doesnt work anymore :(

It does work... just uploaded a 347Kbps 448x336 video, didn't get re-encoded. And it was instantly avaliable: http://www.youtube.com/watch?v=-Hn8dMyvyV4
God damned... It was up at first, I was watching it and it stopped playing. When I tried to watch it again it was encoded to lower resolution.

The video I put up May 19-th is still 448x336, so it worked then... I'll do lower bitrate tests to confirm that it doesn't work anymore.
EDIT: Yeah, same shit with 307Kbps. Was up and not re-encoded at first but then got re-encoded. Youtube sucks!



saberina posted 2008 May 23 22:38
I'm really sick to upload video to youtube, the video and audio is so bad. Can anyone tell me how can i get it works better?
i don't want u said before , it's really complax.
I just want the simple ways, please.



mikejf posted 2008 May 24 12:55
it appears that beginning on May 20 youtube is re-encoding all uploads. My flv uploads that used to stay unencoded, are now being reencoded to LQ. However, this person on YT has managed to upload HQ STEREO even after May 20. Take a look at their recent posts (after May 20). What is the trick?:

http://www.youtube.com/profile_videos?user=miraclemilktea

look at the three recent uploads- they are flv, but why did they remain in hq?



MyDanny posted 2008 May 24 13:03
Please, i know it is not the "perfect" thread for this question (i already asked), but i would be so happy if you guys could answer it, since it is ecnoding-related (MEcoder):

---
How to create a file (batch i guess ?) that runs on click MEncoder with
the commands given on first side of the thread ?!

I tried some batch, but it never worked.
What to write in it exactly ? I also found an example somewhere on this forum, but there were placeholders (for the commands) and sometimes i did not know what to write in.

thx !

Dont want to copy in CMD !



SpongeFreak52 posted 2008 May 24 17:08
Well, I'm gonna see if uploading through "jp.youtube.com" will make a difference. I will seriously leave YouTube if I can't upload in high quality anymore. I'm so fed up with YouTube right now.


mikejf posted 2008 May 24 17:14
SpongeFreak52 :
Well, I'm gonna see if uploading through "jp.youtube.com" will make a difference. I will seriously leave YouTube if I can't upload in high quality anymore. I'm so fed up with YouTube right now.


that's a good idea, I was thinking of that...let us know if works. If there is no way to upload in stereo, I'm done with YT. A good alternative is dailymotion, which now allows HD video.



SpongeFreak52 posted 2008 May 24 18:29
Hm. So far so good. It's still in HQ, but it may be processing in lower quality. I'll have to wait a while...

Note that this video was uploaded through jp.youtube.com, with the name "get_video.flv".

EDIT: Did NOT work.

I've contacted the person who still manages to upload in HQ. Seems like they have a special method.



bayme posted 2008 May 24 19:03
mikejf :
it appears that beginning on May 20 youtube is re-encoding all uploads. My flv uploads that used to stay unencoded, are now being reencoded to LQ. However, this person on YT has managed to upload HQ STEREO even after May 20. Take a look at their recent posts (after May 20). What is the trick?:

http://www.youtube.com/profile_videos?user=miraclemilktea

look at the three recent uploads- they are flv, but why did they remain in hq?

Well clearly he's using some type of time hex-editing.



SpongeFreak52 posted 2008 May 24 19:51
Can anybody confirm this? It doesn't "stop" the video, it just freezes...


Zfree posted 2008 May 24 21:29
bayme :

Well clearly he's using the time hex-edit again.
( See http://forum.videohelp.com/topic336882.html )

It's funny how the old tricks work again after they've changed things :-)


Did anyone test the hex-edit trick yet?

If it works that confuses me...how is YouTube checking the files? Since the non-hex-edited videos are already <350Kbps. :?



mikejf posted 2008 May 24 21:47
I'm also hoping someone can test the hex edit method again and let us know if it's working. But I downloaded one of his vids with clipnabber, reuploaded to TY, and it lost stereo. Why? I thought clipnabber downloads the exact file. I uploaded that exact file, which must have the hex edit, and TY plays it back in mono (which is lq right?)


lugiadoom posted 2008 May 25 00:45
Hi everyone I'm new to this forum. Please forgive me for my bad English as I am not native speaker.
I'm quite interested in this topic so I tried to upload a video today.

When the video was just available (less than 2 minutes after upload success), it was in original quality (strangely successful in uploading that FLV, it's 372kbps in total and I didn't use the hex trick). But few minutes later when I view that page again it got reprocessed...OMG

I would like to report my success at first, but it's useless now...anyway here it is.
http://www.youtube.com/watch?v=k4TLzXYvKT8

* EDIT: Hex trick is useless now. I uploaded the same video, this time using hex trick, but the duration did not change. So it got reprocessed again..

This is a record. http://img60.imageshack.us/img60/5946/sshot20080525140517de2.png



deadnendo posted 2008 May 25 09:54
miraclemilktea blogged that now he can't get videos without re-encode in YouTube too.
http://www.stardustdust.jp/my_flyff/2008/05/youtube_8f01.html
# This blog is in Japanese.



mikejf posted 2008 May 25 11:03
deadnendo :
miraclemilktea blogged that now he can't get videos without re-encode in YouTube too.
http://www.stardustdust.jp/my_flyff/2008/05/youtube_8f01.html
# This blog is in Japanese.


yes, it seems YT servers in japan started re-encoding on May 24, rather than May 20 for USA. His latest uploads are re-encoded, the video is not bad, but audio is mono.



lugiadoom posted 2008 May 25 12:42
I see, so we can give up YouTube now. The quality already sucks, but now even worse.


mikejf posted 2008 May 25 14:59
yep I give up, what's the next best video hosting site? dailymotion looks good, and now plays HD!


babymammoth posted 2008 May 27 21:47
:
I see, so we can give up YouTube now


:
yep I give up, what's the next best video hosting site?


Guys i don`t like this attitude.
Better think and work hard.

The good news is that bypass re-encoding is still possible.
I give U a clue ..., make such video that YouTube Meta Injector (or "radar as u call it) accepted video
and YouTube encoder will crush on encoding.

As well as FLV container try MP4, i`v managed to send straight MP4 encoded with h.264 and
get video untouched ! (but audio became mono, - strange!?)

sorry for bad English, greetings from Poland.



frifox posted 2008 May 27 22:05
yeah, i though of that and tried messing with metadata, changed pretty much all i could but still LQ.... anybody else wanna give it a try?

btw, i used FLVTool2 to do the above



babymammoth posted 2008 May 27 22:29
actually hex editing is not even necessary, the main trick work itself.
but hex editing helps to achieve better results, (i used PSPad http://www.pspad.com/en/ it`s free)

the FLV1 files stay with unchanged video and stereo sound,
it`s 2 days passed, YouTube encoder can`t work and Meta Injector is blind.

I will publish my method after next video,
my YT channel exist for political purposes.

All successful videos i`m keeping as private for some time.

over ...



frifox posted 2008 May 27 22:39
maybe you can share which part of the metadata the encoder trips on?


babymammoth posted 2008 May 29 01:49
I discovered that on wierd aspect ratio injected into meta data YT encoder didn't touch video.

I`v posted a new movie, so now i can give some links.

new one is about special agent "Bolek" aka Lech Walensa ;)

http://pl.youtube.com/watch?v=43SjYfznGVQ

this one is below 350 kbps (341) and normal duration.

earlier tests, from 27 May:

HQ (uploaded 27 V 2008 19:27:04 PDT)
http://pl.youtube.com/watch?v=ZflQduE_kho - extended duration (black frames, high bitrate)

HQ (uploaded 27 V 2008, 17:28:06)
http://pl.youtube.com/watch?v=viDuWIJVhYM

But there is problem to generate thumbnails for videos, i hope to find a fix.



frifox posted 2008 May 29 02:00
wow, thats interesting, worth taking a look at... but i took another approach :)

i uploaded 2 files at the same time. first one is normal <350Kbps FLV. the second one is the same file but i hex edited it and set DataSize (the 24bits after 00 00 00 00 00 00 00 00 09 part) for first video tag to zero. i left metadata untouched.

interestingly enough after uploading, the normal one got converted to LQ after 10 mins, but the second hex'ed one is still HQ after 3hours. i'll double check tomorrow :)

HQ Vid (uploaded May 28, 2008, 08:50 PM Pacific):
http://www.youtube.com/watch?v=5L0pbhXHvvQ



babymammoth posted 2008 May 29 02:29
Great! clever way.

There seems to be many ways for bypass. YT checking algorithm is leaky :)

My discover was that width <= 16 stops encoding (and of course <350)

16x576 - 80080120112622222223FFFF31110111

this one - http://pl.youtube.com/watch?v=43SjYfznGVQ
dimensions actually are 2x64
probably thats why thumbnails are messed up.



frifox posted 2008 May 29 12:40
aww, it still went LQ after about 7 to 8 hours..... but those 8 hours definitely tell me that youtube was a bit glitched by the hack lol

maybe a more carefully modified FLV will last longer than that :)



Golgota posted 2008 May 29 13:42
frifox, when i upload my jackie chan review using the same VMuTube, it's still in HQ but only if u add &fmt=18.

it's me: http://www.youtube.com/user/TESSIOviral

can u add me as ur friend, i want to watch ur private vid.



frifox posted 2008 May 29 13:46
thats because by adding "&fmt=18" you are watching youtube's MP4 version of the video... which is 480x360 with stereo audio.


Golgota posted 2008 May 29 13:57
frifox :
thats because by adding "&fmt=18" you are watching youtube's MP4 version of the video... which is 480x360 with stereo audio.


hmm... seem that i need to use new method (hacking using hex editor) this one not my talent, but i wish i could try.. so how does the new method? should i hack the file like
u did? thnx again fri..



astin posted 2008 May 29 14:21
babymammoth :
Great! clever way.

There seems to be many ways for bypass. YT checking algorithm is leaky :)

My discover was that width <= 16 stops encoding (and of course <350)

16x576 - 80080120112622222223FFFF31110111

this one - http://pl.youtube.com/watch?v=43SjYfznGVQ
dimensions actually are 2x64
probably thats why thumbnails are messed up.


i used PSPad and changed width, but still re-encoded after 10 minutes :(



babymammoth posted 2008 May 29 22:42
:
maybe a more carefully modified FLV will last longer than that


Yes don`t give up. keep testing and looking for new way.

i`m still working on my "w16" (width=16) method.
I created a new account for HQ experiments - http://youtube.com/ZorgPoland
don`t want to mess this with politics.

Recent HQ stereo uploads: (real dimensions 480x360, injected 16x576)

http://pl.youtube.com/watch?v=bMDIsvMs6z0 - Global Warming Swindle
http://pl.youtube.com/watch?v=1M5E3Y2LYPs - Star Wars trailer
http://pl.youtube.com/watch?v=bCRFiLW40Qo - Pictures and stereo sound

Generating thumbnails is still big issue, guys any idea how to resolve this problem?



mikejf posted 2008 May 29 23:28
babymammoth :
:
maybe a more carefully modified FLV will last longer than that


Yes don`t give up. keep testing and looking for new way.

i`m still working on my "w16" (width=16) method.
I created a new account for HQ experiments - http://youtube.com/ZorgPoland
don`t want to mess this with politics.

Recent HQ stereo uploads: (real dimensions 480x360, injected 16x576)

http://pl.youtube.com/watch?v=bMDIsvMs6z0 - Global Warming Swindle
http://pl.youtube.com/watch?v=1M5E3Y2LYPs - Star Wars trailer
http://pl.youtube.com/watch?v=bCRFiLW40Qo - Pictures and stereo sound

Generating thumbnails is still big issue, guys any idea how to resolve this problem?


all three playing good for me, with HQ video quality and stereo audio- nicely done! I see you got up to 3 minutes with the Global Warming video, have you tested 4-5 minutes yet? FYI, when play ends, and I click PLAY to play again, the video distorts to the actual 16x576, with nothing but a thin strip in the center! However, if I toggle the full screen button, it's back to normal. When it first plays it's ok, so that's good.

Have your tests found out that YT encoder is completely skipped? or do the they eventually get re-encoded?



frifox posted 2008 May 30 10:09
ok, i'm here to report my findings... during the experiments i think i found the way youtube *checks* for duration.


1. i've uploaded 11sec vid and had youtube recognize it as 1hr vid (extend duration), which of course got rejected cuz it was too long.
2. i also faked 11sec into 13sec movie (extended by 2seconds), plays just fine.
3. lastly, i uploaded 11sec vid and had youtube recognize it as 9sec video (shortened duration by 2sec). also plays just fine


finally, both 2nd and 3rd vid are still up in HQ after 9hours, with correct and not-distorted thumbnail... apparently youtube's metadata injector passed them through, but their encoder choked on them :lol:

PS: i didnt touch the metadata, its all real and valid


shortened duration (uploaded May 29, 2008, 11:12 PM Pacific):
http://www.youtube.com/watch?v=y_JQ5b9Uygo

extended duration (uploaded May 29, 2008, 11:39 PM Pacific):
http://www.youtube.com/watch?v=Z0pG6KpSnAY



mikejf posted 2008 May 30 12:02
thanks frifox, I'm testing your new method now, will report back...


mikejf posted 2008 May 30 12:57
firfox, what are the hex characters are just before the duration? I'm testing a 4 min video (flv made with VMTube) and can't find similar hex codes from your test vids


frifox posted 2008 May 30 13:10
it depends... its a bit different for every vid

but to point you in the right direction, i highly suggest you read the "Video File Format Specification Version 9" document from Adobe, especially the "The FLV File Format" section :). well, i've studied it and thats how i came up with the method lol :lol:

LINK: http://www.adobe.com/devnet/flv/pdf/video_file_format_spec_v9.pdf



Golgota posted 2008 May 30 21:56
frifox :
it depends... its a bit different for every vid

but to point you in the right direction, i highly suggest you read the "Video File Format Specification Version 9" document from Adobe, especially the "The FLV File Format" section :). well, i've studied it and thats how i came up with the method lol :lol:

LINK: http://www.adobe.com/devnet/flv/pdf/video_file_format_spec_v9.pdf



how does it work Fri, can u help me, promise not to tell anyone.. thnx in advance.



frifox posted 2008 May 30 23:57
i'll give it a shot....

for the first video (11sec faked into 9sec), for the last 2 seconds of the video i set a timestamp of 00 00 00 (which is zero) to all video/audio packets...

for the second video (11sec faked into 13sec), i picked a random packet in the middle of the video and set its timestamp to 13sec.


from the experiments i concluded that youtube scans the whole FLV for all video/audio packet timestamps and uses the largest value as the "duration"... and as far as HQ, i can only assume that youtube's encoder cant work with FLV's containing packets with abnormal/invalid timestamps, and therefore simply leaves our FLV file untouched :D


PS: anybody knows of a tool/script that can modify ALL timestamps, not only the keyframe ones, easily? cuz doing it manually with HEX editor is a pain in the arsch



SpongeFreak52 posted 2008 May 31 11:33
Interesting. Sounds like it's worth a try. And you were sounding so secretive on YouTube. :P


frifox posted 2008 May 31 12:20
SpongeFreak52 :
Interesting. Sounds like it's worth a try. And you were sounding so secretive on YouTube. :P


thats because there are 3 different ways to trick youtube into letting FLV's stay HQ...

1. the width being <= 16, which babymammoth was talking about
2. messing with timestamps, as i explained above
3. another way, which is as easy as just clicking one button :)

i was "secretive" about the third way, cuz i was not the one to discover it and the person who found it strongly asked me to keep it a secret...

in the post above i explained the "2nd" method, which is messing with timestamps... and since i found it, i feel free to share it with anyone :D



rajman posted 2008 May 31 12:35
Hey Frifox since you cant share the 'easy' method as someone else found it out...can you help on your method of the changing the timestamps? Ive made a FLV <350kbps but I tried some hex editing but it gets re-encoded on youtube or after uploaded it says 'invalid file type' :s any help would be great


mikejf posted 2008 May 31 12:37
frifox, how to find last timestamp in a flv file?


frifox posted 2008 May 31 12:48
video packets start with 09 AA AA AA BB BB BB, where "AA AA AA" is the size of the packet (DataSize), and where "BB BB BB" is the TimeStamp... for audio, 09 simply changes to 08. so the format for audio packet is "08 AA AA AA BB BB BB"....

the TimeStamp gradually increases with the next packet...and through out my experiments the DataSize field was pretty much same for all video packets, and all audio packets has same DataSize as well :) so i was able to spot the beginning of the packed by simply searching for "09 AA AA" and "08 AA AA" respectively :)

i didnt explore this method deep enough meaning that i cant really tell what exactly causes youtube's encoder to crash on the FLV, so at times it works and sometimes it doesnt... but i do can tell you that if you mess with enough timestamps then youtube will leave your FLV in HQ (and report fake duration lol) :D



brassplyer posted 2008 May 31 12:58
babymammoth :


Generating thumbnails is still big issue, guys any idea how to resolve this problem?



If the video is short enough, add enough black on the end so that the 75% mark is reasonably well separated from the end of the material, figure out where the 75% point is and insert a few seconds of the image you want so it straddles that point to give yourself some margin of error. Inserting a single frame never works for me since when I kludge together .flv segments, the time always seems to get stretched a bit and the target point is moved.



rajman posted 2008 May 31 13:08
frifox :
video packets start with 09 AA AA AA BB BB BB, where "AA AA AA" is the size of the packet (DataSize), and where "BB BB BB" is the TimeStamp... for audio, 09 simply changes to 08. so the format for audio packet is "08 AA AA AA BB BB BB"....

the TimeStamp gradually increases with the next packet...and through out my experiments the DataSize field was pretty much same for all video packets, and all audio packets has same DataSize as well :) so i was able to spot the beginning of the packed by simply searching for "09 AA AA" and "08 AA AA" respectively :)

i didnt explore this method deep enough meaning that i cant really tell what exactly causes youtube's encoder to crash on the FLV, so at times it works and sometimes it doesnt... but i do can tell you that if you mess with enough timestamps then youtube will leave your FLV in HQ (and report fake duration lol) :D


Thanks for that frifox...I gotta brush up on my hex editing and see how far I get XD



brassplyer posted 2008 May 31 13:12
frifox :
SpongeFreak52 :
Interesting. Sounds like it's worth a try. And you were sounding so secretive on YouTube. :P


thats because there are 3 different ways to trick youtube into letting FLV's stay HQ...

1. the width being <= 16, which babymammoth was talking about
2. messing with timestamps, as i explained above
3. another way, which is as easy as just clicking one button :)



Even with your super secret 3rd method, will it allow bitrates higher than 350kb?



frifox posted 2008 May 31 13:15
yes, if you are willing to pad it with black frames :) but the "average" still has to be <350Kbps

480x360, 20fps, 1Mbps:
http://youtube.com/watch?v=vvxugWXfRGc



SpongeFreak52 posted 2008 May 31 13:24
Is it a program or something? Or can we at least contact the guy who discovered the third way? =P

Sorry if we're sounding annoying. Heh, we just want HD videos once more!



frifox posted 2008 May 31 13:29
feel free to, its strangely2familiar


rajman posted 2008 May 31 13:29
frifox :
feel free to, its strangely2familiar


lol I already aksed him earlier but had no reply even though he did login....so I guess he wants to keep it secret =(



SpongeFreak52 posted 2008 May 31 13:35
Heh, not much of a surprise. ^_^


brassplyer posted 2008 May 31 13:50
frifox :
yes, if you are willing to pad it with black frames :) but the "average" still has to be <350Kbps

480x360, 20fps, 1Mbps:
http://youtube.com/watch?v=vvxugWXfRGc



So it's the same "bitrate stuffing" method that YouTube recently thwarted, but messing with the file info to thwart their thwart?

Thwart Wars....long ago on a video site far away...

I fooled around with that method myself but the problem I find is that - as with your example above - playback sucks. The higher the true bitrate the worse it gets. I assume it's because YT's servers were never meant to deliver such a dense bitrate and you basically have to allow the whole file to load to get uninterrupted playback.

I assume that one Bulldozer trance vid of yours I saw plays back well because it's a still image and was encoded at a low bitrate. A moving image at that same rate wouldn't look all that great.

At least with the &fmt=18 method the playback is generally smoother, I assume since the mpeg-4 is throttled to a bitrate their servers can handle.

What I don't understand is since they obviously retain the stereo audio, why the "watch in high quality" doesn't play back stereo if available?



SpongeFreak52 posted 2008 May 31 13:53
Probably because having stereo audio requires a higher chunk of the total bitrate, and they want to have the "High Quality" setting devote more of what bitrate it can feed towards the video, not audio.


frifox posted 2008 May 31 13:57
i've download some vids from youtube and found that youtube caps the download speed to 160KBps but at times it goes as low as 100KBps

160KBps = 1280Kbps
100KBps = 800Kbps

so if you keep your vids below 800Kbps you can safely assume that they will not glitch... the video i posted above is 1000Kbps. i played it at night and it didnt glitch at all because youtube's servers were able to give the full 160Kbps delivery, but i tried this morning and it was glitching like crazy. probably cuz of rush hour or something like that



brassplyer posted 2008 May 31 14:07
SpongeFreak52 :
Probably because having stereo audio requires a higher chunk of the total bitrate, and they want to have the "High Quality" setting devote more of what bitrate it can feed towards the video, not audio.



I don't perceive that stereo playback takes anything away from the video.

Watch this test in high quality vs &fmt=18 with stereo. Do you see any difference in the video? Even at fullscreen they look the same to me.



frifox posted 2008 May 31 19:55
hey guys, i just tested youtube's download speed couple of times and here is what i found...

  1. download starts at around 160KBps, stays like that for 10 seconds
  2. for the next 10 seconds it drops gradually to 100Kbps
  3. for the next 10 seconds it stays at about 100Kbps
  4. for the next 10 seconds it again slowly drops to 80KBps
  5. after that it the download just stays at constant 80KBps

is anybody seeing this too?



brassplyer posted 2008 May 31 20:50
frifox :
hey guys, i just tested youtube's download speed couple of times and here is what i found...

  1. download starts at around 160KBps, stays like that for 10 seconds
  2. for the next 10 seconds it drops gradually to 100Kbps
  3. for the next 10 seconds it stays at about 100Kbps
  4. for the next 10 seconds it again slowly drops to 80KBps
  5. after that it the download just stays at constant 80KBps

is anybody seeing this too?



You mean d/l'ing files with something like Vdownloader? My bargain basement 768KBps DSL levels off at about 93kbps.



frifox posted 2008 May 31 22:08
ok, frifox reporting here again :happy:

padding the video with black frames to fit high bitrates into sub 350Kbps average is not necessary... all you have to do is change second-to-the-last video (or audio, doesnt matter) packet's timestamps to your desired value... as in example below, i changed it to 10:59, which is "0A 10 00" in HEX.


Example: 768x432 @ 1500Kbps without padding
http://www.youtube.com/watch?v=ksM8qucczvU



Ramza126 posted 2008 May 31 22:20
Hello Frifox. I used your programmes VMuTube and IMuTube up to the point of 20th may. I see there are many new ways to get HQ, and I see you are currently messing with timestamps. What I would like to know is what software did you use to convert video's to flv and what software you used to encode etc. Also what HexEditor did you use? I would like to know the key softwares and methods so I can finally upload some HQ vids on my page again. Also, will you be writing a guide in the future?

Ramza126



mikejf posted 2008 May 31 22:36
frifox :
ok, frifox reporting here again :happy:

padding the video with black frames to fit high bitrates into sub 350Kbps average is not necessary... all you have to do is change one of packet's timestamps to your desired value... as in example below, i changed it to 10:59, which is "0A 10 00" in HEX.


Example: 768x432 @ 1500Kbps without padding
http://www.youtube.com/watch?v=ksM8qucczvU


holy cow frifox! that is almost High Definition! Thanks for the info. I still have a hard time finding last timestamp. Do I need to search for the last 08 AA AA AA BB BB BB or for last 09 AA AA AA BB BB BB in the flv file? Then change the BB BB BB to 0A 10 00?



frifox posted 2008 May 31 22:40
ahh, the effects of last-minute post editing... lol edited part:
all you have to do is change second-to-the-last video (or audio, doesnt matter) packet's timestamps to your desired value

but other than that, you are on the right track



brassplyer posted 2008 May 31 22:41
frifox :
ok, frifox reporting here again :happy:

padding the video with black frames to fit high bitrates into sub 350Kbps average is not necessary... all you have to do is change one of packet's timestamps to your desired value... as in example below, i changed it to 10:59, which is "0A 10 00" in HEX.



Interesting, but I was hoping you'd upload something impressive.


I'm kidding of course. Pretty cool. Even looks decent in full screen mode.

I downloaded a Hex editor, how do you know where to go to edit something like this?



mikejf posted 2008 May 31 23:50
frifox :
ok, frifox reporting here again :happy:

padding the video with black frames to fit high bitrates into sub 350Kbps average is not necessary... all you have to do is change second-to-the-last video (or audio, doesnt matter) packet's timestamps to your desired value... as in example below, i changed it to 10:59, which is "0A 10 00" in HEX.


Example: 768x432 @ 1500Kbps without padding
http://www.youtube.com/watch?v=ksM8qucczvU


bingo! got it working! cant thank you enough! two questions- when I download your new vid with clipnabber, MediaInfo reports

Bit Rate:318
Width:768
Height:432
Aspect ratio:16/9

yet you say it's "@ 1500Kbps". Which is it- 318 bit rate or 1500? I uploaded a vid that used to be padded with black to 10:59 but doesn't look quite as good as it did with the pads, as if playing at a higher bit rate. why?



frifox posted 2008 May 31 23:56
:

Bit Rate:318
Width:768
Height:432
Aspect ratio:16/9

thats the "fake" bitrate which resulted from the fake duration, not the actual one



diddyman4real posted 2008 Jun 01 02:07
frifox :
:

Bit Rate:318
Width:768
Height:432
Aspect ratio:16/9

thats the "fake" bitrate which resulted from the fake duration, not the actual one


dude, plz tell me i can finally start trying to upload pass the 11 min mark with this new method some how. i've been tryingon my own but i can't get anywhere. can i use your method to try and crack yt's patch?



astin posted 2008 Jun 01 02:14
so difficult..... :(

seems that the width<16 method is easier, but I still fail :bawling:



Golgota posted 2008 Jun 01 02:54
i'm not so good in programming, i wish if VMuTube can be applicated again.. how bout the the 3rd method Fri..? :-(


inet posted 2008 Jun 01 07:13
frifox :



PS: anybody knows of a tool/script that can modify ALL timestamps, not only the keyframe ones, easily? cuz doing it manually with HEX editor is a pain in the arsch


are you looking for something like this that modifies the timestamp:

http://rubyforge.org/projects/flvtool2/



SpongeFreak52 posted 2008 Jun 01 09:21
It's amazing how many workarounds have been discovered already.

Oh, and Frifox, please check your e-mail. ;)



mikejf posted 2008 Jun 01 11:15
inet :
frifox :



PS: anybody knows of a tool/script that can modify ALL timestamps, not only the keyframe ones, easily? cuz doing it manually with HEX editor is a pain in the arsch


are you looking for something like this that modifies the timestamp:

http://rubyforge.org/projects/flvtool2/


i think that tool only modifies the metedata timestamp, not the timestamp in frifox's method (there are many timestamps within the flv file)



inet posted 2008 Jun 01 13:26
I am using On2 Technologies Flix Pro to convert the files to the correct size and format, etc. Any simple tools to do the hex editing, one thats one click or something I am a complete novice on this


frifox posted 2008 Jun 01 13:37
Golgota :
i'm not so good in programming, i wish if VMuTube can be applicated again.. how bout the the 3rd method Fri..? :-(

first, big thanks to strangely2familiar for sharing the "3rd" method with me. now i updated my scripts to v2, which *include* that new hack to achieve HQ by using that "easy" method... all my last uploads, both static picture and motion video, were achieved by using those scripts

i'm giving away the scripts (both IMuTube and VMuTube) to people who need it. if you upload good/unique content, then i'll give you the scripts cuz you'll put the hack to good use. otherwise, its better if less people know about it... less people who would abuse it.



SpongeFreak52 posted 2008 Jun 01 13:44
I had the links, but it says you removed the files before I could. o_0

I'm really anxious to try it out. =P



mikejf posted 2008 Jun 01 14:58
frifox, I think it's good you dont' share the easy method publicly, and then only to those who promise not to share it. Otherwise, it's going to get abused, especially if its easy. Make sure they promise not to share it.

The new hex method so far is working good for me (two worked), so I'm going to use it for now. FYI, I only upload old vids/pbs/univision stuff that isn't copyright sensitive. Because the hex editing is more difficult I don't think it will become widespread in use, but still I don't want it to become widespread. A lot of people learned now to upload simple stereo flv's <10mb and that obviously upset YT.

Seems a lot of people think that adding &fmt=18 will make it play in stereo. I find it does not. I think YT wants no stereo content? So I think we need to make sure no method becomes very widespread.



frifox posted 2008 Jun 01 15:17
about which "hex" method you are talking about? messing with resolution metadata or messing with timestamps or completely different one?

either way, i see they all have good potential in them... so i'll be researching more deeply to find why and how they work



gbi posted 2008 Jun 01 16:40
mikejf :
I think YT wants no stereo content?

It's ridiculous - why then they have the "musician" profile? Well, i'm musician and sound engineer and want to have all my videos in stereo on YT. It's 21th century.
I really don't understand this - it's all about 320*240 with stereo mp3 around 112-128kbps@44kHz - is not HD, 5.1 surround or something. It could be so simple if they just post some rules, for ex - "if you want stereo the file must be xxxxx MB and with bitrate xxxx kbps, if you want more detailed picture-then mono, with overal bitrate xxxx etc, above 25fps is not accepted" etc. Why we must lose so much time to read (and write) such big threads for tricking, hacking and passing over some rules when they just can write more precisely the wanted parameters for the input files.
I'm really bored and i think i'll migrate to Dailymotion-they have stereo and the player is far better :cry: :? :(



SpongeFreak52 posted 2008 Jun 01 17:42
But that's why we do this kinda thing. To beat the system. ;)


kodaismahhussy posted 2008 Jun 01 17:46
frifox :
video packets start with 09 AA AA AA BB BB BB, where "AA AA AA" is the size of the packet (DataSize), and where "BB BB BB" is the TimeStamp... for audio, 09 simply changes to 08. so the format for audio packet is "08 AA AA AA BB BB BB"....

the TimeStamp gradually increases with the next packet...and through out my experiments the DataSize field was pretty much same for all video packets, and all audio packets has same DataSize as well :) so i was able to spot the beginning of the packed by simply searching for "09 AA AA" and "08 AA AA" respectively :)
I'd just like to know how do you figure out the first two AA AAs? Any special search program that you're using? Cause finding that 09 XX XX XX is hard, lol. Too many combinations.


mikejf posted 2008 Jun 01 20:22
frifox :
about which "hex" method you are talking about? messing with resolution metadata or messing with timestamps or completely different one?

either way, i see they all have good potential in them... so i'll be researching more deeply to find why and how they work


Changing the last audio timestamp to 0A 10 00 with a hex editor- got it working on two vids so far. My concern is that if any method becomes widespread in use may cause YT to tighten it's encoding even more, or even start rejecting uploads. Do you know why YT permits vids that fail to encode, to continue and upload and post? My concern is that they might start rejecting all vids that fail to encode.



SpongeFreak52 posted 2008 Jun 02 10:10
Hopefully it won't have to come to that. o_0

Anyways, I got the "first" method working OK, but I'm not sure how you managed to re-create the hexed effect and actually get the video to stop when you need it to.



mikejf posted 2008 Jun 02 10:43
frifox, one of my hex edited timestamp vids finally got re-encoded after about 10 hours, it had an original bit rate of 775kbps and looked great. However, another timestamp edited vid has a bit rate of only 344kbps and has not been re-encoded. Any tips?


astin posted 2008 Jun 02 14:21
I tried my best, but still not working
http://tw.youtube.com/watch?v=v_INZnm5sfA

and for my trying, the &fmt=18 can have stereo sound
http://tw.youtube.com/watch?v=Bv5at3gWpPo&fmt=18



lugiadoom posted 2008 Jun 02 15:23
Wow, so many replies when I'm not here for a few days.

I don't want to give up actually but I am desperate, you know. (in page 17)
Many websites are having good quality but YouTube forces videos to stay at LQ and <11 min. WTF it's 2008.

I gave a try to that edit timestamp things but get dizzy with it. There are so many timestamps... :cry:
Tried that width<16 hack but still fail.

I would be pleased to know if there are other ways to achieve same result.



inet posted 2008 Jun 02 16:16
frifox :
Golgota :
i'm not so good in programming, i wish if VMuTube can be applicated again.. how bout the the 3rd method Fri..? :-(

first, big thanks to strangely2familiar for sharing the "3rd" method with me. now i updated my scripts to v2, which *include* that new hack to achieve HQ by using that "easy" method... all my last uploads, both static picture and motion video, were achieved by using those scripts

i'm giving away the scripts (both IMuTube and VMuTube) to people who need it. if you upload good/unique content, then i'll give you the scripts cuz you'll put the hack to good use. otherwise, its better if less people know about it... less people who would abuse it.


My intentions are pure and sincere, I intend to do some directorial stuff for some 'thought provoking' videos I want to create and at the same type assist my cousin who is looking to break into the music industry. There is no reason for me to abuse a method that has been kept under radar, there is no benefit in it for me. I have been following frifox and a handful of selective users purely on the basis of the quality of work they produce, I have been following this thread and other forums to find this solution since YT capped of the HQ on May 20th. All I can say is that I have spent the last 10 days trying to find solution and I am damned to hell going to let it slide out as soon as I learn it. Hope this helps in my plea to learn.

thanks guys. If you going to let me in the 'dark' circle :P then drop me a line.

contact {at} socioclick {dot} com



reez posted 2008 Jun 02 16:46
sorry for being a noob, but i've encoded a vid with Winff from mp4 to flv and using the search tool from Virtualdub's Hex editor..i still can't find 09 AA AA AA. So i can't even start trying this stuff out. Can someone please show me? Again, sorry for my horrible horrible noobish ways...


frifox posted 2008 Jun 02 17:34
i've hex-ed enough vids to notice a pattern... simply go to the end of the file, and search for "08 00" upwards... 2nd search result is the packet where i change the timestamp :)

in my case, the packet i found starts with "08 00 00 69 05 00 00", which i simply
change to "08 00 00 69 0A 10 00"... that is enough to fake duration to 10:59, takes about 10 to finish =)



mikejf posted 2008 Jun 02 17:40
reez :
sorry for being a noob, but i've encoded a vid with Winff from mp4 to flv and using the search tool from Virtualdub's Hex editor..i still can't find 09 AA AA AA. So i can't even start trying this stuff out. Can someone please show me? Again, sorry for my horrible horrible noobish ways...


here's what I got to work- this creates a stereo flv but it's NOT HQ video:

1. create a flv with a bit rate below 350kbps
2. open it in a hex editor
3. go to the very bottom
4. from the bottom start looking up for the first hex 08
5. skip that 08 and continue looking up for the next 08
6. you should now have found the second-to-last 08 in the file
7. count 4 hex codes to the right of that 08 and change the 4th, 5th, and 6th to OA 10 00

example:

say you found this 08 pattern:

08 00 00 69 2A 0D 2B

step 7 says count 4 hex codes to the right- that would be 2A, now change it and the next 2 codes to 0A 10 00, the final result:

08 00 00 69 0A 10 00

save and upload. the time will indicate 10:59. the vid I uploaded with this way still playing in stereo after 24 hours, although it's not HQ video quality



frifox posted 2008 Jun 02 17:42
lol, thats like the same thing what i tried to explain in a post above yours :D

but thanks for putting it in a easy-to-follow format =D



reez posted 2008 Jun 02 19:00
mikejf :
here's what I got to work- this creates a stereo flv but it's NOT HQ video:

got it, can't thank you enough. So what about the HQ video? Is it the same method.?



laur posted 2008 Jun 02 22:31
mikejf :
reez :
sorry for being a noob, but i've encoded a vid with Winff from mp4 to flv and using the search tool from Virtualdub's Hex editor..i still can't find 09 AA AA AA. So i can't even start trying this stuff out. Can someone please show me? Again, sorry for my horrible horrible noobish ways...


here's what I got to work- this creates a stereo flv but it's NOT HQ video:

1. create a flv with a bit rate below 350kbps
2. open it in a hex editor
3. go to the very bottom
4. from the bottom start looking up for the first hex 08
5. skip that 08 and continue looking up for the next 08
6. you should now have found the second-to-last 08 in the file
7. count 4 hex codes to the right of that 08 and change the 4th, 5th, and 6th to OA 10 00

example:

say you found this 08 pattern:

08 00 00 69 2A 0D 2B

step 7 says count 4 hex codes to the right- that would be 2A, now change it and the next 2 codes to 0A 10 00, the final result:

08 00 00 69 0A 10 00

save and upload. the time will indicate 10:59. the vid I uploaded with this way still playing in stereo after 24 hours, although it's not HQ video quality


which hex editor i have to use?



SpongeFreak52 posted 2008 Jun 02 23:46
Any with a search function should do.


mikejf posted 2008 Jun 02 23:48
bad news to report- all my timestamp hex edit vids have all been re-encoded to mono, including the one that had stayed in stereo for 24 hours! They are definitely being re-encoded because the time changes as well, from 10:59 to the actual length. Can't say this will happen to others, if anyone tries it, let us know. But allow 24 hours to pass and keep checking it...


frifox posted 2008 Jun 03 01:27
mkejf, how many timestamps did you modify, one?


babymammoth posted 2008 Jun 03 01:44
Now it`s too easy, frifox and mikejf explained it precisely...

http://pl.youtube.com/watch?v=QvfYH4U9Y9I (I`m curious how long this stay HQ?)

can`t wait to YT blocks this bypass ... joke ;)



mikejf posted 2008 Jun 03 01:49
frifox :
mkejf, how many timestamps did you modify, one?


only one- the second to last from the end. was that the problem? how many need to be modified (or maybe you are still testing)



ibananapandas posted 2008 Jun 03 02:26
mikejf :
reez :
sorry for being a noob, but i've encoded a vid with Winff from mp4 to flv and using the search tool from Virtualdub's Hex editor..i still can't find 09 AA AA AA. So i can't even start trying this stuff out. Can someone please show me? Again, sorry for my horrible horrible noobish ways...


here's what I got to work- this creates a stereo flv but it's NOT HQ video:

1. create a flv with a bit rate below 350kbps
2. open it in a hex editor
3. go to the very bottom
4. from the bottom start looking up for the first hex 08
5. skip that 08 and continue looking up for the next 08
6. you should now have found the second-to-last 08 in the file
7. count 4 hex codes to the right of that 08 and change the 4th, 5th, and 6th to OA 10 00

example:

say you found this 08 pattern:

08 00 00 69 2A 0D 2B

step 7 says count 4 hex codes to the right- that would be 2A, now change it and the next 2 codes to 0A 10 00, the final result:

08 00 00 69 0A 10 00

save and upload. the time will indicate 10:59. the vid I uploaded with this way still playing in stereo after 24 hours, although it's not HQ video quality



I tried that exactly except I modified more timestamps but it didn't last more than 5 minutes.
http://www.youtube.com/watch?v=oUTLjiGk-BM and for some reason the time is 2 hours.



kodaismahhussy posted 2008 Jun 03 02:37
Just a lot of inconsistencies between what's been said on the previous page and this page. frifox has said we should modify the video packet's 2nd-to-last timestamp, then mikejf says we should modify the audio's, so everyone jumps on that line of thought. Which one do you modify, frifox? The video or audio packet?


astin posted 2008 Jun 03 02:50
I thought he said before that it doesn't matter video or audio packet


ibananapandas posted 2008 Jun 03 02:56
I reuploaded this video http://youtube.com/watch?v=ksM8qucczvU from frifox
and it got converted in 2 minutes.

http://www.youtube.com/watch?v=yGCezeha1rM

It is exactly the same video. Why did it get converted?



kodaismahhussy posted 2008 Jun 03 03:04
All of mine attempts at hexing the audio packet get reencoded as well.
ibananapandas :
It is exactly the same video. Why did it get converted?
It's not the same file because YouTube Injector tags it with its own metadata.


Amu posted 2008 Jun 03 05:01
Apparently these methods have been nerfed again June 2nd 08 aprox Around evening GMT+1.

Hexing the width returns an encoding error after processing and Hexing the TimeStamp videos will not work anymore.

Apparently those videos got re-encoded. Mine's are still up, but 24 hours have not passed yet, however I am expecting that only videos with extended duration are getting re-encoded.

Also note that the only thing YT does to untouched FLV's is replacing the headers.



bayme posted 2008 Jun 03 06:06
mikejf :
My concern is that if any method becomes widespread in use may cause YT to tighten it's encoding even more, or even start rejecting uploads.
YT/Google don't have to tighten anything, all they have to do is convert all uploads, and skip checks. Which is exactly what they do these days.

You can be lucky for a little while (for as long as the new encoder scripts land on your new video, after which it's being converted). And the reason it takes a while is simply because the servers have a huge backlog or lag from having to encode so many videos at one time.

If you want online video to be in higher quality and with stereo audio, either host them yourself:
http://jeroenwijering.com/?item=Embedding_Flash
or join dailymotion or vimeo;
http://www.dailymotion.com/cluster/tech/hd/1
http://vimeo.com/hd



bayme posted 2008 Jun 03 06:13
frifox :
so if you keep your vids below 800Kbps you can safely assume that they will not glitch...

That's just a coincidence. They use simple load-balancing. If it's real busy, your speed will be capped in a way that Google can still serve as many users at one time as possible. There really isn't a bottom speed set for that, as far as I can tell.



mikejf posted 2008 Jun 03 11:49
bayme :
YT/Google don't have to tighten anything, all they have to do is convert all uploads, and skip checks. Which is exactly what they do these days.

You can be lucky for a little while (for as long as the new encoder scripts land on your new video, after which it's being converted). And the reason it takes a while is simply because the servers have a huge backlog or lag from having to encode so many videos at one time.



but what I think is happening with frifox's new method is not trying to skip encoding, it's trying to error out the encoding (so that flv remains intact, although metadata has changed). So YT is encoding all vids, but some error out (which is what we want) during encoding.

here's what I think happens:

1. you upload a HQ flv
2. it's placed in your video account folder but YT displays "Please wait...processing"
3. it sits unchanged in a waiting que
4. finally it gets 'processed'- and the encoder begins (this seems to happen withing 10 minutes)
5. metadata info is updated on the original (with flvtool2)
6. now the encoder begins to create a new flv, but with YT specs (480x360, mono, etc)
7. IF no error occurs the encoder reads all of the original data (video + audio), gets to the end, and has created a new flv which replaces the original

but IF an error occurs during encoding (what we want) the encoding is aborted (or certain steps within encoding), and the original video and audio stays intact. The encoding completes, but it had errors during the processing, and since some normal vids sometimes have errors, the encoding completes anyway and updates user page from "Please wait...processing" to "Live!". The encoder 'thinks' it's successfully encoded the video and the flv has been changed, but only metadata, so that when it plays it plays the original video + audio.



frifox posted 2008 Jun 03 12:07
i believe some of you misunderstood what i tried to tell... modifying timestamps does NOT guarantee your uploads to stay HQ, this method is only used to fake the duration.

the purpose of faking the duration is exactly the same as padding the video with black frames... to make your high-bitrate videos average out to less than 350Kbps



talking about youtube... i simply cant understand why on earth are they are still allow FLV videos to pass through untouched? simply re-encoding everything that we upload is a much simpler and effective solution.... :S

and as bayme said, Vimeo.com and DailyMotion.com are MUCH better alternatives to youtube...



Amu posted 2008 Jun 03 13:37
As long the encoder doesn't return any errors, but still encoded some part of the video wrongly, nothing will be shown and the video will be passed through. By modifying any FLV data you are misleading the encoder and making it pass through success status with a wrongly encoded or untouched file. This program isn't bugfree. Therefore YT needs to implement their own filechecks. That's what they have to be heading for. Catching errors.


ricardouk posted 2008 Jun 03 16:34
frifox :
simply re-encoding everything that we upload is a much simpler and effective solution.... :S

and as bayme said, Vimeo.com and DailyMotion.com are MUCH better alternatives to youtube...


i use dailymotion aswell and it doesnt recode flvs with bitrate under 350, also dailymotion "streams the videos"faster than youtube.



astin posted 2008 Jun 04 06:58
dailymotion very slow in my country, but I still use it for a period of time because of its stereo sound(96kbps mp3, and youtube only 64kbps mono)

though dailymotion has HD now, but you have to become a "motion maker"
and the file must be chek first by dailymotion team before published.

vimeo can not publish TV show.

So, since youtube's &fmt=18 trick still works(better video and stereo sound), I still will use it now.



mikejf posted 2008 Jun 04 10:48
does adding &fmt=18 allow stereo on YT? Or is that the same as setting your account to play high quality?


babymammoth posted 2008 Jun 04 13:59
:
does adding &fmt=18 allow stereo on YT? Or is that the same as setting your account to play high quality?


Comparison of Normal Youtube vs Youtube High Quality:

http://blog.jimmyr.com/High_Quality_on_Youtube_11_2008.php



bayme posted 2008 Jun 04 18:23
babymammoth :
:
does adding &fmt=18 allow stereo on YT? Or is that the same as setting your account to play high quality?


Comparison of Normal Youtube vs Youtube High Quality:

http://blog.jimmyr.com/High_Quality_on_Youtube_11_2008.php
That site is posting really strange values (lies, even).
The format 18 version simply copies source framerate. Better yet, I have yet to see YT resample frames. It will only change framerate if you feed it really obscure values. As long as you're feeding YT between 14 and 31 fps, it will never alter framerate, as far as I have noticed anyway.
Format 18 has stereo LC AAC audio. It even posts 2 channel audio when you feed YT only 1 channel. Problem is that their audio post-processing for fmt 18 is kinda' flimsy to say the least. You just can't tell what to expect from it, and so it is in essence not very reliable.



brassplyer posted 2008 Jun 04 19:59
So, how do I find the time stamp for audio/video? Here are examples from the very top and very bottom of the file opened with HxD hex editor.









mikejf posted 2008 Jun 04 22:44
brassplyer, editing the timestamp will not prevent YT encoding, it just delays it. So, by itself, it's not recommended. However, if you still want to try, I might be able to find it if you tell us the length of the video (min:sec)


brassplyer posted 2008 Jun 04 23:38
mikejf :
brassplyer, editing the timestamp will not prevent YT encoding, it just delays it. So, by itself, it's not recommended. However, if you still want to try, I might be able to find it if you tell us the length of the video (min:sec)



This is the video frifox posted and 4 days later it's still unchanged


http://youtube.com/watch?v=ksM8qucczvU


The flv file the screenshots are of is 5:17



mikejf posted 2008 Jun 04 23:48
brassplyer :
mikejf :
brassplyer, editing the timestamp will not prevent YT encoding, it just delays it. So, by itself, it's not recommended. However, if you still want to try, I might be able to find it if you tell us the length of the video (min:sec)



This is the video frifox posted and 4 days later it's still unchanged


http://youtube.com/watch?v=ksM8qucczvU


The flv file the screenshots are of is 5:17


I dont see the typical 08 pattern I'm use to seeing in a flv, and it's allready been edited to 11:00 so not sure where the 11:00 time stamp is, sorry. Also, as frifox hs said, timestamp edit alone will not prevent encoding, frifox uses another method.



kodaismahhussy posted 2008 Jun 05 03:50
If there are only a few methods left for YT not to convert videos, please disclose them or kindly stop this hypcritical carrot-waving fagotry.

Otherwise this thread has lost its purpose.



mikejf posted 2008 Jun 05 14:47
kodaismahhussy :
If there are only a few methods left for YT not to convert videos, please disclose them or kindly stop this hypcritical carrot-waving fagotry.

Otherwise this thread has lost its purpose.


I was just reporting my test results about the timestamp method. At first I thought it was working, because it was untouched for many hours. But after 24 hrs they were re-encoded, so it fails. Spent a lot of time testing, so others would not have to.



FoxLocked posted 2008 Jun 06 22:33
:|


45tripp posted 2008 Jun 07 10:36
kodaismahhussy :
If there are only a few methods left for YT not to convert videos, please disclose them or kindly stop this hypcritical carrot-waving fagotry.


carrot waving fagotry...
:)

i think it's called secrecy,
because youtube have been somewhat like killjoy pricks lately.

i've not tested anything in ages,
but if you ask frifox nicely, maybe you;ll get a look into the secret circle.


tripp



zoobie posted 2008 Jun 07 12:07
secret circle...oh god...the perfect bait
lmao@youboobs :crazy:



45tripp posted 2008 Jun 07 13:43
sounds good doesn;t it?
:)



FoxLocked posted 2008 Jun 07 17:56
How can i Upload a 1000kbps video and fake it into 350kbps?


harmster posted 2008 Jun 08 11:38
Dear FriFox Darling :)

Can u at least give us a clue... how to maintain the STEREO audio + HQ.. and will try our best to figure out where to start experimenting :idea:

TQ



harmster posted 2008 Jun 08 13:27
astin :
babymammoth :
Great! clever way.

There seems to be many ways for bypass. YT checking algorithm is leaky :)

My discover was that width <= 16 stops encoding (and of course <350)

16x576 - 80080120112622222223FFFF31110111

this one - http://pl.youtube.com/watch?v=43SjYfznGVQ
dimensions actually are 2x64
probably thats why thumbnails are messed up.


i used PSPad and changed width, but still re-encoded after 10 minutes :(


How to find this "WIDTH" thing in HEX...tq



Captain Satellite posted 2008 Jun 08 14:07
How is the video below being uploaded and maintaining stereo? It's not even an HQ video. (Not my type of music)

http://www.youtube.com/watch?v=ca9GJ6mMxLw



tworegon posted 2008 Jun 08 15:30
:
How is the video below being uploaded and maintaining stereo? It's not even an HQ video. (Not my type of music)

http://www.youtube.com/watch?v=ca9GJ6mMxLw


It was posted on May 3rd, before the old method was disabled.

There are a lot of stereo videos floating around from that time:

http://www.youtube.com/watch?v=0J9s50G-veg
http://www.youtube.com/watch?v=TvFvPKPqCRg
http://www.youtube.com/watch?v=-0OhD-C94UQ
http://www.youtube.com/watch?v=5Ocg1uUjZOs

I have one on my own youtube account from June 1st that stayed stereo. Don't have a clue as to how - it seems to be a random thing:

http://www.youtube.com/watch?v=WL-rAlsaCpg



dzvero007 posted 2008 Jun 09 17:23
Ok, first to say, i think that YouTube doesn't encode all videos over 350 kbps to mono.

I've uploaded 2 videos (songs) which were both audio and video over 350 kbps (normal flv) and YouTube does not re-encoded their. They are in stereo.

http://youtube.com/watch?v=CYJwn-sQP8I
http://youtube.com/watch?v=J_HnwB7I_rA

When I uploaded these songs on YouTube, I didn't knew they are going to be re-encoded to mono. I was newbie(lol)... but now, afterall, I'm surprised they're still in stereo.

Maybe some videos by random don't turn to mono, or it might have another way to bypass? I don't know... could somebody explain ?



FoxLocked posted 2008 Jun 09 23:13
http://www.youtube.com/watch?v=RO1SysI0m78
This video is a OK quality video
looks good huh?? I didnt use any hacks to do this.
I was bored so i just wanted to post this up.
Im still doing more tests to see if i could upload Better quality



Koppel posted 2008 Jun 10 14:03
Well, seems like you still added a lot of black to get higher bitrate towards the actual video. Is youtube itself also using variable bitrate?


astin posted 2008 Jun 10 16:05
your video is re-encoded to 320x240 mono

this is hq stereo with &fmt=18 trick
http://tw.youtube.com/watch?v=RO1SysI0m78&fmt=18



FoxLocked posted 2008 Jun 10 16:46
:D Looks better. But im trying to get it high quality without adding &fmt=18


frifox posted 2008 Jun 10 23:14
just to let everyone know, youtube converts our HQ flv's to LQ again... new method is not working anymore

everyone back to the drawing board =)



Captain Satellite posted 2008 Jun 10 23:37
frifox :
just to let everyone know, youtube converts our HQ flv's to LQ again... new method is not working anymore

everyone back to the drawing board =)


As long as you keep posting your findings on a public board, I think your findings and their usefulness will be short-lived. It's a pretty sure bet they are looking over your shoulder. :wink:



rajman posted 2008 Jun 11 11:34
frifox :
just to let everyone know, youtube converts our HQ flv's to LQ again... new method is not working anymore

everyone back to the drawing board =)


Yehh I realised this y'day as 2 of my lastest vids got re-encoded =( It was sometime in the evening (UK time) the method got blocked, as I uploaded a few vids earlier on in the day and they stayed HQ, oh well here we go again ;-p

http://www.youtube.com/TheRajmanHD



frifox posted 2008 Jun 11 12:00
any word on the w16 method, is that one still alive?


ThePapaX posted 2008 Jun 11 13:47
frifox :
any word on the w16 method, is that one still alive?
The W16 method returns and error after processing it did not skip anything... The video got rejected after that.... Damm I didn't enjoy your method... Today was my first upload in HQ and realize it is not working anymore.. shit...


frifox posted 2008 Jun 11 15:32
Captain Satellite :
frifox :
just to let everyone know, youtube converts our HQ flv's to LQ again... new method is not working anymore

everyone back to the drawing board =)


As long as you keep posting your findings on a public board, I think your findings and their usefulness will be short-lived. It's a pretty sure bet they are looking over your shoulder. :wink:

yes, i'm well aware of that... in fact, youtube should thank us for finding the holes in their system :) we did quite a job for them.... lol



frifox posted 2008 Jun 11 17:45
today, i uploaded a tampered FLV, it went live in HQ as usual... then after ~30 mins it went offline and they say:
Failed (unable to convert video file)

apparently they got a bit smarter this time :) if they cant convert video to LQ, then they take it offline and complain... and if they manage to convert it to LQ but fail to make HQ MP4 version, they complain as well lol



mikejf posted 2008 Jun 11 23:35
same problem here- HQ vid I posted on June10 is now LQ, but it took about 12 hours to do so. Vids before June 9 are still ok.

The new message frifox is getting, "Failed (unable to convert video file)", is what I was afraid would happen. I wonder now if a vid errors during encoding, it is now always rejected? Before, if a vid errors, it went ahead and posted. If they are now rejected, no method that causes the encoder to error will work. Now, we need a method that makes the encoder think it completed the entire encoding, but skips the data and audio.



bayme posted 2008 Jun 12 11:25
dzvero007 :
Ok, first to say, i think that YouTube doesn't encode all videos over 350 kbps to mono.
I've uploaded 2 videos (songs) which were both audio and video over 350 kbps (normal flv) and YouTube does not re-encoded their. They are in stereo.
http://youtube.com/watch?v=CYJwn-sQP8I
http://youtube.com/watch?v=J_HnwB7I_rA

They are not over 350, they are 328 kbit/s.
Plus they're from April, so they're still old-school, and left as is on server. Nothing strange there.



SmashKing posted 2008 Jun 15 08:46
Yeah, I think this is it. As Frifox said, if they can't convert it to LQ, it get's rejected. I think we should stop being lazy and just add the freakin' 7fmt=18 or 6. Just put "[Add &fmt=18]" to the end of your videos if you can. Or do a Video Annotation in the begining telling your veiwers to add that. And what's the point of HQ "hacking" when a mojority of the people don't pay attention to the quality, and want to watch the freaking video. It's the content of the video that matters.


bayme posted 2008 Jun 15 08:56
SmashKing :
Yeah, I think this is it. As Frifox said, if they can't convert it to LQ, it get's rejected. I think we should stop being lazy and just add the freakin' &fmt=18 or 6. Just put "[Add &fmt=18]" to the end of your videos if you can. Or do a Video Annotation in the begining telling your veiwers to add that. And what's the point of HQ "hacking" when a mojority of the people don't pay attention to the quality, and want to watch the freaking video. It's the content of the video that matters.

Just do what I do:
Post a link to the format 18 version in the description at the right of the video, as seen here for example.



manono posted 2008 Jun 15 09:11
Yeah, I do the same:

http://www.youtube.com/watch?v=a8Fsa1FhV8s

And then when you wait a few seconds you get both playing at the same time. :)

I agree with one of the comments that the Jackie DeShannon version of that song beats the better known Searchers version all to hell. That's a nice video.



SmashKing posted 2008 Jun 15 09:35
Hey, does anyone know the bes video settings for the &fmt=18 trick?


bayme posted 2008 Jun 15 11:13
SmashKing :
Hey, does anyone know the bes video settings for the &fmt=18 trick?

Well, the YT-output for format 18 is 480x360 pixels, so it's best to input that resolution as well. Not all encoders offer that resolution, but x264 does. If you have the time to upload large files, use singlepass lossless encoded files with x264, and use the YouTube uploader so you can upload up to 1 GB per video.

For audio I would upload uncompressed wav (44.1 kHz samplefrequency).

If you can, upload uncompressed, or lossless compressed video and audio is always best. Re-encoding or transcoding is always less favorable.

By the way, if you really want quality, use dailymotion or vimeo or host the videos yourself.



frifox posted 2008 Jun 15 13:21
as bayme said, uploading in lossless is always preferred.... but the file sizes and uploading times simply doesnt worth it.


i found the following specs to give pretty much same resulting youtube video as uploading lossless:
    Filetype: MP4
    Resolution: 480x360
    Video: x264 @ 5Mbps (2-pass VBR)
    Audio: AAC-LC @ 256Kbps (VBR)

i use MeGUI to make the MP4... and with those specs, 10 min video will be less than 400MB



sean2doc posted 2008 Jun 15 13:31
bayme :
SmashKing :
Hey, does anyone know the bes video settings for the &fmt=18 trick?

Well, the YT-output for format 18 is 480x360 pixels, so it's best to input that resolution as well. Not all encoders offer that resolution, but x264 does. If you have the time to upload large files, use singlepass lossless encoded files with x264, and use the YouTube uploader so you can upload up to 1 GB per video.

For audio I would upload uncompressed wav (44.1 kHz samplefrequency).

If you can, upload uncompressed, or lossless compressed video and audio is always best. Re-encoding or transcoding is always less favorable.

By the way, if you really want quality, use dailymotion or vimeo or host the videos yourself.
Can anyone tell me how to find width & height in Hex Editor? or is the secret too much to reveal? seems like w16 is the only answere for now
I've been trying to find out last couple of days man..really got frustrated

thanks in advance.



frifox posted 2008 Jun 15 13:33
lol, open the FLV in hex editor.. and width and height are there in plain english text :)... "width" and "height" that is, not the actual values =P


ricardouk posted 2008 Jun 15 17:44
I read about it a while ago here and tested it today, youtube is recoding my flv's that were under 350k, so the highquality fmt=18 version looks alot worse than the original upload :(

Couldnt they leave the <350 version untouched?



bayme posted 2008 Jun 15 18:35
frifox :
i found the following specs to give pretty much same resulting youtube video as uploading lossless:
    Filetype: MP4
    Resolution: 480x360
    Video: x264 @ 5Mbps (2-pass VBR)
    Audio: AAC-LC @ 256Kbps (VBR)

Why would you stop at 5Mbit/s video and 256 Kbit/s audio? Simply doesn't make any sense to use bitrate limits if your target is a filesize-barrier and time is your variable. I found the following specs to give better resulting quality on YouTube than the ones you mention:

    Container: MKV
    Resolution: 480x360
    Video: x264 Single pass ratefactor based (CRF), Ratefactor 1.0 to 15.0 depending on length of video and desired size of file to upload.
    Audio: Uncompressed PCM, 44100 Hz, 16 bit, 2 ch (Stereo)

Make sure you use slight sharpening after resizing to 480x360, if your conversion software offers that.

It doesn't make sense to compress audio. It's only 110 MB if you use the full 11 minutes of wav audio. (Transcoding from AAC to AAC is really bad.) That leaves you with 890 MB room for your video.

If the video you upload is intended for worldwide viewing by potentially thousands of viewers, I don't see why uploading it as large and high quality as possible would not be worth it. Of course it is! Unless of course you only upload trance-audio that isn't really yours and you expect your video to disappear from YouTube soon.



mikejf posted 2008 Jun 15 19:49
does adding &fmt=18 to url play in stereo? if so, can someone provide a link to video playing in stereo posted after June10?


tworegon posted 2008 Jun 16 01:40
:
does adding &fmt=18 to url play in stereo? if so, can someone provide a link to video playing in stereo posted after June10?

You don't even have to upload a stereo flash file to get stereo this way. This was uploaded as wmv file.

http://www.youtube.com/watch?v=AcQjo9V1eEI&fmt=18

As long as you have the latest flash player installed in your browser, it WILL play stereo.



frifox posted 2008 Jun 16 01:52
if anyone is interested in HQ audio with NO picture/video, you'll be interested in this one:
http://youtube.com/watch?v=wMVev-GEV3c



Golgota posted 2008 Jun 16 08:26
Guys, i upload this Vid:

-Display : 640x480 (Resize - FullScreen)
-AVI format (H.264)
-Bitrate : 3000Kbps
-Audio : Mp3 48, 320Kbps (testing)

Standard Quality fully SUCKS!! but in HQ mode quite good, but i think it's not HQ enough compared to VMuTube production ;-)
What do u guys think?

OOPS!!! sorry bout the link then (Forgot)
http://youtube.com/watch?v=JfJrNNXMzwg



ricardouk posted 2008 Jun 16 08:50
link?


ricardouk posted 2008 Jun 16 11:15
I actually think the quality is pretty good, the quality of the embeded version is fine, when i switch to fullscrenn it looses quality but its acceptable.

the higher quality version looks better and brighter.



manono posted 2008 Jun 16 13:03
I don't guess we're discussing the fact that the AR is completely screwed up?


ricardouk posted 2008 Jun 16 14:34
yes but i usually had black bars to avoid that, perhaps Golgota didnt do it.


NiGHTsC posted 2008 Jun 16 15:06
Not asking for any hack tips...
but how do you upload a video with "High Quality" option?
my video is DivX 5 800x480 29.9FPS 1751kbs / MP3 128Kbps 44100Hz stereo.
I tried to upload it but still didn't have the High Quality option, even with that "&fmt=18" trick

Thank you.



frifox posted 2008 Jun 16 15:07
it takes some time for "&fmt=18" version to be available... give it 1hr or so and then check back


mikejf posted 2008 Jun 16 15:19
Can anyone verify this? What if you upload a HQ flv (or whatever format), 3 or 4 minutes with the black padding to make it 10:59 in length, and then playback with the &fmt=18

It appears to make it playback in higher bit rate- it did with one of my edit hacked flv vids on June10 and it it plays in HQ (with the &fmt=18). I will try another today with no hack.



frifox posted 2008 Jun 16 15:45
it seems that youtube leaves FLV's with resolution less than 16x16 in original format without converting to LQ... so far all of my 16x12 uploads stayed HQ

that got me thinking, how does youtube check for resolution? after some experimenting i found that youtube apparently checks first video packet's resolution and takes that as your video's resolution.

by simply faking first video packet's resolution to something like 16x12, youtube will leave your uploads in HQ... which is pretty much what babymammoth's w16 method is all about =D

EXAMPLE: http://youtube.com/watch?v=_S0-mhiTd9I


PS: video packet's resolution is a set of 4 hex-pairs, if format "WW WW HH HH"... its the 16th hex pair after the 09 (start of the video packet)....

PS: 16x12 would be "08 06 11 1F" :)



bayme posted 2008 Jun 16 18:16
frifox :
by simply faking first video packet's resolution to something like 16x12, youtube will leave your uploads in HQ... which is pretty much what babymammoth's w16 method is all about =D

EXAMPLE: http://youtube.com/watch?v=_S0-mhiTd9I

PS: video packet's resolution is a set of 4 hex-pairs, if format "WW WW HH HH"... its the 16th hex pair after the 09 (start of the video packet)....

PS: 16x12 would be "08 06 11 1F" :)
Interesting, let's keep this one alive for a while ;-) I mostly hope YT does not re-encode later what is considered final now, i.e. it keeps its software off current status anti-re-encoded vids.


rajman posted 2008 Jun 16 18:19
Ive been trying new methods also and I hope I have got it right:
http://www.youtube.com/watch?v=omMGdnHcFiE

I hope it doesnt get re-encoded later on :s And oh Frifox plz accept my friend request on Youtube (as I have a new account) so I can message you instead of posting on your wall XD



NicksVideo posted 2008 Jun 16 20:19
I'm curious as to how you're getting these to work. I've edited my video width down to 16x12 thanks to the information frifox posted, but whenever I upload, it gives me the "failed to convert" error.

Rajman, I notice in your .flv's you add the "08 06 11 1F" hex in a different location. Any help would be appreciated!



vhelp posted 2008 Jun 16 20:27
Poo, I miss the old YT flash player version, the one with the resolution button. I can't seem
to get it anymore. Also, you guys keep posting long videos. My dial-up can't take the beeting.
Yeah, post some short ones too, for us guys still pushing wheel barrols, you know :lol:

(As much as I've been following these threads, I realize that you post some of these clips for test
purposes in all but I like to view them for their content, too. And since my work has blocked YT, I
can't view or D/L them anymore. So I'm stuck in the slow lane unfortunately. So sometimes its
nice to see a short snip if it can be thrown in the tests too)


Thanks,

-vhelp 4713



babymammoth posted 2008 Jun 16 21:51
:
Rajman, I notice in your .flv's you add the "08 06 11 1F" hex in a different location.


Yes, it`s like frifox`s timestamps. No matter where or which you change,
same situation on changing dimensions, it could be on the very start of video
or in the middle or at the end.

simply you can join videos one proper content 480x360 and second short video
with mentioned dimensions 16x576

we have to check possible short the 16x576 part
and if this must be real 16x576 or just HEX injected

Guys it`s amazing how this w16 develop,
i announce We got new HQ method! :) (and thumbnails are ok)

but for how long ... ?



vhelp posted 2008 Jun 16 23:21
Regarding the "08 06 11 1F" hexing about..

I'm sorry. But I was reading your latest trend and I must admit that hex is not my forte. Anyway.

Forgetting about "08 06" pair for a moment, and looking at the "11 1F", when converted to decimal,
we get 11=17, and 1F=31, and both of which are non-printable charactors. But the confusion
part here is the 16. If I take a 16 decimal and convert to hex, we get 10.

Or, to put in another way:

(to see complete text line up, in Opera, press the F11 key to set full screen mode)

D: --> 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
H: --> 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F

I don't know about you, but aren't you suppose to be using 16=10, and
shouldn't it be "08 06 10 10" if we were talking 16x16, and if "08 06 10 0C" for 16x12 ??

You see, I'm trying to build a tool for this part but I want to make sure I have an understanding of
the parts propely so that I write out the hex values to the output stream correctly.

Thank you,
-vhelp 4715



mikejf posted 2008 Jun 16 23:28
babymammoth :


simply you can join videos one proper content 480x360 and second short video
with mentioned dimensions 16x576



that's a clever idea, have you joined two videos? How is that done when the two are different screen sizes? Also, join the 16x576 at the end? And how long (in time) does it need to be?



frifox posted 2008 Jun 16 23:32
vhelp :
Regarding the "08 06 11 1F" hexing about..
You see, I'm trying to build a tool for this part but I want to make sure I have an understanding of
the parts propely so that I write out the hex values to the output stream correctly.

Thank you,
-vhelp 4715

why build a tool when there is already one? for videos made with ffmpeg, this command does the job:
hexalter uTubeVideo.flv 0x120=0x08,0x06,0x11,0x1F

and also, why 16x12? because one of its sides is 16px or less, and it also has a proper 4/3 aspect ratio



vhelp posted 2008 Jun 16 23:46
:
why build a tool where there is already one? for videos made with ffmpeg, this command does the job:
hexalter uTubeVideo.flv 0x120=0x08,0x06,0x11,0x1F


frifox, you lost me on this.

Although I use x264 cli for the mp4 I'm not using it at this time. However, I use ffmpeg for my
YT flash (flv) video encodings. But, you BOLD text has me at a disadvantage and I do
not understand the nature/use of it. Anyway, the purpose of what I was building the tool for
was (after the flv encoding) I would perform the hacking part to the finished flv and then I
would upload it to YT. At least that is what my goal was. It seems a lot eaier to me and from
what I can see from others that maybe the method you posted above is the hold-up in others
( failed ? ) attempts. I want to make it easier by just letting them (and myself) encode the
videos and then alter the stream at the end of the process prior to uploading to YT.

Actually, although I've read through all these threads, I can't recall ever seeing that which you
posted above about. That's news to me :o In any case, is there some things that I'm missing
here ?? I'm all ears :) Thanks.

-vhelp 4716



frifox posted 2008 Jun 16 23:56
google for "hexalter" and go to first link... there you'll find a download link for "hexalter" program. download it and put it in the same folder as your FLV video produced by FFMPEG

open a command prompt and browse to that folder. then simply execute the command:
:
hexalter uTubeVideo.flv 0x120=0x08,0x06,0x11,0x1F

*** of course replace "uTubeVideo.flv" with the your FLV's file name :)

what the command above does is, it goes to offset 0x120 (228th hex-pair), and replaces the next 4 hex pairs with "08 06 11 1F".


why offset 0x120? because i've noticed that in all of my FLV's produced with FFMPEG, the first video packet's resolution is located at the same exact place - starting at 228th hex-pair.

PS: i use values "08 06 11 1F" (16x12) because currently it worked 100% of times for me :)



vhelp posted 2008 Jun 17 00:05
frifox, thank you for that clarity. I will take a look at your suggestion. It is indeed
an eye-opener. Thank you again :)

-vhelp 4717



vhelp posted 2008 Jun 17 00:17
frifox, that link was an interesting read on how hexalter came about. Its always nice when something
like that happens, however.

And, althought that tool has some uses, I have other plans/ideas for what I'm building. But never
the less, I will research into how hexalter is used and applied to your latest YT trend and see how
far it gets me in this endeavor. Thanks again, you've been a big help to me, and everyone who
might ? have been stuck, here or there.

-vhelp 4718



Golgota posted 2008 Jun 17 00:51
ricardouk :
yes but i usually had black bars to avoid that, perhaps Golgota didnt do it.


nop ricardouk, i didnt add any black pad or bars. the vidz is 01:17 straight. the only thing i hate bout it is the total size, too big compared to VMuTube Flv Production, and it took much time to upload plus 1 hour half to see the "watch in high quality" link. Hmm..



vhelp posted 2008 Jun 17 00:59
frifox, I had one last question before I retire to bed -- look it the time.

you mentioned the offset address. That was one problem I had trouble with. Calculating
the offset from within the stream that I open, as your basic byte array. Anyway. I post
a crude snap shot of the tool that I'm working on and you see where I filled in the offset.
Obviously its wrong, but I just wanted a dummy number in there. Its designed around the
idea of the drag n drop approach.

The next of this project was to add other user-friendly fields, such as: width; height; fps;
padding; etc etc, and various other finds that would be trial n error inside these discussions.

Well, see you all around..



-vhelp 4719



frifox posted 2008 Jun 17 01:01
nice one, your tool looks good... so far :)

i took a different path, i simply implemented the hack into my batch scripts... works pretty good too :D



Golgota posted 2008 Jun 17 01:12
FFMPEG:
ffmpeg -i audio.mp3 -acodec copy -loop_input -f image2 -i 16x12.png -vcodec flv -r 1 -g 5 -sameq -shortest uTubeVideo.flv


frifox, I used the same code method which mentioned by u on ur 1st HQ music (ReComeBack-HQ) - http://youtube.com/watch?v=wMVev-GEV3c

My Ori Mp3:

Bitrate - 320Kbps , 44100
Png Pic - 640x480

but after uploaded 1 min, YouTube Re-ENCODE it to mono :'((((((
http://youtube.com/watch?v=2e66rPJy_uM

Saddest thing in my life. Help me out pls..



frifox posted 2008 Jun 17 01:14
Golgota :

Png Pic - 640x480

thats our problem :)

as you see in the command, i used "16x12.png" as input... which implies that the picture must be 16x12 pixels :D



Golgota posted 2008 Jun 17 01:16
Again Frifox, i'm not as good as you in PROGRAMMING. How bout VMuTube & IMuTube Version 3? Any possiblity for me to have that? Dying to upload HQ content now!! My God!!


Golgota posted 2008 Jun 17 01:21
:

as you see in the command, i used "16x12.png" as input... which implies that the picture must be 16x12 pixels :D


My God, what in the world TINY pixels?? okay i get u Fri.. how bout ur updated script (Dying to upload Video & Music in HQ... ;(



NicksVideo posted 2008 Jun 17 01:21
So one final question from me. I've created my .flv using ffmpeg and the following settings:

:
ffmpeg -i jaws.avi -ab 96k -ar 22050 -ac 1 -vcodec flv -b 700k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell jawsweb.flv


And I used HexAlter to edit add "08 06 11 1F" @ 0x120, and then varified with a hex editor that the values had, indeed, been altered.

Finally I edited the duration of the file, to 11mins, via the instructions on page 1 of this thread.

However, I'm still getting "Failed (unable to convert video file)" when I upload the file. Is there anything else I need to do?

EDIT: I think I know what's wrong, but have no clue how to fix it. Every video I encode with ffmpeg, when opened in MediaInfo, has no video bitrate. Any idea on what could be causing this?




manono posted 2008 Jun 17 02:46
Sorry, never mind.


rajman posted 2008 Jun 17 03:05
NicksVideo :
I'm curious as to how you're getting these to work. I've edited my video width down to 16x12 thanks to the information frifox posted, but whenever I upload, it gives me the "failed to convert" error.

Rajman, I notice in your .flv's you add the "08 06 11 1F" hex in a different location. Any help would be appreciated!


Oh well it wasnt to be....it was HQ for a while but the video got re-converted overnight =(



rajman posted 2008 Jun 17 03:39
frifox :
google for "hexalter" and go to first link... there you'll find a download link for "hexalter" program. download it and put it in the same folder as your FLV video produced by FFMPEG

open a command prompt and browse to that folder. then simply execute the command:
:
hexalter uTubeVideo.flv 0x120=0x08,0x06,0x11,0x1F

*** of course replace "uTubeVideo.flv" with the your FLV's file name :)

what the command above does is, it goes to offset 0x120 (228th hex-pair), and replaces the next 4 hex pairs with "08 06 11 1F".


why offset 0x120? because i've noticed that in all of my FLV's produced with FFMPEG, the first video packet's resolution is located at the same exact place - starting at 228th hex-pair.

PS: i use values "08 06 11 1F" (16x12) because currently it worked 100% of times for me :)

Thanks for that command Frifox, Ive just uploaded a video using that and its been HQ even after 20 mins....I just hope it stays that way:
http://www.youtube.com/watch?v=LllVc6JIMlw

EDIT: Ive noticed that the thumbnail is black (has to be the padded frames) is there any way to get the thumbnail as the frame that is half way through the video as normally youtube does?



bayme posted 2008 Jun 17 04:36
frifox :
why offset 0x120? because i've noticed that in all of my FLV's produced with FFMPEG, the first video packet's resolution is located at the same exact place - starting at 228th hex-pair.
This is correct, it's also in the official FLV1 file description. They have to put the first video packet in a static location, because it's a streaming format and the player needs to know this location in order to be able to start at the right place.

There's a thread in the doom9 forums about a free experimental tool showing the official file descriptors per video-type, especially made for Flash Video. If I find it, I'll post it again, it's quite handy for stuff like this.. (normally the people building flashplayers need to know this, which is why such tools exist)



si_edgey posted 2008 Jun 17 10:58
Hi everyone, first. post. ;)

I have been following this thread with great interest - I make videos of myself performing music to upload, so I need OK quality video and excellent sound! I am having difficulty getting Youtube to not re-encode my vids after 50-10mins, and it's really starting to make me want to bang my head off something hard. :)

I am using FFMPEG settings: ffmpeg -i YTvid.wmv -s qvga -b 100 -vcodec flv -ab 128k -ar 44100 YTvid.flv

And then using: hexalter ChopNew.flv 0x120=0x08,0x06,0x11,0x1 to set the new res.

Then I am using a hex editor to edit the length of the video to 11mins (it is actually 9:30).

Is there another stage to the process that I am missing out on Frifox? A pointer in the right direction would be hugely appreciated as I have read every message in this thread about 10 times! ;)

Thanks!



bayme posted 2008 Jun 17 12:41
si_edgey :
I am using FFMPEG settings: ffmpeg -i YTvid.wmv -s qvga -b 100 -vcodec flv -ab 128k -ar 44100 YTvid.flv

And then using: hexalter ChopNew.flv 0x120=0x08,0x06,0x11,0x1 to set the new res.

Then I am using a hex editor to edit the length of the video to 11mins (it is actually 9:30).

Is there another stage to the process that I am missing out on Frifox? A pointer in the right direction would be hugely appreciated as I have read every message in this thread about 10 times! ;)

There are a couple of things I see wrong here:

- The -b 100 command, with that you set the video-bitrate to 100 kbit/s, which is quite low.
- The time duration extension is a way to fool the average bitrate;
a video that uses 350 kbits/second for 11 minutes, is technically the same as
a video that uses 700 kbits/second for 5.5 minutes.
So if you encode content for only 5 minutes, and YouTube has a limit for 350 kbits/sec bandwidth use in 11 minutes, you can make use of that by spreading the data over fake time, and thus use all data available for those 11 minutes up in 5 minutes ;-)
First, make sure you understand that concept.
After that you encode your video with the bitrate that fits within the newly created (upped) barrier. It used to be 350, and will then be around 700 kbits/s. That is video plus audio.



frifox posted 2008 Jun 17 12:53
si_edgey :

And then using: hexalter ChopNew.flv 0x120=0x08,0x06,0x11,0x1 to set the new res.

Then I am using a hex editor to edit the length of the video to 11mins (it is actually 9:30).

Is there another stage to the process that I am missing out on Frifox? A pointer in the right direction would be hugely appreciated as I have read every message in this thread about 10 times! ;)

no, i encode with FFMPEG and then hex with HexAlter... thats it


but hold on a sec, you said you used:
hexalter ChopNew.flv 0x120=0x08,0x06,0x11,0x1

but it should have been:
hexalter ChopNew.flv 0x120=0x08,0x06,0x11,0x1F

typo?



si_edgey posted 2008 Jun 17 14:11
:
- The -b 100 command, with that you set the video-bitrate to 100 kbit/s, which is quite low.
- The time duration extension is a way to fool the average bitrate;


Thanks a lot for that man, that cleared up the purpose of the extension of the time. For me 350kbps is actually enough - I would like 160kbps MP3 stereo audio and around 150kbps video, I might change my settings a bit to sort that out.

:
typo?


Hehe yes it was, oops. :) Technically then, all I should need to do is run hexalter and it should bypass encoding? For some reason it's not working for me, perhaps because I am encoding video too rather than just the picture you are putting on your vids?

I am finding that after encoding with FFMPEG, Mediainfo is only showing an audio bitrate and not a video bitrate...I see someone else has experienced this above. This doesn't happen with Moyea Flash MX so I tried HexAltering the res on one of it's output files...it still gets encoded to LQ after ~10 mins. :( Poocakes.

Any thoughts are hugely appreciated, thanks.



NiGHTsC posted 2008 Jun 17 16:56
frifox :
it takes some time for "&fmt=18" version to be available... give it 1hr or so and then check back
cool, I saw it, but I just noticed that HQ version isn't any better, guess I have to learn how to hack the bitrate too:P

:
EXAMPLE: http://youtube.com/watch?v=_S0-mhiTd9I
frifox, can you tell us what's the command you use in FFMPEG to encore this EVE video?
My video is only 23secs long, so all I need is encore it to FLV with high bitrates and bypass the YT re-encore step.

Thanx again.



rajman posted 2008 Jun 17 18:26
rajman :
frifox :
google for "hexalter" and go to first link... there you'll find a download link for "hexalter" program. download it and put it in the same folder as your FLV video produced by FFMPEG

open a command prompt and browse to that folder. then simply execute the command:
:
hexalter uTubeVideo.flv 0x120=0x08,0x06,0x11,0x1F

*** of course replace "uTubeVideo.flv" with the your FLV's file name :)

what the command above does is, it goes to offset 0x120 (228th hex-pair), and replaces the next 4 hex pairs with "08 06 11 1F".


why offset 0x120? because i've noticed that in all of my FLV's produced with FFMPEG, the first video packet's resolution is located at the same exact place - starting at 228th hex-pair.

PS: i use values "08 06 11 1F" (16x12) because currently it worked 100% of times for me :)

Thanks for that command Frifox, Ive just uploaded a video using that and its been HQ even after 20 mins....I just hope it stays that way:
http://www.youtube.com/watch?v=LllVc6JIMlw

EDIT: Ive noticed that the thumbnail is black (has to be the padded frames) is there any way to get the thumbnail as the frame that is half way through the video as normally youtube does?


Hmmmmm I thought the thumbnail was black beacuse it must have been loacted somewhere in the padded frames, But it isnt! I just uploaded a video that has no padding or fake time duration (as it is under 350kbps) and the thumbnail previews for all 3 possible were still black =( Does anyone know why this is? or is it just beacuse command 'hexalter uTubeVideo.flv 0x120=0x08,0x06,0x11,0x1F' does this and theres no thumbnail possible using this method?
Heres the video btw: http://www.youtube.com/watch?v=jKGm6PT_Zvc



ThePapaX posted 2008 Jun 17 18:43
when you encode with Vmutube, the resolution's hex location is at 0x120 but, when you use ffmpeg only it is not at 0x120... I'm I right?... would it be because of metadata?, in that case the hexalter won't work. i suposse.


mikejf posted 2008 Jun 17 18:59
[quote="NiGHTsC"]
frifox :
... but I just noticed that HQ version isn't any better, guess I have to learn how to hack the bitrate too:P
.


I'm getting good results using frifox's original VMuTube tool method. I'm using it just as before- 1. use Vegas to create a padded 10:59 video (original is 3-5 minutes or so), 2. render as avi H.264, 3. run VMuTube.bat to create flv. Mediainfo reports it has a 345 Kbps rate but it does play at a faster rate when using &fmt=18 on YT. Until the thumbnail problem is fixed, I'm going to use the old method and &fmt=18 with playback



rajman posted 2008 Jun 17 19:01
Ohh I cant believe how n00by I was on my last comment :s the thumbnail will appear, only when a picture is exactly in the middle of the video BUT it must be in the top left corner at dimensions 16x12...so I guess thats why Frifox's vids have the pixelated thumbnail!


mikejf posted 2008 Jun 17 19:01
by the way YT did 'maintenance' last night, June 16. Anything can change after these maintenance things


Golgota posted 2008 Jun 17 19:24
HQ is still alive, even though YouTube did some Maintenance IMtube 2.1 still goes into superb HQ production. Great!!

watch : http://youtube.com/watch?v=1kP0gNYmDCI



mikejf posted 2008 Jun 17 19:47
not only that I uploaded a vid using VMuTube 1.1 about 3 hours ago and it's still untouched


Golgota posted 2008 Jun 17 20:05
mikejf :
not only that I uploaded a vid using VMuTube 1.1 about 3 hours ago and it's still untouched


using VMuTube 1.1? okay, but did u hack it maybe just like the 2nd ver of VMuTube which implies some hacking tools..
mmm.. now i understand, untouched means u add the &fmt=18 right, it same goes to my previous Vid : http://youtube.com/watch?v=-6Nc_A6vIuI (VMuTube 1.1) but if u notice, the sound encoded into MONO... huhh!! i'm sick of this..

can u show me ur video mikejf?



NicksVideo posted 2008 Jun 17 20:31
I just uploaded two videos using VMuTube 1.1 as well, and both are still untouched.

Golgota, you don't have to do anything except follow the VMuTube instructions to get it to work right now. However, chances are it won't last long. And untouched means it bypasses the YouTube re-encoding, and has nothing to do with adding '&fmt=18'



harmster posted 2008 Jun 17 21:51
Thanks All especially to the "Expert". :) .information here are "MORE THAN ENOUGH" for me to alter the old version IMUTUBE and VMUTUBE...and it works... my videos and still videos + STEREO audio track are still intact for more than 12 hrs now...hopefully still the same after 24 hrs .. (I noticed ppl unable to "search" youtube for this "hack" type video even i try myself after 12hrs upload time and still can find my videos-anybody experience the same problem???) :roll:


frifox posted 2008 Jun 17 22:09
NiGHTsC :
frifox, can you tell us what's the command you use in FFMPEG to encore this EVE video?

more or less, i use same command for pretty much all of my uploads:


Encode Video
:
ffmpeg -i video.avs -pass 1 -an -vcodec flv -b 250k -g 150 -cmp 2 -subcmp 2 -mbd 2 -flags aic+cbp+mv0+mv4+trell+umv+gmc+obmc video.flv

ffmpeg -i video.avs -pass 2 -an -vcodec flv -b 250k -g 150 -cmp 2 -subcmp 2 -mbd 2 -flags aic+cbp+mv0+mv4+trell+umv+gmc+obmc video.flv


Encode Audio:
:
ffmpeg -i video.avs -vn audio.wav

lame audio.wav audio.mp3 --abr 100 -q0 --resample 44.1 --lowpass 18


Mux Audio+Video:
:
ffmpeg -i audio.mp3 -acodec copy -i video.flv -vcodec copy uTubeVideo.flv




to make PNG+MP3 combo, i use different command:
:
ffmpeg -i audio.mp3 -acodec copy -loop_input -f image2 -i video.png -vcodec flv -r 1 -g 10 -qscale 2 -shortest uTubeVideo.flv



mikejf posted 2008 Jun 18 01:27
just reporting that I have uploaded three vids now with old VMuTube 1.1 method and last two got quickly re-encoded, however the first one still untouched (7 hours now). Nothing different about it as far as I can tell. I think some just slip through sometimes.


harmster posted 2008 Jun 18 06:30
mikejf :
just reporting that I have uploaded three vids now with old VMuTube 1.1 method and last two got quickly re-encoded, however the first one still untouched (7 hours now). Nothing different about it as far as I can tell. I think some just slip through sometimes.


Use Hexalter after processing with VMuTuve ... I notices there's a slight changes on video quality after 14hrs I uploaded the video but audio still untouched (in STEREO-not sure if my footage already being process by YOUTUBE but definitely there's changes on video quality)

Will wait for the video to pass 24hrs test..

For still test image using IMUTUBE with hexalter also in "great shape"....till now.



Golgota posted 2008 Jun 18 07:27
Hi guys, my uploaded video report:

VMuTube 1.1 Production

Death Race Trailer. I resize it into 480x360 & do the same thing (VMuTube 1.1)
Got encoded after 2mins Uploaded.. :'(((

http://youtube.com/watch?v=pB8PrgcXq2Q



bayme posted 2008 Jun 18 09:14
Golgota :
VMuTube 1.1 Production

Got encoded after 2mins Uploaded.. :'(((

Why are you all trying this still? It has been known for ages now.
There's another method that bypasses the re-encoding of your upload:
http://forum.videohelp.com/topic336882-630.html



frifox posted 2008 Jun 18 09:19
note to everyone:
plz dont report your video here as HQ unless it stayed HQ for more than 24hrs! patience my friends, patience :)


going back to topic, i think hex-editing the resolution is not required anymore. there is a better way :)
but before i start blabbering about this "better" way, first i'll see if the videos uploaded with that "new" way stay HQ for more than 24hrs... so far they stayed HQ for 7hrs, but i'm pretty confident that it will work in the long run too...



FoxLocked posted 2008 Jun 18 11:08
bayme :
Golgota :
VMuTube 1.1 Production

Got encoded after 2mins Uploaded.. :'(((

Why are you all trying this still? It has been known for ages now.
There's another method that bypasses the re-encoding of your upload:
http://forum.videohelp.com/topic336882-630.html


I dont see any method



frifox posted 2008 Jun 18 11:59
FoxLocked :

I dont see any method


harmster :
Thanks All especially to the "Expert". :) .information here are "MORE THAN ENOUGH" for me to alter the old version IMUTUBE and VMUTUBE...and it works...



if you dont see it, then you didnt read the topic close enough :)



FoxLocked posted 2008 Jun 18 12:02
frifox :
FoxLocked :

I dont see any method


harmster :
Thanks All especially to the "Expert". :) .information here are "MORE THAN ENOUGH" for me to alter the old version IMUTUBE and VMUTUBE...and it works...



if you dont see it, then you didnt read the topic close enough :)


Is it this???

it seems that youtube leaves FLV's with resolution less than 16x16 in original format without converting to LQ... so far all of my 16x12 uploads stayed HQ

that got me thinking, how does youtube check for resolution? after some experimenting i found that youtube apparently checks first video packet's resolution and takes that as your video's resolution.

by simply faking first video packet's resolution to something like 16x12, youtube will leave your uploads in HQ... which is pretty much what babymammoth's w16 method is all about =D

EXAMPLE: http://youtube.com/watch?v=_S0-mhiTd9I


PS: video packet's resolution is a set of 4 hex-pairs, if format "WW WW HH HH"... its the 16th hex pair after the 09 (start of the video packet)....

PS: 16x12 would be "08 06 11 1F"



frifox posted 2008 Jun 18 13:08
give it a shot and try it :) experimenting is the best way to lean :D


FoxLocked posted 2008 Jun 18 13:56
Ok So umm... im a noob here and i don't understand this. What program are you guys using to convert your video to flv??


rajman posted 2008 Jun 18 14:39
Frifox how u get the thumbnail correct on this video of yours?
http://www.youtube.com/watch?v=VqYOcUzhfVk



frifox posted 2008 Jun 18 14:59
luck during experiments?


rajman posted 2008 Jun 18 15:03
Ohh ok, but what did you do if you do mind saying? Cant still be the 16x12 thumbnail can it? If not what did you do?


frifox posted 2008 Jun 18 15:06
something along the lines of:
http://www.youtube.com/watch?v=SR6WvJNlKQ8



bayme posted 2008 Jun 18 15:23
FoxLocked :
Ok So umm... im a noob here and i don't understand this. What program are you guys using to convert your video to flv??
This has already been discussed extensively in these threads:
http://forum.videohelp.com/topic336882.html
http://forum.videohelp.com/topic345987.html
http://forum.videohelp.com/topic346256.html
http://forum.videohelp.com/topic351166.html
I highly recommend reading these before repeating questions that have been answered time and again by many others before you.



FoxLocked posted 2008 Jun 18 16:08
Im downloading Super and the free converter.

EDITED: Super Doesn't convert videos to FLV. The free Converter Doesn't Work



rajman posted 2008 Jun 18 16:39
frifox :
something along the lines of:
http://www.youtube.com/watch?v=SR6WvJNlKQ8

That was awesome, never knew you can merge different frame rate FLV's together XD Can you provide any help on how to get the thumbnail right? Ive got the HQ vids working fine but the thumbail is a pain in the backside and I cant get around it! I know about the 16x12 in the top-left corner but we just get pixelated thumbnails =( And this vid: http://www.youtube.com/watch?v=VqYOcUzhfVk Has a normal thumbnail, how did you do that one so right?



frifox posted 2008 Jun 18 16:48
i think i know what i did... its quite simple trick actually :) i'll test it more to see if videos stay HQ for at least 24hrs... and if it does, then i'll see if its worth sharing or not :D


bayme posted 2008 Jun 18 17:26
FoxLocked :
Super Doesn't convert videos to FLV. The free Converter Doesn't Work
None of what you write makes any sense. SUPER does convert to FLV. What "free Converter" are you writing about? Like I wrote earlier: Read those threads. Entirely.


FoxLocked posted 2008 Jun 18 17:34
Any video converter doesn't work.
and now i see that super DOES convert to flv.....it said swf and i didnt know that it was flv. ok thanks for your help with that



Golgota posted 2008 Jun 18 19:15
frifox :
i think i know what i did... its quite simple trick actually :) i'll test it more to see if videos stay HQ for at least 24hrs... and if it does, then i'll see if its worth sharing or not :D


:'(



FoxLocked posted 2008 Jun 18 21:12
Umm do i have to hex edit to make my video 16x12 and upload it to youtube and make it HQ? or can i use sony vegas and render my video to 16x12 and then upload it? cuz im not getting this.


frifox posted 2008 Jun 18 21:16
... nevermind


FoxLocked posted 2008 Jun 18 21:26
nevermind what?!??!?


frifox posted 2008 Jun 18 21:28
was gonna cuss you out for not understanding the concept and not reading this topic thoroughly, because if you did then it would be apparent to you as to what you should hex/not-hex/etc.... but then decided not to flame :)

no offense, but i see that this topic is too advanced for you and you should do some research/studying before jumping into this....



FoxLocked posted 2008 Jun 18 21:36
I just wanted to try to Upload High quality vids.
Maybe i should start reading from Page 1 to the end of the topic.
(im too lazy to read the large information that you guys are giving)



ibananapandas posted 2008 Jun 18 21:41
Did I do this correctly? I'm not sure not how long it will last though.
http://youtube.com/watch?v=jguQtq-wo3U



Golgota posted 2008 Jun 18 21:54
ibananapandas :
Did I do this correctly? I'm not sure not how long it will last though.
http://youtube.com/watch?v=jguQtq-wo3U


yaa.. i think u did it.. and fri, what is ur opinion bout it?



frifox posted 2008 Jun 18 21:56
that video, "Added: 1 hour ago"

so i would wait for at least 12hrs (better, 24hrs) before drawing any conclusions....



harmster posted 2008 Jun 18 22:37
All except the "experts one" - there's no way of getting "something" in the easiest way and no exception for this one-sometimes ppl get lucky finding things and sometimes we need to dig down the hole.. for myself if i'm really interested in achieving my goal i will try many ways and in this case experimenting with all the information given by the "expert one"-it's not easy to achieve it but what they did here is more than just a clue for us - just like a highway...you only need to read and googling for other info's based on their info's and change something little bit to adopt the situation.

My humble opinion just try to drive along the highway that they already provide..before they getting fed-up to expose it and discuss it in the future due to some of the readers here "like to ask more then experimenting" :roll: .. sorry in advance for my words here.. (12 hrs for me even in the office - uploading and checking for my video+audio experiments to works and the result..."Yeah I'm very satisfied and it almost reaching 24 hrs") :P

p/s



ibananapandas posted 2008 Jun 18 22:43
Ok it just got ****** up.


mikejf posted 2008 Jun 18 22:49
well I posted a vid using old method yesterday, it's been 27 hours, still untouched. This was old method- padded black to 10:59 in vegas, render as H246, convert with VMuTube 1.1

I posted two more using old method but they got re-encoded. Maybe it just slipped by the encoding, but I am testing it again in a different account to see what happens.



harmster posted 2008 Jun 18 22:51
to those readers who always like to ask and not doing their homework..just pm me rather then keep repeating the same question which all the answers already here somewhere in the forum.

I will provide more "nearer" clues not "clearer" clues - just for you guys to work harder :D ....hehehehe

Please please please don't get mad with me...here.... just want to avoid the "expert one" getting fed-up to discuss their secret further - you all agree with me here???? :P



frifox posted 2008 Jun 18 22:57
right on, harmster :)

i'm here just to share what i've found, and hopefully see what others have found too... people who just want to "use" our findings for their own purposes, and keep asking for help, make me dont want to come back anymore.



FoxLocked posted 2008 Jun 18 23:27
Sorry, i won't ask help that much


FoxLocked posted 2008 Jun 18 23:37
:P


ThePapaX posted 2008 Jun 19 01:18
frifox :
right on, harmster :)

i'm here just to share what i've found, and hopefully see what others have found too... people who just want to "use" our findings for their own purposes, and keep asking for help, make me dont want to come back anymore.


Yeah i agree (100%)ł... I swear i read the whole post from page 10 to 19 (in that time), when I realized i needed help to recover my stereo again, skipping some post that were obsolete/not working anymore, BUT i already knew about FLV conversion, and HQ settings to achieve stereo and nice video below 350kbps, without any hacking of course... I've been working with FFMPEG for a while, Lame and Flvtool2.. i tested everything BEFORE really asking for orientation!
And i guess, everybody here should do their Own research and their own test... Before Asking lazy/stupid question, which could cause people like us (enthusiast) may have never get access or orientation about what we should, or what we are suppossed to find out what to do to recover the quality in our vids...
So people should take some time and READ first! before asking somethings like "hey frifox: what FLV means?!"



bayme posted 2008 Jun 19 03:04
FoxLocked :
Any video converter doesn't work.
Any Video Converter does work.

FoxLocked :
if you add "&fmt=18" on a MP4 Video it will not work.
Could you please stop posting bullcrap off-topic statements like these, and stop using entire posts for just one line of unexplained lazy ass nonsense?

FoxLocked :
(im too lazy to read the large information that you guys are giving)
If you're "too lazy" then stop bothering us until your learn how not to be "too lazy".


mcsbliss posted 2008 Jun 19 07:46
hey, i've been lurking this forum ever since i saw fri's youtube page and i didn't even know half the things you guys were talking about (still don't lol) but after tons of experimenting and failures i think i finally got it?

http://www.youtube.com/watch?v=yli38uHCnvU

i don't know though. it was a pretty simple method which makes me wonder if it'll even stay hq. but it passed the 24 test. still trying to figure out how to get hd motion vids up, but i'm patient.



Golgota posted 2008 Jun 19 07:56
mikejf :
well I posted a vid using old method yesterday, it's been 27 hours, still untouched. This was old method- padded black to 10:59 in vegas, render as H246, convert with VMuTube 1.1

I posted two more using old method but they got re-encoded. Maybe it just slipped by the encoding, but I am testing it again in a different account to see what happens.



this is mine: http://youtube.com/watch?v=pB8PrgcXq2Q
also using VMuTube 1.1 but it got encoded after 2mins uploaded :'(



frifox posted 2008 Jun 19 08:30
mcsbliss :
hey, i've been lurking this forum ever since i saw fri's youtube page and i didn't even know half the things you guys were talking about (still don't lol) but after tons of experimenting and failures i think i finally got it?

http://www.youtube.com/watch?v=yli38uHCnvU

i don't know though. it was a pretty simple method which makes me wonder if it'll even stay hq. but it passed the 24 test. still trying to figure out how to get hd motion vids up, but i'm patient.

as i said in the video comment, can you upload some more examples using same method? that would show that this is not just luck and that it actually works every time....

btw, here's i had something weird happen yesterday.... one of my uploaded tampered FLV's managed to stay HQ for 26 HOURS! i checked it @ 24hr mark and i thought i found a third working method. got all hyped up and stuff, but then couple hours after that, to my disappointment, i saw that it went LQ :(



mcsbliss posted 2008 Jun 19 08:33
frifox :

as i said in the video comment, can you upload some more examples using same method? that would show that this is not just luck and that it actually works every time....


will do sir! i actually had two but one got taken down due to copyright lol.

edit: fuck lol.

frifox :

btw, here's i had something weird happen yesterday.... one of my uploaded tampered FLV's managed to stay HQ for 26 HOURS! i checked it @ 24hr mark and i thought i found a third working method. got all hyped up and stuff, but then couple hours after that, to my disappointment, i saw that it went LQ :(


that's exactly what happened to me just now. i'm not giving up.



FoxLocked posted 2008 Jun 19 11:18
bayme :
FoxLocked :
Any video converter doesn't work.
Any Video Converter does work.

FoxLocked :
if you add "&fmt=18" on a MP4 Video it will not work.
Could you please stop posting bullcrap off-topic statements like these, and stop using entire posts for just one line of unexplained lazy ass nonsense?

FoxLocked :
(im too lazy to read the large information that you guys are giving)
If you're "too lazy" then stop bothering us until your learn how not to be "too lazy".


Shut up. Any video converter fails when i try to convert my video to FLV.
OHH and look i just learned not to be lazy. And half of the information about uploading HQ videos is in here so i won't be needing much help.

AND anyways i can get the WATCH IN HIGH QUALITY button on my videos so i think i won't be needing to upload my video in HD and using hacks.
and you shut ur lazy shit! (hehe jk)

You are in breach of the forum rules and are being issued with a formal warning. Please try and behave. / Moderator Baldrick



rajman posted 2008 Jun 19 11:34
FoxLocked :
bayme :
FoxLocked :
Any video converter doesn't work.
Any Video Converter does work.

FoxLocked :
if you add "&fmt=18" on a MP4 Video it will not work.
Could you please stop posting bullcrap off-topic statements like these, and stop using entire posts for just one line of unexplained lazy ass nonsense?

FoxLocked :
(im too lazy to read the large information that you guys are giving)
If you're "too lazy" then stop bothering us until your learn how not to be "too lazy".


Shut up. Any video converter fails when i try to convert my video to FLV.
OHH and look i just learned not to be lazy. And half of the information about uploading HQ videos is in here so i won't be needing much help.

AND anyways i can get the WATCH IN HIGH QUALITY button on my videos so i think i won't be needing to upload my video in HD and using hacks.
and you shut ur lazy shit! (hehe jk)


This is the problem of newcomers coming to this forum :evil:



harmster posted 2008 Jun 19 12:06
Patient My Friend Patient...<--- got it somewhere from this forum hehehe....

anyway Mr FoxLock...

U've the rite 2 say anything - You are forum member, Free to Write, Free to do anything within the limit BUT 1 thing U'll need to remember - We'r also forum members who try to learn new things and keep updating our selves with knowledges and are ALSO

FREE 2 IGNORE YOU.... :) :oops:

Have fun with "Watch In High Quality" button...I admit it's a very nice button to "CLICK" and "PLAY" with....



astin posted 2008 Jun 19 12:23
I try the new method, and seems work.

video usually got re-encoded after 10 minutes, so even if this method can only last several hours,
stills think it's a good step forward. :lol:



frifox posted 2008 Jun 19 12:40
wow, now its 2 of my videos that got converted to LQ after more than 24hrs of staying HQ... :S

i guess dynamic resolution and dynamic frame-rate reeeeeally prolongs the conversion to LQ :)



mikejf posted 2008 Jun 19 12:59
same here, appears you have to wait 48 hours now, my vid that was untouched for 27 hours finally got re-encoded this morning


frifox posted 2008 Jun 19 13:05
i guess youtube decided to cheat, make our waiting time for hq test results muuuch longer, and therefore giving them more time to patch the holes we found :)


SpongeFreak52 posted 2008 Jun 19 19:16
I need to stay more active on this topic.

I just found out that the "new" VMuTube method doesn't work anymore. Didn't last long. =(
Gonna give the 16x12 method a shot.



frifox posted 2008 Jun 19 20:20
ok, i made 4 videos with:
- 1st frame - 480x360@25fps
- 2nd frame - 16x12@25fps
- 3rd frame - actual 480x360 video @ 10fps

all of them got converted, BUT they all stayed HQ for waaaay longer than the other test vids :)

times before going LQ:
  • test vid 1 - 24hrs
  • test vid 2 - 17hrs
  • test vid 3 - 26hrs
  • test vid 4 - 28hrs


other test vids which had first frame of 16x12 stayed HQ :) so this "dynamic resolution" / "w16" method works ONLY if the first frame is very small, like 16x12 or so... and that what makes the thumbnail so pixelated (16x12)

NOTE: i found first frame of 19x14 to work as well :)



SpongeFreak52 posted 2008 Jun 19 20:38
Can we get an "all-in-one" post to explain exactly how this trick is supposed to work?

I'm encoding FLVs with ffmpeg, but when I use the hexalter script that frifox gave, it doesn't do much different than having some gray blotches appear at the beginning.



frifox posted 2008 Jun 19 20:48
if you are bad at HEX-ing, here's an alternative (which also does NOT produce gray-artifacts hehe):

  • Make 16x12 black PNG image in Photoshop
  • Save it as "16x12.png" to folder where FFMPEG resides
  • Open CMD, and browse to the folder with FFMPEG and 16x12.png
  • Run this command:
    ffmpeg -loop_input -f image2 -i 16x12.png -vcodec flv -r 25 -g 1 -t .04 -sameq pad-16x12.flv
    *** the code above, will make a 16x12 FLV video lasting only 1 frame (40miliseconds)
  • combina that one 16x12-frame FLV video to your actual FLV video:
    FlvBind uTubeVideo-patched.flv pad-16x12.flv uTubeVideo.flv
    *** for the command above, you'll need "FlvBind" program... google for it and you'll find it, first link
  • upload the produced "uTubeVideo-patched.flv" video
  • uploaded video will have pixelated thumbnail, but it will stay HQ :)



SpongeFreak52 posted 2008 Jun 19 21:10
Alright frifox! Thank you very much. I never was one for hexing. Only seems to work for me on Nintendo DS ROMs. xD

Anyhoo, I'll give that a try and let you know how it goes.



yeoz posted 2008 Jun 19 21:22
frifox :
FlvBind uTubeVideo-patched.flv pad-16x12.flv uTubeVideo.flv
*** for the command above, you'll need "FlvBind" program... google for it and you'll find it, first link
Oh. I was already using flvmerge for something like this. Started using flvmerge back when the padding-trick still worked to pad stuff with smaller 8x8 frames instead of full frames. Wonder if flvmerge will work the same way that flvbind does. (Although, I usually run the entire file through a direct-stream-copy using mencoder anyway... and, i still had corrupt thumbnails when I did that.)

Edit: just tried the above, but, using mencoder + flvmerge instead of ffmpeg + flvbind and got a "Failed (unable to convert video file)" error from youtube. :(



Golgota posted 2008 Jun 19 21:25
frifox :
if you are bad at HEX-ing, here's an alternative (which also does NOT produce gray-artifacts hehe):

  • Make 16x12 black PNG image in Photoshop
  • Save it as "16x12.png" to folder where FFMPEG resides
  • Open CMD, and browse to the folder with FFMPEG and 16x12.png
  • Run this command:
    ffmpeg -loop_input -f image2 -i 16x12.png -vcodec flv -r 25 -g 1 -t .04 -sameq pad-16x12.flv
    *** the code above, will make a 16x12 FLV video lasting only 1 frame (40miliseconds)
  • combina that one 16x12-frame FLV video to your actual FLV video:
    FlvBind uTubeVideo-patched.flv pad-16x12.flv uTubeVideo.flv
    *** for the command above, you'll need "FlvBind" program... google for it and you'll find it, first link
  • upload the produced "uTubeVideo-patched.flv" video
  • uploaded video will have pixelated thumbnail, but it will stay HQ :)



okay, i get u Fri, but how bout with 480x360 png? maybe for this one i need to HEX it right??



si_edgey posted 2008 Jun 19 21:51
Fri...you are a gentleman and a scholar. Thank you so much for sharing your bountiful knowledge! I am finding that when I Flvbind my two videos together I am left with no audio...does this software support keeping the audio stream of the original video?


Golgota posted 2008 Jun 19 22:10
http://youtube.com/watch?v=d49nXpw1tKg

Fri, what re the code to make the full png fully appear?



frifox posted 2008 Jun 19 22:14
thumbnail is actually a 19x14 icon on top-left in the middle of the video...
i generate it by feeding this AVISynth script through FFMPEG:


AVISynth Script (for making "PNG+MP3" kind of videos):
:
# SCRIPT VARIABLES #
audiosource="audio.mp3"
videosource="video.png"
framerate=1
thumbduration=6

# SET AUDIO/VIDEO #
audio1 = directshowsource(audiosource)
duration1 = audio1.Audiolength / audio1.Audiorate
video1 = ImageSource(videosource, end=duration1, fps=framerate).ConvertToRGB32

# ADD MINI THUMBNAIL #
duration2 = (duration1 - thumbduration) / 2
thumb1 = imagesource(videosource, end=thumbduration, fps=framerate).ConvertToRGB32.lanczos4Resize(19,14)
thumb2 = blankclip(thumb1, length=duration2, color=$000000)
thumb3 = blankclip(thumb1, length=duration2, color=$000000)
thumb4 = thumb2 + thumb1 + thumb3
video2=Layer(video1, thumb4)

# RETURN FINAL VIDEO #
return(video2)


if you dont know how to use AviSynth, just use Sony Vegas or any other tool to add the small 19x14 thumbnail-icon to your video...



SmashKing posted 2008 Jun 19 22:46
I've JUST uploaded an HQ Video using IMuTube:

http://www.youtube.com/watch?v=RgCbYRNSEzY

Let's see how long this lasts.

P.S: I used the 16x12 trick. The thumbnail isn't pixelated. Not yet anyway.



frifox posted 2008 Jun 19 22:47
why dont u just wait 24hrs and if its still hq, THEN post the link here?


melpaik posted 2008 Jun 19 22:54
Hi, i'm not completely new to this but I really dont understand most of what everyone is saying.
Is it possible to tell me where to read to understand, would I understand if I read this whole topic. I want to experiment with the videos with hexing and other things, but all I know is the vmutube method with vegas.
Thanks.



SpongeFreak52 posted 2008 Jun 19 23:14
Is the FLV that's been combined with the 16x12 PNG supposed to be significantly smaller than the normal FLV? (27MB > 18MB)

And melpaik, exactly what are you not getting? Try reading Frifox's little step-by-step a little higher on this page.



melpaik posted 2008 Jun 19 23:19
SpongeFreak52 :
Is the FLV that's been combined with the 16x12 PNG supposed to be significantly smaller than the normal FLV? (27MB > 18MB)

And melpaik, exactly what are you not getting? Try reading Frifox's little step-by-step a little higher on this page.


Thanks, i'll try reading his steps more carefully.



SpongeFreak52 posted 2008 Jun 19 23:25
I'll be darned. The 16x12 method is working so far.

http://www.youtube.com/watch?v=QP7beDK86l8

But it has a shockingly low bitrate (236kbps) for 640x480 resolution. Why is this?



mikejf posted 2008 Jun 19 23:58
frifox :
if you are bad at HEX-ing, here's an alternative (which also does NOT produce gray-artifacts hehe):

  • Make 16x12 black PNG image in Photoshop
  • Save it as "16x12.png" to folder where FFMPEG resides
  • Open CMD, and browse to the folder with FFMPEG and 16x12.png
  • Run this command:
    ffmpeg -loop_input -f image2 -i 16x12.png -vcodec flv -r 25 -g 1 -t .04 -sameq pad-16x12.flv
    *** the code above, will make a 16x12 FLV video lasting only 1 frame (40miliseconds)
  • combina that one 16x12-frame FLV video to your actual FLV video:
    FlvBind uTubeVideo-patched.flv pad-16x12.flv uTubeVideo.flv
    *** for the command above, you'll need "FlvBind" program... google for it and you'll find it, first link
  • upload the produced "uTubeVideo-patched.flv" video
  • uploaded video will have pixelated thumbnail, but it will stay HQ :)


firfox, a few questions about this method:

1. will the 16x12.png 1 frame flv be joined at the front or at the end of the main flv?


2. does the main flv (when video) need any special processing, or can it be created in any flv maker? what specs?

3. when hex editing the resolution to something very small like 16x12, which I think you said also works, have you also tried a extremely large false resolution like 9999x9999?



frifox posted 2008 Jun 20 00:13
mikejf :
1. will the 16x12.png 1 frame flv be joined at the front or at the end of the main flv?


2. does the main flv (when video) need any special processing, or can it be created in any flv maker? what specs?

3. when hex editing the resolution to something very small like 16x12, which I think you said also works, have you also tried a extremely large false resolution like 9999x9999?


1. in the beginning

2. no, but i make my FLV's with my imutube/vmutube script

3. no i havent tried that. try it and report back :)



bayme posted 2008 Jun 20 02:58
frifox :
works ONLY if the first frame is very small, like 16x12 or so... and that what makes the thumbnail so pixelated (16x12)

NOTE: i found first frame of 19x14 to work as well :)
I wouldn't be surprised if the limit is at 100x100, i.e. make sure your first frame-size requires only 2 digits in pixels for width and height. Currently miss the time to test this.


NorskTorsk posted 2008 Jun 20 06:39
HI, I also use FLVMerge. Its so simple:

Command: FLVMerge video1.flv video2.flv

Thats it.

Oh, and video1.flv is more than one frame. Like 4 seconds with a sound effect added. res 16x12.
video2.flv is encoded with VMutube 1.1.

http://www.youtube.com/watch?v=3I2uXIBkK9Q

edit: frifox, have you tried using flvtool2 to change metadata width and height back from 16x12 to 480x360 ?



SmashKing posted 2008 Jun 20 07:24
frifox :
why dont u just wait 24hrs and if its still hq, THEN post the link here?


Sorry, I forgot. I was just excited that I got it working. Won't happen again. :/



SpongeFreak52 posted 2008 Jun 20 09:54
Hey frifox, the script you provided for making the 16x12 FLV, I always get the error that .04 is not a valid time measurement, so I have to use a full second. Any reason why it would do this?

It's not a problem at all, only 1 second, I'm just curious.



frifox posted 2008 Jun 20 11:16
NorskTorsk :
frifox, have you tried using flvtool2 to change metadata width and height back from 16x12 to 480x360 ?

i had that idea for a while but havent gotten to test it... did you try it?

EDIT: tried padding the start with 16x12 and hexing it back to 480x360 - didnt work... uploaded 2 test vids and one of them went LQ after 1hr



astin posted 2008 Jun 20 14:08
my hexalter video stays HQ more than 24 hrs. :)
some green noise in the beginning.

then I try the FlvBind tonight. all videos stay more than one hour.



SmashKing posted 2008 Jun 20 14:50
Sorry for being annoying, but I can't find how to find Hex codes for time, resolution, and such. Like, why is 0A 10 00 10:59?

Thanks :)



mikejf posted 2008 Jun 20 15:44
SmashKing :
Sorry for being annoying, but I can't find how to find Hex codes for time, resolution, and such. Like, why is 0A 10 00 10:59?

Thanks :)


use a tool that converts between hex, decimal, etc. I use a free tool called Quick Number Base Converter:

http://www.sb-software.com/baseconverter/



mikejf posted 2008 Jun 20 15:53
example, using Quick Number Base Converter, I enter 0A1000 in the hex box and it displays the decimal as:

659456

video runs in 100th/secs so 659456/60=10.990933 minutes



SpongeFreak52 posted 2008 Jun 20 16:04
Put up a video yesterday using the FLVBind tool, and it hasn't been degraded in quality. It's about 1:00, and it looks fantastic. Better yet, it's not even 300kbps! I think this tool is far more efficient than any other.


babymammoth posted 2008 Jun 20 18:49
mikejf :
example, using Quick Number Base Converter, I enter 0A1000 in the hex box and it displays the decimal as:

659456

video runs in 100th/secs so 659456/60=10.990933 minutes


if you are win user, run calc and switch to advanced mode, this do the same (Hex>Dec>Oct>Bin)



Golgota posted 2008 Jun 20 20:52
:

AVISynth Script (for making "PNG+MP3" kind of videos):
:
# SCRIPT VARIABLES #
audiosource="audio.mp3"
videosource="video.png"
framerate=1
thumbduration=6

# SET AUDIO/VIDEO #
audio1 = directshowsource(audiosource)
duration1 = audio1.Audiolength / audio1.Audiorate
video1 = ImageSource(videosource, end=duration1, fps=framerate).ConvertToRGB32

# ADD MINI THUMBNAIL #
duration2 = (duration1 - thumbduration) / 2
thumb1 = imagesource(videosource, end=thumbduration, fps=framerate).ConvertToRGB32.lanczos4Resize(19,14)
thumb2 = blankclip(thumb1, length=duration2, color=$000000)
thumb3 = blankclip(thumb1, length=duration2, color=$000000)
thumb4 = thumb2 + thumb1 + thumb3
video2=Layer(video1, thumb4)

# RETURN FINAL VIDEO #
return(video2)





Fri, and the code for running through FFMPEG? sorry i'm learning a bit bout FFMPEG command now...



SmashKing posted 2008 Jun 21 00:01
Hey, can I have all of your Youtube Account names? I wanna subscribe to you all to see the interesting things you're uploading :) Mine is SmashKing5000


harmster posted 2008 Jun 21 00:55
Current conclusion until this moment:

1. Video+Audio must be (<) below 350 kbps
2. Frame 16x12

working great..last long. My Vids are over 48hrs (will publish link if requested as i'm only publishing normal video clips & audio)

Seems like Utube is playing around with the experts - closing one hole and opening others for you guys to find ... until they start to convert anything we upload or just reject it due to error as i noticed some of the "hack" video download from Utube can't be play locally - error using realplayer but Play with 16x12 frame using VLC.



melpaik posted 2008 Jun 21 01:11
Sorry for bothering but what is 16x16 in a video


harmster posted 2008 Jun 21 01:18
melpaik :
Sorry for bothering but what is 16x16 in a video


Just take ur next step by reading all the post from 1st page or at least starting from few pages behind+experimenting with all the tutorial in the previous post then u will understand



melpaik posted 2008 Jun 21 01:23
harmster :
melpaik :
Sorry for bothering but what is 16x16 in a video


Just take ur next step by reading all the post from 1st page or at least starting from few pages behind+experimenting with all the tutorial in the previous post then u will understand


okay, i'll read from page 1



mikejf posted 2008 Jun 21 01:42
harmster :
Current conclusion until this moment:

1. Video+Audio must be (<) below 350 kbps
2. Frame 16x12

working great..last long. My Vids are over 48hrs (will publish link if requested as i'm only publishing normal video clips & audio)

Seems like Utube is playing around with the experts - closing one hole and opening others for you guys to find ... until they start to convert anything we upload or just reject it due to error as i noticed some of the "hack" video download from Utube can't be play locally - error using realplayer but Play with 16x12 frame using VLC.


thanks for report, two questions:

1. if you pad the video to 10:59 will it playback in higher bit rate like we want? or does it do nothing?

2. thumbnails pixilated?

Seems the only problem now is the thumbnail. we got to brainstorm (and do lots of testing)!

As for how YT is rejecting vids, it's apparent that encoding goes through several steps, just like firfox's VMuTube, and they started detecting errors during encoding and subroutine those out. It seems the 16x12 method does not cause an error during encoding, which is even better, because the encoding finishes with no error, and is not flagged, yet video is untouched. The encoder is proably simply unable to encode at such low resolution. My guess of what's happening. However, it's easy to detect, just requires YT to write an extra subroutine with an initial read of the resolution and if below a set resolution, it can be flagged to be rejected.



mcsbliss posted 2008 Jun 21 04:52
mikejf :

1. if you pad the video to 10:59 will it playback in higher bit rate like we want? or does it do nothing?


i want to know this too. i'm also wondering if a time trick is still around? if so, how? D: i think i've gotten down still images, for now... if youtube doesn't infect it with it's std's. i'll wait 29 more hours till i'm 99.9% sure lol.



vhelp posted 2008 Jun 21 08:15
I suspect that the reason why teh up/down nonsense of the 'quality' encodes is partly due to
what (or, when) they encode to "each" format -- ie, today they encode first to FLV, and then
maybe 24/30 hours later, they encode to MP4. Thus, when you first upload your "hacked"
vides to YT, you might notice the HQ picutre at first, but then when they go through their
second (encoding) phase to MP4, that is when the loss of quality is realized.

Thus, that partly explains the up/down/rollercoster nonsnese of HQ vides -- some in as long as
24 hours, while in others its within a few minutes :dizzy:

-vhelp 4722



vhelp posted 2008 Jun 21 08:29
How to detect wheather or not your vids are in HQ or are in the Que to be encoded or are
finally in LQ..

(While I was able to, I did some thinking and realization sweeps and came to certain conclusions.
I notice a few things while reviewing these threads as they were made available, which is tipically
every 10 minutes or (hay, that 10 minutes thing.. na, never mind) :lol: )

Anyways.

Its easy to detect this - (without having to wait the full 24 hrs) - do this:

Imediately go to keepvid (or the other one) and D/L *both* or all vides available, then,
wait an hour or less or whatever you feel is good, (its not important, but as long as you
obtain your freshly encoded vids as soon as you upload (when they are aready) for the
comparison) and paste you link in again and see what comes up.

Take notice of the size that is indicated. That's your first clue. Then, in the next round,
when you go through these steps again, take note of the video size. This time, if its a
little or more smaller, then you know that YT re-encoded your vids.

Other times, however, the "High Quality" vids are no longer available (you know, the ones
that you first noticed that were HQ. I found that when those no longer come
up, that this means they are gone and you now only have the YT (FLV and MP4) vids.
I think that if you don't see the vids (ie, when the keepvid or other link (I forget which one)
throws an "not found" or "no longer availble" error, that this is another indictor that the
initial HQ vids are no longer available.

I've been using this technique for the past few days. And it seems to be working well, as
an indicator for me.

PS: I would go on to say that this is a time-saver step rather than going to YT and d/l'ing
the whole video.. its unecessary.

-vhelp 4723



SpongeFreak52 posted 2008 Jun 21 10:07
Excellent tip, vhelp!

And guys, it DOES seem like padding still has a great effect on the overall quality of your video. I've started to skip the normal FFMPEG step, and use VMuTube instead, and the quality is far better when you put the fully padded video into VMuTube.

I got rid of the FFMPEG result video, but here's one I got from mixing VMuTube and the 16x12 technique:

http://www.youtube.com/watch?v=BbyjoGPCoko

Using FFMPEG, everything that had a lot of motion was highly pixelated, and looked awful. And actually, the bitrate on the link's video is still under 300kbps, even though it's 640x480. Not bad!



bayme posted 2008 Jun 21 11:01
mikejf :
harmster :
2. Frame 16x12

2. thumbnails pixilated?

Seems the only problem now is the thumbnail. we got to brainstorm (and do lots of testing)!
Try uploading 96x72 instead. I wouldn't be surprised if that's the barrier for this trick. And with that resolution you can have a decent thumb.


SpongeFreak52 posted 2008 Jun 21 11:23
Except if you're uploading a widescreen video of course. =P


cjwcorp posted 2008 Jun 21 11:32
How do you make Frame 16X12?
What program do you have to use?

Do you guys mean make the RESOLUTION 16X12?

Please email me at cjwcorp@gmail.com

I need to get the new HQ Hack down.



bayme posted 2008 Jun 21 12:31
SpongeFreak52 :
Except if you're uploading a widescreen video of course. =P
Actually, no. You should always upload 4:3 AR to YouTube.

vhelp :
How to detect wheather or not your vids are in HQ or are in the Que to be encoded or are
finally in LQ..

I would go on to say that this is a time-saver step rather than going to YT and d/l'ing
the whole video.. its unecessary.
I hear it in the fist few seconds because at LQ it's mono, so why bother doing all this?


mikejf posted 2008 Jun 21 13:10
bayme :
I hear it in the fist few seconds because at LQ it's mono, so why bother doing all this?


I think Vhelp was saying you can tell if your video is still in YT queue to be encoded. I found the same thing with clipnabber- if your vid is still untouched after 24 hours you might be wondering if it's actually passed the encoder, I found that on an untouched vid clipnabber can't download the vid, and instead it returns a url path that has encoding instructions for YT's encoder.



vhelp posted 2008 Jun 21 14:26
Yeah, something like, what mikejf said.

If the video is in que it might be "unavailable" at the time you paste url link into keepvid, and
this is prob the reason why you get a unailable screen in these downloaders.

So, even if you can get the video untouched at first, and depending on the timing that
its heading for the que/being processed, you might get the unavailable screen. This is
your indicator that your video is in que (unavailable) or is being encoded, hence, your
indicator that your vid has been, yes, re-encoded !!

The time-saver step I was on about is there. No need to wait 24 hours or whatever time
that was suggested :)

If I could make a suggestion, (though, not that it would matter, or would it) if you encode a
video and proceed to obtain your Upload-to-YT video, keep that as your reference. Then,
when you utilize the above time-saver technique, you can gauge on wheather or not YT did
re-encode your video because things like video size will be different. And, this will serve as
your indicator for touched vs. untouched !!

Then, you can post back (as frifox) has been trying to get you all to do, rather than
constantly posting your supposivly untouched videos) links, and stake your claim and
method for posting videos on YT without it being touched !!

-vhelp 4725



SpongeFreak52 posted 2008 Jun 21 15:42
Bayme, I was referring to the fact that the black bars on top and bottom would result in the thumbnail being, well, black.


astin posted 2008 Jun 21 15:44
my file stays HQ more than two days, 480x360 20fps.

but I upload a 640x480 30fps file yesterday, today got re-encoded.



SpongeFreak52 posted 2008 Jun 21 15:48
Astin, what did you do different between the two FLVs? Or was it just the size/framerate?


NorskTorsk posted 2008 Jun 21 16:26
just to let you know: neither 96x72 or 80x60 works. if you add that, the entire video will be encoded into those resolutions. i'll update as i test more stuff

edit: not even 19x14 worked for me.



cjwcorp posted 2008 Jun 21 16:44
How do you make your videos 16x12?
I also read the 1st page, but I dont understand how you do it.

Do you make your ORIGINAL video frame 16x12? or the FLV file from VMuTube?

ARe you supposed to make the FRAME 16x12 or the RESOLUTION 16x12?

Please help me.



astin posted 2008 Jun 21 16:48
SpongeFreak52 :
Astin, what did you do different between the two FLVs? Or was it just the size/framerate?


seems that I only change those in VMuTube.

my other files which upload yesterday all stay HQ, 480x360, 20fps, 100keyframe.



cjwcorp posted 2008 Jun 21 17:21
How do you choose the thumbnail that comes out?


rajman posted 2008 Jun 21 17:38
So I tried the command Frifox gave in FFMPEG to make a 16x12.flv:
ffmpeg -loop_input -f image2 -i 16x12.png -vcodec flv -r 25 -g 1 -t .04 -sameq pad-16x12.flv

But I keep getting the message "Invalid duration specification for t: .04" Why is this?



NorskTorsk posted 2008 Jun 21 17:58
rajman :
But I keep getting the message "Invalid duration specification for t: .04" Why is this?

don't know. i got that too. changed .04 to 1 and it worked.



frifox posted 2008 Jun 21 17:59
NorskTorsk :
rajman :
But I keep getting the message "Invalid duration specification for t: .04" Why is this?

don't know. i got that too. changed .04 to 1 and it worked.

did you use FFmpeg version SVN-r10464?



rajman posted 2008 Jun 21 18:43
frifox :
NorskTorsk :
rajman :
But I keep getting the message "Invalid duration specification for t: .04" Why is this?

don't know. i got that too. changed .04 to 1 and it worked.

did you use FFmpeg version SVN-r10464?


I got the latest version from this site http://ffdshow.faireal.net/mirror/ffmpeg/

file titled 'ffmpeg.rev12665.7z'



frifox posted 2008 Jun 21 18:52
try SVN-r10464. i stole it from MeGUI :P

in my tests, i found latest builds to be quite picky. such as, muxing into flv container rarely worked without crashing, and some mp3's caused ffmpeg to freeze. there are other bugs i encountered too....

so i snatched FFMPEG from MeGUI, which didnt have those bugs... and that build was SVN-r10464 :)



rajman posted 2008 Jun 21 18:58
frifox :
try SVN-r10464. i stole it from MeGUI :P

in my tests, i found latest builds to be quite picky. such as, muxing into flv container rarely worked without crashing, and some mp3's caused ffmpeg to freeze. there are other bugs i encountered too....

so i snatched FFMPEG from MeGUI, which didnt have those bugs... and that build was SVN-r10464 :)


Thanks again Frifox, will try that



vhelp posted 2008 Jun 21 19:42
:!: ffmpeg FAQ for -t and -ss commands..

(these two are usually found together: -ss -t, so I post about both )

-t duration
Restrict the transcoded/captured video sequence to the duration specified in seconds.
hh:mm:ss[.xxx] syntax is also supported.

-ss position
Seek to given time position in seconds. hh:mm:ss[.xxx] (or, hh:mm:ss:cc) [.xxx] syntax is also supported.

EXAMPLE USAGE:

ffmpeg -ss 00:03:51.04 ... process time of 3 minutes and 51.04 seconds.
ffmpeg -t 1.0 ... gives one second duration

-vhelp 4727



babymammoth posted 2008 Jun 21 20:52
vhelp :
How to detect wheather or not your vids are in HQ or are in the Que to be encoded or are
finally in LQ..


"untouched" uploaded hq videos,

(actually they are touched, in metadata YT inserts some info:
Writing application : YouTube, Inc.
tagging application : YouTube Metadata Injector.

and corected audio, onlastsecond event etc,
file size increase about 3500 b)


so this hq files has no "Insight" statistics info
selecting this option returns error "There is no viewing data for this video."

this is quick way to check hq or not



Spritemoney posted 2008 Jun 21 21:19
the thing i hate 'bout the new HQ hack, is how the thumbnails are pixalated, There is like one way to bring HQ back
Someone has to hack youtube, and unpatch the holes, lol, or someone tries to work on youtube, and unpatch the holes without them noticing , there is always a chance of that happening :), and yes youtube re-encode it's like 2 times, if we find a way to bypass the h.264, or make it work with h.264, i know there is a way to make it work. Also like 2 months ago, there is this guy (i forgot his username, sorry) but his account got shut down by copyright, anyways he knew how to make HQ vids, except u gotta click on watch in higher quality, but they looked very good, not as good as frifox, (with that one trailer) but almost.



harmster posted 2008 Jun 21 22:28
Spritemoney :
.... he knew how to make HQ vids, except u gotta click on watch in higher quality, but they looked very good, not as good as frifox, (with that one trailer) but almost.


If you just want "Watch In Higher Quality" which will automatically added by youtube after 1-4hrs upload time just render or convert your AV to:

Video: 480x360 30fps
Audio: 160 kbps 44.1 kHz

That's enough for the TRICK.. which later you can force it to stereo by adding fmt thing.. no idea if this fmt trick still work as I'm currently using Fri.. trick (some of my vid's got credits to Fri-Fox "More Info" - if you happen to find one then you know it's me)



cjwcorp posted 2008 Jun 21 23:16
How do you open FLVBind?
When i click the executable, it just blinks and shuts off.
Where do I extract the file too?



harmster posted 2008 Jun 21 23:49
cjwcorp :
How do you open FLVBind?
When i click the executable, it just blinks and shuts off.
Where do I extract the file too?


Open in DOS mode.. Click Start -> Run -> type "CMD" hit OK button and so on...



bayme posted 2008 Jun 22 04:57
Spritemoney :
one way to bring HQ back Someone has to hack youtube, and unpatch the holes, lol, or someone tries to work on youtube, and unpatch the holes without them noticing
What I think they should do is make it optional. I proposed the idea back in 2007 but they didn't respond (I actually emailed Daniel Danciu and John Harding, but all I got was silence)..

It's not at all hard to have it made into an opt-in setting while uploading your video. That way they can simply pose the limits we should work with, for example (this is exactly how I emailed it);
:
[ ] Yes, I prefer encoding my own Flash Video, so I have total control over the audio- and video-quality of my video on YouTube.

Important: If you select this option, our players and servers require a few limitations regarding the format your file needs to be in:

- Your Flash (.FLV) file should be encoded using the Sorenson H263 specs. * Go here for more information on this.

- Your upload should not use more than 800 kbits per second of bandwidth, at playback per viewer. * Go here for more information on this.

- Maximum video resolution: 640 x 480 pixels (448 x 336, 512 x 384, 576 x 432 are recommended, go here for more information on this).

- Maximum framerate 30 fps (25, 24, 21, 20, 18, 15 fps or below are all fine).

- For correct display of your uploaded Flash Video, make sure your video has Pixel Aspect Ratio 1:1 and screen Aspect Ratio 4:3, so if your upload is widescreen (5:3) or HD (16:9) prepair your video using letterboxing, adding black bars. * Go here for more information on this.
That way if you would choose that option they can do file-checks for those things and you're done. Of course you could ask for HD quality, or ask for 3 Mbit/s bandwidth, but I personally think Google/YouTube simply cannot handle the traffic capacity required for that (yet). YouTube must already serve around 40 petabytes of data daily by now. That's an insane bill they have to pay, just the electric power use that is required for such data-transfers is mind-blowing.


45tripp posted 2008 Jun 22 09:00
rajman :
But I keep getting the message "Invalid duration specification for t: .04" Why is this?


:
-t 0.04


frifox :
try SVN-r10464. i stole it from MeGUI :P

in my tests, i found latest builds to be quite picky. such as, muxing into flv container rarely worked without crashing, and some mp3's caused ffmpeg to freeze. there are other bugs i encountered too....


which will be a celtic build.
a pretty stable release,

still, latest from here should be better:
http://arrozcru.no-ip.org/ffmpeg_builds/


tripp



SpongeFreak52 posted 2008 Jun 22 11:16
I like what you're going at, bayme. 800kbps WAS the supposed highest non-lag bitrate we found out, correct?

And really, YouTube doesn't need all of these bandwidth concerns, it's run by freaking Google! Personally, I think we should all send e-mails such as the one bayme posted. You never know what might happen. ;)



bayme posted 2008 Jun 22 11:43
Indeed. Maybe some attention helps:

John looks like a nice enough guy to me: http://johnmharding.blogspot.com/
(I see he has a cooling fan mounted in his home-server exactly like I had done it a few years ago)
And Daniel is here: http://www.danciu.ro (there may be more YT/GV flash-involved people I don't remember the names of..)

It might just be that they didn't get to read my email, because I used @youtube.com addresses at the time..



dzvero007 posted 2008 Jun 22 12:28
With a tricks, how much overal bit rate do you get ? Without any tricks, I got a video which is 905 overal bit rate (800 kbps only video) when watched in "high quality". Is it good compared to your's ? I'm very happy with the quality and there's no buffering at all.

I noticed that there are 2 different downloading speeds for YT videos. When watching in high quality, the video is downloading at 300-400 kb/s, compared to 100 kb/s in LQ. That's why I think my video in HQ does not buffer.



SpongeFreak52 posted 2008 Jun 22 13:45
With the tricks, you can get several megabits (1000 kilobits per megabit), and full resolution videos, so they look perfect even under fullscreen mode.


vhelp posted 2008 Jun 22 19:11
Hi everyone :wave:

I did not provide any links to any videos I was testing today because I am trying to observe
the rule to wait the 24 hours. However, because of the video I used in this YT scenario, I
don't think that there will be an HQ mp4 video later on. Anyway.. I appolize in advance for
anything mentioned here (below) have already been gone over and then some.

( where to begin.. there was so much exciting things going on in this YT project today :o )

So, it looks like YT 's current strategy is a 2-pass process. In the first past, it re-encodes
your video as a LQ flv and (after a little waiting around some) an HQ flv. The high quality
version is the one that results from using the &fmt=6 parameter. But this can be tricky
because of the way one might have their browsers flash "windowed" player configured to play
LQ vs. HQ videos.

It seems that in the HQ flv version, you have some room to vear a little from the standard
specs. For example, I uploaded an 7.781MB MP4 w/ 480x192 pixel dimensions and no sound
and YT took it with no problem, processed it (2hrs 20mins over dial-up) and that was the end.
This time, I used their upload facility rather than the external one as I used to use in the past.

UPLOAD VIDEO: MP4 (h264) @ 480x192, no audio
Upload was over dial-up, using their upload facility.. 2hrs, 20min to transfer video.

YT STREAMING DOWNLOADER SITE www.keepvid.com

PASS 1: resulted in a 320x240 LQ flv (no sound) video, @ 4.0MB in size.
After uploading the video, there was only one video available. That was there standard version.

PASS 2: resulted in a 480x192 HQ flv (no sound) video, @ 4.5MB in size.
After waiting another 45 mintues or so, an *new* video was available. This time, it was their
HQ version.


(Regarding the pass 2..
The pass 2 is where they do the HQ flv version for the initial or default video. It is my guess that
this is to serve as the initial standard HQ flv video when the user finishes uploading a video and
YT has something to offer them right away. Later, when the true HQ mp4 version is available, a
link or option will be made available. The hope would be that everyone will have learnt to configure
there browser for the HQ mode and the LQ would prob serve for those who want it for one reason
or another. So, the pass 2 encoding is prob for that)


In my first inquire (after I had uploaded an mp4 (h264) video) in a matter of minutes I was able to
obtain their first generated LQ flv video. You have to wait until the "processing" message is removed,
and then you should immediately attempt to obtain the video using one of the sites above. It was
4.0mb in size. After waiting around for another 45 minutes, that 4.0mb was removed from their que
list and was replaced by the HQ flv or &fmt=6 version. I would suspect that the 4.0mb is
still available to those who do not have their browser configured for the high quality video and the
4.0mb video would probably be the default video playing, unless one uses either of the &fmt=6
or &fmt=18 "undocumented" format commands as part of the url string.

Because I am fairly confident that there will be no HQ mp4 file later on, 24hrs later or what have you,
I choose to share my YT experience with you all here at this time.

Tomorrow (if time allows me) I am going to upload another video but this time I hope that it is
more in spec with obtaining an HQ mp4 video in the end. I might have a faster connection avail
at the time.. I hope. I'll share my next attempt, part 2 with you all here if all goes as planned.

Until them, get a life, everyone :lol:

-vhelp 4730



rajman posted 2008 Jun 22 21:25
Guys since Frifox has gone on vacation and not back for a couple of weeks lets try surprise him by getting the HQ hack working again....I mean with no pixelated thumbnail aswell! I think Im getting close as Ive had a video up for 20 hours and its untouched with no pixelated thumbnail XD
http://www.youtube.com/watch?v=1S7lfrKR6CU
Will have to wait 48 hours like many are saying to see if it goes untouched, but Im quite confident ive found out another way and testing that at the moment



mcsbliss posted 2008 Jun 22 22:03
^ oooh nice. &

vhelp :
Until them, get a life, everyone :lol:


rofl ): fri's ffmpeg command is working for me so far. http://www.youtube.com/watch?v=ePSr51bkUXU 48hrs and going. i used a different route for my motion vids though. http://www.youtube.com/watch?v=oT-Cx_8HGCE okay quality y/n? seems choppy for me but 20fps is the best i could do without it degrading in quality even more. i used sony vegas, avanti/ffmpeg, padding, & fri's patch. hasn't passed the 48hr test but it's been 24hrs & i checked the insight option babymammoth mentioned. all saying "there is no viewing data for this video."

btw, have a good vacation fri. haha.



cjwcorp posted 2008 Jun 22 22:30
My HD Videos are staying!
And they are more HD than ever. The only problem is the pixilated thumbnail.

Here are my videos.

http://youtube.com/watch?v=o2zlJ-dH47s

http://youtube.com/watch?v=qA_Jau-a1Ok

http://youtube.com/watch?v=iD8i5_2D3rA



Golgota posted 2008 Jun 23 08:57
Yaaa... same goes to me too, hope it would last longer. I think let us not to advertise the HQ on Youtube. (hoping that can reduce YouTube attention on the Expertist)

Here it is: W16 + VMuTube 1.1 & IMuTube 1.7


http://www.youtube.com/watch?v=m4frrPPcPDY

http://www.youtube.com/watch?v=AsWjlDd2STw



peteman posted 2008 Jun 23 11:17
ok, I did a short video (using image) with ffmpeg using the following settings:

ffmpeg -i mysong.mp3 -acodec copy -loop_input -f image2 -i 16x12.png -vcodec flv -r 1 -g 5 -sameq -shortest output.flv

Yea, this way it stays HQ, no YT compression, but the image is ridiculously small lol ... how in the earth I'm able to use a little more larger image than just 16x12?



harmster posted 2008 Jun 23 11:22
peteman :
ok, I did a short video (using image) with ffmpeg using the following settings:

ffmpeg -i mysong.mp3 -acodec copy -loop_input -f image2 -i 16x12.png -vcodec flv -r 1 -g 5 -sameq -shortest output.flv

Yea, this way it stays HQ, no YT compression, but the image is ridiculously small lol ... how in the earth I'm able to use a little more larger image than just 16x12?


Just patch or "alter" the first frame to be 16x12 or 19x14 - should do the trick.. :roll:



harmster posted 2008 Jun 23 11:35
One of my few video link that still maintain STEREO - I noticed metadata already changed by youtube.

Dont bother about this VID QUALITY as the footage was download from youtube then re-mix with new audio track + patching 1st frame with 16x12 before uploading back for the test. :lol:

Video added on 20th and 21st June:

1.http://www.youtube.com/watch?v=N8F-oc39KBw
2.http://www.youtube.com/watch?v=cL9GQlDQbe0



peteman posted 2008 Jun 23 12:36
hmm... I tried the Frifox's hexedit method (hexalter uTubeVideo.flv 0x120=0x08,0x06,0x11,0x1F ) to an ffmpeg encoded .flv video, but youtube tells me "Failed (unable to convert video file)"... is the 228th hex-pair right spot after all? Are there any other hexeditors than hexalter that lets me actually see all the hex-pairs? That way I could locate the hex-pair where to put that 08 06 11 1F...


mikejf posted 2008 Jun 23 12:37
rajman :
Guys since Frifox has gone on vacation and not back for a couple of weeks lets try surprise him by getting the HQ hack working again....I mean with no pixelated thumbnail aswell! I think Im getting close as Ive had a video up for 20 hours and its untouched with no pixelated thumbnail XD
http://www.youtube.com/watch?v=1S7lfrKR6CU
Will have to wait 48 hours like many are saying to see if it goes untouched, but Im quite confident ive found out another way and testing that at the moment


still looking ok so far, keeping a watch on it for next 24 hours. But it appears to not be in YT queue and will be skipped by encoder. thumbnail looks good. How did you do it? something about that pause at the beginning?



peteman posted 2008 Jun 23 12:40
harmster :
One of my few video link that still maintain STEREO - I noticed metadata already changed by youtube.

Dont bother about this VID QUALITY as the footage was download from youtube then re-mix with new audio track + patching 1st frame with 16x12 before uploading back for the test. :lol:

Video added on 20th and 21st June:

1.http://www.youtube.com/watch?v=N8F-oc39KBw
2.http://www.youtube.com/watch?v=cL9GQlDQbe0


Nice! Did you used hexaltering or the other one (combining 16x12 frame FLV video to your actual FLV video)?



harmster posted 2008 Jun 23 13:36
Pete..

only combining frame - both actually wearing same concept, either one will work



peteman posted 2008 Jun 23 13:51
harmster :
Pete..

only combining frame - both actually wearing same concept, either one will work


ok, cool... but I just can't seem to to get it work.. YT gives me: "Failed (unable to convert video file)".. i've tried both methods, twice. I'm even using the same ffmpeg version that Frifox's is using... by the way, should the hexed/patched .flv file be playable with standard videoplayer? I tried to play it with KMPlayer, but it crashed..



peteman posted 2008 Jun 23 15:34
oh man this is frustrating... ive been trying to solve this problem whole day.. YT still gives me"Failed (unable to convert video file)"..

Here's how I do it (and everything should be ok..?!):

1. I have 10 sec long test .mp3 file (128kbps, stereo, 44khz)
2. I have 1024x800 size .png image (saved from FireWorks)
3. I make an .flv video of the .mp3 file and .png image using ffmpeg with this command "ffmpeg -i mysong.mp3 -acodec copy -loop_input -f image2 -i image.png -vcodec flv -r 1 -g 5 -sameq -shortest output.flv"
4. The output.flv plays fine in my video player, no problems.
5. I hex the output.flv with hexalter using this command "hexalter output.flv 0x120=0x08,0x06,0x11,0x1F"
6. I try to play it in my videoplayer (KMPlayer), but it crashes.
7. I upload it to Youtube and after a short while it says "Failed (unable to convert video file)"...

What am I doing wrong here.. I just don't get it..



bayme posted 2008 Jun 23 17:41
peteman :
but I just can't seem to to get it work.. YT gives me: "Failed (unable to convert video file)".. i've tried both methods, twice. I'm even using the same ffmpeg version that Frifox's is using... by the way, should the hexed/patched .flv file be playable with standard videoplayer? I tried to play it with KMPlayer, but it crashed..
LOL, yeah, KMPlayer tries to play it using the FLVSplitter, perhaps updating to the latest version of KMPlayer's internals will solve that? Or set it to use system codecs, in which case it will use ffdshow (for me that works).


ricardouk posted 2008 Jun 23 17:56
peteman :
... ive been trying to solve this problem whole day.. YT still gives me"Failed (unable to convert video file)"..

1. I have 10 sec long test .mp3 file (128kbps, stereo, 44khz)
2. I have 1024x800 size .png image (saved from FireWorks)

What am I doing wrong here.. I just don't get it..


Hi Peteman

I've used avanti to do that a couple of days ago, 6 minute mp3(128) + 1024 png, altough avanti doent list png as source file select all files and it will show png files load it as source 1, on source 2 load the mp3, select the hi quality flash template, on audio settings select them exactly as your mp3 file, as video bitrate select 50 and press convert.



Youtube example:
http://www.youtube.com/watch?v=MnhswI3xGKw

youtube hasnt converted it after 3 days, no mp4 (fmt=8 ) or hi quality flash (fmt=6) versions have been converted.



rajman posted 2008 Jun 23 18:06
ricardouk :
peteman :
... ive been trying to solve this problem whole day.. YT still gives me"Failed (unable to convert video file)"..

1. I have 10 sec long test .mp3 file (128kbps, stereo, 44khz)
2. I have 1024x800 size .png image (saved from FireWorks)

What am I doing wrong here.. I just don't get it..


Hi Peteman

I've used avanti to do that a couple of days ago, 6 minute mp3(128) + 1024 png, altough avanti doent list png as source file select all files and it will show png files load it as source 1, on source 2 load the mp3, select the hi quality flash template, on audio settings select them exactly as your mp3 file, as video bitrate select 50 and press convert.



Youtube example:
http://www.youtube.com/watch?v=MnhswI3xGKw

youtube hasnt converted it after 3 days, no mp4 (fmt=8 ) or hi quality flash (fmt=6) versions have been converted.

Thanks for the info, ive never heard of Avanti before this XD



ricardouk posted 2008 Jun 23 18:10
here's the link
http://forum.videohelp.com/topic343287.html

its been talked about in the 2 main youtube threads here....

the PNG i used on these images is 640x480 but it works with 1024x768, see link at the end







For avanti to "see" the png when browsing for it select "all files" as the image shows below



example on youtube:
http://www.youtube.com/watch?v=MnhswI3xGKw



zappa_engine posted 2008 Jun 23 19:11
Hello guys,

I'm new here, and to Youtube. I came about this site looking for how to upload high quality videos for Youtube. I am an amateur software developer and wanted to post screen caps of how to install software required and usage instructions for users of my programs.

I thought I'd start off my first post by offering a suggestion regarding pixelated thumbnails when uploading videos using the w16 method. I tried it first by using frifox's ffmeg method to create a simple 16x12, 0.4 second FLV clip and then joining it(FLVBind) with another FLV clip. Of course I came across the issue at hand here, it causes pixelated thumbnails.

Between trying to figure out other things, I tried to upload high bitrate video for my screen caps so people could actually read text or show a full screen view, but I've failed :/ One method in the very first post of thread involved hex editing the duration so that Youtube would think the video file was longer and therefore think the bitrate was under 350kbs. Unfortunately that didn't work for me. So it gave me an idea as I noticed while hexing the longer duration in, I saw width and height info not too far away.

I tried something. Instead of combining the padded 16x12 FLV file with another FLV file, why not just hex the already created FLV width and height to 16x12 width and height. So instead of joining two FLV together, I just hexed my one main FLV file to spec. I uploaded the video file and the actual thumbnails began to show instead of the pixelated ones.

So here's the method I use for the w16 patch. Instead of using FLVBind, I instead open a hex editor and open the FLV file. I search for the part where it says width, in the hex codes, I'll notice after it, it's hex 00 40, and then the next numbers I'll want to edit to hex 30 followed by a few hex 00 if needed. For height I'll look for the hex 00 40 after it, and then put in hex 28 followed by the few hex 00 if needed. Save the file, and upload. I think that's enough to trick Youtube without padding the first frame of the FLV with a 16x12 FLV pad frame (thus causing pixelated thumbnails). I hope this helps you guys.

Maybe some time I'll think about creating a simple program to do this automatically, along with any other information I learn to patch FLV files for Youtube ;)

For now... if anyone can help me figure out why the video I create using VMuTube that I upload after patching with w16 won't auto-play, I'd appreciate. Later I'll try to tackle posting videos > 350k bitrate.






ricardouk posted 2008 Jun 23 19:34
Zappa are you looking for this:
http://forum.videohelp.com/topic336882-630.html#1858493

a few pages back....



zappa_engine posted 2008 Jun 23 19:44
Oh I did miss that post. It sounds like frifox is editing the first video packet (frame?). I am actually editing the onMetaData information which is in the FLV header itself. So the methods are a little different.

I'm not sure what the difference would cause in Youtube processing though.

Here's more detailed information about FLV headers direct from the source Adobe which I am studying: http://www.adobe.com/devnet/flv/pdf/video_file_format_spec_v9.pdf



peteman posted 2008 Jun 23 22:47
ricardouk :
peteman :
... ive been trying to solve this problem whole day.. YT still gives me"Failed (unable to convert video file)"..

1. I have 10 sec long test .mp3 file (128kbps, stereo, 44khz)
2. I have 1024x800 size .png image (saved from FireWorks)

What am I doing wrong here.. I just don't get it..


Hi Peteman

I've used avanti to do that a couple of days ago, 6 minute mp3(128) + 1024 png, altough avanti doent list png as source file select all files and it will show png files load it as source 1, on source 2 load the mp3, select the hi quality flash template, on audio settings select them exactly as your mp3 file, as video bitrate select 50 and press convert.



Youtube example:
http://www.youtube.com/watch?v=MnhswI3xGKw

youtube hasnt converted it after 3 days, no mp4 (fmt=8 ) or hi quality flash (fmt=6) versions have been converted.


Thanks, Ricardo, for pointing Avanti, gotta try that! ALso, have you used hexalter for the resulted .flv file that comes out from Avanti?



ricardouk posted 2008 Jun 24 03:27
peteman :
have you used hexalter for the resulted .flv file that comes out from Avanti?


No, because the bitrate is well below 350 i felt no need to hex'it, even if it got converted to mp4 it wouldnt loose a lot of quality as it is a still video.



bayme posted 2008 Jun 24 05:11
ricardouk :
peteman :
have you used hexalter for the resulted .flv file that comes out from Avanti?


No, because the bitrate is well below 350 i felt no need to hex'it, even if it got converted to mp4 it wouldnt loose a lot of quality as it is a still video.
What is really interesting about this, is the fact that audio has been left alone entirely. This is new. They've been converting even the videos below 350 kbit/s for a while, resulting in mono audio for the standard quality release. Seems to me YouTube's slowly but steadily moving our way with details ;-)


dzvero007 posted 2008 Jun 24 05:53
I don't understand something. Why all of you want to hack/trick the system and getting pixelated thumbnail (which will not attract much viewers), getting buffering all the time only for the video to be in 'better' quality ? Why better ? Because by standart uploading on YouTube video with resolution of 640x480, I have better quality than one of the HD frifox's videos (my video has more detail and 30 fps). And it don't buffer, because is on fastest server when being watched in high quality.
The problem is stereo audio... do you really think that a normal YouTube viewer care about that ?

frifox, don't worry, I'll delete your video from my account, it was just to test if I can get better quality than your's hacking tricks.



Golgota posted 2008 Jun 24 08:57
dzvero007 :

frifox, don't worry, I'll delete your video from my account, it was just to test if I can get better quality than your's hacking tricks.


LOL, its not Hacking, it's just a procedure to obtain higher quality with a smaller file. regarding the buffering? yes it takes some time but it worth for the HQ view. ;)



ricardouk posted 2008 Jun 24 09:47
Well heres my take on how to get hiquality videos on youtube.

Since flash player now supports streaming AVC, i uploaded some test files with video and audio settings suported by the latest flash player, some interesting facts:

1-conversion was fast

2- Got all 3 options on my first view, LQ, MP4 and HI Quality flash, that never happened to me before on my slow 512k connection

Audio: 96 bitrate/41000sample/LC/stereo
Video: 640x480 with a bitrate of 700k

3- this is the funny part, after 6 minutes i got a copyright claim from youtube, that was the fastesssssst ever. lol

here's an example:
http://www.youtube.com/watch?v=qgYqNJH7QhQ - LQ

http://www.youtube.com/watch?v=qgYqNJH7QhQ&fmt=18 - MP4

http://www.youtube.com/watch?v=qgYqNJH7QhQ&fmt=6 - HI QUALITY FLAH



dzvero007 posted 2008 Jun 24 10:10
:
LOL, its not Hacking, it's just a procedure to obtain higher quality with a smaller file. regarding the buffering? yes it takes some time but it worth for the HQ view.


Really ? Higher Quality with smaller file :D ? frifox upload high quality videos with bigger size, which YouTube put on slower download server, that's why there's a lot of buffering. When video has option "watch in high quality" and you watch it in YouTube's high quality, you'll download the video 3-4x faster. (~100 kb/s -- frifox's HQ videos vs 300-400 kb/s) that's why there's no buffering - YouTube thought about that.

Do you want to compare my video with frifox's one ? I did not used any hacking. There's no buffering and it has better quality (except the sound - not stereo... but who really cares ? I prefer better video detail, no pixelised thumbnail and no buffering:))

Тhe video I uploaded has 1005 Overal bitrate when watched in YouTube's high quality (905 kbps is only video, as said in MediaInfo) so I think it's pretty good.

Notice: I modified the video with a video editor.

The other incovenient is that frifox's videos stay on same high resolution, my video re-encodes to 480x360. I think if frifox use my method for video editing, and then hack the system, he'll get an excellent video quality.



ricardouk posted 2008 Jun 24 10:35
Following my last comment on how to get all 3 formats the first time, all 3 version were available first time i played the video:

Source details



Low quality flash: http://www.youtube.com/watch?v=qgYqNJH7QhQ - LQ



High quality flash: http://www.youtube.com/watch?v=qgYqNJH7QhQ&fmt=6 - HI QUALITY FLAH



Mp4: http://www.youtube.com/watch?v=qgYqNJH7QhQ&fmt=18 - MP4



mikejf posted 2008 Jun 24 12:26
dzvero007 :
I don't understand something. Why all of you want to hack/trick the system and getting pixelated thumbnail (which will not attract much viewers), getting buffering all the time only for the video to be in 'better' quality ? Why better ? Because by standart uploading on YouTube video with resolution of 640x480, I have better quality than one of the HD frifox's videos (my video has more detail and 30 fps). And it don't buffer, because is on fastest server when being watched in high quality.
The problem is stereo audio... do you really think that a normal YouTube viewer care about that ?



for talking vids mono is ok, but for music I know I prefer stereo audio! all we want is to play 3-5 minute videos in the 480x360 screen with good quality video and stereo audio. Why is that not possible with YT? unless, yes you can add &fmt=18 to get stereo, but why do we have to do that? why can't we play 700k videos with stereo without the &fmt=18? I'd be quite happy with that. so that's why a few of us hack. and really, the Watch in High Quality feature should do that. Maybe it will eventually. When it does, I'm done hacking



dzvero007 posted 2008 Jun 24 12:43
Yes me too, I don't uderstand why YouTube converts a video at 700 kbps with stereo (&fmt=18), when it does not give any option to play it. It's just hidden from everyone, but for no reason it's on the server.
Could be something for the future broadcasts ? ...

Edit: Not all videos with added &fmt=18 code have stereo sound. Only recent videos...



Dioxaz posted 2008 Jun 24 12:48
Hello all, this is the first time I'm posting in these forums.

Firstly, I'd like to thank anyone else who work hard in order to find tricks to upload HQ vids on Youtube.

Well, I'm posting here because this is the first time I have to use the recent 16x12 trick. Here is the result:
http://www.youtube.com/watch?v=fjUUooLHfJ0

Not only the video is 60fps*, but it has 192 kbps stereo sound. It's been uploaded for more than 48 hours now and it stayed HQ. To get it, i simply hexedited the FLV, I didn't pad anything because I can't do it properly at this moment (this explains the blockiness at the beginning).

* 60fps indeeed works on Youtube but is not recommended as its player is clearly not optimized for a high framerate (powerful machine required in order to play the video flawlessly, otherwise, the "switch-to-fullscreen-then-switch-back-to-windowed" trick might work to recover fluidity)

Before that, the last video I uploaded and that worked without the 16x12 trick is from May 28th.

I usually encode my FLVs using mencoder. And the offset location of the first frame resolution is totally different from the one found in FFMPEG FLVs. I'll repost that offset when I'll access to my personal computer again.

I also noticed a strange Youtube behaviour when I experienced their re-encoding process. When going LQ, it seems that the first thing to be reencoded is the sound. For the video above, the sound had turned mono while the video was kept intact!! And with its original 60fps framerate. However, I don't know if the video would have been reencoded too, as I immediately deleted it.


To answer some questions, HQ tricks are still useful in my case because I generally attach a high quality MP3 file (256 kbps, ABR) to a single-frame FLV. With the necessity of doing the 16x12 trick, it will be a bit harder (obligation to attach a short 16x12 FLV, which I didn't manage to get working yet).



dzvero007 posted 2008 Jun 24 13:36
Edited[/i]


ricardouk posted 2008 Jun 24 15:03
dzvero007 :
Yes me too, I don't uderstand why YouTube converts a video at 700 kbps with stereo (&fmt=18), when it does not give any option to play it.


very simple.... not everyone has upgraded their flash player to the latest version that supports avc streaming....once the percentage increases they will enable the option for it....meanwhile they use the hiquality (fmt=6) version, that version (flv) is played back by most since it doesnt require your flash player to be updated/to be latest version.



mikejf posted 2008 Jun 24 15:24
ricardouk :
dzvero007 :
Yes me too, I don't uderstand why YouTube converts a video at 700 kbps with stereo (&fmt=18), when it does not give any option to play it.


very simple.... not everyone has upgraded their flash player to the latest version that supports avc streaming....once the percentage increases they will enable the option for it....meanwhile they use the hiquality (fmt=6) version, that version (flv) is played back by most since it doesnt require your flash player to be updated/to be latest version.


that seems like a weird reason, why not let those that have latest flash player play the HQ? Is YT even telling people about how to upgrade their flash in the help section?

Also, when you say "supports avc streaming" what is avc, and is that in the latest version of flash, which is 9.0.124.0? Anyone can right click on the video and then click on About Abode Flash...and it takes you to web page to update.



ricardouk posted 2008 Jun 24 15:40
Are you aware that the fmt=18 is in fact avc wraped in mp4 container?it isnt standart flv that all flash player versions play, do you know that avc is not played back by all versions of the flash player? only recent ones.

It might be a weird reason to you but makes all the sense to me, altough i could be wrong....



zappa_engine posted 2008 Jun 24 15:44
This post is for those technical people out there. To really understand the FLV file format and how it reads, you can really start to understand how Youtube might interpret it and make changes accordingly.

Understanding the w16 hack in a bit level...
Reference: http://www.schnarff.com/file-formats/flash/flash_fileformat_specification.pdf (page 241)

So we were asked to change information on the first video frame so that it would be 16x12 resolution right? Here's what was suggested. Here's what is really happening

:

HEX:  08            06            11              1F
BITS: 0/000 1000    0/000 0110    0/00/1/ 0001    0/001 1111

The bit conversion based on documentation linked above:
[3 bits, 2 previous missing] ??0 = 0 = 0 means the width/height are defined in 8 bits next
[8] 00010000 = 16 = 16 width
[8] 00001100 = 12 = 12 height
[2] 00 = 0 = Intra Frame
[1] 1 = 1 = Deblocking Flag
[5] 00010 = 2 = Quantizer (H.263. See 5.1.4)
etc etc...

There's a lot of shifting of bits over, you see. Hexing in 16x12 resolution isn't exactly the best solution. The hex above modifies extra information it shouldn't. As for a technically correct solution, that requires a bit more thought. Either changing the data packet size, or faking some information to make the packet the right length or it may require going through all packets and adjusting data to sync with this adjusted video packet! (eeep!) I'll have to do some more research.



zappa_engine posted 2008 Jun 24 16:04
Okay I got an idea and I'm thinking that bit shifting or adjusting data packet size won't be necessary. As long as your video size fits in category 2, which requires 16 bits to define width and height, you won't need to shift bits.

To fit in category 2, the original video's first frame can not be below 256 width and 256 height. It can not be the predefined resolutions of: 352x288, 176x144, 128x96, 320x240, 160x120.

That leaves 480x360 available! Packing less information into a 16 bit is easier than trying to add bits if you're using one of the predefined resolutions or removing bits if you're using a resolution lesser than 256. I think most videos do fall within category 2 so, hacking in the resolution shouldn't change any other video packet information.



zappa_engine posted 2008 Jun 24 16:26
Constructing our modified packet knowing that our resolution is 480x360

:
Category 2, defining width and height by 16 bits = 001
480 = 0000 0001 1110 0000
360 = 0000 0001 0110 1000

So our bits we're looking for are:
1/0000 0001 1110 0000/0000 0001 0110 1000

Okay let's rearrange this back to hex:
1000 0000    1111 0000    0000 0000    1011 0100    0???
80           F0           00           B4           ??? = Frame/Deblock

Let's change those values to 16x12 now.
Cat 2 = 1
16 = 0000 0000 0001 0000
12 = 0000 0000 0000 1100

Building our modified hex string results in:
1000 0000    0000 1000    0000 0000    0000 0110    0???
80           08           00           06           Same thankfully


So in summary, we're hunting out the resolution of the first video frame of the 480x360 video (hex: 80 F0 00 B4) and changing it to 16x12 (hex: 80 08 00 06). This should not affect the rest of the video packet!



dzvero007 posted 2008 Jun 24 16:29
Please tell me what do you think about the quality of those videos:

Note: It's fmt=6, but the quality is very good, maybe better than frifox's HQ videos.... I retouched the vids with a video editor to obtain better details.

(1) http://youtube.com/watch?v=YszHR0gS2qo&fmt=6
(2) http://youtube.com/watch?v=4yH5QuU0gVg&fmt=6

Compared with frifox's vids:

(1) http://www.youtube.com/watch?v=ksM8qucczvU
(2) http://www.youtube.com/watch?v=vvxugWXfRGc



ricardouk posted 2008 Jun 24 17:10
dzero007 in what format did you upload the source file? Can you share the settings?

Answering your question:
Frifox version looks better, less blocks but it pauses so many times, and because of the hack the duration is incorrect BUT AS A VIEWER i prefer yours, pauses less times and displays correct time, so i would watch yours instead of frifox if i knew the details before i watched them. Yours has less quality but at the end of the day its Youtube not a hiDEF pay per view channel over the web.

Your vids fmt=18 looks better than the fmt=6 version.

What format was your source file?



dzvero007 posted 2008 Jun 24 17:29
I do not agree that frifox's video has better quality.

Frifox:


My:





Btw, I downloaded and retouched the frifox's video, then converted to .avi at the same resolution as frifox's. I used video editor to correct and obtain better details.
At least, it does not buffer and has no pixelated thumbnail, which gives some advnatages besides frifox's vid :)



ricardouk posted 2008 Jun 24 17:42
in the first video as the image pass the statue and aproaches a planet your version shows macroblocks, on frifox version no macroblocks are visible. your version shows more "banding" (dont know if it is the correct term) around the statue, ships etc.

I think you're talking about video details, brightness/detail/smoothness

Frifox version is smoother showing less "detail" but no banding or blocks

im watching the videos in fulscreen mode, in "window" mode i dont see the blocks



dzvero007 posted 2008 Jun 24 18:00
Do you think a normal YouTube viewer really notice that ("macro blocks) ? He would prefer right duration, no buffering and no pixelated thumbnail (in the future) which personally I think those thumbnails won't attract much viewers and they won't like it. A viewer can also advance the video at the part he wants without have to wait or bug the vid, unlike frifox's (which bug comes often to me and I hate that).
Also, think that I downloaded flv and converted to avi, which also looses some quality.

It’s a pity that I have no videos to upload... they could have some good quality :-) but who knows...

P.S.: Think that I retouched and enhaced the frifox's vid before uploading it to YouTube, without improvements, I cannot obtain better quality in any case :)

frifox has very nice quality videos, and I appreciate his work to bypass the system and keep the quality.



ricardouk posted 2008 Jun 24 18:24
dzvero007 :
Do you think a normal YouTube viewer really notice that ("macro blocks) ? He would prefer right duration, no buffering and no pixelated thumbnail (in the future) which personally I think those thumbnails won't attract much viewers and they won't like it. A viewer can also advance the video at the part he wants without have to wait or bug the vid, unlike frifox's (which bug comes often to me and I hate that).


i completely agree with you, i was just saying what the video looked like because that's what you asked, thats why i said that as a viewer i prefered to watch your version.



Golgota posted 2008 Jun 24 20:17
OMG!! Guys:

*dtfinch
*RajmanHD
*komikero
*bayme
*yawoo


You Got to pay attention on this:
http://youtube.com/watch?v=9zDJ7Rf0MnU



rajman posted 2008 Jun 24 21:08
Golgota :
OMG!! Guys:

*dtfinch
*RajmanHD
*komikero
*bayme
*yawoo


You Got to pay attention on this:
http://youtube.com/watch?v=9zDJ7Rf0MnU


lol yehhh saw that a while ago, this was discussed on another thread here how he took all the credit when he really got the info from here and publicised it on youtube lol glad he mentioned my name in the description XD



Golgota posted 2008 Jun 24 21:21
rajman :

lol yehhh saw that a while ago, this was discussed on another thread here how he took all the credit when he really got the info from here and publicised it on youtube lol glad he mentioned my name in the description XD


Then I FEAR that YouTube will pay more attention on our activities... :(



harmster posted 2008 Jun 25 01:07
rajman :
Golgota :
OMG!! Guys:

*dtfinch
*RajmanHD
*komikero
*bayme
*yawoo


You Got to pay attention on this:
http://youtube.com/watch?v=9zDJ7Rf0MnU


lol yehhh saw that a while ago, this was discussed on another thread here how he took all the credit when he really got the info from here and publicised it on youtube lol glad he mentioned my name in the description XD


No wonder.. there's so many new comers - maybe one of them from Utube!!! Need to ask this guy to take out the link to this forum



bayme posted 2008 Jun 25 07:57
dzvero007 :
Yes me too, I don't uderstand why YouTube converts a video at 700 kbps with stereo (&fmt=18), when it does not give any option to play it. It's just hidden from everyone, but for no reason it's on the server.
Could be something for the future broadcasts ?
Does it ever occur to you that these things have already been widely discussed on this forum? I posted the important links to the threads involved a few pages ago and it would really help to NOT see people post the same questions time and again.

And by the way, I'd take stereo (even for speech audio) over mono anytime, for any medium! I listen to my PC audio using headphones. The fact that you don't give a rat's ass about audio quality doesn't make you a better person or something. ;-)
http://forum.videohelp.com/topic346256-30.html#1814992
http://forum.videohelp.com/topic346256-90.html#1819020

Regarding the silly guy claiming to be the "HD HQ hacker" or whatever he calls it:
http://forum.videohelp.com/topic336882-390.html#1814412
http://forum.videohelp.com/topic346256-180.html#1825614



dzvero007 posted 2008 Jun 25 09:22
bayme, I didn't say that audio is not important to me. I'd prefer stereo over mono, too. But the fact that one video has better details, right duration time, not bugging (when advancing/seeking) and no buffering, I'd take the second. And I don't think that makes me "stupid" (maybe you?). Do not be fooled that every YouTube viewer pay attention to the video's audio. YouTube is big company, and if they have choosen all videos to be in mono, there is a reason. YouTube have many videos watched over 80,000,000 times, and I never saw somebody screams: "I don't like it, because it's in mono" (ah..., you'll scream). Do you understand what I mean?

Btw, by your links to back posts, I did not understand why YouTube hides stereo audio. The only thing I know is that pretty much every video has better quality with code "&fmt=18" (and it's in stereo if the video is recent,
I think after 20 May), but for old vids, the code "&fmt=6" does not work. Maybe in future they'll convert it.

P.S.: Why right duration is better? Because I now where exactly to seek the video and watch the part I want.



Koppel posted 2008 Jun 25 10:56
ricardouk :
Well heres my take on how to get hiquality videos on youtube.

Since flash player now supports streaming AVC, i uploaded some test files with video and audio settings suported by the latest flash player, some interesting facts:

1-conversion was fast

2- Got all 3 options on my first view, LQ, MP4 and HI Quality flash, that never happened to me before on my slow 512k connection

Audio: 96 bitrate/41000sample/LC/stereo
Video: 640x480 with a bitrate of 700k

3- this is the funny part, after 6 minutes i got a copyright claim from youtube, that was the fastesssssst ever. lol

here's an example:
http://www.youtube.com/watch?v=qgYqNJH7QhQ - LQ

http://www.youtube.com/watch?v=qgYqNJH7QhQ&fmt=18 - MP4

http://www.youtube.com/watch?v=qgYqNJH7QhQ&fmt=6 - HI QUALITY FLAH

How do you encode and with what?
I'd like to get the maximum quality without hacking because it has become such a pain in the ass. Before YT accepted *.flv files with bitrate under 350Kbps and I just uploaded these.
Now I don't know what to upload.



ricardouk posted 2008 Jun 25 12:21
Koppel :

How do you encode and with what?


Avanti to the rescue again lol








Koppel posted 2008 Jun 25 12:40
Thanks!
And you should always use these settings?
Audio: 96 bitrate/41000sample/LC/stereo - is this aac (Lib) or MP3 and what does LC stand for?
Video: 640x480 with a bitrate of 700k

Are higher resolutions and bitrate also OK? What about 448x252 for widescreen content?

EDIT: Damn, Avanti didn't start.
:
Process cancelled by FFmpeg which reports:
Nothing and returned immediately

EDIT2: Downloaded the latest FFmpeg beta revision 13778 and that fixed the problem.

I used Avisynth script as source:
:
DirectShowSource("C:\vids\myfile.mpg")
Lanczos4Resize(640,360)
AddBorders(0,60,0,60)

Original file is 720x576 anamorphic MPEG2 with 9800Kbps.
It produced few messages/warnings:
:

Error: 2pass curve failed to converge
target: 700.00 kbit/s, expected: 954.17 kbit/s, avg QP: 31.0000
try increasing target bitrate or increasing qp_max (currently 31)

Is this the way it should be?



ricardouk posted 2008 Jun 25 13:29
Koppel :
Thanks!

You're welcome

Koppel :
And you should always use these settings?

its up to you, thats the ones that give better results to me

Koppel :
Audio: 96 bitrate/41000sample/LC/stereo - is this aac (Lib) or MP3 and what does LC stand for?

i use 128 for audio, LC stands for low complexity audio, its what the mp4 fmt=18 uses

Koppel :
Video: 640x480 with a bitrate of 700k

you have to take in consideration that this is the master copy that youtube will use for future conversions. if we think ahead 720 width would be good if the source allows it and 1000k for bitrate. but im happy with the rersults i posted earlier

Koppel :
Are higher resolutions and bitrate also OK? What about 448x252 for widescreen content?

i add black bars bottom/top for widscreen material, Avanti has a section where you can add black bars to widscreen sources

About the error messages, trythe avanti thread, are you using the h264 template? dont use the avisynth script and add black bars/resize with avanti, does the error still ocurr?
http://forum.videohelp.com/topic343287.html?highlight=avanti


in the next image i will add black bars to a 1280x720 widscreen avi source



ricardouk posted 2008 Jun 25 14:19
Also ive done 3 more uploads using bitrates from 700k to 1000k, 640x480resolution, 128k aac lc and i got all 3 formats after 1 or 2 hours.

http://www.youtube.com/watch?v=pdQa8jbMO5w

http://www.youtube.com/watch?v=pdQa8jbMO5w&fmt=18

http://www.youtube.com/watch?v=pdQa8jbMO5w&fmt=6



dzvero007 posted 2008 Jun 25 14:32
:woot:


bayme posted 2008 Jun 25 15:06
ricardouk :
Koppel :
Audio: 96 bitrate/41000sample/LC/stereo - is this aac (Lib) or MP3 and what does LC stand for?

i use 128 for audio, LC stands for low complexity audio, its what the mp4 fmt=18 uses

Eeh.. I hope you know it's a re-encode to AAC LC by Google? So feeding it with AAC makes no sense. It's always best to keep the amount of transcoding to a minimum. You should use uncompressed wav audio instead.



bayme posted 2008 Jun 25 15:26
ricardouk :
also Bayme on another thread posted the following bat for mencoder but on running it it open a dos window and closes itself again.
:
"c:\megui\tools\mencoder\mencoder.exe" "s:\m_s448.avi" -o m_s.flv -mc 0 -ofps 25
-srate 44100 -oac mp3lame -lameopts vbr=2:q=8:aq=0:mode=1:lowpassfreq=16500
-ovc lavc -of lavf -lavfopts format=flv -lavcopts vcodec=flv:vbitrate=300:keyint=200:
mbd=2:trell:v4mv:aic:cbp:last_pred=3:predia=4:dia=4:preme=2:vratetol=900:vpass=1

"c:\megui\tools\mencoder\mencoder.exe" "s:\m_s448.avi" -o m_s.flv -mc 0 -ofps 25
-srate 44100 -oac mp3lame -lameopts vbr=2:q=8:aq=0:mode=1:lowpassfreq=16500
-ovc lavc -of lavf -lavfopts format=flv -lavcopts vcodec=flv:vbitrate=300:keyint=200:
mbd=2:trell:v4mv:aic:cbp:last_pred=3:predia=4:dia=4:preme=2:vratetol=900:vpass=2


what im i doing wrong?
By the way, just so you know:
This was meGUI's fault. It was using a wrong version of mencoder after the last couple of updates of MeGUI.
The only decent win32 binaries of mencoder (and ffmpeg) are always here (in my experience): http://oss.netfarm.it/mplayer-win32.php
( see also http://jthz.com/puter/software/to_flv.bat )



vhelp posted 2008 Jun 25 20:26
Hi recardo,

You didn't say much about your last two upload sessions to YT, whether or not those videos
were treated by any of the hack methods. So, it seems we have a possible other alternative..
to encode intially to mp4 @ 640x480 w/ decent amount of bitrate and then upload those to YT.
In your first UL to YT, I liked the .mp4 version the best, obviously. It was very good, and i'm going
with the impression that you didnt' apply any of the hacks to them. Yeah, nice music video,
by the way. Thank you.

--> http://forum.videohelp.com/topic336882-810.html#1860796

-vhelp 4736



ricardouk posted 2008 Jun 26 03:07
Sorry i forgot to mention, didnt apply any hacks.

just looking for the better upload format.

bayme i could use umcompressed WAV but it would take a better part of half a day just to upload the audio and that is if the intenet connection doesnt fail. If you have a really fast net connection it isnt a problem.

Probably 192k for audio is a better choice for someone that has a slow connection



ShinigamiHamster posted 2008 Jun 26 07:34
Sorry people, but I'm gonna have to ask this. :(

I'm either too stupid to understand the guide on the first page, or it doesn't tell me exactly what I need.

Either way, there's just no way I'm gonna read through all 29 pages.

It would just be way too much info anyway.



What I want to do is this:

I've got some finished videos in .AVI containers, with .WAV sound and XviD for
the video (very high bitrate, looks basically lossless)... The videos are in 480x360.

Now, what I want to do is upload them to YouTube, and keep the original resolution (480x360).

I would also want to convert the video to an .FLV first, so that it doesn't get re-converted
by YouTube later. That way I can have control over the quality, as well as the resolution.

I'd want the audio to be at the very least 128 kbps. But, preferably around 256 kbps.



Now, what's the easiest way to do this? :?:

Remember, I'm 100% noob at this -- so throwing various command lines
and such stuff at me will most likely just bounce off. Talk to me like I'm a little child. :o

Help with this would be greatly appreciated...



harmster posted 2008 Jun 26 07:59
rajman :
Guys since Frifox has gone .... I think Im getting close as Ive had a video up for 20 hours and its untouched with no pixelated thumbnail XD
http://www.youtube.com/watch?v=1S7lfrKR6CU
Will have to wait 48 hours like many are saying to see if it goes untouched, but Im quite confident ive found out another way and testing that at the moment


Rajman... what's the status for your video the one with clear thumbnail? is it being converted as 3 of my video (keep private - without pixelated thumbnail) being converted after 48hrs... no luck.



ricardouk posted 2008 Jun 26 10:10
ShinigamiHamster :

Either way, there's just no way I'm gonna read through all 29 pages.


just upload the Xvid as it is if you have a fast connection, that way youŽll have a good source on youtube servers for future conversions.



ShinigamiHamster posted 2008 Jun 26 11:41
ricardouk :
just upload the Xvid as it is if you have a fast connection, that way youŽll have a good source on youtube servers for future conversions.

That's no good, if I do that YouTube will reconvert the files
and lower the res to 320x240, and also, the audio will suck.

Oh yeah, I don't care much for the "Watch in high quality" option on YouTube...
I want my videos to be 480x360 by default for everyone who may stumble across them.

I'm playing around with Avanti at the moment,
converting with the default UNI_FLASH_HQ.tpl template.

It seems to work. Only catch is, I want at least 128 kbps for the audio*,
so that leaves me with around 212 kbps for the video, so that the combined bitrate stays under 350.

*because the sound has already been reconverted, with lossy codecs, and the "source" probably wasn't of the best quality...

Is it possible to convert to .FLV with Avanti, and have a video bitrate of, let's say, 500, and audio at 224 kbps,
and then hexedit the resulting .FLV file to fake the bitrate - so that YouTube thinks it's below 350 kbps?

If so, could you - or someone - tell me how to do that hexediting? Or point to a page with that info.

I know Virtual Dub has an Hex Editor built in, but I got no clue how to properly use it. :cry:



bayme posted 2008 Jun 26 11:47
ShinigamiHamster :
I've got some finished videos in .AVI containers, with .WAV sound and XviD for
the video (very high bitrate, looks basically lossless)... The videos are in 480x360.
As Ricardo wrote; I would just upload them as is. With the wav audio and high-bitrate video. In any case, I would definitely NOT rescale the 480x360, or change the audio under the video. If you upload them as they are, you'll skip unneeded (quality degrading) transcoding and conversions.

Sure, you can try and bypass YT conversion for the 'low bitrate standard playable FLV1', but it would leave you with only a standard FLV playable file, in which case you might miss the option of later conversions and possibly even the fmt 18 and fmt 6 quality versions either way.

The above only applies if you *don't* think your video could use sharpening or any other filter *before* you want them online. If you do not yet have the video in a final format, and you have a fast upload speed, you could go this route:

Some hints for the highest possible quality file to give to YouTube:

- Use 25 frames/sec all the way. Try to *record* your video at 25 fps progressive, not interlaced, as well.
- If needed resize to 640x480, and if your aspect ratio isn't 4:3 use letterboxing (i.e. add black bars on top and bottom), VirtualDub lets you easily deal with that under the resize filter.

- Try encoding singlepass lossless with the x264 codec and upload the result using YouTube's uploader. As long as it's under the 1 GB maximum size, that'll give the highest quality result.
- Use uncompressed wav audio in it, because re-encoding (transcoding) audio from one lossy compressed format to another sucks, big time. Use 44.1 kHz samplefrequency, 2 channels (i.e. stereo), 24 bits, or 16 bits PCM.

- If you can't fit your video in 1 GB with a singlepass lossless x264 encode, use Singlepass Rate Factor based (i.e. CRF) encoding with the x264 codec. Start at Quantizer 1 (highest quality) and check if size gets you below the 1 GB limit. If it's still too big, use a higher quantizer value. You can easily go up to 10 and still get amazing video quality with x264.

By the way, contrary to popular belief, x264 and VfW are entirely up to date and perfectly fine these days. (Don't let Google hits about this fool you.) http://sourceforge.net/projects/x264vfw/

P.S. I recommend trying dailymotion or vimeo. They're more stable, reliable, and if your content is your own, you can upload AND embed video as HD, and longer than 20 minutes. Check this out:
http://www.dailymotion.com/faq#what_motionmaker
http://www.dailymotion.com/hd/video/x5hzav
http://vimeo.com/hd



Koppel posted 2008 Jun 26 13:08
Uploading massive files to Youtube sucks. Youtube should develop a program that does the encoding in our own computers and then we could just upload the standard quality *.flv, and the high quality *.flv to them. Everybody wins! We have better quality, they don't need to encode.

Has anyone e-mailed the youtube staff about this?

Re-encoding over and over just isn't normal, nor is uploading uncompressed or lossless videos just so they could look a little less like crap.



bayme posted 2008 Jun 26 14:05
Koppel :
Uploading massive files to Youtube sucks. Youtube should develop a program that does the encoding in our own computers and then we could just upload the standard quality *.flv, and the high quality *.flv to them. Everybody wins! We have better quality, they don't need to encode.

Has anyone e-mailed the youtube staff about this?

Re-encoding over and over just isn't normal, nor is uploading uncompressed or lossless videos just so they could look a little less like crap.
YouTube/Google staff is reading here now. We have written confirmation of that (see the other big YT-thread for this).

I actually agree with the essence of your idea, but it should be made optional. Just so 'the experts' can use it if they want to. And the formats they prefer should be really thoroughly described by YT/Google, so they can check for abuse of *their* websites and servers (which is of course still the case, we're not paying them a dime!).

As for uploading large files to YouTube;
For me that's not a big issue, I have 8 Megabytes/sec upstream connectivity at work, so a Gigabyte file doesn't really take that long to transfer. Also, you could argue that YT/GV are always 'in beta', so the fact that they can keep your source videofile is perfect in that they don't have to bother you if they decide to use a new video-technology, a new player, a new codec etc. Who knows what the future will bring us? H.265 video. Better to upload the raw file now than to have to do that later after all. It's not like Google doesn't have enough storage space to keep your backups. Last but not least:
Having your video viewable worldwide used to be a really BIG thing. For me it still is. I've spent hours to have to upload a 100 kilobytes file to a BBS 20 years ago, just so it would be out there and available for download. If you want to reach the world, a quality upload dedication is useful. Makes sense, to me anyway.



ricardouk posted 2008 Jun 26 14:49
After 29 pages i see that some people still hold on to the idea of uploading a video that was hexefied, people are thinking about hopw the video looks now,.

The best way to get good quality videos is to upload a good source. Hexefying videos is a bad idea, since youtube can at any moment decide to recovert every single file hexefied or not.

For example, i started to upload flv videos under >350, yeah they looked ok and it didnt take long to upload them, all of sudden youtube starts converting them to mp4, so all my videos that i uploaded look like crap when converted to MP4.

Moral of the story:
Upload good sources.

if you want to show HD videos, and i mean HD not higher quality, use Blip.tv that wont reconvertr your videos or use Dailymotion like Bayme said.



Spritemoney posted 2008 Jun 26 18:49
Look! One way so the hacks can still work, we gotta stop putting HD or HQ in our vid titles, and more, then if youtube noticed, then they will block it, when VMuTube was around, i never said [hq] or [hd] i didn;t do that, cuz i don't want ppl to ask me, and i don't want the VMuTube hack to go away (now it's gone)


vhelp posted 2008 Jun 26 19:40
recardo,

Funny, I was going to bring that up and mention it too, but you beat me to it :)

Yeah, I'm starting to agree.. that hexing is prob not a good thing to focus on nowadays. yeah But
don't let that stop anyone who believes differently. When I saw the last two files from recardo,
that was good enough for me to reconsider my position on this hacking stuff. (I still get ideas, though)
But I think that the YT encodings are getting better.. that is, at least with the MP4 versions.. those
that I've seen lately.

..more to say on this, but I'll save'em until I can finish up on something that I am sculpturing
up for the next wave in the hunt for 'preparing quality youtube videos'.

Until then..

-vhelp 4737



Spartacomp posted 2008 Jun 27 07:20
frifox :
if you are bad at HEX-ing, here's an alternative (which also does NOT produce gray-artifacts hehe):

  • Make 16x12 black PNG image in Photoshop
  • Save it as "16x12.png" to folder where FFMPEG resides
  • Open CMD, and browse to the folder with FFMPEG and 16x12.png
  • Run this command:
    ffmpeg -loop_input -f image2 -i 16x12.png -vcodec flv -r 25 -g 1 -t .04 -sameq pad-16x12.flv
    *** the code above, will make a 16x12 FLV video lasting only 1 frame (40miliseconds)
  • combina that one 16x12-frame FLV video to your actual FLV video:
    FlvBind uTubeVideo-patched.flv pad-16x12.flv uTubeVideo.flv
    *** for the command above, you'll need "FlvBind" program... google for it and you'll find it, first link
  • upload the produced "uTubeVideo-patched.flv" video
  • uploaded video will have pixelated thumbnail, but it will stay HQ :)


Hi Frifox,

First of all, thanks for providing so much help!

I am a Dutch musician and since a few days I did not even know what ffmpeg was! :lol: After days of struggling I finally managed to get it working on my computer. I also managed to get a test clip in permanent stereo on youtube using the W16 or 16x12 method (http://www.youtube.com/watch?v=z283Neq6gUE), but now I would like to merge the 2 flv's to get a complete video clip. And this is where I get stuck.

In your comment above you present a command to change a png into a 40ms flv. When I use that command, I get this message:

$ ffmpeg -loop_input -f image2 -i 16x12.png -vcodec flv -r 25 -g 1 -t .04 -same
q pad-16x12.flv
FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-memalign-hack
libavutil version: 49.7.0
libavcodec version: 51.57.2
libavformat version: 52.16.0
libavdevice version: 52.0.0
built on Jun 27 2008 12:04:17, gcc: 3.4.5 (mingw-vista special r3)
[image2 @ 0074FBD0]Could not find codec parameters (Video: 0x0000)
16x12.png: could not find codec parameters


Could you please help me out here, as I am nearly finished completing an utterly frustrating job!! :cry:

Btw: thanks for helping us musicians to be able to present our work as it should be, in STEREO :!: !!



ricardouk posted 2008 Jun 27 07:55
Spartacomp you dont need a hack to have music in stereo on youtube:
http://forum.videohelp.com/topic336882-810.html#1860606

Example:
http://www.youtube.com/watch?v=MnhswI3xGKw



rajman posted 2008 Jun 27 08:10
ricardouk :
Spartacomp you dont need a hack to have music in stereo on youtube:
http://forum.videohelp.com/topic336882-810.html#1860606

Example:
http://www.youtube.com/watch?v=MnhswI3xGKw


The only thing with this is that we can only have picture+audio in Stereo! I tried a few times encoding videos with this (all <350kbps) but they turn to LQ very quickly =(



ricardouk posted 2008 Jun 27 10:07
Ive tried after and still works, did you use the settings that i posted?


rajman posted 2008 Jun 27 11:44
ricardouk :
Ive tried after and still works, did you use the settings that i posted?

Yehhh it works if you use a picture (jpg,png etc) as Source 1 and audio (mp3,wav etc) as Source 2! But Im on about actual motion videos, videos dont work with this program! Ive tried converting AVI,WMV,MPG,MP4 to FLV...which all convert yes but they all get re-encoded by youtube even if the total bitrate is <350kbps



ricardouk posted 2008 Jun 27 12:02
rajman, Spartacomp was asking about music since he is a musician i thought he meant just audio, thats why i suggested that method.

if you want stereo, just view the mP4 version, if you have a site where you share your work just put the MP4 link instead of the normal one, all you have to do is upload a good source



Kylenol posted 2008 Jun 27 12:11
ricardouk :
Koppel :

How do you encode and with what?


Avanti to the rescue again lol


I've tried using this method but it ends up converting. I've also tried frifox's method but I get "failed (unable to convert file)". So, can you post your AVISynth script?



Spartacomp posted 2008 Jun 27 13:00
ricardouk :
Spartacomp you dont need a hack to have music in stereo on youtube:
http://forum.videohelp.com/topic336882-810.html#1860606

Example:
http://www.youtube.com/watch?v=MnhswI3xGKw


Ricardouk, thanks for this! I am trying this as well at the moment but Avanti gives the following message:

19:44:14 - Checking file paths and basic settings ...

19:44:14 - Audio only expected at 'Source 2' with current settings.

Any ideas?

Rajman also thank you. You are right, I need the option with stereo music and video and I hope Frifox can help me with that. But I hope I can get the Avanti method working as well.



babymammoth posted 2008 Jun 27 13:31
Guys Help!

after experiments on combined on2 codec FLVs
i can`t remove files uploaded to YT.
there is no "Remove Video" button, any idea how to execute remove command ?

screenshot:



Thank you for any tip

btw. check picture resolution in this vid

http://www.youtube.com/watch?v=mHqm4UXj8w0



zoobie posted 2008 Jun 27 15:00
ROTFLMFAO :lol:


dzvero007 posted 2008 Jun 27 15:01
I cannot believe this. Try with another brower. Clear your cache and cookies.
I hope it will work. Lol



babymammoth posted 2008 Jun 27 15:59
dzvero007 :
I cannot believe this. Try with another brower. Clear your cache and cookies.
I hope it will work. Lol


i did many tries, even safari it`s not browser issue :(

edit:

OK at last i test IE :) files deleted, thanx and sorry for spam
admin can delete my last offtopic posts



Spritemoney posted 2008 Jun 27 16:05
babymammoth :
dzvero007 :
I cannot believe this. Try with another brower. Clear your cache and cookies.
I hope it will work. Lol


i did many tries, even safari it`s not browser issue :(

Whatever u do, do not contact youtube



Spritemoney posted 2008 Jun 27 16:06
WAIT I KNOW HOW!
Go here: http://www.youtube.com/my_videos2
Then Check the video(s) you wanna remove, then press delete

babymammoth :
Guys Help!

after experiments on combined on2 codec FLVs
i can`t remove files uploaded to YT.
there is no "Remove Video" button, any idea how to execute remove command ?

screenshot:



Thank you for any tip

btw. check picture resolution in this vid

http://www.youtube.com/watch?v=mHqm4UXj8w0


WAIT I KNOW HOW!
Go here: http://www.youtube.com/my_videos2
Then Check the video(s) you wanna remove, then press delete



freakydeakyalive posted 2008 Jun 27 16:27
How's the Weather Today?


zappa_engine posted 2008 Jun 27 18:28
I still think there is a use to uploading videos YouTube won't modify. I'm aware of the "Watch in high quality" option but it doesn't fit when the video is screen captures, low motion, and can't reach the 600+kbps requirement to earn that option.

So what's the general strategy now?

Keep first frame a normal resolution so thumbnail should be ok?
Change another random frame to 16x12, to throw the YT encoder off?
Adjust last few frames' timestamp duration for higher bitrates?



rajman posted 2008 Jun 27 18:47
freakydeakyalive :
How's the Weather Today?

Moderators plz delete this 'freakydeakyalive' user! Hes nothing but trouble and has joined the forums to talk nonsense like he has been on Youtube! Im sure 'babymammoth' can confirm this too...just check out his youtube page: http://www.youtube.com/freakydeakyalive and you will see the kind of pathetic stuff he is doing!



babymammoth posted 2008 Jun 27 19:04
rajman :
freakydeakyalive :
How's the Weather Today?

Moderators plz delete this 'freakydeakyalive' user! Hes nothing but trouble and has joined the forums to talk nonsense


confirmed, he`s a freak
it`s all about this damn trancemusic ...

:

Keep first frame a normal resolution so thumbnail should be ok?
Change another random frame to 16x12, to throw the YT encoder off?
Adjust last few frames' timestamp duration for higher bitrates?


Exactly, but try different dimensions.
because 16x12 in the middle of the video don`t work, (16x12 works only on the very start of video)

I have successful tests of new method called "C243" :)

some recent uploads:

http://pl.youtube.com/watch?v=Qv7T5ycWyw4

http://pl.youtube.com/watch?v=xQouApAy0Z4
http://pl.youtube.com/watch?v=bXnlQSq1kzM



freakydeakyalive posted 2008 Jun 27 19:40
[LINK DELETED]

You are in breach of the forum rules and are being issued with a formal warning.
/ Moderator offline





Golgota posted 2008 Jun 27 19:52
babymammoth :

I have successful tests of new method called "C243" :)


and, what is C243 method? still combination with w16?



Spartacomp posted 2008 Jun 27 20:10
:

I have successful tests of new method called "C243" :)

some recent uploads:

http://pl.youtube.com/watch?v=Qv7T5ycWyw4

http://pl.youtube.com/watch?v=xQouApAy0Z4
http://pl.youtube.com/watch?v=bXnlQSq1kzM


Babymammoth, that is simply an awesome result!

If there's a possibility to learn this method, I would really want to.



freakydeakyalive posted 2008 Jun 27 20:53
Spartacomp :
:

I have successful tests of new method called "C243" :)

some recent uploads:

http://pl.youtube.com/watch?v=Qv7T5ycWyw4

http://pl.youtube.com/watch?v=xQouApAy0Z4
http://pl.youtube.com/watch?v=bXnlQSq1kzM


Babymammoth, that is simply an awesome result!

If there's a possibility to learn this method, I would really want to.



[LINK DELETED]

You are in breach of the forum rules and are being issued with a formal warning.
/ Moderator offline





rajman posted 2008 Jun 27 21:02
freakydeakyalive :
Spartacomp :
:

I have successful tests of new method called "C243" :)

some recent uploads:

http://pl.youtube.com/watch?v=Qv7T5ycWyw4

http://pl.youtube.com/watch?v=xQouApAy0Z4
http://pl.youtube.com/watch?v=bXnlQSq1kzM


Babymammoth, that is simply an awesome result!

If there's a possibility to learn this method, I would really want to.



http://www.youtube.com/grou[LINK DELETED]

Guys ignore this idiot here, hes posting random crap and trying to get ppl to download his file (most likely a virus). Hope one of the MODs see this and ban him from this forum



babymammoth posted 2008 Jun 27 22:56
Golgota :

I have successful tests of new method called "C243" :)

and, what is C243 method? still combination with w16?


Yes but this time dimensions have to be smaller
and videos combined

C243 - combined 2 4x3


first successful was about week ago:

http://pl.youtube.com/watch?v=hGU-XkXNVRo



offline posted 2008 Jun 28 01:40
@ ALL

It seems a minority are using youtube to stalk and flame each other, and it threatens to cross over to VH.

Instant BAN's may be issued WITHOUT WARNING if this continues.
Thankyou.



dzvero007 posted 2008 Jun 28 04:43
zappa_engine :
I still think there is a use to uploading videos YouTube won't modify. I'm aware of the "Watch in high quality" option but it doesn't fit when the video is screen captures, low motion, and can't reach the 600+kbps requirement to earn that option.

You're wrong. YouTube easely reach 600 kbps when video is watched in "high quality". That is depending of original file uploaded. For example, I have a video which is 1005 kbps overal, and only video is 905 kbps. That's very acceptable for me and I did not used hexing or 16x12.



zappa_engine posted 2008 Jun 28 05:45
dzvero007 :
zappa_engine :
I still think there is a use to uploading videos YouTube won't modify. I'm aware of the "Watch in high quality" option but it doesn't fit when the video is screen captures, low motion, and can't reach the 600+kbps requirement to earn that option.

You're wrong. YouTube easely reach 600 kbps when video is watched in "high quality". That is depending of original file uploaded. For example, I have a video which is 1005 kbps overal, and only video is 905 kbps. That's very acceptable for me and I did not used hexing or 16x12.


I think you misunderstood what I was trying to say :) I'm not saying YouTube can't handle high bit rate videos. I'm saying that YouTube can't handle low bit rate videos in high quality (IE screen capture, low motion, anything less than 600kbps per YouTube spec). So my screen captures end up being converted and my users can't see text clearly anymore.

I've tried two other methods to try to fix this issue. Encode my screen captures with XviD with highest quality possible and it still doesn't reach over 600kbps, or use a different compressor codec (HuffYUV), which then creates crazy large video files (600mb+) for a 1 minute video capture? It is unrealistic to upload that.

I'm left with either padding my screen captures with high motion "junk video" to bolster the bitrate, or trying to find the solution to upload a standard video unmodified by YouTube. This is where modified FLV comes into play.

BTW: I'll go ahead and link a small 15 sec clip of the video I am trying to upload so you can see what I mean. It's compressed with x264vfw, but it's close enough to source quality. It is a part of a screen capture video showing how to install an application (Winboard). http://www.zshare.net/video/14342971d13ed21d/ [0.80MB]



dzvero007 posted 2008 Jun 28 06:16
Try to change your screen resolution to 640x480 and then record your screen. Encode your video at 640x480 with full quality.
Currently, your vid does not look clear on YouTube because of resize from 1024x768 to 480x360. (and 320x240 in standart YT quality).



Dioxaz posted 2008 Jun 28 06:29
EDIT: sorry to cut the conversation above all else

If there's anyone still interested, the offset location for the first frame resolution when using mencoder is 0x27E.

Here are the parameters I used for that Sonic 2 video I've shown a few posts earlier:
:
mencoder %1 -o %1_new.flv -of lavf -oac copy -ovc lavc -lavcopts vcodec=flv:vbitrate=140:keyint=240:trell:v4mv:cbp:last_pred=3:predia=4:dia=4:preme=2:vpass=1 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames

mencoder %1 -o %1_new.flv -of lavf -oac copy -ovc lavc -lavcopts vcodec=flv:vbitrate=140:keyint=240:trell:v4mv:cbp:last_pred=3:predia=4:dia=4:preme=2:vpass=2 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames

Of course, all of this was in a batch file (where "%1" is the file name).
Audio part was preencoded with LAME and then muxed into the lossless AVI. Then, that lossless AVI was reencoded with the "script" above. The 16x12 trick was performed on that resulting FLV (giving me that nice blockiness at the beginning, but that's better than nothing). Suprisingly, in my case, I had to write a "00" before the "08", "06", "11", "1F" sequence to make the trick work. This explains the 0x27E instead of 0x27F I think.

Obviously, I agree with tricks becoming more and more old-fashioned, especially on usual content. But if you still have content where you must give more importance to audio or where you want to you a high framerate (even if YT is not at ease with high framerates), 16x12 and others are still the way to go.



zappa_engine posted 2008 Jun 28 06:30
It's not possible to record this capture in 640x480 because the resolution isn't supported in the OS (nor is it desired anyhow). Regardless I doubt it will make much of a difference in bit rate. This section of the video actually was one of the more intensive parts to encode and it still didn't reach mark.

There will be videos that just can't be fluffed up to reach 600+kps that makes YouTube offer the watch in high quality option. The rest of the videos get re-encoded. It's not the issue of the screen being resized down from 1028x768 because I've re-encoded and resized the video down to 480x360 already and it is fine. YouTube simply doesn't encode it clearly.



dzvero007 posted 2008 Jun 28 06:39
Would you like me to record screen and you'll see the result on YouTube ? Just tell me what program you use to record your screen. :)


zappa_engine posted 2008 Jun 28 06:53
Dioxaz :
The 16x12 trick was performed on that resulting FLV (giving me that nice blockiness at the beginning, but that's better than nothing). Suprisingly, in my case, I had to write a "00" before the "08", "06", "11", "1F" sequence to make the trick work. This explains the 0x27E instead of 0x27F I think.


Might I suggest using the hex "80" "08" "00" "06" instead? :) I have a programmer's mind and did an analysis on the FLV format to figure out what these hex codes did and I found out this hex code would modify the resolution to 16x12 but also change the intra frame, and deblock, and quantizer, and 5 more bits which I didn't analyze. The rest of the bits are then shifted causing the first video FLV tag to become invalid.

I'm not sure how to link to that post but it's on page 28 of this thread with a full explanation and links to documentation to verify that. But I have to note that even changing the hex so that the rest of the video tag is okay doesn't stop the first frame blockiness. It is after all, still a hack trying to fit a wrong resolution into 16x12.

P.S. I'm not sure how the FLVBind program works regarding syncing frame rates, but when you join a blank 16x12 frame with another FLV there is no blockiness. It's because the video data in the flv video tag is correct.



zappa_engine posted 2008 Jun 28 07:00
dzvero007 :
Would you like me to record screen and you'll see the result on YouTube ? Just tell me what program you use to record your screen. :)


I use VMWare Workstation. There is an option inside this program to record the screen.

Do you think you can use the 15 second sample clip I supplied? I think you'll realize what the issues I encounter doesn't have a simple solution.



Spartacomp posted 2008 Jun 28 07:54
Spartacomp :
frifox :
if you are bad at HEX-ing, here's an alternative (which also does NOT produce gray-artifacts hehe):

  • Make 16x12 black PNG image in Photoshop
  • Save it as "16x12.png" to folder where FFMPEG resides
  • Open CMD, and browse to the folder with FFMPEG and 16x12.png
  • Run this command:
    ffmpeg -loop_input -f image2 -i 16x12.png -vcodec flv -r 25 -g 1 -t .04 -sameq pad-16x12.flv
    *** the code above, will make a 16x12 FLV video lasting only 1 frame (40miliseconds)
  • combina that one 16x12-frame FLV video to your actual FLV video:
    FlvBind uTubeVideo-patched.flv pad-16x12.flv uTubeVideo.flv
    *** for the command above, you'll need "FlvBind" program... google for it and you'll find it, first link
  • upload the produced "uTubeVideo-patched.flv" video
  • uploaded video will have pixelated thumbnail, but it will stay HQ :)


Hi Frifox,

First of all, thanks for providing so much help!

I am a Dutch musician and since a few days I did not even know what ffmpeg was! :lol: After days of struggling I finally managed to get it working on my computer. I also managed to get a test clip in permanent stereo on youtube using the W16 or 16x12 method (http://www.youtube.com/watch?v=z283Neq6gUE), but now I would like to merge the 2 flv's to get a complete video clip. And this is where I get stuck.

In your comment above you present a command to change a png into a 40ms flv. When I use that command, I get this message:

$ ffmpeg -loop_input -f image2 -i 16x12.png -vcodec flv -r 25 -g 1 -t .04 -same
q pad-16x12.flv
FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-memalign-hack
libavutil version: 49.7.0
libavcodec version: 51.57.2
libavformat version: 52.16.0
libavdevice version: 52.0.0
built on Jun 27 2008 12:04:17, gcc: 3.4.5 (mingw-vista special r3)
[image2 @ 0074FBD0]Could not find codec parameters (Video: 0x0000)
16x12.png: could not find codec parameters


Could you please help me out here, as I am nearly finished completing an utterly frustrating job!! :cry:

Btw: thanks for helping us musicians to be able to present our work as it should be, in STEREO :!: !!


Please, somebody please help me in my final stages. I have spend days to get this working and I will not stop until I have my new music VIDEO uploaded in stereo. That means, that at the moment you click the URL to it or click the play button in an embedded screen it will play stereo IMMEDIATELY without pushing a silly extra button!! (EDIT: LET ALONE, ASKING YOUR VIEWERS TO ADD &FMT=18 AT THE END OF THE URL)

1.First I need to be able to convert a 16X12 PNG file into a 40ms flv file, which will be flv-file.1
2.Then I need to be able to use hexalter to alter the uTube video/music flv file, which will be flv-file.2

I am able to bind them using FlvBind. But I can't get passed the abovementioned 2 points. I also can't get hexalter to work. I have merged: 16x12 1 sec flv + video/music flv files several times to YTube, only to end up with the same frustrating results ofYTube not able to process the file.

PLEASE HELP!! :cry:



Spartacomp posted 2008 Jun 28 08:06
Spartacomp :
Spartacomp :
frifox :
if you are bad at HEX-ing, here's an alternative (which also does NOT produce gray-artifacts hehe):

  • Make 16x12 black PNG image in Photoshop
  • Save it as "16x12.png" to folder where FFMPEG resides
  • Open CMD, and browse to the folder with FFMPEG and 16x12.png
  • Run this command:
    ffmpeg -loop_input -f image2 -i 16x12.png -vcodec flv -r 25 -g 1 -t .04 -sameq pad-16x12.flv
    *** the code above, will make a 16x12 FLV video lasting only 1 frame (40miliseconds)
  • combina that one 16x12-frame FLV video to your actual FLV video:
    FlvBind uTubeVideo-patched.flv pad-16x12.flv uTubeVideo.flv
    *** for the command above, you'll need "FlvBind" program... google for it and you'll find it, first link
  • upload the produced "uTubeVideo-patched.flv" video
  • uploaded video will have pixelated thumbnail, but it will stay HQ :)


Hi Frifox,

First of all, thanks for providing so much help!

I am a Dutch musician and since a few days I did not even know what ffmpeg was! :lol: After days of struggling I finally managed to get it working on my computer. I also managed to get a test clip in permanent stereo on youtube using the W16 or 16x12 method (http://www.youtube.com/watch?v=z283Neq6gUE), but now I would like to merge the 2 flv's to get a complete video clip. And this is where I get stuck.

In your comment above you present a command to change a png into a 40ms flv. When I use that command, I get this message:

$ ffmpeg -loop_input -f image2 -i 16x12.png -vcodec flv -r 25 -g 1 -t .04 -same
q pad-16x12.flv
FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-memalign-hack
libavutil version: 49.7.0
libavcodec version: 51.57.2
libavformat version: 52.16.0
libavdevice version: 52.0.0
built on Jun 27 2008 12:04:17, gcc: 3.4.5 (mingw-vista special r3)
[image2 @ 0074FBD0]Could not find codec parameters (Video: 0x0000)
16x12.png: could not find codec parameters


Could you please help me out here, as I am nearly finished completing an utterly frustrating job!! :cry:

Btw: thanks for helping us musicians to be able to present our work as it should be, in STEREO :!: !!


Please, somebody please help me in my final stages. I have spend days to get this working and I will not stop until I have my new music VIDEO uploaded in stereo. That means, that at the moment you click the URL to it or click the play button in an embedded screen it will play stereo IMMEDIATELY without pushing a silly extra button!! (EDIT: LET ALONE, ASKING YOUR VIEWERS TO ADD &FMT=18 AT THE END OF THE URL - I AM TRULY ASHAMED TO BE FORCED TO DO THAT RIGHT NOW :oops: - and what's even sillier is when you see it in an embedded screen you will be served MONO :x anyhow, whatever you do!! - I cannot present my work like that, I simply can't!!)

1.First I need to be able to convert a 16X12 PNG file into a 40ms flv file, which will be flv-file.1
2.Then I need to be able to use hexalter to alter the uTube video/music flv file, which will be flv-file.2

I am able to bind them using FlvBind. But I can't get passed the abovementioned 2 points. I also can't get hexalter to work (edit: perhaps because I am working with windows and NOT linux - HELP!). I have merged: 16x12 1 sec flv + video/music flv files and uploaded them several times to YTube, only to end up with the same frustrating results ofYTube not able to process the file.

EDIT: I am also not wary of doing a little hex-editing if necessary in (I suppose) the actual music video flv file (= flv-file.2) OR ANY OTHER FILE, I DON'T CARE! I have come this far and I WILL finish it. Please give me the extra push/motivation I need. I am worth it. I promise.

PLEASE HELP!! :cry:



ricardouk posted 2008 Jun 28 09:17
Spartacomp how do you plan on distributing your work? Through embeding on your site? or by linking to the videos on youtube?

On the first option you can add the fmt=18 bit to the embeded code and voilá you got yourself stereo sound with no extra clicking needed for whoever is watching it, how long did that take? You have spent days and you can do it just by adding fmt18 on the embed code.


Arent you making this hard on yourself when it can be done easily?

Am i missing something here?

normal embeded code:
:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/qgYqNJH7QhQ&hl=en"></param><embed src="http://www.youtube.com/v/qgYqNJH7QhQ&hl=en" type="application/x-shockwave-flash" width="425" height="344"></embed></object>


mp4 embeded code:
:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/qgYqNJH7QhQ&hl=en&rel=0&ap=%2526fmt%3D18"></param><embed src="http://www.youtube.com/v/qgYqNJH7QhQ&hl=en&rel=0&ap=%2526fmt%3D18" type="application/x-shockwave-flash" width="425" height="344"></embed></object>



vhelp posted 2008 Jun 28 09:24
Sorry to go on, over here.. I just couldn't help it :x

:
I'm not sure how to link to that post but it's on page 28 of this thread with a full explanation and links to documentation to verify that. But I have to note that even changing the hex so that the rest of the video tag is okay doesn't stop the first frame blockiness. It is after all, still a hack trying to fit a wrong resolution into 16x12.


--> http://forum.videohelp.com/topic336882-810.html#1860628

You click the tiny marching-ants icon on the left, next to the post date.

...

I wanted to bring something up because I think it added to the confusion..

zappa if you have any comments on this, below, please help clear it up :)

The origianl idea of the "08 06 11 1F" was for the 16x16 hack. When I present the hex values (at the end)
to be in error of the hex setup (16x16) it was noted that in any case the 16x12 worked and that the
values of "11 1F" was working in the videos, so that was all that mattered. At first I thought I was in
error, and proceeded to read up on hexing and learnt a few things -- but hex is hex, and so, I decided
to add in a tiny dec/hex calculator into my tool so I can do quick hex calcs and things:

dec.09 is 09 hex,
dec.10 is 0A hex
dec.11 is 0B hex
dec.12 is 0C hex
dec.13 is 0D hex
dec.14 is 0E hex
dec.15 is 0F hex
dec.16 is 10 hex
dec.17 is 11 hex
dec.18 is 12 hex
.
dec.19 is 13 hex
dec.20 is 14 hex
.

So, the origianl line should have been: "08 06 10 10" for a 16x16, but the "hack" entry was for
a 16x12, which should have been: "08 06 10 0C" for a 16x12. So, I don't know why it is still be
addressed as "11 1F" for the 16x12 setup :x

Also, I think that the setup for the 16x12 was in error but was working, though with side effects.
I think that if you change the "hack" values to: "08 06 10 0C" that it might work without the
side effects, though I could be wrong on that outcome. Maybe the reason for problems is because
the video is non-standard, or maybe not.

...


:
It's not possible to record this capture in 640x480 because the resolution isn't supported in the OS


You don't have to, just resize in post-process. Read on..

zappa, I think you are missing the point.. In short, because of YT's non-optimized method
for resizing (downsizing) to 480x360 (in YT's place it is prob doing something to do w/ the 480x360
that causes it to look a bit fuzzy [if thats the right word to use here]) and as for the latest video
uploads (see recardo's vids) they seem to give evidense to this YT sizing phenomina at
hand. So, resizing (IMHO) is prob a beneficial move, both on picture detail (though it resizes down
to 480x360 [with a better resizng metho]) *and* encoding a HQ mp4 video. So you gain two-folds
here. Encoding a straight 480x360 might work in some cases, though usually through hacking at
certain attributes of a given codec, in this case, flv. ffmpeg and mencoder seems to be the two
major champs at producing this videos via lav codec or something -- I forget. Anyway, so and
because of this, you have the ability to "hack" the videos to some degree -- until YT applies new
changes to prevent this any further -- ie, reencoding ALL videos, period.

So zappa, it is in your best interest to apply a resizing (enlarge your videos) to 640x480 using a
known process, one that will yeild untampered results. And, the two major contributers for this
aspect of the application are: VirtualDUB and AVIsynth, using any one of the lanczosn resizing
plugins. These two champs are highly popular in this regard. Going the Premier or Vegas or what-
ever else out there could produce unexpected results leaving you to believe that this idea (above)
is flowed. So best to just go with the apps, vdub or avisynth, and do it right, the first time!

When you upload a 640x480, YT will treat (process) it differently than it does a straight 480x360
video. The somewhat hidden aspect of this process is that your video must be present (encoded)
in a format rec'niz'able by YT and still beneficial in terms of codec and its optimize setup for the
best possible (lossless or near lossless) compression. I have a zillion vids to test (using these
mentioned tips, but my dial-up puts me at a stand-still. Anyway.

(I'm not against hacking vids, believe me, but it would seem that YT is adjusting to them every so often)

In my honest thereorectiable opinion, the 640x480 uploads will prob get you that higher MP4 bitrate
that you (we all) are looking for or will be looking for, going forward. Therefore it is critical that
we (in addition to making a slight turn in our video preporations) hunt down and find the matching
(tuned) codec of choice, one in favor (preference to) with YT and fine-tune it and the associated
aspects of preparing/encoding the videos prior to uploading to YT. That is the steps that I have
been researching these past few weeks or so, though recardo's last two vids helped make me
more of a believer in this idea.

As such, there are a number of codecs to consider for this fine-tuning process:

A -- XviD
B -- DivX
C -- mjpeg
D -- huffy
E -- lagarith ( recently updated to 1.3.16 Jan/08 )
F -- flv
G -- x264 ( many regular updates )
H -- flv
I -- On2 ( optimized flash codec )

But we should really first test each codec with a given (and consistant) video and see which one
YT applies the best overall quality, though specifically, the bitrate. Then we have our defined
codec to work with. This will become the codec (of gospal) to use every time we want to send YT
a video for processing, optimally. And sooner or later, YT will prob even go as far as suggesting it :)

(I have the feeling that this is where we will be going.. optimzing our destination codec videos)

And, to add.. when testing these videos it should be clear that we do so with consistant videos.
Not different videos at every upload. That's what has been happening here and the reason for so
much turning of these pages -- mostly waisted testing because all the videos were different every
time, and consiquentially, so were the results. So stick to the script.. using consistant videos (the
same video) in these testings. I present to you an good example of this practice.. 45tripp !!

That's all I have to say for now..

-vhelp 4738



Spartacomp posted 2008 Jun 28 09:30
ricardouk :
Spartacomp how do you plan on distributing your work? Through embeding on your site? or by linking to the videos on youtube?

On the first option you can add the fmt=18 bit to the embed code and voilá you got yourself stereo sound with no extra clicking needed for whoever is watching it, how long did that take? You have spent days and you can do it just by adding fmt18 on the embed code.


Arent you making this hard on yourself when it can be done easily?

Am i missing something here?


I am distributing my work mostly through embedding on OTHER sites. Therefore the &fmt=18 option is obsolete. And YES, you ARE missing something here! In case you haven't noticed it, adding &fmt=18 into the embed code DOES NOT WORK! It STILL plays MONO :x !!! Don't you think if that would work I would be here at all?? I guess the YTube "wizz-kids" NEVER thought about that. Ofcourse, how could they? Just working in their own arrogant mindset, without thinking about the world of possibilities to make YTube REALLY loved amongst the people!!

Therefore, adding &fmt=18 is NO option. Period. Anybody with a heart, please help!

Ricardouk you haven't even answered my previous question to you about the Avanti method not working as it should be. I was willing to try that method but you did not even care to answer me. What do you expect me to think about that?

See:

Spartacomp :
ricardouk :
Spartacomp you dont need a hack to have music in stereo on youtube:
http://forum.videohelp.com/topic336882-810.html#1860606

Example:
http://www.youtube.com/watch?v=MnhswI3xGKw


Ricardouk, thanks for this! I am trying this as well at the moment but Avanti gives the following message:

19:44:14 - Checking file paths and basic settings ...

19:44:14 - Audio only expected at 'Source 2' with current settings.

Any ideas?

Rajman also thank you. You are right, I need the option with stereo music and video and I hope Frifox can help me with that. But I hope I can get the Avanti method working as well.



ricardouk posted 2008 Jun 28 10:14
Spartacomp :

I am distributing my work mostly through embedding on OTHER sites.

so adding the fmt18bit yto embed codes works. just look up the code i posted before, i wrote fmt18 for reference because the code that you actually need to add is different.


Spartacomp :
Therefore the &fmt=18 option is obsolete.

No its not

Have alook here at this example, the video on the right is playing stereo(youtube mp4 version), on the left is the regular mono flv version.
http://ricardouktest.googlepages.com/123.html


Spartacomp :
Ricardouk you haven't even answered my previous question to you about the Avanti method not working as it should be.


Spartacomp i left you alink to the Avanti thread as i just use it, and the best advice i had back then and now is to post your question to the Avanti author.

heres the code again for embeding youtube mp4 versions, just add
:
&rel=0&ap=%2526fmt%3D18
after the video url on the code


:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/qgYqNJH7QhQ&hl=en&rel=0&ap=%2526fmt%3D18"></param><embed src="http://www.youtube.com/v/qgYqNJH7QhQ&hl=en&rel=0&ap=%2526fmt%3D18" type="application/x-shockwave-flash" width="425" height="344"></embed></object>


example:



Spartacomp posted 2008 Jun 28 10:44
Ricardouk, embedding flv's does NOT WORK! I am NOT working with MP4's. I am working with WMV and FLV. That's it. That's how most musicians do it, because they need to be able to quickly get their work on YTube without being a computer wizzard.

About the Avanti method, you refer me to the author?? WHAT?? You left me a link using AVANTI with the UNI FLASH HQ which is FLASH FLV. And now you don't have any answers you change the subject to MP4??? WHAT IS THAT??

I am repeating my (simple and fair) question:

1.First I need to be able to convert a 16X12 PNG file into a 40ms flv file, which will be flv-file.1
2.Then I need to be able to use hexalter to alter the uTube video/music flv file, which will be flv-file.2

I am able to bind them using FlvBind. But I can't get passed the abovementioned 2 points. I also can't get hexalter to work (edit: perhaps because I am working with windows and NOT linux - HELP!). I have merged: 16x12 1 sec flv + video/music flv files and uploaded them several times to YTube, only to end up with the same frustrating results ofYTube not able to process the file.

EDIT: I am also not wary of doing a little hex-editing if necessary in (I suppose) the actual music video flv file (= flv-file.2) OR ANY OTHER FILE, I DON'T CARE! I have come this far and I WILL finish it. Please give me the extra push/motivation I need. I am worth it. I promise.

So here's my question: please help me out on this one. Thanks so much in advance.



cjwcorp posted 2008 Jun 28 10:54
Does anyone have link to IMuTube v2?
I had it, but I accidentally erased it.

Frifox emailed it to me... but when I clicked the download link again, says the file was erased.
Please send to me. cjwcorp@gmail.com



ricardouk posted 2008 Jun 28 11:01
I must be speaking another language for crying out loud:

you said you were distributing your work by embeding vidos from youtube on your site, if you want youtube to produce stereo videos you need to upload a wmv, flv whatever you want, youtube will then convert that video to 3 different versions:

320x240 flv mono under 350 bitrate

480x360 flv mono bitrate above 700

AAND FINALLY THE MP4 STEREO VERSION THAT YOUTUBE PRODUCES:

480x360 mp4 stereo

then if you use the code i wrote before your embeds will PLAY THE STEREO VERSION


you can upload whatever format you want, wmv, flv, mp4, etc, youtube will convert it to the 3 versions above.


Sorry if i gave you the wrong link this is the link wherte you can get some help from the Avanti creator about that problem:
http://forum.videohelp.com/topic343287-30.html



Spartacomp posted 2008 Jun 28 11:05
ricardouk :
I must be speaking another language for crying out loud:

you said you were distributing your work by embeding vidos from youtube on your site, if you want youtube to produce stereo videos you need to upload a wmv, flv whatever you want, youtube will then convert that video to 3 different versions:

320x240 flv mono under 350 bitrate

480x360 flv mono bitrate above 700

AAND FINALLY THE MP4 STEREO VERSION THAT YOUTUBE PRODUCES:

480x360 mp4 stereo

then if you use the code i wrote before your embeds will PLAY THE STEREO VERSION


you can upload whatever format you want, wmv, flv, mp4, etc, youtube will convert it to the 3 versions above.


FOR CRYING OUT LOUD: I DON'T WANT EVERYONE TO USE THE SILLY &FMT=18 FUNCTION EVER!! I JUST WANT MY VIDEOS TO PLAY STEREO IMMEDIATELY USING THE 16X12 AND BIND 2 FLV'S TOGETHER METHOD, OKAY??!! THAT MEANS: ON MY CHANNEL AND IF EMBEDDED!! LIKE I HAVE OBSERVED IN OTHER VIDEOS. JUST HELPING ME OUT IS NOT A SIN. DON'T WORRY!! AND PLEASE DON'T WORRY ABOUT THE YTUBE LORDS. THEY MOST LIKELY HAVE FINISHED THEIR JOB FOR NOW IN THE COMING MONTHS!!

PLEASE HELP!! ANYBODY?? FRIFOX?? JESUS?? HELP!@!



ricardouk posted 2008 Jun 28 11:17
Spartacomp :

I am distributing my work mostly through embedding on OTHER sites


Spartacomp :

I DON'T WANT TO EVERYONE TO USE THE SILLY &FMT=18


Did anyone needed to add anything to watch this video in stereo? But if someone (not you) visits your youtube channel page and copys the embed code and past it on their site, or tries to watch it there, it will no play in stereo, if this is what you meant you're correct, but you said "i am distributing through embeding" it was only on your last comment you said about watching on your youtube channel


Spartacomp can you upload your audio and image/video to rapidshare or any aother hosting so that i can take a crack at it? you can PM if you dont want your souces to be seen here.



Spartacomp posted 2008 Jun 28 11:21
ricardouk :
Spartacomp :

I am distributing my work mostly through embedding on OTHER sites


Spartacomp :

I DON'T WANT TO EVERYONE TO USE THE SILLY &FMT=18


Did anyone needed to add anything to watch this video in stereo? But if someone (not you) visits your youtube channel page and copys the embed code and past it on their site it or tries to watch it there it will no play in stereo, if this is what you meant you're correct, but you said "i am distributing"


Spartacomp can you upload your audio and image/video to rapidshare or any aother hosting so that i can take a crack at it? you can PM if you dont want your souces to be seen here.

YES, YES!! THANK YOU!! I WILL UPLOAD MY VIDEO TO RAPIDSHARE. PLEASE GIVE ME THE ADDRESS. You can email me as well: l.hein@chello.nl



bayme posted 2008 Jun 28 12:35
Spartacomp :
embedding flv's does NOT WORK!
Embedding FLV does work. Both for Flash 9 (fmt=18 mp4) and the older one. It always works. Proof: http://www.youtube.com/watch?v=NVOnECfu_Bc&fmt=18 can be embedded with the code mentioned next..

Spartacomp :
I DON'T WANT EVERYONE TO USE THE SILLY &FMT=18 FUNCTION EVER!! I JUST WANT MY VIDEOS TO PLAY STEREO IMMEDIATELY USING THE 16X12 AND BIND 2 FLV'S TOGETHER METHOD, OKAY??!! THAT MEANS: ON MY CHANNEL AND IF EMBEDDED!!
If you would just calm down and learn to READ you would know that you can easily embed a fmt18 version: http://forum.videohelp.com/topic346256-120.html#1820064

Spartacomp :
Therefore the &fmt=18 option is obsolete. And YES, you ARE missing something here! In case you haven't noticed it, adding &fmt=18 into the embed code DOES NOT WORK! It STILL plays MONO
If your format 18 version is mono, you've uploaded a video with mono audio in it, or the fmt=18 version isn't there yet. Learn to be patient. Google needs some time to encode your upload, you're NOT the only person on the planet abusing YouTube for your lazy-ass wishes. If you're so desperate, try and host your own video. Or go use dailymotion (always stereo): http://www.dailymotion.com/video/x37iuh

Spartacomp :
YES, YES!! THANK YOU!! I WILL UPLOAD MY VIDEO TO RAPIDSHARE. PLEASE GIVE ME THE ADDRESS.
Geez you're an embarrassment to the country I live in. Ever hear of Google? Try http://drop.io/


Spartacomp posted 2008 Jun 28 13:36
bayme :
Spartacomp :
embedding flv's does NOT WORK!
Embedding FLV does work. Both for Flash 9 (fmt=18 mp4) and the older one. It always works. Proof: http://www.youtube.com/watch?v=NVOnECfu_Bc&fmt=18 can be embedded with the code mentioned next..

Lol! You've just presented a link to a regular YTube (flv) video on the YTube website, lol, that is NOT embedded in a different website! Try to REALLY embed it and you will learn to understand.

:
Spartacomp :
I DON'T WANT EVERYONE TO USE THE SILLY &FMT=18 FUNCTION EVER!! I JUST WANT MY VIDEOS TO PLAY STEREO IMMEDIATELY USING THE 16X12 AND BIND 2 FLV'S TOGETHER METHOD, OKAY??!! THAT MEANS: ON MY CHANNEL AND IF EMBEDDED!!
If you would just calm down and learn to READ you would know that you can easily embed a fmt18 version: http://forum.videohelp.com/topic346256-120.html#1820064

You are wrong. Don't try to insult my intelligence wiseguy. It doesn't work. You are the one who should learn to read.

:

Spartacomp :
Therefore the &fmt=18 option is obsolete. And YES, you ARE missing something here! In case you haven't noticed it, adding &fmt=18 into the embed code DOES NOT WORK! It STILL plays MONO
If your format 18 version is mono, you've uploaded a video with mono audio in it, or the fmt=18 version isn't there yet. Learn to be patient. Google needs some time to encode your upload, you're NOT the only person on the planet abusing YouTube for your lazy-ass wishes. If you're so desperate, try and host your own video. Or go use dailymotion (always stereo): http://www.dailymotion.com/video/x37iuh

You are joking, right? Is there any braincell working in your brain that tells you that I would NEVER upload a format that is MONO?? What planet are you from??

:

Spartacomp :
YES, YES!! THANK YOU!! I WILL UPLOAD MY VIDEO TO RAPIDSHARE. PLEASE GIVE ME THE ADDRESS.
Geez you're an embarrassment to the country I live in. Ever hear of Google? Try http://drop.io/

LOL!! Do I smell someone wanting to get the wrong attention here?? If you have nothing to offer than this kind of pretentious behavior, please stay away, you are not helping anyone with this. At the moment Ricardouk is offering me help and I really appreciate what he is doing. Not so much for your silly accusations.



bayme posted 2008 Jun 28 13:58
Spartacomp :
bayme :
Spartacomp :
embedding flv's does NOT WORK!
Embedding FLV does work. Both for Flash 9 (fmt=18 mp4) and the older one. It always works. Proof: http://www.youtube.com/watch?v=NVOnECfu_Bc&fmt=18 can be embedded with the code mentioned next..

Lol! You've just presented a link to a regular YTube (flv) video on the YTube website, lol, that is NOT embedded in a different website! Try to REALLY embed it and you will learn to understand.
You've just proven to all the readers here how completely stubborn you are.


Again: Learn how to read. It gets you places.



Spartacomp posted 2008 Jun 28 14:02
bayme :
Spartacomp :
bayme :
Spartacomp :
embedding flv's does NOT WORK!
Embedding FLV does work. Both for Flash 9 (fmt=18 mp4) and the older one. It always works. Proof: http://www.youtube.com/watch?v=NVOnECfu_Bc&fmt=18 can be embedded with the code mentioned next..

Lol! You've just presented a link to a regular YTube (flv) video on the YTube website, lol, that is NOT embedded in a different website! Try to REALLY embed it and you will learn to understand.
You've just proven to all the readers here how completely stupid you are.

Lol!! You haven't even read properly what I wrote to you, haven't you? You have just presented an MP4 uploaded video and NOT an FLV-file. And apparently you haven't read what Ricardouk mentioned about someone else trying to copy the embed code on their site, it plays MONO!! But that's okay, you may have the last word. But please don't turn this into an argument on this message board, okay? Please email me privately for whatever problem you have with me: l.hein@chello.nl

Thank you very much!



bayme posted 2008 Jun 28 14:16

Embedded fmt=18 version of http://www.youtube.com/v/-i8m6wXVzwo

Now go sit in a corner and cry :lol:



Spartacomp posted 2008 Jun 28 14:19
bayme :

Embedded fmt=18 version of http://www.youtube.com/v/-i8m6wXVzwo

Now go sit in a corner and cry, but stop bothering us with your stupidity please.

Again, you don't understand. Don't interfere in discussions you have no knowledge about. Please read what I wrote to you. Don't turn this into an argument. It only makes you look silly.



ricardouk posted 2008 Jun 28 14:23
Spartacomp :
http://www.youtube.com/watch?v=NVOnECfu_Bc&fmt=18
Lol! You've just presented a link to a regular YTube (flv) video on the YTube website.



Spartacomp just because im helping you, doesnt mean i agree with you, i agree with what Bayme said, i've just decided to stop arguing and help you out, but he is correct on what he is saying, unless your definition of embebed is diferent than ours. The thing is that Bayme is a little impatient with 29 pages and the same questions getting asked over and over again.

you can use the codes here to embed/post your youtube mp4 stereo videos on any website or blog or social network. Viewing videos on your youtube channel is a different matter.

Bayme i guess he's trying to say is that if someone visits his channel and copies the embedded code from youtube, that code doesnt show the stereo mp4 version.

the only way of having stereo by default on the embed code is by muxing an image+mp3 into flv with avanti like this one i uploaded, but we cant have video motion on it.



bayme posted 2008 Jun 28 14:35
By the way, I just noticed that YouTube has changed its height for the embed code (it's a few pixels less) as a result of their new player controls. Meaning I should edit the embed code for fmt=18 too. I've posted a new one: http://paste2.org/p/43210

ricardouk :
i guess he's trying to say is that if someone visits his channel and copies the embedded code from youtube, that code doesnt show the stereo mp4 version.
In which case he can use dailymotion or vimeo as a place to drop his videos. Which he could also already have read earlier in this thread :P

I think I'm being rather patient with someone spreading lies around as if they are truths.

Spartacomp :
I guess the YTube "wizz-kids" NEVER thought about that. Ofcourse, how could they? Just working in their own arrogant mindset, without thinking about the world of possibilities to make YTube REALLY loved amongst the people!!

Therefore, adding &fmt=18 is NO option. Period. Anybody with a heart, please help!
You should learn how to drop the attitude, before asking help. And you should learn how to first read and think, and then, but only then, ask politely if we might know of a way to help you out. And while you're doing so, try not to spread lies around like "embedding flv's does not work!!!", or shout nonsense like "I DON'T WANT EVERYONE TO USE THE SILLY &FMT=18 FUNCTION EVER!!", because really, nobody here will like you for it.


zappa_engine posted 2008 Jun 28 15:19
This is a reply to vhelp, but I didn't quote anything because his reply was long :lol: Thank you for taking the time to reply.

Regarding hexing 16x12 resolution:
This was the post that I mentioned how it was read: http://forum.videohelp.com/topic336882-810.html#1860895
FLV stores data in bit format, so trying to read information in hex format won't make too much sense. The first part of the video packet is the PictureStartCode which is 17 bits! Keep in mind a hex pair(EX: "B4") is 8 bits. So you can define two hex pairs (16 bits) but then you have 1 extra bit just sitting around. The next part is Version which is 5 bits. So you have 6 bits sitting around. You can convert 4 bits to a hex digit (EX: "C") but you still have 2 bits floating around. The next part is TemporalReference which is 8 bits. That means we have 10 bits now. We can convert 8 of those bits into a hex pair. We still have 2 floating bits. And then here's the important part which is causing the shifting. The next part of the video data is PictureSize, which is 3 bits, another odd number! So we end up with 5 bits. If those 3 bits are 000 (note this is binary 3 bits), then the width is defined in 8 bits and the height in defined in 8 bits. This is what the original hex code I mentioned in the post above does. Unfortunately not many videos have PictureSize defined as 000. Therefore, its really only needed to change 16 bits (in hex: WH, not WWHH). So the extra bits in the WWHH hex is really modifying other data, not just width and height. A precreated 16x12 video will have a PictureSize defined as 000, but when you're hexing your original FLV file, the PictureSize variable is usually set to 001. So the width and height is defined in 32 bits (16+16).

Well, I'm not sure if all this technical data is interesting to other people so I'm going to stop the explanation here. If you're really interested, just PM me, unless I hear others are interested in the in-depth details. In general, you really need to know how to convert the hex codes to binary, and know how to convert binary to decimal, and then convert decimal back to hex. The width and height information in stored in between hex digits (as binary).
:? :!:


Okay... so regarding my screen capture video:
I did upload a 1024x768 as source but I think I confused people because people then thought I would be uploading a 1024x768 video to YouTube as is. No, that isn't the case. I do process my own videos before uploading them to YouTube so to try to make YouTube skip re-encoding my videos. I do resize the source video to 480x360.

So there are very valid points for uploading in a specific format in a specific resolution if a user wants YouTube to offer the "watch in high quality". I haven't found a solution for my video to reach those specifications though, although admittedly I've only tried 3 codecs (xvid, x264vfw, and huffyuv). In any other case, you get the standard YouTube encode. So I am stuck with standard YouTube video, and the awful encodes. So I need to modify my files to avoid this. Here are the example uploads I've done with a modified file versus an unmodified.

(modified) http://www.youtube.com/watch?v=W9yOhHbW-pM
(unmodified) http://www.youtube.com/watch?v=_Y_x1fd62E0



ricardouk posted 2008 Jun 28 15:41
Your videos look alright, mp4 version looks good altough i see something i dont see when watching other mp4 versions, when watching it(mp4), the video only starts to play when the streaming bar??? reaches the end. On my videos it plays them as it streams them.


vhelp posted 2008 Jun 28 16:23
I knew it had something to do with all these "bit" things, yes, back a while ago. But I don't have
the experience in this area, so I never bothered to bring it up. So, thanks for clarifying my own
theories on this matter :lol:

(Yes, pm would be good for such "stumpping" like questions, (so's not to congest the discusion
with trafficing nonsense -- repeat quotes and the like) and I rarely use it unless I really have to.
I mostly try and re-read the preceading pages, even if that means over and over and over and over
again until I get it or am faced with stalled time and consiquentially move on to other things :lol: )


Yeah, I think I might have confused some a bit, too.. regarding the 480x360 vs. 640x480 resizing :x

Basically, what I ment to say was that better results can be obtained if source is maximum quality
and high resolution, in this case, the suggested 640x480 pixels. Then, YT would do a better job
at processing it, and under the same token, keep the high quality original source in their archives.
Thus, sending a 480x360 would be minimal at best when sending a video to YT. And YT 's resize
(I should say, downsize) is optimum when 640x480 is sent.

And IMHO, sending something larger is just over-kill, because YT will downsize it to 480x360,
anyway, and thats end result of it all. For most viewers, this is the end of the line, unless you
know more (realize the downloading streams route) and need them for offline purposes. That,
to me, is a waist of time since YT is mainly about live streaming and not live-downloading. Those
you case P2P and other such servers, and get greater quality. But for the purpose of YT, the
intented use is what is aparent and we are aiming at providing top quality in this medium.

For instance, the video (linked above) is a good example of a high quality stream experience.
And when you fullscreen it, it still looks very good. I did this at my job when the video first
appeared and it looked very good to me, even played in its YT 480x360 size, perfect.

So, the goal here is to make high quality videos but we are now at a junction where we want
to send the right kind of high quality "prepaired" video for YT's viewers, not offliners. Otherwise,
we are no longer talking about YT but P2P or what-have-you. The buck stops here! :P

-vhelp 4739



dzvero007 posted 2008 Jun 28 16:46
Edited by dzvero007


ShinigamiHamster posted 2008 Jun 28 19:17
First, an overview...

ShinigamiHamster :
Sorry people, but I'm gonna have to ask this. :(

I'm either too stupid to understand the guide on the first page, or it doesn't tell me exactly what I need.

Either way, there's just no way I'm gonna read through all 29 pages.

It would just be way too much info anyway.



What I want to do is this:

I've got some finished videos in .AVI containers, with .WAV sound and XviD for
the video (very high bitrate, looks basically lossless)... The videos are in 480x360.

Now, what I want to do is upload them to YouTube, and keep the original resolution (480x360).

I would also want to convert the video to an .FLV first, so that it doesn't get re-converted
by YouTube later. That way I can have control over the quality, as well as the resolution.

I'd want the audio to be at the very least 128 kbps. But, preferably around 256 kbps.



Now, what's the easiest way to do this? :?:

Remember, I'm 100% noob at this -- so throwing various command lines
and such stuff at me will most likely just bounce off. Talk to me like I'm a little child. :o

Help with this would be greatly appreciated...


ricardouk :
ShinigamiHamster :

Either way, there's just no way I'm gonna read through all 29 pages.


just upload the Xvid as it is if you have a fast connection, that way youŽll have a good source on youtube servers for future conversions.


ShinigamiHamster :
ricardouk :
just upload the Xvid as it is if you have a fast connection, that way youŽll have a good source on youtube servers for future conversions.

That's no good, if I do that YouTube will reconvert the files
and lower the res to 320x240, and also, the audio will suck.

Oh yeah, I don't care much for the "Watch in high quality" option on YouTube...
I want my videos to be 480x360 by default for everyone who may stumble across them.

I'm playing around with Avanti at the moment,
converting with the default UNI_FLASH_HQ.tpl template.

It seems to work. Only catch is, I want at least 128 kbps for the audio*,
so that leaves me with around 212 kbps for the video, so that the combined bitrate stays under 350.

*because the sound has already been reconverted, with lossy codecs, and the "source" probably wasn't of the best quality...

Is it possible to convert to .FLV with Avanti, and have a video bitrate of, let's say, 500, and audio at 224 kbps,
and then hexedit the resulting .FLV file to fake the bitrate - so that YouTube thinks it's below 350 kbps?

If so, could you - or someone - tell me how to do that hexediting? Or point to a page with that info.

I know Virtual Dub has an Hex Editor built in, but I got no clue how to properly use it. :cry:


bayme :
ShinigamiHamster :
I've got some finished videos in .AVI containers, with .WAV sound and XviD for
the video (very high bitrate, looks basically lossless)... The videos are in 480x360.
As Ricardo wrote; I would just upload them as is. With the wav audio and high-bitrate video. In any case, I would definitely NOT rescale the 480x360, or change the audio under the video. If you upload them as they are, you'll skip unneeded (quality degrading) transcoding and conversions.

Sure, you can try and bypass YT conversion for the 'low bitrate standard playable FLV1', but it would leave you with only a standard FLV playable file, in which case you might miss the option of later conversions and possibly even the fmt 18 and fmt 6 quality versions either way.

The above only applies if you *don't* think your video could use sharpening or any other filter *before* you want them online. If you do not yet have the video in a final format, and you have a fast upload speed, you could go this route:

Some hints for the highest possible quality file to give to YouTube:

- Use 25 frames/sec all the way. Try to *record* your video at 25 fps progressive, not interlaced, as well.
- If needed resize to 640x480, and if your aspect ratio isn't 4:3 use letterboxing (i.e. add black bars on top and bottom), VirtualDub lets you easily deal with that under the resize filter.

- Try encoding singlepass lossless with the x264 codec and upload the result using YouTube's uploader. As long as it's under the 1 GB maximum size, that'll give the highest quality result.
- Use uncompressed wav audio in it, because re-encoding (transcoding) audio from one lossy compressed format to another sucks, big time. Use 44.1 kHz samplefrequency, 2 channels (i.e. stereo), 24 bits, or 16 bits PCM.

- If you can't fit your video in 1 GB with a singlepass lossless x264 encode, use Singlepass Rate Factor based (i.e. CRF) encoding with the x264 codec. Start at Quantizer 1 (highest quality) and check if size gets you below the 1 GB limit. If it's still too big, use a higher quantizer value. You can easily go up to 10 and still get amazing video quality with x264.

By the way, contrary to popular belief, x264 and VfW are entirely up to date and perfectly fine these days. (Don't let Google hits about this fool you.) http://sourceforge.net/projects/x264vfw/

P.S. I recommend trying dailymotion or vimeo. They're more stable, reliable, and if your content is your own, you can upload AND embed video as HD, and longer than 20 minutes. Check this out:
http://www.dailymotion.com/faq#what_motionmaker
http://www.dailymotion.com/hd/video/x5hzav
http://vimeo.com/hd



Ummm.... OK... let me answer to that, piece by piece.

bayme :
As Ricardo wrote; I would just upload them as is.

What?

I already wrote that I don't want to upload them "as is", because I do not want YouTube to convert them.

bayme :
In any case, I would definitely NOT rescale the 480x360

"Rescale the 480x360"...? I don't understand.

The videos are already in 480x360, and I want them to remain like that on YouTube.

I have no intention of downsizing or upsizing the resolution.

bayme :
if you upload them as they are, you'll skip unneeded (quality degrading) transcoding and conversions.

Err... Incorrect.

The files will have to be converted (transcoded) either way, as YouTube does not stream XviD in .AVI containers.

If I upload the files as they are, YouTube will convert them to their own liking.

However, if I first convert them to FLV myself, then I can have control over how it will look.

Remember, what I want is to convert my videos to .FLV, then upload them to YouTube, while bypassing their conversion and keeping the resolution. If hexediting is necessary for this, then so be it. Then, I'd like to know exactly what parts of the hex code should be edited, and what it should be changed to.

bayme :
Sure, you can try and bypass YT conversion for the 'low bitrate standard playable FLV1', but it would leave you with only a standard FLV playable file, in which case you might miss the option of later conversions and possibly even the fmt 18 and fmt 6 quality versions either way.

I do not care about that stuff.

bayme :
- Use 25 frames/sec all the way. Try to *record* your video at 25 fps progressive, not interlaced, as well.
- If needed resize to 640x480, and if your aspect ratio isn't 4:3 use letterboxing (i.e. add black bars on top and bottom), VirtualDub lets you easily deal with that under the resize filter.

- Try encoding singlepass lossless with the x264 codec and upload the result using YouTube's uploader. As long as it's under the 1 GB maximum size, that'll give the highest quality result.
- Use uncompressed wav audio in it, because re-encoding (transcoding) audio from one lossy compressed format to another sucks, big time. Use 44.1 kHz samplefrequency, 2 channels (i.e. stereo), 24 bits, or 16 bits PCM.

- If you can't fit your video in 1 GB with a singlepass lossless x264 encode, use Singlepass Rate Factor based (i.e. CRF) encoding with the x264 codec. Start at Quantizer 1 (highest quality) and check if size gets you below the 1 GB limit. If it's still too big, use a higher quantizer value. You can easily go up to 10 and still get amazing video quality with x264.

By the way, contrary to popular belief, x264 and VfW are entirely up to date and perfectly fine these days. (Don't let Google hits about this fool you.) http://sourceforge.net/projects/x264vfw/

Uhh.... None of that stuff has anything to do with what I wrote about...


bayme :
P.S. I recommend trying dailymotion or vimeo. They're more stable, reliable, and if your content is your own, you can upload AND embed video as HD, and longer than 20 minutes. Check this out:
http://www.dailymotion.com/faq#what_motionmaker
http://www.dailymotion.com/hd/video/x5hzav
http://vimeo.com/hd



Err... Those sites are not YouTube.

This is like having your car break down, taking it to an auto repair shop, and the repair man working there refuses to even attempt fixing or replacing the broken engine part, and tells you to buy a Toyota instead of a Nissan. :hmmm:




Anyway...


To ALL who may be reading this:

I have an .FLV file sitting on my desktop now - that I would like to upload to YouTube.

I want to keep the resolution.

The combined bitrate of both the audio and video is below 350kb/s.

I would prefer higher bitrate for the video, but if it's impossible to trick
YouTube into believing the bitrate is below 350, then, I guess that's that.

Could someone at LEAST tell me how to prevent YouTube from re-encoding my .FLV file?

And so that the resolution of the video is kept the same?

Some information about the .FLV in MediaInfo:



Now... here's a screenshot of the Virtual Dub hexeditor:



Could someone please help me out here, and tell me what parts need to be edited to what,
in order to keep the resolution and prevent YouTube from re-encoding the .FLV file...?



zappa_engine posted 2008 Jun 28 20:24
Okay there's a lot of information out there, and probably several methods to upload a modified FLV file to YouTube. I don't know all of them but I do have some conceptual ideas. The quickest and easiest way to upload an unmodified FLV video is through Frifox's (I think?) method.

He demo'd a padded 16x12.flv and appended the main.flv to bypass encoding by YouTube. There are limitations with this method.
1) Framerate may be desync'd
2) Keyframes may be desync'd
3) Thumbnail is top left corner 16x12 image up-scaled so it looks pixelated

What you will need to make sure of main.flv:
1) Overall bitrate of main.flv is 349k or less.
2) Resolution of 480x360 or lower
3) Encoded H.263 (usually that's the case)

What you'll need:
1) 16x12.flv ( http://www.zshare.net/download/143735492fc9d906/ )
2) main.flv (your video fits spec right?)
3) FLVBind program ( http://download.moyea.com/flvbind/flvbind.zip )
4) Understand how to use DOS command prompt

Copy 16x12.flv and main.flv and FLVBind.exe into the same directory. Open up a DOS prompt (WinKey+R, type in cmd). Change to the directory that your 3 files are located. Type in:
FlvBind uTubeVideo-patched.flv 16x12.flv main.flv

Now you'll have uTubeVideo-patch.flv. You can rename this file if you wish before you upload it to YouTube.

P.S. Please don't PM requesting how to do W16 hack. They will be ignored. I am only answering questions in PM about the bit structure of FLV file format in PM.



bayme posted 2008 Jun 28 20:30
ShinigamiHamster :
bayme :
As Ricardo wrote; I would just upload them as is.

What?
I already wrote that I don't want to upload them "as is", because I do not want YouTube to convert them.
Then don't use YouTube. Host the videos yourself, or use blip.tv

ShinigamiHamster :
I want to keep the resolution
You can want a lot of things, but the resolution YouTube will show it in will always be picked by them, not by you.

Anyway, I see you're one of those lazy "I refuse to read what has already been explained ten times in the same thread" fools, so I'm sorry, but you've mistaken me for someone who cares about your 'demands'.



bayme posted 2008 Jun 28 20:45
vhelp :
As such, there are a number of codecs to consider for this fine-tuning process:

A -- XviD
B -- DivX
C -- mjpeg
D -- huffy
E -- lagarith ( recently updated to 1.3.16 Jan/08 )
F -- flv
G -- x264 ( many regular updates )
H -- flv
I -- On2 ( optimized flash codec )

But we should really first test each codec with a given (and consistant) video and see which one
YT applies the best overall quality, though specifically, the bitrate. Then we have our defined
codec to work with.
That would be any lossless codec. For that you would prefer the one that makes the smallest files;
http://compression.ru/video/codec_comparison/lossless_codecs_2007_en.html
conclusion: YULS http://www.yuvsoft.com/download/lossless-codec/

If you're not going lossless, your winner would be x264, hands down:
http://compression.ru/video/codec_comparison/mpeg-4_avc_h264_2007_en.html

And as far as YouTube posting the "watch in high quality" link goes:
For me they did that with .avi uploads that were encoded using x264 with 640x480 AR.



zappa_engine posted 2008 Jun 28 20:52
bayme :
And as far as YouTube posting the "watch in high quality" link goes:
For me they did that with .avi uploads that were encoded using x264 with 640x480 AR.


This pretty nice guy did some tests to see what would qualify for "watch in high quality" too. His results indicated a 600kbps+ bitrate too. His video is here: http://www.youtube.com/watch?v=hLtTNE61iik

His video commentary says this:
:

Take the guesswork out of your uploads and know they will get the "Watch in high quality" option by watching this tutorial.

Here are the settings to use:
-Divx, Xvid, H.264 video UPDATE: You can also use WMV and HuffYUV.
-At least 600kbits/s video bitrate (Verify with MediaInfo). UPDATE: If you have a low motion video that doesn't make 600k, add a faster moving segment, or use HuffYUV. File size will be huge, though. I will keep you updated on the screen capture/video game 600k issue.
-At least 480x360 screen size (try 640x360 for widescreen)
A 2-pass encode isn't a requirement, but it produces better looking results. Also I forgot to mention instead of choosing "nearest neighbor" as your resize method, try "Lanczos3," I think it too produces better results.

For a technical consideration of going HQ vs. LQ, see my blog: http://nerdwithnolife.blogspot.com/2008/05/is-hq-youtube-right-for-you.html
UPDATE: the LQ method is now outdated so this is the guide to use.



rajman posted 2008 Jun 28 21:04
Spartacomp :
bayme :
Spartacomp :
bayme :
Spartacomp :
embedding flv's does NOT WORK!
Embedding FLV does work. Both for Flash 9 (fmt=18 mp4) and the older one. It always works. Proof: http://www.youtube.com/watch?v=NVOnECfu_Bc&fmt=18 can be embedded with the code mentioned next..

Lol! You've just presented a link to a regular YTube (flv) video on the YTube website, lol, that is NOT embedded in a different website! Try to REALLY embed it and you will learn to understand.
You've just proven to all the readers here how completely stupid you are.

Lol!! You haven't even read properly what I wrote to you, haven't you? You have just presented an MP4 uploaded video and NOT an FLV-file. And apparently you haven't read what Ricardouk mentioned about someone else trying to copy the embed code on their site, it plays MONO!! But that's okay, you may have the last word. But please don't turn this into an argument on this message board, okay? Please email me privately for whatever problem you have with me: l.hein@chello.nl

Thank you very much!


Who is this guy? He joined a couple of days ago and I just read some of his posts asking for help....but the way hes speaks with that attitude you guys shouldnt help him at all! Just another guy who wants everything without contributing to the forum



vhelp posted 2008 Jun 28 21:27
:
That would be any lossless codec. For that you would prefer the one that makes the smallest files;


Yes, I agree, but the aim here is to level the quality off with the same (or nearest) to that of
the original source. And the one that is the closest, is the best one to select. So far, the
ones that I have been testing are x264 cli (command line version, not the x264vfw) and the
On2 (optimized flv) codec. The On2 are much larger but they provide a better alternative to
huffy and lagarith but at a fraction of the size, if encoded optimumly :)

Now, because I'm still on dial-up, On2 is out of the question for testing for me. So, its x264 cli
and a bunch of encoding scenarios. That is what I've been working on since. Actually, I'm
about to upload a fractional size of an mp4 file for testing purposes. That'll complete in about
2 hours or so. I know what to expect from YT:

A -- Initial LQ 320x240 flv
B -- HQ 480x360 flv

and, with a little luck, 24hrs later, an

C -- HQ 480x360 mp4

-vhelp 4741



ShinigamiHamster posted 2008 Jun 28 21:54
zappa_engine :


What you'll need:
1) 16x12.flv ( http://www.zshare.net/download/143735492fc9d906/ )
2) main.flv (your video fits spec right?)
3) FLVBind program ( http://download.moyea.com/flvbind/flvbind.zip )
4) Understand how to use DOS command prompt

Copy 16x12.flv and main.flv and FLVBind.exe into the same directory. Open up a DOS prompt (WinKey+R, type in cmd). Change to the directory that your 3 files are located. Type in:
FlvBind uTubeVideo-patched.flv 16x12.flv main.flv

Now you'll have uTubeVideo-patch.flv. You can rename this file if you wish before you upload it to YouTube.


Thanks a LOT zappa :D

There's one small probem with that though:



As you can see, I did exactly what you wrote, and even went as far as to name the video "main"...

"Can't read from source flv 16x12.flv, bad flv ?"

What gives?



zappa_engine posted 2008 Jun 28 23:05
I kind of want to absolve myself from technical support here, but looking at that picture, it looks like your files are all in the root directory C:\

You're running the FLVBind command from C:\Documents and Settings\Administrator and feeding arguments as a relative path, so it would look for the FLV files in C:\Documents and Settings\Administrator and not C:\

So... I have no clue if you have another 16x12.flv it's trying to use in the C:\Documents and Settings\Administrator directory and main.flv also. In any case it seems that you might because it detects it but it's a bad flv?

You didn't change into the actual directory of the 3 files.

I should suggest trying to type in cd\ to get to the root directory (the location of your files it seems) and then typing in the FLVBind line...



germanturkeysausages posted 2008 Jun 28 23:41
Can anyone figure out how this video managed to stay in HQ and have proper thumbnail?
http://youtube.com/watch?v=NK2AwlW4rsQ



vhelp posted 2008 Jun 28 23:46
Well, before I retire ta bed, I thought I would share a little something interesting..


* YT Icon: 89 x 54 pixels

I thought this was interesting with regards to the 16x12 icons that people are trying to inject
into their videos. I snipped this from my latest (test) uploads. Although the actual picture is
94x54, the cropped icon (or thumbnail) view inside is 89x54 pixels. So, I wonder which one is
actually being used, the 94 or 89. I mean, when I copy it to clipboard, I get the whole 94 rows.

And, being that I don't have the energy to try, maybe one of you 'all can try one of these inside
your next test hacked/bit routines and see if these work, being that they do, in YT:

--> 94x54 = "08 06 5E 36"
--> 89x54 = "08 06 59 36"

-vhelp 4742



Golgota posted 2008 Jun 29 00:24
Then maybe we should try to create 89 x 54 pixels of PNG, and bind it with our actual FLV vid.. btw havent try it out yet.


ShinigamiHamster posted 2008 Jun 29 00:28
zappa_engine :
I kind of want to absolve myself from technical support here

If you don't want to give any more support that's ok.

zappa_engine :
I should suggest trying to type in cd\ to get to the root directory (the location of your files it seems) and then typing in the FLVBind line...

Woah, that actually did the trick.

I rarely ever use command prompt, and had almost totally
forgotten that you could write cd\ to get directly to C:\>.

I have only one 16x12.flv on my computer...

Anyway, thanks. I really appreciate it. 8)



ricardouk posted 2008 Jun 29 03:26
bayme :
As Ricardo wrote; I would just upload them as is.

ShinigamiHamster :
What?
I already wrote that I don't want to upload them "as is", because I do not want YouTube to convert them.


Youtube sooner or later fixes the "hole" that allows hexefied videos to be uploaded, so like Bayme said: ...."Sure, you can try and bypass YT conversion for the 'low bitrate standard playable FLV1', but it would leave you with only a standard FLV playable file, in which case you might miss the option of later conversions and possibly even the fmt 18 and fmt 6 quality versions either way. "
bayme :
In any case, I would definitely NOT rescale the 480x360

ShinigamiHamster :
"Rescale the 480x360"...? I don't understand.
The videos are already in 480x360, and I want them to remain like that on YouTube.
I have no intention of downsizing or upsizing the resolution.


HE said NOT RESCALE, if you send them as they are youtube wont downsize or upsize it

bayme :
if you upload them as they are, you'll skip unneeded (quality degrading) transcoding and conversions.

ShinigamiHamster :
Err... Incorrect.

Guess What?? Err... you are incorrect, when something is uploaded if it doesnt match the resolution 480x360 it gets downsized(loooses quality) and transcoded (again loss of quality), if you upload them as 480x360 xvid you'll skip the youtube resizing avoiding quality loss.


ShinigamiHamster :
This is like having your car break down, taking it to an auto repair shop, and the repair man working there refuses to even attempt fixing or replacing the broken engine part, and tells you to buy a Toyota instead of a Nissan.


Exactly if you bothered to read the whole 30 pages you would realize that youtube sooner or later fixed the "holes" that allowed hexefied videos to remain unconverted. Do you understand this bit? You're driving a car that at any moment can break down and youll be stuck, if you by a new car youll be ready for the future. An honest mechanic will tell you that, a bad one will fix your car even tough he knows the car will break down tomorrow again.



bayme posted 2008 Jun 29 05:16
zappa_engine :
http://www.youtube.com/watch?v=hLtTNE61iik
His video commentary says this:
:
Take the guesswork out of your uploads and know they will get the "Watch in high quality" option by watching this tutorial.

Here are the settings to use:
[...]
-At least 480x360 screen size (try 640x360 for widescreen)
I wouldn't use anything other than 4:3 Aspect Ratio, so 640x360 is a bad idea. Better letterbox it, so your upload is 640x480.