Joined: 1/3/2011
Posts: 11
I can't seem to get my videos uploaded to youtube correctly, the video always comes out grey. For reference, my avs script and x264 command line: hd.avs:
game = AVISource("ffv1.avi", pixel_type="RGB24").trim(0,3600).ChangeFPS(25).crop(0,7,0,-9)
factor = (game.height > 540) ? 1 : \
         (game.height > 270) ? 2 : \
         (game.height > 180) ? 3 : 4
game = game.PointResize(game.width * factor, game.height * factor)
game = (game.width < game.height * 4 / 3) ? \
  game.PointResize(game.height * 4 / 3, game.height) : \
  game.PointResize(game.width, game.width * 3 / 4)
game = game.PointResize(game.width * 2, game.height * 2)
frame_rate=Round(game.framerate)
logo = ImageSource("C:\Users\cdombroski\Documents\TASVideos\logo.png", end=round(2 * frame_rate - 1), fps=game.FrameRate).AudioDub(BlankClip(length=round(2 * frame_rate - 1), fps=game.FrameRate, audio_rate=game.AudioRate, channels=game.AudioChannels))
logo = Lanczos4Resize(logo, game.width, game.height, 0, (logo.width / float(game.width) * game.height - logo.height) / -2, logo.width, logo.width / float(game.width) * game.height)
subtitle1_start=10
subtitle2_start=15
subtitle_length=5
last = logo ++ game
Subtitle("Journey to Silius in 13:58.00\nby Exim", align=8, first_frame=frame_rate * subtitle1_start, last_frame=frame_rate * subtitle_length + frame_rate * subtitle1_start - 1, text_color=$00ffffff, halo_color=$00000000, lsp=1, size=84)
Subtitle("This is a tool-assisted recording.\nFor details, visit http://TASVideos.org/", align=8, first_frame=frame_rate * subtitle2_start, last_frame=frame_rate * subtitle_length + frame_rate * subtitle2_start - 1, text_color=$00ffffff, halo_color=$00000000, lsp=1, size=84)
ConvertToYV24(chromaresample="POINT", matrix="PC.601")
ConvertToYV12(chromaresample="POINT", matrix="PC.601")
encode:
../../../../Downloads/x264.exe --qp 0 --keyint 60 --fullrange on --output hd.mp4 hd.avs
This gives the video at: http://www.youtube.com/watch?v=BAW3rcjJ7qw I also tried a 25fps version: http://www.youtube.com/watch?v=vb9rAta7eWA
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
Oh my god, I had this problem as well and it was such a nightmare! I have two solutions for you. I'm not sure if the first one is still useful, but I suggest you to do it, since it's simple, and it helped me a lot. 1. Do not encode the audio into FLAC and import the WAV itself in the MKV instead. 2. Aktan gave me this particular version of mkvmerge. Extract the 7z in a dedicated folder other than the one with your usual mkvmerge. Then, after you've made the MKV using your usual mkvmerge, move the MKV in the folder containing that special mkvmerge and run this command: mkvmerge.exe -o out.mkv in.mkv . Then, send the "out.mkv" to YouTube. I hope I helped you with this.
Joined: 1/3/2011
Posts: 11
As an aditional test, I added a "return game" after the second point resize (just before I grab the frame rate) this was with 25fps still. I got this: http://www.youtube.com/watch?v=6pgrf4OGzK0 Now to figure out which part yt doesn't like... Edit 1: 30fps works Edit 2: Ok, narrowed it down to adding the logo making it break. From what I see/know, the logo should be the same size and have the same audio characteristics as the main movie. Any ideas? Edit 3: Well, that custom mkvmerge made it work, wish I knew what the problem actually was...
Publisher
Joined: 4/23/2009
Posts: 1283
This problem still exist? That's not good.
Editor, Experienced player (860)
Joined: 8/12/2008
Posts: 845
Location: Québec, Canada
Changing the x264.exe file solved this problem for me.
Publisher
Joined: 4/23/2009
Posts: 1283
I just did a test and it seems fine to me. Maybe Nahoc is onto something. I did update my x264.exe recently too.
Banned User
Joined: 8/30/2010
Posts: 500
Location: Argentina Bs. As.
Download x264: http://dl.dropbox.com/u/14171741/TASVideos/x264.exe Here this the file x264, I hope that works Thanks MisterEpic for send me
[18:51] <scrimpy> Oh, nothing [18:51] <mmarks> oh [18:51] <Nach> I think scrimpy is just jealous of you mmarks
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
mmarks wrote:
Download x264: http://dl.dropbox.com/u/14171741/TASVideos/x264.exe Here this the file x264, I hope that works Thanks MisterEpic for send me
No problem. But I'm not using this x264 anymore, I've updated. But this may help anybody else.
Editor, Experienced player (860)
Joined: 8/12/2008
Posts: 845
Location: Québec, Canada
I did some testing and it turns out that the mkvmerge version is the real issue.
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
Am I the only person here that never has mkvmerge issues?
Joined: 11/22/2004
Posts: 1468
Location: Rotterdam, The Netherlands
This is solely because I'm lazy, but if the source material permits I always upload lossless video to Youtube. Usually upscaled to force it to create a 720p version too. Works every time. Example: http://www.youtube.com/watch?v=hsuBm2zFQOQ
Publisher
Joined: 4/23/2009
Posts: 1283
Flygon wrote:
Am I the only person here that never has mkvmerge issues?
Yes because you are the only person who never updates!
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
Aktan wrote:
Flygon wrote:
Am I the only person here that never has mkvmerge issues?
Yes because you are the only person who never updates!
At least I'm not the guy that's incapable of making working MKV files.
Publisher
Joined: 4/23/2009
Posts: 1283
Flygon wrote:
Aktan wrote:
Yes because you are the only person who never updates!
At least I'm not the guy that's incapable of making working MKV files.
But noone is that guy. So what's your point?
Publisher
Joined: 4/23/2009
Posts: 1283
Well after doing a ton of testing, I found out the problem was header removal compression. Here is some information about it: http://www.bunkus.org/videotools/mkvtoolnix/faq.html#header_removal_compression Apparently YouTube demuxer doesn't support it, which is why the video is gray.
Site Admin, Skilled player (1254)
Joined: 4/17/2010
Posts: 11475
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
So what to do with x264 & mkvmerge updating? Will it help?
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Publisher
Joined: 4/23/2009
Posts: 1283
Updating won't fix it. The fix is to disable the header removal compression. That option is in the newer versions of MKVToolnix. I don't think using an older version just so you don't need to set the option is a good idea.
Site Admin, Skilled player (1254)
Joined: 4/17/2010
Posts: 11475
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
Then we need an addition to muxing command, right? I mean, in the Guide.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Publisher
Joined: 4/23/2009
Posts: 1283
Yep, the guide will probably need an update.
Editor, Active player (297)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Adding --compression 1:none --compression 2:none to the mkvmerge commandline resolves this problem. I was just hit with it myself.
Site Admin, Skilled player (1254)
Joined: 4/17/2010
Posts: 11475
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
This command was already added to HD Encoding Guide (by me). Don't know about the SD Guide.
mkvmerge --engage no_simpleblocks --compression 1:none video.mp4 audio.flac -o TAS.mkv
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Publisher
Joined: 4/23/2009
Posts: 1283
It's not needed by the SD guide since the players used usually supports the compression header.
sgrunt
He/Him
Emulator Coder, Former player
Joined: 10/28/2007
Posts: 1360
Location: The dark horror in the back of your mind
You can just specify "--compression -1:none"; -1 means "all tracks".