I have a batch of mkv video files I would like to transcode to a more compressed format. After spending a significant amount of time experimenting with various parameters I think I have found the handbrake settings that give the best compromise. I now want to construct a simple bash script that will scan the directory containing the original mkv files, recreate the directory tree and then transcode them into the new directory. I then need to alter the file name to replace the underscores with spaces and add the episode number to the beginning based on the original file name.
where the s01 represents season 1 and e01 or e02 represent episode in the season as per thetvdb.com. I would like to replicate this directory structure and change the file name to add the season number and episode number to the front of the file based on the sXX and eXX values, so that the new structure looks like:
It nearly works - the new directories are created but only the last mkv file in the last directory is transcoded, for example if I have:
dir1 - file1.mkv & file2.mkv
dir2 - file3.mkv & file4.mkv
only file4 is transcoded in the new dir2 that is created, dir1 is also created but remains empty.
Hello friends,
Am trying to compile and build Handbrake 0.9.9 on my redhat box but getting the below errors.
Same errors when I compile the source from github and also from the official web site.
# uname -a
Linux blah.com 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64... (0 Replies)
Hello. I am trying to create a script that recursively looks at my folder structure, and extracts any .7z files that have not already been extracted yet. I know that all .7z files only have a single .txt file in them, and the only .txt file in any directory would be from that .7z file.
I am... (3 Replies)
Hi,
on AIX 6.1 , in man document for grep :
-r
Searches directories recursively. By default, links to directories are followed.
But when I use :
oracle@XXX:/appli/XXX_SCRIPTS#grep -r subject *.sh
It returns nothing.
However I have at least one row in a file :
... (3 Replies)
Hello
i have a requirement where in a file i will get string. The length could be from 1 to 20. if the string is less than 6 characters ( ex: ABCD) . i need to append 'X' on right hand side to make it 6 characters (ex: ABCDXX). if suppose i get the same string from the file as ABCDXX then i... (5 Replies)
I'm trying to run the script below recursively but it is generating multiple and simultaneous processes. how do I do to start same script again (last line of my script) only after he had just run entirely?
The file name is bachup.sh
I am using this command:
# / bin / bash /
... (8 Replies)
################################################################
Copy this script to your path from where you want to search for all the files and directories in subdirectories recursively.
#################################################################
code starts here... (2 Replies)
Hello,
First time post - I have no formal unix training and could use some help with this. I have a list of strings in File1 that I want to use to do a recursive search (grep) under a specific directory.
Here is an example of the string I need to search:
/directory/dire... (16 Replies)
Hello everyone , I am looking for a better solution then the one I have created for the my Task
The task is:
Create an automated script that will check for Uploads in a specified Directory and move them to another specified Directory if the files are completely uploaded.
Files are FTP'd to... (2 Replies)
I'm trying to create a script that allows me to determine all the pid's that spawned from an original process(ie - who's running this command)....
I've created a script that searches the processes running based on an argument passed the script. It then is to get the parent pid and look that... (3 Replies)