Matthias Czapla wrote:

Hello all!

Im new to this list and video processing in general so please excuse me if
my questions seem stupid, thanks.

I have a mpeg-file and want to create a svcd-image with vcdimager, but it
tells me the following:

<[EMAIL PROTECTED] ~>vcdimager -t svcd -l 'Good Bye Lenin CD1' -v -p input.mpg --DEBUG: initializing libvcd 0.6.2 [linux-gnu/i686]
INFO: scanning mpeg track #0 for scanpoints...
**ERROR: mpeg scan: pack header code expected, but 0x00000000 found (buflen = 2324)


Hmmm. Haven't seen this one before I don't think. If this file was not multiplexed for SVCD it probably has to be re-multiplexed at a minimum so that the pack size is 2324. I'd have to look at the code but the vcdimager may assume (rightfully so) that it can just read in 2324-byte blocks at a time and each will be one pack. The pack header is the 32-bit value 0x000001BA and is at the beginning of each pack.

According to the information mplayer prints on stdout, the format of the
file seems to be suitable for a SVCD:

VIDEO:  MPEG2  480x576  (aspect 2)  25.00 fps  2875.0 kbps (359.4 kbyte/s)
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 28000->176400 (224.0 kbit)


So I googled for information on MPEG, (S)VCD and Linux and ended up here at mjpegtools, which seems to be the right tool for the task of SVCD-creation. I will try to reencode the file with mpeg2enc but I wanted to ask some experts first if this is really necessary because I think the deconding/encoding procedure will reduce the quality of the video, won't it?

The SVCD spec limits the overall data rate of the program stream to <=150 sectors per second ==> 2324 * 150 = 2907600 bits/sec. According to the above info you're a little over that but if that's the peak rate than you man be ok. Note that the rate I've mentioned is for the program stream as a whole so you'll have some overhead above the separate video and audio rates.

It sounds like maybe all you need is a re-multiplexing of the files.

--
Jens B. Jorgensen
[EMAIL PROTECTED]




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to