RE: dynamically generate mp3 clip

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Farhan,
	struggling to find an PHP MP3 editor, but you could use
http://getid3.org/ to get the bitrate and then :-

<? 
header("Content-type: audio/mpeg"); 

$f = fopen($mp3_path, "rb"); 
echo fread($f, 245760); 
fclose($f); 
?> 

That would grab the first 15 sec from a 128kbps mp3 file - (128kbits * 1024 /
8) * 15 = 245760

Rob.

-----Original Message-----
From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] On
Behalf Of Farhan khalid
Sent: 07 November 2006 20:47
To: php-gurus@xxxxxxxxxxxxxxx; php-objects@xxxxxxxxxxxxxxx; phpexperts-owner
Subject:  dynamically generate mp3 clip

Hi,

I have page in which user will upload song and i need to automatically
generate a 30 second clip of the uploaded mp3 file and save it

can anyone suggest how to do this on linux server which software to use

is it possible with ffmepg or ffmpeg-php to cut a 30 second clip or 60 second
clip etc

if you have any example then please show me how to do that.

Thanks


***********************************************************************************
Any opinions expressed in email are those of the individual and not necessarily those of the company. This email and any files transmitted with it are confidential and solely for the use of the intended recipient or entity to who they are addressed. It may contain material protected by attorney-client privilege. If you are not the intended recipient, or a person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited.
Random House Group +44 (0) 20 7840 8400
http://www.randomhouse.co.uk
http://www.booksattransworld.co.uk 
http://www.kidsatrandomhouse.co.uk
***********************************************************************************



PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-objects/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:php-objects-digest@xxxxxxxxxxxxxxx 
    mailto:php-objects-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux