Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

Pages: (7) 1 [2] 3 4 ... Last » ( Go to first unread post )
Encode With External Encoders, A quick how-to on the feature
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Gromozeka
Posted: Jun 1 2010, 05:25 AM


Advanced Member


Group: Members
Posts: 52
Member No.: 26717
Joined: 1-January 10



phaeron
QUOTE
What I want to know is why these programs have an option that doesn't work. They have command line options that are supposed to accept raw video, so what's wrong here?

ffmpeg is not mencoder, so mencoder does not eat raw video (yuv420p), but eat yuv4mpeg.
Phaeron, in a complicated way realize the support option yuv4mpeg? sad.gif
 
     Top
Loadus
Posted: Jun 1 2010, 03:08 PM


Advanced Member


Group: Members
Posts: 352
Member No.: 10881
Joined: 1-July 04



QUOTE (Gromozeka @ May 31 2010, 11:25 PM)
ffmpeg is not mencoder, so mencoder does not eat raw video (yuv420p), but eat yuv4mpeg.
Phaeron, in a complicated way realize the support option yuv4mpeg? sad.gif

Problem is not the yuv4mpeg format, but the fact that mencoder needs the framesize (width x height) and the speed (fps). I searched through the documentation but couldn't find the size command (found the scale though, but it won't help). Speed is input as -fps %(fps).

If you don't give the size and speed mencoder thinks you're giving it video with framesize 0x0 and speed of 0fps. That's where the error happens.

--------------------
deviantART behance
 
       Top
stephanV
Posted: Jun 1 2010, 03:35 PM


Spam killer ;)


Group: Moderators
Posts: 4348
Member No.: 8917
Joined: 18-February 04



http://tivo-mplayer.sourceforge.net/docs/m...player-man.html

According to there (do a search for rawvideo on that page)

something like

CODE

mencoder -rawvideo format=yv12:fps=%(fps):w=%(width):h=%(height)


should work as input part.

(I forgot the correct VirtualDub variable names)

--------------------
useful links:
VirtualDub, Input plugins and filters, AviSynth, AVI-Mux GUI, AC3ACM by fcchandler, VirtualDub FAQ
 
    Top
Gromozeka
Posted: Jun 1 2010, 03:48 PM


Advanced Member


Group: Members
Posts: 52
Member No.: 26717
Joined: 1-January 10



Loadus
QUOTE
Problem is not the yuv4mpeg format, but the fact that mencoder needs the framesize (width x height) and the speed (fps). I searched through the documentation but couldn't find the size command (found the scale though, but it won't help). Speed is input as -fps %(fps).

If you don't give the size and speed mencoder thinks you're giving it video with framesize 0x0 and speed of 0fps. That's where the error happens.


QUOTE
mencoder -rawvideo format=yv12:fps=%(fps):w=%(width):h=%(height)


yuv4mpeg support frame size and framerate. But yuv i do framerate and framesize - mencoder not work.
this not work too
CODE
mencoder - -rawvideo format=yv12:fps=%(fps):w=%(width):h=%(height) -of mpeg -mpegopts format=dvd -ovc lavc -nosound -lavcopts vcodec=mpeg2video:vqscale=4:keyint=15:vstrict=0:aspect=4/3 -o "%(tempvideofile)"

MUST BE yuv4mpeg
mad.gif
 
     Top
stephanV
Posted: Jun 1 2010, 05:16 PM


Spam killer ;)


Group: Moderators
Posts: 4348
Member No.: 8917
Joined: 18-February 04



It seems mencoder simply ignores any rawvideo option.

--------------------
useful links:
VirtualDub, Input plugins and filters, AviSynth, AVI-Mux GUI, AC3ACM by fcchandler, VirtualDub FAQ
 
    Top
arklight
Posted: Jun 1 2010, 07:21 PM


Advanced Member


Group: Members
Posts: 135
Member No.: 8316
Joined: 16-January 04



Hallejuah....

biggrin.gif


Heri Mkocha
 
     Top
Loadus
Posted: Jun 1 2010, 08:46 PM


Advanced Member


Group: Members
Posts: 352
Member No.: 10881
Joined: 1-July 04



QUOTE (stephanV @ Jun 1 2010, 11:16 AM)
It seems mencoder simply ignores any rawvideo option.

Indeed.

Thx for the rawformat options, though. Got to look into those.

Mencoder gives me a cryptic error at the beginning about seek failure:

CODE
VideoEnc: Cannot seek backwards in linear streams!
VideoEnc: Seek failed


... numerous times, until it failes and starts to encode audio only. : /

Losing interest, since I don't use Mencoder myself. I hope someone will come up with a good setting.

--------------------
deviantART behance
 
       Top
Gromozeka
Posted: Jun 2 2010, 04:22 AM


Advanced Member


Group: Members
Posts: 52
Member No.: 26717
Joined: 1-January 10



Loadus
QUOTE
Losing interest, since I don't use Mencoder myself. I hope someone will come up with a good setting.


need yuv4mpeg for work settings sad.gif
 
     Top
rjisinspired
Posted: Jun 9 2010, 09:44 AM


Advanced Member


Group: Members
Posts: 1256
Member No.: 20008
Joined: 12-October 06



I'm doing something wrong.

My encoder profile window looks a little different. Of course I started playing with the external encoder Vdub versions earlier this year. I found the 1.9X test 7 and am wondering if this is a new or an older build version?


For the video encoder fields I have:
CODE
C:\x264.exe -o "%(tempvideofile)" --stdin yuv --crf 26 --profile main --bframes 3 --keyint 250 - %(width)x%(height) --fps %(fpsnum)/%(fpsden)

%(outputname).video <--- Have to change this to .H264 so I can use Yamb to mux the created files since mp4box.exe never seems to open.


-----------------------------------------------------------------------------------------
For the audio encoder I have:
CODE
C:\neroAacEnc.exe -ignorelength -lc -if - -of "%(tempaudiofile)"

%(outputname).audio <--- Have to change this to .aac so I can use Yamb to mux the created files since mp4box.exe never seems to open.


At one time I was able to use lame as the mp3 encoder but now I can't. Something about the audio encoding process ending prematurely:
CODE
C:\lame.exe --cbr - "%(tempaudiofile)" <-- I remember I was told to tack on .mp3 onto the tempaudiofile variable, before the final quote.  Had it working at one time, now it doesn't.

%(outputname).audio


------------------------------------------------------------------------------------------------
The muxer:
CODE
C:\MP4Box\MP4Box.exe mux -add "%(tempvideofile)" -add "%(tempaudiofile)" "%(outputfile)" -fps %(fps)

Or.....

"C:\Program Files\megui\tools\mp4box\MP4Box.exe"  mux -add "%(tempvideofile)" -add "%(tempaudiofile)" "%(outputfile)" -fps %(fps)


Neither of the mp4box locations work, load up after creation of the video and audio file.

I can use x264 and Neroaac but because mp4box can't load I have to rename the extensions so I can load them into Yamb then mux there instead. In the vdub log there is something about 2 input file names specified, please check usage. The only files I see are the video, audio and a third file that is saved without an extension at all which is saved after the "save as" dialog pops up and requests you to give the name of the file to be processed.

If anyone has an idea what I'm doing wrong, please let me know. Thanks.
 
       Top
Loadus
Posted: Jun 10 2010, 11:45 AM


Advanced Member


Group: Members
Posts: 352
Member No.: 10881
Joined: 1-July 04



This is how I have the mp4box set up:

user posted image

--------------------
deviantART behance
 
       Top
stephanV
Posted: Jun 10 2010, 12:09 PM


Spam killer ;)


Group: Moderators
Posts: 4348
Member No.: 8917
Joined: 18-February 04



I've been working on a howto myself, but since I don't have too much time to work on it anymore and it's already pretty complete I've put it here.

It does assume you downloaded the latest 1.9.x test version though.

--------------------
useful links:
VirtualDub, Input plugins and filters, AviSynth, AVI-Mux GUI, AC3ACM by fcchandler, VirtualDub FAQ
 
    Top
rjisinspired
Posted: Jun 10 2010, 12:56 PM


Advanced Member


Group: Members
Posts: 1256
Member No.: 20008
Joined: 12-October 06



Thanks Stephan.

I'm getting a newer mp4box. If this doesn't work I'll try ffmpeg instead for muxing.

Update: looks like there is a test #23 which I'm getting now, was using test #7. I did put in a newer mp4box but I got an error saying there was a launch problem that mp4box is not a valid win32 application.
 
       Top
stephanV
Posted: Jun 10 2010, 01:15 PM


Spam killer ;)


Group: Moderators
Posts: 4348
Member No.: 8917
Joined: 18-February 04



There is a link to a working version of mp4box in the third post of my howto (get version 0.4.5). Make sure you also extract the js32.dll, and always keep it in the same directory as mp4box.

--------------------
useful links:
VirtualDub, Input plugins and filters, AviSynth, AVI-Mux GUI, AC3ACM by fcchandler, VirtualDub FAQ
 
    Top
rjisinspired
Posted: Jun 10 2010, 01:51 PM


Advanced Member


Group: Members
Posts: 1256
Member No.: 20008
Joined: 12-October 06



I got 0.4.5 version of mp4box and js32.dll in it's directory and I'm still having problems. Now I'm getting invalid isoMedia file. The muxer isn't accepting the files.

I did tack on the .264 and .aac extensions within the temp variable names. and they are being written to the output file names.

I'm going to download ffmpeg and try that one out for the muxer.
 
       Top
rjisinspired
Posted: Jun 10 2010, 02:00 PM


Advanced Member


Group: Members
Posts: 1256
Member No.: 20008
Joined: 12-October 06



FFMPEG works great! For both aac and mp3 audio too.

I don't know why mp4box was giving me trouble.
 
       Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
99 replies since May 29 2010, 03:58 AM Track this topic | Email this topic | Print this topic
Pages: (7) 1 [2] 3 4 ... Last »
<< Back to Advanced Video Processing