file divided into multiple pieces
Hi everybody,
Someone has split my audio class lessons and some songs I put on my smartphone into multiple pieces: I guess he or she used the "split utility" to do this in order to make me angry but how could I use the "join utility" to mend the files? Thanx, Wuthering |
There is no join utility, but you can easily use cat, like this:
Code:
cat part1 part2 part3 part4 >joined_file |
What are the names of the pieces? Can you post an example? If you are sure they have been divided using the split utility, you can assemble pieces using cat. Just pay attention to put the names of the pieces in the correct order. Example:
Code:
cat xaa xab xac xad xae xaf > output_file Code:
cat file.part1 file.part2 file.part3 file.part4 > output_file Edit: beaten by TobiSGD! ;) |
@TobiSGD/colucix:
I am just currious... Can cat create a full music file (i.e. may be mp3 clips) from pieces of file? |
Quote:
|
Quote:
Code:
~$ cat song1.mp3 song2.mp3 > newsong.mp3 |
Yes and no. The situation you describe is totally different from joining pieces coming from one original file. A mp3 file has a header that contains information about the bit-rate, the audio codec and so on. If you concatenate two mp3 using cat, this information is not updated and it remains related to the first file, not to the resulting mp3. Nevertheless an audio player can still play the file and you will listen to two songs in sequence. However I think it is a matter of luck in this case! ;)
|
Quote:
MP3 file structure: https://en.wikipedia.org/wiki/Mp3#File_structure ID3 tags: https://en.wikipedia.org/wiki/ID3 |
Thanks for the clarification, TobiSGD!
Quote:
|
@colucix :is the any other utility to split a mp3 file and corrupt a song and how can I get the information about the corrupted file I want to mend to check if it is therefore the split utility used by the guy?
tomorrow, I will be able to give you more details as I don't have the cable to connect my smartphone with the computer. Thanx everybody for your useful answers. wuthering. |
Instead of the split utility you also can use any audio editor to split the file into multiple smaller ones. In this case you would even be able to play any chunk independent from the others.
To test if the person that did this really used split (or a similar working tool) the best and simplest option is to just launch the cat command to join them and try if you can play it. |
to TobiSGD:
as I am a newbie on linux, I don't know how to use the cat utility , I mean : I transfered the corrupted files from my smartphone to my computer and I put it in /home. But what shall I write in the shell ? I must give details : for example it is a file of german class lessons but for each file , it is complete indeed but when I listen to it, it is as if it is splited, I don't know if I am clear enough: it it as if you have your mp3 cd device that bugs when you listen to the music. Do you understand ? |
Try it with this command
Code:
cat file1 file2 file3 file4 > newfile |
you did not understand <moderated>
|
If I misunderstood you then please try to explain what you mean in a different way. If you have problems to do that because English is not your native language it may be easier for you to e-mail me and explain your problem in German (since you mentioned German lessons).
Also, please remove those insults, this forum is not a place for that. |
All times are GMT -5. The time now is 03:15 AM. |