Richard Urwin wrote:

On Wednesday 07 Jan 2004 10:33 pm, John Richard Smith wrote:


Your run:------------------------------------------------------------

MPEG Stream reached EOF0%)  19fps Trem:   0min 529mb  A-V:-0.046
[817:96] A/Vms 4/40 D/B/S 28985/1/0
ds_fill_buffer: EOF reached (stream: audio)
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
Trying filter chain: expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (720x480->854x480,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0
videocodec: libavcodec (720x480 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
get_buffer() failed (0 -115967 0 0x40d5df30)
------------------------------------------------------------



VDec: vo config �������� - 720 x 480 (�������������� csp: Planar YV12)
Trying filter chain: expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect �� �������� - ������������������ �� �����������.



Here's the problem: the lavc encoder is getting reinitialized in the middle of the encode due to changing header properties in the source file. Try using lavc for decoding (-vc ffmpeg12) and see if the problem goes away. This is a bug that needs to be fixed, but I don't know enough to deal with it. ------------------------------------------------------------


And the result, http://www.zebra.fh-weingarten.de/~maxi/html/mplayer-users/2003-05/msg00573.html
------------------------------------------------------------
Thanx, -vc ffmepg12 helped.
------------------------------------------------------------



Try that, see if it works. If not we'll have to delve deeper, and if the problem is as complex as the above description implies - ie a long way from the buffer allocation code, deep in the structure of the data stream - I'm probably not going to find it.




This is my result,
[EMAIL PROTECTED] divx]# mencoder dvd://1 -ovc lavc -vc ffmpeg12 -lavcopts vcodec=mpeg4:vhq:vbitrate=1024 -oac mp3lame -lameopts br=96:cbr -alang en -idx -o toystory2.avi
MEncoder dev-CVS--3.2.2 (C) 2000-2003 MPlayer Team
There are 10 titles on this DVD.
There are 31 chapters in this DVD title.
There are 3 angles in this DVD title.
DVD successfully opened.
success: format: 0 data: 0x184800 - 0x1700A800
No matching DVD audio language found!
MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.97 ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe) 48000 Hz 384.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
==========================================================================
Forced video codec: ffmpeg12
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Cannot find codec 'mpegvideo' in libavcodec...
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x10000002.
Read DOCS/en/codecs.html!
==========================================================================
Exiting...
[EMAIL PROTECTED] divx]#


So
" Cannot find codec 'mpegvideo' in libavcodec..."
is the problem with the CL ?
Heres what man mencoder says about it,
-vc <[-]codec1,[-]codec2,...[,]>
Specify a priority list of video codecs to be used, according
their codec name in codecs.conf. Use a '-' before the codec name to omit
EXAMPLE:
-vc divx
force Win32/VFW DivX codec, no fallback


so I don't see what was wrong with the CL,
it must be inside libavcodec where the problem lies.
There are of course mpegvideo.c mpegvideo.h mpegvideo.o the question is are these what it is looking for ?
I would of thought so, but ?
The question is whether these are the codecs it wants under a command ffmepg12 which I took to mean mpeg 1 and 2 ,not sure what ff is a symbol for.


Incidentally did you notice the low 19fps , in my experience something more like 29fps is normal, but for all I know 19fps may be ok.

As for the explanation given , I can hold with the concept of "the lavc encoder is getting reinitialized in the middle of the encode due to changing header properties in the source file" as this would make sense against the fact that mencoder does not habitually fail encoding mpeg2 to mpeg4 , as I have said before it's about a 20 to 40% failure rate and to my mind that is consistent with the varying nature in the way that DVD's are assembled. There simply in no absolute standard for dvd's each packagers does their own thing within general overall concepts.So when mencoder finds on the source CD the kind of setup with definitions it fully understands it goes on to complete the task and include an index file, but when mencoder finds a CD whose packaging is not exactly wrong, as such, but not exactly the definition it is expecting to find it fails to build a satisfactory result with all it's components , that is it seems to build the necessary video and audio codec files but cannot create an index that can be run by any programme that is required to look for one.
Mplayer gets around the problem by searching the divX CD and creating a temporary index file in memory for the programme to use, but this is fast becoming unsatisfactory, as dixX dvd players are here to stay and they don't have the index building capability mplayer has.


So, to sum up, yes it does seem to be a "read error confusion" in that mencoder is having problems handling the variable nature of DVD CD's and yes I do think it needs fixing.Needless to say that is beyond my abilities. Still, I can help identify the problem, and that is half the battle.

If you think I did the CL wrong, let me know,

John


--
John Richard Smith
[EMAIL PROTECTED]




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to