LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (http://www.linuxquestions.org/questions/general-10/)
-   -   Sending a file from my computer to an Internet public forum. (http://www.linuxquestions.org/questions/general-10/sending-a-file-from-my-computer-to-an-internet-public-forum-4175454242/)

stf92 03-15-2013 04:41 PM

Sending a file from my computer to an Internet public forum.
 
Hi: I am registered at a music forum and, sometimes, I ask the members if they know this and that piece of music. I have no other way of making the query than sending the written notes, I mean, a small sheet music with the music notated on it, a thing I can do by using some special software (scorewriter).

Now, it would be much easier (not everybody reads music) if I could send, to this forum, just a music file (.wav, .mp3, et cetera). For example I now have a WAV file, which I would like to post in that forum. Is there any known means in the Internet of sending a file from my computer to an Internet public forum (by forum I mean a site like this one, LQ)?

I know how to send pictures in this way, for instance a screenshot to another forum. I just upload my file to a certain internet site (well..., photobucket) and they give me a link. Then, I only have to post the link. However, this cannot be done with any type of file. In particular, not with an MP3 file. And I have also seen there exist sites for file sharing. But the mechanism is quite different. I have seen that it is impossible to send the file through sites like those. So, my question stands.

yooy 03-15-2013 05:09 PM

Check out soundcloud, mixcloud, etc. you can upload music to these and post links to forums you want.

odiseo77 03-15-2013 05:09 PM

What about registering an account in Youtube and uploading the music files? Other possibility, in case you need other people to have direct access to the files in question (and not simply be able to listen them through Youtube) is to zip them and upload them to any of these file sharing websites (not sure, but might work).

stf92 03-15-2013 05:14 PM

Quote:

Originally Posted by odiseo77 (Post 4912564)
What about registering an account in Youtube and uploading the music files? Other possibility, in case you need other people to have direct access to the files in question (and not simply be able to listen them through Youtube) is to zip them and upload them to any of these file sharing websites (not sure, but might work).

But the file sharing website asks me for a URL to send the file to! As to youtube, I'm sure they will ask me a cell phone number, which I do not like to give anybody.

@yooy: thank you very much.

odiseo77 03-15-2013 05:19 PM

Quote:

Originally Posted by stf92 (Post 4912568)
But the file sharing website asks me for a URL to send the file to!

It's strange since they usually give a link address instead, so people can download the file from there (at least, the ones I've tried). Anyway, the soundcloud suggestion looks like a good idea.

stf92 03-15-2013 05:29 PM

Soundcloud needs you to be in facebook. However, I tried mixclued. They ask me for the email URL, a password and a username (if I had not facebook, but I chose email). But when I pressed the 'Join' button (after having entered the data), I was taken back to the page where I was before, with no explanation at all! Perhaps,I'm doing something wrong.

stf92 03-15-2013 05:36 PM

OK. Now I am a user in mixcloud and am about to upload my firs file. Mine is .wav, so I must first convert it to mp3. I think sox is the tool for it, is it not?

Emerson 03-15-2013 05:41 PM

I'm using a low power Atom PC for my router. So I can serve files from it among many other benefits. For instance, here's how I stopped a rock from falling to the trail. :p Served from my router.

stf92 03-15-2013 06:29 PM

OK. Now I am a user in mixcloud and am about to upload my firs file. Mine is .wav, so I must first convert it to mp3. I think sox is the tool for it, is it not?

EDIT: i just did 'sox lvb.wav lvb.mp3' and got the file. And mixcloud was easier to use than I at first thought.

273 03-15-2013 06:37 PM

Quote:

Originally Posted by Emerson (Post 4912578)
I'm using a low power Atom PC for my router. So I can serve files from it among many other benefits. For instance, here's how I stopped a rock from falling to the trail. :p Served from my router.

The only problem with this is that you're giving your home IP address away to everyone, with any geographical information this may imply. Also, your home internet connection is likely to be slow for people to download from.

Emerson 03-15-2013 07:16 PM

Quote:

Originally Posted by 273 (Post 4912598)
The only problem with this is that you're giving your home IP address away to everyone, with any geographical information this may imply. Also, your home internet connection is likely to be slow for people to download from.

Guess what. This is a dynamic address. Every time it changes it takes minutes until it gets bombed by script kiddies. So much for security concerns. You just keep it secure or you will be hacked. Whether it is published or not makes no difference. My current IP is 64.56.16.94. Go ahead, try to get in.
Second, my upload is 2 Mbit/s, I believe speeds like this are common in developed world?

273 03-15-2013 07:25 PM

Quote:

Originally Posted by Emerson (Post 4912613)
Guess what. This is a dynamic address. Every time it changes it takes minutes until it gets bombed by script kiddies. So much for security concerns. You just keep it secure or you will be hacked. Whether it is published or not makes no difference. My current IP is 64.56.16.94. Go ahead, try to get in.
Second, my upload is 2 Mbit/s, I believe speeds like this are common in developed world?

I'm not suggesting I could hack you, merely suggesting that using one's home connection leaves one* open to reverse-lookup and the possibility of geolocation.
As for 2MB/s -- that's pretty slow for serving up files of any significant size. I know because that's my upload speed.
Sorry, I wasn't suggesting it was wrong to serve from home, I do it all the time, just pointing out some possible downsides.
*You may or may not need to worry about it, but in general one may need to.

Emerson 03-15-2013 07:35 PM

Quote:

Originally Posted by 273 (Post 4912614)
I'm not suggesting I could hack you, merely suggesting that using one's home connection leaves one* open to reverse-lookup and the possibility of geolocation.
As for 2MB/s -- that's pretty slow for serving up files of any significant size. I know because that's my upload speed.
Sorry, I wasn't suggesting it was wrong to serve from home, I do it all the time, just pointing out some possible downsides.
*You may or may not need to worry about it, but in general one may need to.

So what. My ZIP code is US 70774. Now everybody knows it. How is geolocation dangerous to me?
My upload speed is not 2 MB/s (two megabytes per second), it is 2 Mbit/s (two megabits per second). Despite being eight times less it is still great speed and with some patience will deliver you a 10 MiB file pretty fast.

273 03-15-2013 07:40 PM

Quote:

Originally Posted by Emerson (Post 4912616)
So what. My ZIP code is US 70774. Now everybody knows it. How is geolocation dangerous to me?
My upload speed is not 2 MB/s (two megabytes per second), it is 2 Mbit/s (two megabits per second). Despite being eight times less it is still great speed and with some patience will deliver you a 10 MiB file pretty fast.

That's fine, I did substitute "one" for "you" for a reason.
You're probably immune to this, but when serving from home one needs to keep this kind of thing in mind:
http://abcnews.go.com/US/swatting-ha...ry?id=14312879

w1k0 03-17-2013 04:10 PM

stf92,

Two guys stole your thread. I give it you back.

Instead of sox I recommend you to use lame in order to convert *.wav files to *.mp3 ones.

I wrote the following script for you:

wav2mp3
Code:

#!/bin/bash

lame_bitrate="-b 64"
lame_bitrate="-b 128"
lame_bitrate="--r3mix"

pwd=`pwd`

for dir in *
do
        if [ "`echo $dir | grep wav2mp3`" != "" ]
        then
                continue
        fi
        cd "$pwd/$dir"
        for file in *.wav
        do
                lame $lame_bitrate "$file" "${file%wav}mp3"
        done
done

It goes to each subdirectory in the current directory and converts all *.wav files into *.mp3 ones. By default it uses --r3mix variable bitrate pattern (very high quality, moderate size, and fast encoding). If you comment that setting the program uses standard lame 128 kbps bitrate (moderate quality, small size, and slow encoding). If you comment that setting as well the program uses 64 kbps bitrate (low quality, very small size, and fast encoding).

Taking into consideration that youd like to share some music with the other people for the demonstration purposes only 64 kbps bitrate seems the best choice. For good quality use 128 kbps bitrate. For very high quality use --r3mix (its the alias for the following set of the parameters: -V3 --vbr-new --lowpass 18).

So name that script wav2mp3 put it into a directory including some subdirectories with *.wav files and run it.


All times are GMT -5. The time now is 10:28 AM.