Widescreen Gaming Forum

[-noun] Web community dedicated to ensuring PC games run properly on your tablet, netbook, personal computer, HDTV and multi-monitor gaming rig.
It is currently 04 Dec 2024, 13:56

All times are UTC [ DST ]




Post new topic Reply to topic  [ 107 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10, 11  Next
Author Message
PostPosted: 27 Jan 2009, 21:09 
Offline
Insiders
Insiders
User avatar

Joined: 14 Apr 2007, 02:13
Posts: 1514
If the input is too slow, then mplayer may throw that warning. Depending on where you got mplayer or what version you have, it may really be slow. I use up to date builds which are far, far, far, far, far, far, far, far, far, far newer than what's on mplayer's site.

_________________
Widescreen Fixer - https://www.widescreenfixer.org/

Widescreen Fixer Twitter - https://twitter.com/widescreenfixer
Personal Twitter - https://twitter.com/davidrudie


Top
 Profile  
 


PostPosted: 27 Jan 2009, 21:20 
Offline
Editors
Editors
User avatar

Joined: 31 Jul 2006, 14:58
Posts: 1497
I thought I had an up to date version, got it off a link from Doom9 I think but it could be behind.

Seems to be it was just doing it in real time, it took almost exactly how long the movie was to finish the .wav file.

Even if it was just running slow seems too much a coincidence that it took that long. So my guess is that its just recording the file as it "plays" in mplayer rather than just running through the file as fast as possible.

CPU usage was next to nothing and my HDD was not being hit hard ether.

When it was done though I compared it to the .wav I demuxed with VDM and they were exactly the same. Size, Bitrate, ect so I guess I have no real reason to use that method as it did not offer me any advantage.

So my next big ??? is how do you handle audio if you do any sort of editing to the video like cutting or time shift. With it demuxed you would have to find a way to run the audio stream through the exact same commands.

I think Avisynth can do that but not sure.

Im just picturing the situation where you did a lot of video editing and all you have is the original audio track. I cant see any way to match it up at that point.

I personally if I had any heavy editing to do would use Sony Vegas and just export the file as a HuffYuv file and then feed that into x264.

Actually I may even be able to frame serve to x264. It did not work with some of the gui programs but I am most positive it would work with Avisynth and it possibly may work going directly into x264.

I need to run some speed test too, too see if its faster to feed a file directly into x264 rather than use avisynth, also in the case of the 64bit.exe you sent me I can even cut avs2yuv out of the chain making it even faster.

_________________
ViciousXUSMC on the Web - YouTube :: FaceBook :: Website


Top
 Profile  
 
PostPosted: 27 Jan 2009, 21:25 
Offline
Insiders
Insiders
User avatar

Joined: 14 Apr 2007, 02:13
Posts: 1514
You can use mencoder to dump the audio, too. Look at -oac copy with it.

_________________
Widescreen Fixer - https://www.widescreenfixer.org/

Widescreen Fixer Twitter - https://twitter.com/widescreenfixer
Personal Twitter - https://twitter.com/davidrudie


Top
 Profile  
 
PostPosted: 27 Jan 2009, 21:45 
Offline
Editors
Editors
User avatar

Joined: 31 Jul 2006, 14:58
Posts: 1497
You can use mencoder to dump the audio, too. Look at -oac copy with it.


Trying to figure it out...

I tried this:

Code:

   mencoder -oac copy "C:UsersViciousXUSMCDesktopMaster CLIAudioSource.avs" -o test.wav


returns no oac selected.

so tried -oac(copy) and got bad command

tried - oac -copy got -copy is not a known command

So googled it and looks like my file goes before the options.

so mencoder file.avs -oac copy -o test.wav

Still get no -oac selected though.


Edit: nvm I figured part of it out. there is oac and that for audio codec and ovc for video codec. it was telling me I did not have one or the other. You have to have both.

You can use a -nosound tag it says but I tried -novideo and it kicked back that a video stream is necessary so I have yet to find how to run just a audio demux.

Not much on it on google ether, Looks like nobody really uses this to demux. Thats ok I can stick with what I have VirtualDub does it well, I would not be supprised if mkvmerge or mp4box can do it too.

_________________
ViciousXUSMC on the Web - YouTube :: FaceBook :: Website


Top
 Profile  
 
PostPosted: 27 Jan 2009, 21:49 
Offline
Insiders
Insiders
User avatar

Joined: 14 Apr 2007, 02:13
Posts: 1514
Look at the mencoder line I mentioned on the previous page.

You'll also want to specify -ovc frameno (so it skips video).

_________________
Widescreen Fixer - https://www.widescreenfixer.org/

Widescreen Fixer Twitter - https://twitter.com/widescreenfixer
Personal Twitter - https://twitter.com/davidrudie


Top
 Profile  
 
PostPosted: 27 Jan 2009, 21:54 
Offline
Editors
Editors
User avatar

Joined: 31 Jul 2006, 14:58
Posts: 1497
Look at the mencoder line I mentioned on the previous page.

You'll also want to specify -ovc frameno (so it skips video).


Oh ok so its -nosound for audio but for video you have to use frameno.

I'll try it now.

I did the path thing as you can see its great, and one of the best pieces of information that I should have known so long ago.

So the exe files work now even without the .exe extension. Im still having to put the path to files though, is that normal?

If I run a bat file from the directory I do not have too, but if I just run a command prompt I do.

Im looking at your code and its different than How I just put this in.

I used this and it looks like its working
Code:

   mencoder audiofile.avs -ovc frameno -oac copy -o test.wav


Gave me a warning that the output file is .avi but its running anyways. Same behavior as mplayer.exe its very slow, as if it was doing it in real time.

I'll see what I can do by coping your code from the page before you have a few other tags in there like -of

and -of help just told me thats output format :P

That would explain why I did not even get a file out of my script.

Yours is running now and working still its slow though :x

Im going to try to move around the stuff a bit to see if it works, you have the input file at the end and I had it at the start, it seems to be smart enough to know that the only command without a input string is the source file.

edit: never mind your code ran but I cant not find a file for it ether...

I also tested just running files without the path and in a prompt I was able to type just audiosource.avs and it works, not sure why mencoder said it could not find it until I put it the full path.

_________________
ViciousXUSMC on the Web - YouTube :: FaceBook :: Website


Top
 Profile  
 
PostPosted: 27 Jan 2009, 22:45 
Offline
Insiders
Insiders
User avatar

Joined: 14 Apr 2007, 02:13
Posts: 1514
Oh, by the way, it's faster if you just use the fraps capture directly with mplayer or mencoder. You don't need to use an avs script with it. :) (I never do)

_________________
Widescreen Fixer - https://www.widescreenfixer.org/

Widescreen Fixer Twitter - https://twitter.com/widescreenfixer
Personal Twitter - https://twitter.com/davidrudie


Top
 Profile  
 
PostPosted: 28 Jan 2009, 06:47 
Offline
Editors
Editors
User avatar

Joined: 31 Jul 2006, 14:58
Posts: 1497
In this case I only used a .avs script because its 2 clips being added together.

My fraps seems to break recordings into 4gb chunks on its own, I do not see an option to overide that.

I do want to test feeding a FRAPS file directly into mencoder or x264 without Avisynth to see how much faster it is, My CPU maxes out all 4 cores to 100% when encoding with x264 but some of that is probably going to Avisynth and not just x264. Also some of it maybe going to avs2yuv.

_________________
ViciousXUSMC on the Web - YouTube :: FaceBook :: Website


Top
 Profile  
 
PostPosted: 28 Jan 2009, 08:16 
Offline
Insiders
Insiders
User avatar

Joined: 14 Apr 2007, 02:13
Posts: 1514
In this case I only used a .avs script because its 2 clips being added together.

My fraps seems to break recordings into 4gb chunks on its own, I do not see an option to overide that.

I do want to test feeding a FRAPS file directly into mencoder or x264 without Avisynth to see how much faster it is, My CPU maxes out all 4 cores to 100% when encoding with x264 but some of that is probably going to Avisynth and not just x264. Also some of it maybe going to avs2yuv.


You can just dump the audio for the two files separately and combine them together. They are raw WAV streams so you can actually just add them together without a problem.

You can do that with the copy /B command and using + symbols. Look up info on that.

You can also just load the two wav files inside the avs script with WAVSource() like so:

audio_a = WAVSource("part1.wav")
audio_b = WAVSource("part2.wav")
audio = audio_a + audio_b

_________________
Widescreen Fixer - https://www.widescreenfixer.org/

Widescreen Fixer Twitter - https://twitter.com/widescreenfixer
Personal Twitter - https://twitter.com/davidrudie


Top
 Profile  
 
PostPosted: 28 Jan 2009, 10:43 
Offline
Editors
Editors
User avatar

Joined: 31 Jul 2006, 14:58
Posts: 1497
Yeah, what about video clips.

Coud I just feed them into x264 directly and mux them together or does it all have to be rendered together.

Another curiosity of mine, is it possible to cut a video clip after it has been encoded without re-rendering it?

I have one that I forgot to cut and its 10min 30sec long so youtube rejects it. I have to cut 30 seconds off and I know I cant recode the same file without loss of quality and I already deleted the sources.

_________________
ViciousXUSMC on the Web - YouTube :: FaceBook :: Website


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 107 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10, 11  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:
Jump to:  




Powered by phpBB® Forum Software © phpBB Group