Re: [Gambas-user] Music.Length part 2

2014-05-28 Thread Patrik Karlsson
2014-04-23 17:51 GMT+02:00 Benoît Minisini : > Le 23/04/2014 17:38, Patrik Karlsson a écrit : > > Hi, > > > > it's almost 6 years since I wrote the first post [1] regarding > Music.Length > > I recently picked up Gambas again and I am about to finish this little > > project now. :) > > > > As far

Re: [Gambas-user] Music.Length part 2

2014-04-23 Thread Ru Vuott
..closing: SMPEG_delete(smpeg) End ** Regards vuottt ---- Mer 23/4/14, Benoît Minisini ha scritto: Oggetto: Re: [Gambas-user] Music.Length part 2 A: "mailing list for gambas users" Data: Mercoledì

Re: [Gambas-user] Music.Length part 2

2014-04-23 Thread Benoît Minisini
Le 23/04/2014 17:38, Patrik Karlsson a écrit : > Hi, > > it's almost 6 years since I wrote the first post [1] regarding Music.Length > I recently picked up Gambas again and I am about to finish this little > project now. :) > > As far as I can tell, there is still no easy "Gambas way" to get the le

[Gambas-user] Music.Length part 2

2014-04-23 Thread Patrik Karlsson
Hi, it's almost 6 years since I wrote the first post [1] regarding Music.Length I recently picked up Gambas again and I am about to finish this little project now. :) As far as I can tell, there is still no easy "Gambas way" to get the length of an audio file, right? Would it be possible to impl

Re: [Gambas-user] Music.Length

2008-06-27 Thread Patrik Karlsson
2008/6/28 Steven Drinnan <[EMAIL PROTECTED]>: > Just one more prog that can do the job > > exiftool > > a python based tool that just spits all the info out to the command > line. > > example: > > exiftool "/home/steven/Documents/My Music/Various Artists/Super Hits > 1993-2003 Disc 1/2 Unlimited

Re: [Gambas-user] Music.Length

2008-06-27 Thread Steven Drinnan
Just one more prog that can do the job exiftool a python based tool that just spits all the info out to the command line. example: exiftool "/home/steven/Documents/My Music/Various Artists/Super Hits 1993-2003 Disc 1/2 Unlimited - No Limit.mp3" ExifTool Version Number : 7.25 File Na

Re: [Gambas-user] Music.Length

2008-06-21 Thread Lee McPherson
Wow, this looks to be very useful! And I wasn't even looking for it... Thanks! -Lee [EMAIL PROTECTED] wrote: > Hi > > Once i got a routine (don't remember from, sorry) for mp3-files witch > can extract many properties. > Maybe this can help you somehow. > > Regards, Werner > > > ' Gambas class

Re: [Gambas-user] Music.Length

2008-06-21 Thread [EMAIL PROTECTED]
Hi Once i got a routine (don't remember from, sorry) for mp3-files witch can extract many properties. Maybe this can help you somehow. Regards, Werner ' Gambas class file ' '*** '*** Begin Declaration section '*** PUBLIC OK AS Boolean PUBLIC DurationAS String PUBLIC Frequency AS

Re: [Gambas-user] Music.Length

2008-06-21 Thread Stefano Palmeri
Il sabato 21 giugno 2008 01:24:51 Lee McPherson ha scritto: > I've been working on this for mp3 files. It is really easy to just use > an external app to get the length of normal bitrate mp3 files as Stefano > suggested. For variable bitrate mp3s, it's a little harder. Just to say that mp3info

Re: [Gambas-user] Music.Length

2008-06-21 Thread Lee McPherson
I've been working on this for mp3 files. It is really easy to just use an external app to get the length of normal bitrate mp3 files as Stefano suggested. For variable bitrate mp3s, it's a little harder. There are visual basic scripts on the web that can do this... I have them somewhere in m

Re: [Gambas-user] Music.Length

2008-06-21 Thread Ron Onstenk
On Friday 20 June 2008, Benoit Minisini wrote: > I don't know why apparently the length of the audio is not encoded in the > file > header... > It is, but not in the way you think. In fact is the mp3 as we know nowadays a incomplete standard. We need to split the parts out of it. Mp3 is the

Re: [Gambas-user] Music.Length

2008-06-20 Thread Stefano Palmeri
Il venerdì 20 giugno 2008 13:25:03 Stefano Palmeri ha scritto: > > If you have "mp3info" installed in your system you can get the length: > > SHELL "mp3info -x " & "pathtofile.mp3" & " | grep 'Length:' | awk '{print > $2}'" TO sString > > Stefano > Little fix to avoid problems if a mp3 file name or

Re: [Gambas-user] Music.Length

2008-06-20 Thread Stefano Palmeri
Il venerdì 20 giugno 2008 13:09:34 Patrik Karlsson ha scritto: > 2008/6/20 Benoit Minisini <[EMAIL PROTECTED]>: > > I don't know why apparently the length of the audio is not encoded in the > > file header... > > Ok, I see, at http://www.mp3-tech.org/programmer/frame_header.html I found > > "There

Re: [Gambas-user] Music.Length

2008-06-20 Thread Benoit Minisini
On vendredi 20 juin 2008, Patrik Karlsson wrote: > 2008/6/20 Benoit Minisini <[EMAIL PROTECTED]>: > > I don't know why apparently the length of the audio is not encoded in the > > file header... > > Ok, I see, at http://www.mp3-tech.org/programmer/frame_header.html I found > > "There is no main fil

Re: [Gambas-user] Music.Length

2008-06-20 Thread Patrik Karlsson
2008/6/20 Jaap Cramer <[EMAIL PROTECTED]>: > In the GambasDoc is an example on how to get information of a *.wav > file, including duration. See: http://gambasdoc.org/help/lang/read?show > > Maybe useful? Yes it might, thank you! Maybe I just convert the mp3s to wav since it's only "internal" file

Re: [Gambas-user] Music.Length

2008-06-20 Thread Patrik Karlsson
2008/6/20 Benoit Minisini <[EMAIL PROTECTED]>: > I don't know why apparently the length of the audio is not encoded in the file > header... Ok, I see, at http://www.mp3-tech.org/programmer/frame_header.html I found "There is no main file header in an MPEG audio file. An MPEG audio file is built u

Re: [Gambas-user] Music.Length

2008-06-20 Thread Jaap Cramer
In the GambasDoc is an example on how to get information of a *.wav file, including duration. See: http://gambasdoc.org/help/lang/read?show Maybe useful? On Fri, 2008-06-20 at 12:41 +0200, Benoit Minisini wrote: > On vendredi 20 juin 2008, Benoit Minisini wrote: > > On vendredi 20 juin 2008, Pat

Re: [Gambas-user] Music.Length

2008-06-20 Thread Benoit Minisini
On vendredi 20 juin 2008, Benoit Minisini wrote: > On vendredi 20 juin 2008, Patrik Karlsson wrote: > > Hello, I'm about to port an old Delphiapp to a nicer environment and > > I'm looking at Gambas to do the work, Gambas is realy nice! > > > > One function I used in Delphi was to get the length of

Re: [Gambas-user] Music.Length

2008-06-20 Thread Benoit Minisini
On vendredi 20 juin 2008, Patrik Karlsson wrote: > Hello, I'm about to port an old Delphiapp to a nicer environment and > I'm looking at Gambas to do the work, Gambas is realy nice! > > One function I used in Delphi was to get the length of the sound > played in TMediaPlayer, since I would like thi

[Gambas-user] Music.Length

2008-06-20 Thread Patrik Karlsson
Hello, I'm about to port an old Delphiapp to a nicer environment and I'm looking at Gambas to do the work, Gambas is realy nice! One function I used in Delphi was to get the length of the sound played in TMediaPlayer, since I would like things done after 80%, 90%... Music.Pos tells me where I am,