Thread: [Phpvideopro-developers] some questions
Brought to you by:
izzy
From: Peter B. <pb...@bi...> - 2002-02-01 21:53:33
|
Hi, following questions are coming up during conversion of video tapes to VCDs. * when will be new media tyes supported, e.g. "VCD" oder "SVCD" Or should I add them by hand into the database? What is the roadmap at the moment? I have interest in * Copy entry * Change media type * generating CD labels with "cdlabelgen" (in this case I can do some support) TIA, Peter |
From: Itzchak R. <izz...@qu...> - 2002-02-05 14:27:52
|
Hi Peter, Peter Bieringer wrote: > following questions are coming up during conversion of video tapes to > VCDs. > * when will be new media tyes supported, e.g. "VCD" oder "SVCD" > Or should I add them by hand into the database? > What is the roadmap at the moment? Especially for that feature: guess I will do it this month. Unfortunately I'm missing some time (anybody found it? ;) I don't know where it's all gone to... But adding that new media type shouldn't be hard. If Murphy sleeps, it should be half an hour plus some tests. Regarding "change media type": I may see to provide some SQL statements for it. Shouldn't be that hard to put that function in as well, but I can't promise when to do it. Yes, I hoped to start over with phpVP in January, but couldn't yet... > I have interest in > * Copy entry You mean: create a new entry based upon an existing one, e.g. Entering (and saving) "Indiana Jones I" and then, since most data are equivalent, start over with the same set for "Indiana Jones II"? Well, good thing. To be put on the 2do list. No promises at all - but I would like that, too! > * Change media type see above > * generating CD labels with "cdlabelgen" (in this case I can do some > support) Can you give me some details? That's a function I want to have as well. What can you do about it, and what do I have to provide for it? An example: I could "post" certain fields to some target php page, let's call it label.php, via the <Form> stuff. Could you then provide the label.php script which just generates the output (probably two images of fixed size, one for the top and one for the back of the tape), and then opens a new window and displays either these images for printing, or an error message if needed? For the beginning, we could start with some defaults. Lateron, we should provide the possibility of configuration (what details should be printed, what templates to use etc). Thanx 4 input! </izzy> -- Itzchak Rehberg http://www.qumran.org/homes/izzy/ "We have joy, we have fun, we boot Linux on our SUN..." |
From: Peter B. <pb...@bi...> - 2002-02-05 20:29:28
|
Hi, --On Tuesday, February 05, 2002 03:27:34 PM +0100 Itzchak Rehberg <izz...@qu...> wrote: >> I have interest in >> * Copy entry >=20 >=20 > You mean: create a new entry based upon an existing one, e.g. > Entering (and saving) "Indiana Jones I" and then, since most data > are equivalent, start over with the same set for "Indiana Jones > II"? Well, good thing. Yes. >> * generating CD labels with "cdlabelgen" (in this case I can do >> some support) >=20 >=20 > Can you give me some details? That's a function I want to have as > well. What can you do about it, and what do I have to provide for > it? An example: I could "post" certain fields to some target php > page, let's call it label.php, via the <Form> stuff. Could you then > provide the label.php script which just generates the output > (probably two images of fixed size, one for the top and one for the > back of the tape), and then opens a new window and displays either > these images for printing, or an error message if needed? For the > beginning, we could start with some defaults. Lateron, we should > provide the possibility of configuration (what details should be > printed, what templates to use etc). "cdlabelgen" generates a Postscript output to stdout depending on some command line options: # cdlabelgen usage: /usr/bin/cdlabelgen -c <category> -s <subcategory> [-i <item1%item2%etc> -f<itemsfile> -e <cover_epsfile> -S <cover_eps_scaleratio> -E <tray_epsfile> -T <tray_eps_scaleratio> -d <date> -D -o <outputfile> -t <template> -b -w -h] Currently I'm using this with source of a txt file Input:=20 Title : Wie ich den Krieg gewann Length: 106 Year : 1966 Format: VCD Video : 1152 MPEG-1 CBR 352x288 PAL Audio : 224 MPEG-1 Layer II Stereo Actors: John Lennon Command: cdlabelgen -c 'Wie ich den Krieg gewann' -s ' ' -i 'Wie ich den Krieg gewann%%(P) 1966%%Darsteller: John Lennon%%L=E4nge: 106 min%%Format: VideoCD 2.0%Video: 1152 kBit/s MPEG-1 CBR 352x288 PAL%Audio: 224 kBit/s MPEG-1 Layer II Stereo' -D Don't know how to put it in phpVP, but perhaps it's enough if a commandline is generated using some definable placeholders. Then one can copy this line to shell, and got the PS output which can be sent directly to printer. Peter >=20 > Thanx 4 input! >=20 > </izzy> >=20 >=20 > --=20 > Itzchak Rehberg > http://www.qumran.org/homes/izzy/ > "We have joy, we have fun, we boot Linux on our SUN..." >=20 >=20 > _______________________________________________ > Phpvideopro-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpvideopro-developers >=20 > =20 |
From: Peter B. <pb...@bi...> - 2002-02-11 22:54:43
|
Hi, --On Monday, February 11, 2002 01:46:55 PM +0100 Itzchak Rehberg <izz...@qu...> wrote: > That would mean to stick to a specified OS. Sure for the shorthand solution. > I wrote the project in > PHP to be OS independant, so this wouldn't be the ideal choice. I > thought of something using PHPs image functions to generate labels. > Should not be that hard: some time ago I wrote a small "button > generator". It takes existing images as input (would be the empty > label in our case) and puts text strings on it. If you've got some > free time and could take a look at it it would be great. The only > difficulty I see with it is the fonts and adjustments: > > - how many items have to be put on the label > - what format should it be > - centered/justified/left/right > - bold/italics/... cdlabelgen already does some of the adjustment very well, e.g. shrinking text to fit it into the hardwired width. Is PHP able to create Postscript code? If yes, cdlabelgen can be ported to PHP. Peter |
From: Itzchak R. <izz...@qu...> - 2002-05-27 16:47:26
|
Am Mon, 2002-02-11 um 23.54 schrieb Peter Bieringer: > > That would mean to stick to a specified OS. > Sure for the shorthand solution. Guess I won't do the labels in PS but using the PHP graphics engine instead. I'm not 100% sure yet, but for now it looks like that. This will need a new option for wether to use TTF or PS Fonts (depending on the system and its support). Does anybody know some typical fonts available on most systems? E.g. "Arial", "Helvetica" and "Times New Roman" ship with every Windoze version - but not any more with Linux (copyright problems). Of course we could "force" the user to import those fonts - but I'ld feel better to give them a choice... > cdlabelgen already does some of the adjustment very well, e.g. > shrinking text to fit it into the hardwired width. I know, and I already had a look at it. A bit easier to understand is dvlabelgen (for digital video tapes - these small thingies for camcorders). My other project, phpCDLabelPS, was inspired by that. And there are also ideas for adjustment - but all based on PostScript. I just browsed the functions available in PHP concerning fonts and graphics, and I guess these will be the better choice. I wanna stick to the template idea - and with the graphics engine, every user can design his/her own "Label Template(s)" with his/her favorite graphics editor and just plug them in. Would be a bit more difficult with PostScript I guess. > Is PHP able to create Postscript code? Guess the project name PHPcdlabelPS answers this question :-) PostScript code is plain ascii, so you can generate it easily. You just have to know how it works - it's a programming language of its own (so, theoretically, you could also write C++ code with PHP :) > If yes, cdlabelgen can be ported to PHP. see above - theoretically it could. For my CDs, I prefer my own program since it reads the CD content and prints it on the cover back as well (a very useful feature for MP3 CDs ;) And for the labels, I guess the graphics solution suits better. I just think of things like adding a Dolby Logo - much easier if everything is done in graphics. Maybe it's as easy in PostScript as well - if one's used to it :-) But unfortunately, I can just be proud to have understand its basics... </izzy> -- Itzchak Rehberg http://www.qumran.org/homes/izzy/ "We have joy, we have fun, we boot Linux on our SUN..." |
From: Itzchak R. <izz...@qu...> - 2002-02-11 12:46:59
|
Hi Peter, Peter Bieringer wrote: That would mean to stick to a specified OS. I wrote the project in PHP=20 to be OS independant, so this wouldn't be the ideal choice. I thought of = something using PHPs image functions to generate labels. Should not be=20 that hard: some time ago I wrote a small "button generator". It takes=20 existing images as input (would be the empty label in our case) and puts = text strings on it. If you've got some free time and could take a look=20 at it it would be great. The only difficulty I see with it is the fonts=20 and adjustments: - how many items have to be put on the label - what format should it be - centered/justified/left/right - bold/italics/... Maybe we can build a couple of templates, and let the user select them=20 on printing. Or (later) save them together with the media information=20 ("this media uses template xxx"). </izzy> > "cdlabelgen" generates a Postscript output to stdout depending on > some command line options: >=20 > # cdlabelgen > usage: /usr/bin/cdlabelgen -c <category> -s <subcategory> [-i > <item1%item2%etc> -f<itemsfile> > -e <cover_epsfile> -S <cover_eps_scaleratio> -E <tray_epsfile> > -T <tray_eps_scaleratio> -d <date> -D -o <outputfile> > -t <template> -b -w -h] >=20 >=20 > Currently I'm using this with source of a txt file >=20 > Input:=20 >=20 > Title : Wie ich den Krieg gewann > Length: 106 > Year : 1966 > Format: VCD > Video : 1152 MPEG-1 CBR 352x288 PAL > Audio : 224 MPEG-1 Layer II Stereo > Actors: John Lennon >=20 > Command: >=20 > cdlabelgen -c 'Wie ich den Krieg gewann' -s ' ' -i 'Wie ich den Krieg > gewann%%(P) 1966%%Darsteller: John Lennon%%L=E4nge: 106 min%%Format: > VideoCD 2.0%Video: 1152 kBit/s MPEG-1 CBR 352x288 PAL%Audio: 224 > kBit/s MPEG-1 Layer II Stereo' -D >=20 >=20 > Don't know how to put it in phpVP, but perhaps it's enough if a > commandline is generated using some definable placeholders. >=20 > Then one can copy this line to shell, and got the PS output which can > be sent directly to printer. >=20 > Peter >=20 >=20 >=20 >=20 >=20 >=20 >=20 >>Thanx 4 input! >> >></izzy> >> >> >>--=20 >>Itzchak Rehberg >>http://www.qumran.org/homes/izzy/ >>"We have joy, we have fun, we boot Linux on our SUN..." >> >> >>_______________________________________________ >>Phpvideopro-developers mailing list >>Php...@li... >>https://lists.sourceforge.net/lists/listinfo/phpvideopro-developers >> >>=20 >> >=20 >=20 >=20 > _______________________________________________ > Phpvideopro-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpvideopro-developers >=20 --=20 Itzchak Rehberg http://www.qumran.org/homes/izzy/ "We have joy, we have fun, we boot Linux on our SUN..." |