Jump to content

Recommended Posts

Hey guys ... I am currently making a website for a music distributor in Quebec ... He wants a website with an admin panel where he can add new albums and upload the music. He would like the program to automatically create a demo of 10 seconds ... but I don't think PHP has a build in function for that ... so I was wandering if anybody has a solution on how to do that ... Using flash could be great ... but the music would then be to easy to retrieve ... If it's not 100% secure he can't use it.

 

Let see what the freaks has to say.

Link to comment
https://forums.phpfreaks.com/topic/98507-mp3-nightmare/
Share on other sites

Like i said i know i can use a flash player but anybody can decompile it and get the link to the MP3 or even get the MP3 it self ... thats not a secure way at all ... I know he can cut the music him self but thats the extra step he would like to avoid ... He would like thats toll to do everything out of 1 upload. If ever thats possible ...

Link to comment
https://forums.phpfreaks.com/topic/98507-mp3-nightmare/#findComment-504135
Share on other sites

nobody has a problem with a 10 second sample - thats why he wants to make one!

 

The answer has already been given ffmpeg - for this you will need it installed on your server and be able to call it via exec in php...

 

shout if you need help doing that...

Link to comment
https://forums.phpfreaks.com/topic/98507-mp3-nightmare/#findComment-504424
Share on other sites

STOP!!!!

 

the full mp3 will never get anywhere near the flash player!!!!

 

Upload the mp3 to a secure folder (above the web root). On upload use ffmpeg/mencoder to create a 10second sample of the mp3 and store this in a 'samples' library with suitable naming convention. The flash player can then just go and play these short clips and the full files can be made available when purchased...

 

Flash has NOTHING to do with what you are attempting other than playing the mp3s. As has been pointed out - it can be decompiled SOOOOO don't do anything in flash that could result in your protected material being made available to all and sundry...

Link to comment
https://forums.phpfreaks.com/topic/98507-mp3-nightmare/#findComment-505450
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.