Joined: 12/21/2009
Posts: 5
Location: Germany
is there no easier way to "encode" (dunno if its right spelled^^) the videos? i was trying to make a test vid but the explaintation is very poor because, i dont undertsand what these commands are doing... start /wait mencoder.exe -aspect 4:3 -oac copy -mc 0 -ovc lavc -lavcopts vcodec=ffv1:vstrict=-2 -o mixed.avi logo.avi recorded.avi first command after creating logo.avi and recorded.avi <-- screws my Video start /wait x264 "mixed.avi" --deldup 40 --pass 1 --bitrate 350 --keyint 300 --ref 15 --no-fast-pskip --bframes 6 --b-adapt 2 --mbtree --weightb --direct auto --subme 9 --trellis 2 --partitions all --me umh --merange 64 --threads 1 --8x8dct --no-dct-decimate --output "encoded.mp4" this one crashes the x264.exe :( i need an easier way und nebenbeibemerkt sagt doch direkt das ihr hier alleine sein wollt, ihr mit euren ansprüchen, echt ihr habt nen sockenschuss
Former player
Joined: 2/19/2007
Posts: 424
Location: UK
I'm no expert encoder, like the publishers here, but I use this script for my SNES encodes: http://pastebin.com/f48c418c0 It uses ffmpeg to encode a raw audio and video dump from snes9x to an mkv file with h264 video and aac audio. If the script is called snes2mkv, the usage is pretty simple: snes2mkv -vr rate first video.dat audio.dat output.mkv snes2mkv -vr rate second video.dat audio.dat output.mkv Where "rate" is the video data rate you want. But this basically assumes you want to encode movies form snes9x on linux, which is unlikely.
Publisher
Joined: 4/23/2009
Posts: 1283
GrafZeppelin, what OS are you on?
Post subject: Re: mencoder & co
sgrunt
He/Him
Emulator Coder, Former player
Joined: 10/28/2007
Posts: 1360
Location: The dark horror in the back of your mind
GrafZeppelin wrote:
start /wait mencoder.exe -aspect 4:3 -oac copy -mc 0 -ovc lavc -lavcopts vcodec=ffv1:vstrict=-2 -o mixed.avi logo.avi recorded.avi first command after creating logo.avi and recorded.avi <-- screws my Video
I'm not sure what you mean by this - are you saying the results from mencoder aren't what you are expecting?
GrafZeppelin wrote:
start /wait x264 "mixed.avi" --deldup 40 --pass 1 --bitrate 350 --keyint 300 --ref 15 --no-fast-pskip --bframes 6 --b-adapt 2 --mbtree --weightb --direct auto --subme 9 --trellis 2 --partitions all --me umh --merange 64 --threads 1 --8x8dct --no-dct-decimate --output "encoded.mp4" this one crashes the x264.exe :( i need an easier way
Can you give details about the crash? It's been my experience that direct264 is fairly finicky about what video formats it will accept for encoding purposes. If you have lots of disk space, you may want to tell mencoder to output raw (uncompressed) video, which in my experience has yielded the most consistent results:
start /wait mencoder.exe -aspect 4:3 -nosound -ovc raw -vf format=yv12 -o mixed.avi logo.avi recorded.avi
You can use different settings for format= there; I picked that one because it was the first I came across that worked when fiddling with raw video settings. Also note that I specified -nosound; I normally handle sound separately and mux it back with the video after video encoding with mkvmerge. You could just as easily use -oac copy again so you don't need to fiddle with the sound to get the right amount of silence at the beginning in your mixed.avi, but I still recommend you deal with the sound separately. One more note: if you're looking to do an encode to the site's standards, you'll also need to add in subtitles, which I normally do at the given mencoder stage with -sub; will you need to know how to do that? I'm sure our other encoders here will have their own ideas and disagreements with my methods, but hey, I just try to do what works. :-) I wish you success with your encoding.
Joined: 12/21/2009
Posts: 5
Location: Germany
I'm not sure what you mean by this - are you saying the results from mencoder aren't what you are expecting? yes, that vid can noone watch http://tasvideos.org/EmulatorResources/MakingAVI/Logo/Windows.html creating logo.avi with virtualdub step by step. result 2 second video what is only playable in VLC. then i followed http://tasvideos.org/EmulatorResources/MakingAVI/Common/Windows.html and nothing works, after couple of hours ive got the ffdshow thing on my emulator working. then i joined my logo.avi and recorded.avi with Super and coverted it into mp4 format with the h264 thing yeah wasted many hours for a 15 Second video great work. so i thought ok now its time for my trick movies and then nothing worked again super gets me an error wich i dont undertsand somthing about list index out of bound XXX ( XXX is a number changes evertime) http://rapidshare.com/files/324080590/Speed_Tricks_Early_Wrecked_Ship_Break-in.rar if someone think there is something wrong with my videofiles try it :P the x264 error is unknown it crashes and dont tell me something. and yeah i am a noob on this encoding stuff :( using windows 7
Publisher
Joined: 4/23/2009
Posts: 1283
Unless it's going to be a publish encode, you don't need a logo. Lets do it the simple way. Then add on =p. For capture, just capture to lossless AVI with Huffyuv http://www.free-codecs.com/download/HuffYUV.htm or Lagarith http://lags.leetcode.net/codec.html After you have the AVI, x264.exe in windows supports AVI input so just encode directly with that:
x264 --crf 20 -o "output" "input"
Where you replace "output" with the file output you want (with .mp4 or .mkv) (example: out.mp4) and you replace "input" with the AVI you created just before. Then you mux the MP4 or MKV with the audio in the AVI with MKVToolnix http://www.bunkus.org/videotools/mkvtoolnix/. There is a GUI, so I hope it's self explanatory.
Joined: 12/21/2009
Posts: 5
Location: Germany
the capture is not a problem anymore, the encoding stuff is the problem, and with logo it wont work without it wont work too crashes trying ur x264 --crf 20 -o "output" "input" on my VID = dshow [error]: failed to render Wrecked.avi error code = 7 x264 [error]: could not open input file `Wrecked.avi' and the codec u postet i dont know how to use it :(
Publisher
Joined: 4/23/2009
Posts: 1283
Okay. So apparently you can't even play the AVI file fine in Media Player Classic. I would suggest you try capture again with Lagarith. It has an installer. Download the installer, install it. Then when you choose a codec to capture, choose Lagarith. Default settings should be fine. After you finish capture, see if you can play it back in WMP or MPC or VDub. If you can, try the x264 command again. It now should work. Notes: - I can't seem to get your file. Maybe upload to mediafire? - It be easier on IRC, if you join the #TASVideos channel on IRC, we can chat there.
sgrunt
He/Him
Emulator Coder, Former player
Joined: 10/28/2007
Posts: 1360
Location: The dark horror in the back of your mind
GrafZeppelin wrote:
dshow [error]: failed to render Wrecked.avi error code = 7 x264 [error]: could not open input file `Wrecked.avi'
Just to note: error 7 means that the AVI is not in a codec that x264 is capable of reading; I would follow Aktan's advice in using one of the codecs that he has listed.
Joined: 12/21/2009
Posts: 5
Location: Germany
D:\Programme\MPlayer-1.0rc2\direct264>x264 --crf 20 -o "test.mp4" "Early.avi"
dshow [error]: failed to render Early.avi
error code = 7
x264 [error]: could not open input file `Early.avi'
same happend with the Lagarith codec :( and wich server on IRC? http://www.mediafire.com/?ozyeymlto5z
sgrunt
He/Him
Emulator Coder, Former player
Joined: 10/28/2007
Posts: 1360
Location: The dark horror in the back of your mind
GrafZeppelin wrote:
and wich server on IRC?
irc.freenode.net, #tasvideos.
Joined: 12/21/2009
Posts: 5
Location: Germany
@Aktan thx for helping me finding an alternative for the videos :P