![]() What I said was, that the simple request "Please try to create a bash script and post the script. ![]() But for the part, how to let something work on all files of a special type found in a directory tree above a certain directory", there is a better place: Development > Programming and Scripting. Well for the part “How to convert MP3 from type a to type b”, this Multimedia is. You said that this is not the right place to such issues but some of you have replied to a similar thread see below. With the conversion of the file $MP3FILE. When this works in giving you the names of all files wanted, you can replace the echo $MP3FILE TOPDIR="/absolute/path/to/the/top/directory/of/the/mp3/files"įind. This is not tested by me for any sort of errors. mp3 (this being an assumption, the rest of my story can be nuts from here on when the assumption is wrong).Īlso the next is just a starter to put our mind in a certain direction. Let us assume that that can be determined from the fact that the file name ends in. ![]() you should first decide how it can be detected that the file is of the kind you want to convert. do the conversion on each of the files found (which will include all the things that requires knowledge on how to use ffmpeg or whatever to do the conversion).find the paths to all files that should be converted (which is a task that does not involve any knowledge on how to handle the conversion).I think you should split the task into two things: But in the end you must do the hard work of coding (and understanding what you code and why) ). We can however offer you some hints on the path to walk to a solution. Nor Are we the pupils in a class were you can ask so for home work. This is not a shop were you can order: “Please try to create a bash script and post the script”. Please try to create a bash script and post the script. After the process has been completed the system must shutdown.If any errors are encountered during the process the corresponding file information ie., file name with path must be stored in a seperate text file for future viewing.All files must be compressed to 16 kbps and 11500 samples per second with highest quality.The script must compress files in each and every directory maintaining directory structure. ![]() I have read ffmpeg manual pages and those was difficult to understand and even I don’t have scripting experience.Ĭan you create a script to perform the following steps I have searched even GUI frontend for ffmpeg and found some software but they don’t have option to convert all these files recursively and some don’t have option to convert to lower bitrate. I have searched web for script and found some code but none of them provided what I want. I want to convert all these files to 16 kbps recursively I mean maintain folder structure of source. I have installed opensuse with ffmpeg on my system. I have a directory of size 65 GB which contains 2500 folders and 7000 mp3 files with 64 kbps bitrate. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |