[mythtv-users] creating VCD using ffmpeg and vcdimager

Ralf Haller ralf at brap.de
Wed Sep 3 20:35:11 EDT 2003


Hi,

I tried to create a VCD from a PAL recording by mythtv using a PVR 350 
mpeg card. The result had dropouts and showed artifacts when played on 
my DVD player (Yamakawa AVPhile 715). The example vcd for PAL from 
vcdimager plays without these problems.

Here's what i did:

[wei at Baden wei]$ ffmpeg -i test.mpg -b 1150 -s 352x288 -r 25 -ab 224 -ar 
44100 -f vcd -y bla.mpg
Input #0, mpeg, from 'test.mpg':
  Stream #0.0: Video: mpegvideo, 720x576, 29.97 fps, 16000 kb/s
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 384 kb/s
Output #0, vcd, to 'bla.mpg':
  Stream #0.0: Video: mpeg1video, 352x288, 25.00 fps, q=2-31, 1150 kb/s
  Stream #0.1: Audio: mp2, 44100 Hz, stereo, 224 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=52408 q=3.0 size=  355275kB time=2096.3 bitrate=1388.3kbits/s
[wei at Baden wei]$ vcdimager -t vcd2 bla.mpg
++ WARN: initializing libvcd 0.7.14 [linux-gnu/i686]
++ WARN:
++ WARN:  this is the UNSTABLE development branch!
++ WARN:  use only if you know what you are doing
++ WARN:  see http://www.hvrlab.org/~hvr/vcdimager/ for more information
++ WARN:
   INFO: scanning mpeg sequence item #0 for scanpoints...
++ WARN: file `videocd.bin' exist already, will get overwritten!
++ WARN: file `videocd.cue' exist already, will get overwritten!
   INFO: writing track 1 (ISO9660)...
   INFO: writing track 2, MPEG1, PAL SIF (352x288/25fps), audio[0]: 
l2/44.1kHz/224kbps/stereo ...
finished ok, image created with 157218 sectors [34:56.18] (369776736 bytes)
[wei at Baden wei]$ su
Password:
[root at Baden wei]# cdrdao write --device 0,0,0 --speed 4 videocd.cue
Cdrdao version 1.1.5 - (C) Andreas Mueller <andreas at daneb.de>
  SCSI interface library - (C) Joerg Schilling
  L-EC encoding library - (C) Heiko Eissfeldt
  Paranoia DAE library - (C) Monty

Check http://cdrdao.sourceforge.net/drives.html#dt for current driver 
tables.

Using libscg version 'schily-0.5'

0,0,0: SONY CD-RW  CRX120E      Rev: 1.0j
Using driver: Generic SCSI-3/MMC - Version 1.2 (options 0x0010)

Starting write at speed 4.[wei at Baden wei]$ ffmpeg -i test.mpg -b 1150 -s 
352x288 -r 25 -ab 224 -ar 44100 -f vcd -y bla.mpg
Input #0, mpeg, from 'test.mpg':
  Stream #0.0: Video: mpegvideo, 720x576, 29.97 fps, 16000 kb/s
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 384 kb/s
Output #0, vcd, to 'bla.mpg':
  Stream #0.0: Video: mpeg1video, 352x288, 25.00 fps, q=2-31, 1150 kb/s
  Stream #0.1: Audio: mp2, 44100 Hz, stereo, 224 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=52408 q=3.0 size=  355275kB time=2096.3 bitrate=1388.3kbits/s
[wei at Baden wei]$ vcdimager -t vcd2 bla.mpg
++ WARN: initializing libvcd 0.7.14 [linux-gnu/i686]
++ WARN:
++ WARN:  this is the UNSTABLE development branch!
++ WARN:  use only if you know what you are doing
++ WARN:  see http://www.hvrlab.org/~hvr/vcdimager/ for more information
++ WARN:
   INFO: scanning mpeg sequence item #0 for scanpoints...
++ WARN: file `videocd.bin' exist already, will get overwritten!
++ WARN: file `videocd.cue' exist already, will get overwritten!
   INFO: writing track 1 (ISO9660)...
   INFO: writing track 2, MPEG1, PAL SIF (352x288/25fps), audio[0]: 
l2/44.1kHz/224kbps/stereo ...
**ERROR: fwrite (): No space left on device
[wei at Baden wei]$ vcdimager -t vcd2 bla.mpg
++ WARN: initializing libvcd 0.7.14 [linux-gnu/i686]
++ WARN:
++ WARN:  this is the UNSTABLE development branch!
++ WARN:  use only if you know what you are doing
++ WARN:  see http://www.hvrlab.org/~hvr/vcdimager/ for more information
++ WARN:
   INFO: scanning mpeg sequence item #0 for scanpoints...
++ WARN: file `videocd.bin' exist already, will get overwritten!
++ WARN: file `videocd.cue' exist already, will get overwritten!
   INFO: writing track 1 (ISO9660)...
   INFO: writing track 2, MPEG1, PAL SIF (352x288/25fps), audio[0]: 
l2/44.1kHz/224kbps/stereo ...
finished ok, image created with 157218 sectors [34:56.18] (369776736 bytes)
[wei at Baden wei]$ su
Password:
[root at Baden wei]# cdrdao write --device 0,0,0 --speed 4 videocd.cue
Cdrdao version 1.1.5 - (C) Andreas Mueller <andreas at daneb.de>
  SCSI interface library - (C) Joerg Schilling
  L-EC encoding library - (C) Heiko Eissfeldt
  Paranoia DAE library - (C) Monty

Check http://cdrdao.sourceforge.net/drives.html#dt for current driver 
tables.

Using libscg version 'schily-0.5'

0,0,0: SONY CD-RW  CRX120E      Rev: 1.0j
Using driver: Generic SCSI-3/MMC - Version 1.2 (options 0x0010)

Starting write at speed 4...
Pausing 10 seconds - hit CTRL-C to abort.
Process can be aborted with QUIT signal (usually CTRL-\).
Executing power calibration...
Power calibration successful.
Writing track 01 (mode MODE2_RAW/MODE2_RAW)...
Writing track 02 (mode MODE2_RAW/MODE2_RAW)...
Wrote 352 of 352 MB (Buffer 100%).
Wrote 157218 blocks. Buffer fill min 50%/max 100%.
Flushing cache...
Writing finished successfully.
..
Pausing 10 seconds - hit CTRL-C to abort.
Process can be aborted with QUIT signal (usually CTRL-\).
Executing power calibration...
Power calibration successful.
Writing track 01 (mode MODE2_RAW/MODE2_RAW)...
Writing track 02 (mode MODE2_RAW/MODE2_RAW)...
Wrote 352 of 352 MB (Buffer 100%).
Wrote 157218 blocks. Buffer fill min 50%/max 100%.
Flushing cache...
Writing finished successfully.


Any ideas what goes wrong here?

Thanks,

Ralf



More information about the mythtv-users mailing list