Log in to Freesound

Problems logging in?
Don't have an account? Join now

Problems logging in?

Enter your email or username below and we'll send you a link to help you login into your account.

Back to log in

Almost there!

We've sent a verification link by email

Didn't receive the email? Check your Spam folder, it may have been caught by a filter. If you still don't see it, you can resend the verification email.

Default title

  • Sounds
  • Tags
  • Forum
  • Map
    • Sounds
    • Packs
    • Forum
    • Map
    • Tags
    • Random sound
    • Charts
    • Donate
    • Help

Freesound Forums

  • Freesound Forums
  • Freesound Project
  • difference between preview and original file?

difference between preview and original file?

Subscribe

Started May 30th, 2008 · 10 replies · Latest reply by nicStage 17 years, 2 months ago

R
rorys

0 sounds

4 posts

17 years, 6 months ago
#1

Hello,

I am working on a project using the API where I need to download lots of samples. The sound quality isn't super important to me, and it will be alot easier for me to work with MP3's over other formats like FLAC, etc.

Is there any drawback (besides sound quality) to just downloading the preview files instead of the original files? Are the previews always the full length of the original uploaded sample?

Thanks!
R

D
Dstruct

1 sound

52 posts

17 years, 3 months ago
#2

Lenght is the same. Quality: don't know for sure.

M
matthew Galtress

0 sounds

126 posts

17 years, 3 months ago
#3

I never knew you could downlad the preiew file! Not that I would realy need to, though.

D
Dstruct

1 sound

52 posts

17 years, 3 months ago
#4

matthew Galtress
I never knew you could downlad the preiew file!

Me neither. How does this work?

M
matthew Galtress

0 sounds

126 posts

17 years, 3 months ago
#5

Dstruct
matthew Galtress
I never knew you could downlad the preiew file!
Good question! Anyone know? smile

Me neither. How does this work?

N
nemoDaedalus

18 sounds

455 posts

17 years, 3 months ago
#6

It looks like it is perfectly possible.
Find the sample you like, or just a random one. You know how each file has a number. For example http://www.freesound.org/samplesViewSingle.php?id=60285 by Dstruct. Now we can extract the preview file. Two methods:

1. open the source of the webpage. Depending on browser, you should see an option to view the source when you right-click a webpage. In here, you should look for span id="flashcontent_60285" Notice the number 60285, that's the sample's unique id. Right after that, you should find a piece of script with the url to a preview mp3 file. Copy & paste that url and there you have it.

2. using the info we learnt from method 1, we can construct the preview url for every sample. The preview file has the url http://www.freesound.org/data/[x]/previews/[x][y]____[filename]_preview.mp3
[x][y] is the full file id, in our example 60285. [x] is the part which is dividable by 1000, in our case 60. So already we know the url now is http://www.freesound.org/data/60/previews/60285__
__[filename]_preview.mp3
is Dstruct.
[filename] is Techline.wav, but without the extension.
So we can see the preview file for this sound is located at url http://www.freesound.org/data/60/previews/60285__Dstruct__Techline_preview.mp3

So if a file id is lower than 10000, for example it is 1234, [x] is 1 and [y] is 234, which would make the url http://www.freesound.org/data/1/previews/1234__Freed__180404D_preview.mp3 (note I also updated the and [filename] to the correct values for this sample)

If a file id is lower than 1000, [x] is 0.

Bram

122 sounds

1,573 posts

17 years, 3 months ago
#7

a cookie for nemoDaedalus.

smile

- Bram

Admin | Support
D
Dstruct

1 sound

52 posts

17 years, 3 months ago
#8

@Bram: What about using OGG format for the previews? Does the flash applet support it?

I'm asking because of this "fucking" delay which gets added to the beginning of MP3 files. This delay can cause a click at the end of the preview (if there's not enough silence at the end). It also doesn't loop properly.

Can be heard in this file for example: http://www.freesound.org/samplesViewSingle.php?id=60348 -> WAV plays and loops fine, but the MP3 preview doesn't.

N
nemoDaedalus

18 sounds

455 posts

17 years, 3 months ago
#9

Bram
a cookie for nemoDaedalus.

smile

- Bram


http://farm3.static.flickr.com/2053/2078466930_0ab1782b81_m.jpg
(cc) by 2.0 anomalous4

nicStage

418 sounds

86 posts

17 years, 2 months ago
#10

rorys
H
Is there any drawback (besides sound quality) to just downloading the preview files instead of the original files? Are the previews always the full length of the original uploaded sample?
The only drawback I can think of (Besides the headache of swimming through the source) is that you would be bypassing freesound's functionality of tracking which samples you downloaded. This will make it harder for you to attribute them when use them.

Nic Stage - Field recorder organism
Post reply
About Freesound Terms of use Privacy Cookies Developers Help Donations Blog Freesound Labs Get your t-shirt!
© 2025 Universitat Pompeu Fabra