Back Forum Reply New

mencoder problems with mpeg4 encoding

Hi...
I'm trying to encode an mpeg video to a raw mpeg4 format with mencoder for windows . When I put some additional options like vqmin or vbitrate the mencoder doesn't say that something was wrong but I can't play the resulting video. For example:

gt;mencoder sentenced-ever_frost.mpg -sws 9 -vf scale=176:144 -of rawvideo -nosound -ovc lavc -lavcopts vcodec=mpeg4 -ofps 15 -o example.cmp

It's OK.. I can play the video with normality, but when i try with:

gt;mencoder sentenced-ever_frost-.mpg -sws 9 -vf scale=176:144 -of rawvideo -nosound -ovc lavc -lavcopts vcodec=mpeg4:vqmin=4 -ofps 15 -o example.cmp

or

gt;mencoder sentenced-ever_frost-.mpg -sws 9 -vf scale=176:144 -of rawvideo -nosound -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=38 -ofps 15 -o example.cmp

It's WRONG... The mencoder doesn't say any error message, encode it apparently well, but when i try to play it the mplayer skip the video and exit ( without any error message too ).

It's important for me to include these options (vqmin and vbitrate) in the video encoding process... ¿ some idea ?

pardon by my badly english and many thanks ....

Hello, and welcome to the forum.  

This is the DivX forum; it looks to me like you have posted in the wrong place.  Mencoder is most often discussed in the MPEG-4 AVC forum, so I am moving your post to that forum since you will most likely get better help there.

I will also point out that Doom9 has a front-end GUI for mencoder that might be helpful to you as well:  showthread.php?t=96032


Originally Posted by circuncidadorHi...
I'm trying to encode an mpeg video to a raw mpeg4 format with mencoder for windows . When I put some additional options like vqmin or vbitrate the mencoder doesn't say that something was wrong but I can't play the resulting video. For example:

gt;mencoder sentenced-ever_frost.mpg -sws 9 -vf scale=176:144 -of rawvideo -nosound -ovc lavc -lavcopts vcodec=mpeg4 -ofps 15 -o example.cmp

It's OK.. I can play the video with normality, but when i try with:

gt;mencoder sentenced-ever_frost-.mpg -sws 9 -vf scale=176:144 -of rawvideo -nosound -ovc lavc -lavcopts vcodec=mpeg4:vqmin=4 -ofps 15 -o example.cmp

or

gt;mencoder sentenced-ever_frost-.mpg -sws 9 -vf scale=176:144 -of rawvideo -nosound -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=38 -ofps 15 -o example.cmp

It's WRONG... The mencoder doesn't say any error message, encode it apparently well, but when i try to play it the mplayer skip the video and exit ( without any error message too ).

It's important for me to include these options (vqmin and vbitrate) in the video encoding process... ¿ some idea ?

pardon by my badly english and many thanks ....

Amigo!

I made some quick tests with mencoder-dev-CVS-050907-11:52-3.4.4 and it seems that mplayer can't play the stream if you select raw output, nor mp4creator is able to mux it. However, if you specify avi as output format there are no problems.

My suggestion would be to use avi as output format and extract the video stream afterwards with a tool like avi2raw or mux it directly to mp4 with mp4creator.

Hope it helps.
¥
Back Forum Reply New