Post subject: Trying to encode in HD
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
I'm trying to encode a TAS in 1080p Full-HD. Everything was fine, until I get to convert the video stream (after I mixed the logo, the run and the subtitles) in an MP4, using x264.exe. I get that error. Here's the code of the batch file.
x264 --crf 20 --keyint 600 --ref 16 --no-fast-pskip --bframes 16 --b-adapt 2 --direct auto --me umh --merange 64 --subme 10 --trellis 2 --partitions all --fullrange on --rc-lookahead 250 --no-dct-decimate -o encoded.mp4 mixed.avi
You probably already know this, but it's supposed to convert mixed.avi into encoded.mp4 (without the sound). I don't have any problem with sound convertion. The codec used in mixed.avi is FFV1 (FFDShow). Can you tell me what's wrong with the batch file?
Senior Moderator
Joined: 8/4/2005
Posts: 5777
Location: Away
Personally, I can't find anything wrong with the batch file, personally. Either the encoder you're using has some problem with input file (try using a frontend such as MeGUI and see if anything is different), or it is broken in some way (in which case you should try a newer/older version). Maybe somebody else will be more helpful.
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
sgrunt
He/Him
Emulator Coder, Former player
Joined: 10/28/2007
Posts: 1360
Location: The dark horror in the back of your mind
The way I read that output, you don't have enough memory available to start encoding the run - try closing down any other applications you aren't using, perhaps?
Player (36)
Joined: 9/11/2004
Posts: 2630
keyframe 600? that's a bit much.
Build a man a fire, warm him for a day, Set a man on fire, warm him for the rest of his life.
Senior Moderator
Joined: 8/4/2005
Posts: 5777
Location: Away
Nah, 600 is okay. 10x the framerate is a sane value, as reflected by recommended min-keyint setting being "keyint/10 or 1x the framerate".
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
I stopped as many processes as possible, but it still doesn't work. And I don't think it's because I don't have enough memory. Here's a video explaining my problem : http://www.youtube.com/watch?v=f1QwRmYnZGg
Player (36)
Joined: 9/11/2004
Posts: 2630
The malloc is failing in your screenshot and your video. Malloc means Memory Allocation. It's failing to allocate memory for the process and bailing out at that point. That's definitely what's going wrong. Have you tried a different version of x264 or different settings?
Build a man a fire, warm him for a day, Set a man on fire, warm him for the rest of his life.
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
OmnipotentEntity wrote:
Have you tried a different version of x264 [...]?
As soon as I read this part, I got to x264's official website to download the latest 64-Bit version (since I have that kind of processor), and now it works! Thanks!
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
You say you're trying to encode a TAS at 1080p HD? I really highly suggest you contact me, I've recently changed how HD encoding works... and, well... the old method aint gonna cut it. It's obsolete and shouldn't be used for publication anymore.
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
Flygon wrote:
You say you're trying to encode a TAS at 1080p HD? I really highly suggest you contact me, I've recently changed how HD encoding works... and, well... the old method aint gonna cut it. It's obsolete and shouldn't be used for publication anymore.
By making almost no changes to the old method, I could make a fully-fonctional 60fps 1080p encode, with the logo and the subtitles combined! I'm going to upload the result to YouTube.
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
Uh, Mister Epic... we don't work in 1080p anymore... we encode HD videos in even higher resolution now, and YouTube accepts them. We do this to remove the borders.
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
Flygon wrote:
Uh, Mister Epic... we don't work in 1080p anymore... we encode HD videos in even higher resolution now, and YouTube accepts them. We do this to remove the borders.
What's the resolution now? I will redo it.
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
Pop into the IRC channel... HD encoding has suddenly become a hellava lot more complex. Trust me on this.
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
Flygon wrote:
Pop into the IRC channel... HD encoding has suddenly become a hellava lot more complex. Trust me on this.
After our discussion in the IRC channel, I tried to encode in HD using the old method, using a resolution of 1536x1344. It worked! http://www.mediafire.com/?y37rm93wy6w1h74 I was supposed the have finished in the middle of the day, but because I chose the wrong subtitles, I had to start it over. I chose this run, because it doesn't have a YouTube upload. I'm planning to upload this HD encode to YouTube, if you approve.
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
Uh, Mister Epic, there is a reason I wanted you to stay around to learn about the new HD encoding... we use softsubs now for YouTube uploads. Hardsubs aren't prohibited, but as you've learned, they do have issues when you break something. Also, we now encode the audio into the FLAC codec to save space. Edit: MP4? Uh... that's not good. Unless you haven't muxed in the audio. I'm still downloading the file. Edit 2: You... muxed in the audio. You don't upload MP4s for HD encodes. Come into IRC, I realllly need to teach you how to HD encode.
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
Well, Flygon taught me to encode in HD properly, and I edited his AviSynth script to let me mix an animated logo. Here's the result : http://www.youtube.com/watch?v=YEPA3aIvdhQ It will be listed once you approve this encode. I will also post this link in the publication's topic. Thanks!
Joined: 7/2/2007
Posts: 3960
I think the "zooming triangles" effect is needlessly distracting. If you look at most of the existing encoder logos, they're just a static bit of art or a single animated sprite. Your animation, in contrast, covers the entire screen and makes the text harder to read than it should be. Inobtrusive is good.
Pyrel - an open-source rewrite of the Angband roguelike game in Python.
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
I agree, the logo is distracting... but Grunt apparently approved it. Anyway, apart from the logo, it's spiffing! I hope you can keep encoding videos, it's great to see more people on board! Added the link to the publication.
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
Flygon wrote:
Added the link to the publication.
That's why I just made it public! Thanks! And for now, 3 people told me my logo is distracting. Maybe I will take it off, I will think about it.