Sorry for being so late!

On Sunday 19 November 2006 22:31, Steven M. Schultz wrote:
> > Sure, I use an almost silent pentium 233mmx running a ltsp terminal to a
> > server that is an Athlon 800 with 512MB of memory. I run kmail, firefox
> > and
>
>       And I thought 1GB was small :)
>

I only buy used processors and mainboards. I think buying a new one is 
throwing money in the litter. Exceptions are HD and DVD recorder.

>
>       But how long does Xine need to play the file?
>

Yes, it plays correctly. After 17:45 minutes, I have an indication of 15:00 in 
xine. So, 33 minutes would spend about 40 minutes, which is correct.

>       "show a length" is not reliable for variable bitrate files!

That's it!

>
>       I think xine is dividing the file length by the the bitrate in
>       the MPEG-2 header and using that as the duration of the movie.  But
>       that calculation assumes a 'constant bitrate' and does not work
>       with variable bitrate files.
>
> > I'm now converting the file to a DV type2 using kino. I'll encode that
> > file
>
>       I always use 'raw'.  Less overhead (does not have a 2nd copy of the
>       audio data in the file) and, a little less disc space.  Also with 'raw'
>       you can do emergency or quick edits using dd" (raw DV has a frame
>       size of 120000 bytes/frame for NTSC, 144000 for PAL)
>
>       If the DV file is OK and if mpeg2enc has no bugs then I would not
>       worry about the estimated times that xine is printing out.
>

Well, I have done some tests:

With kino, I exported raw DV to DV type 2 with "OpenDML AVI" so it could be 
read in avidemux.
In avidemux, I converted the above file to mpeg using the option of ffmpeg, 2 
pass and audio as AC3.
Now this file (is it cbr?) shows 40 minutes in mplayer *but* the same 33 
minutes in xine. But now I managed to make chapters in qdvdauthor as I see a 
duration of 40 minutes in it, so I managed to burn a DVD.

Still, mpeg2dec shows fewer frames of this file than original type2 DV which 
had 73313 frames.

[EMAIL PROTECTED] ~]$ mpeg2dec -o null ntavidemux.mpeg
mpeg2dec-0.4.0 - by Michel Lespinasse <[EMAIL PROTECTED]> and Aaron Holtzman
72605 frames in 274.29 sec (264.70 fps), 118 last 0.50 sec (236.00 fps)
72653 frames decoded in 274.45 seconds (264.72 fps)

I didn't manage to read the exported DV type2 with lav2yuv or smil2yuv, so I 
couldn't test this file with mpeg2enc:

==========================================================
[EMAIL PROTECTED] ~]$ lav2yuv /video/natype1001.avi | mpeg2enc -b 9570 -f 8 -q 
4 -4 1 -2 1 -r 32 -g 6 -G 18 -B 260 -K tmpgenc -o vid_natype1.m2v
**ERROR: [lav2yuv] Error opening /video/natype1001.avi
   INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
   INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
   INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
**ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: system error (failed 
read/write)!
[EMAIL PROTECTED] ~]$ smil2yuv /video/natype1001.avi | mpeg2enc -b 9570 -f 8 -q 
4 -4 1 -2 1 -r 32 -g 6 -G 18 -B 260 -K tmpgenc -o vid_natype1.m2v
   INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
   INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
   INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
*** glibc detected *** smil2yuv: malloc(): memory corruption: 0x08937cd8 ***
**ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: system error (failed 
read/write)!

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to