LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   AcidRip , I would like to hack it a little (https://www.linuxquestions.org/questions/linux-software-2/acidrip-i-would-like-to-hack-it-a-little-347766/)

shanenin 07-28-2005 02:56 PM

AcidRip , I would like to hack it a little
 
First off, I would like to say it is a wonderful program(as is). I really like the feature of exporting the queqe as a shell script. Someday , I would hope to write something so good(my current programmings skills are a little weak)

I would like to change the progam in this fashion. I currently rip my dvds to my harddrive with another program, then use AcipRip to encode them to mpeg4. I currently have this line in my .acidriprc
Code:

dvd_device = /home/shane/videos/$DIR/VIDEO_TS
the $DIR is not a varibable, but more of a marker for me. when I start acidrip, I then replace $DIR with the directory(which is also the title) of my dvd. So I only have to make minimal changes before encoding.

the value that I add to "track title"(title of my movie) gets set to %T, which is then used for the expansion of "filename" example /home/shane/movies/%T

if I set my "track title" to "killbill_vol1" I will get this expansion for my "filename"
Code:

/home/shane/movies/killbill_vol1
is there a way to get that same variable to expand in dvd_device like the following
Code:

dvd_device = /home/shane/samba/videos/%T/VIDEO_TS
so this would expand to
Code:

dvd_device = /home/shane/samba/videos/killbill_vol1/VIDEO_TS
if this could be accomplished, I would only have to set one parameter when encoding a movie, the parameter of "Track Title"

I am not sure how involved of a process this would be, but would appreciate any direction. I have some experience with bash and python, but none with perl.

Matir 07-28-2005 03:04 PM

Isn't acidrip written by acid_kewpie? (Aka, one of the mods here) Perhaps that trick already exists and he knows how to do it. I took a glance at the code, but I haven't worked with perl in a few years, so I'll be honest and admit that I couldn't find anything.

shanenin 07-28-2005 03:06 PM

Quote:

Originally posted by Matir
Isn't acidrip written by acid_kewpie?
that why I posted here, Having designed the program, he would know best how to change it :-)

XavierP 07-28-2005 03:12 PM

It would probably be worth your while emailling him, he may not see this thread.

Matir 07-28-2005 03:15 PM

You know, that makes me think of something... my biggest problem in software dev is that, despite wanting to create programs, I can never come up with good original ideas. *sigh*

shanenin 07-28-2005 03:45 PM

sorry my original question ws kind of a mess. Below is a much cleaner question

I would like to use the %T varibale in dvd_device llike this

below is from .acidriprc
Code:

dvd_device = /home/shane/samba/videos/%T/VIDEO_TS
filename = /home/shane/movies/%T

as is %T does not expand in that situation. Would it be possible to get varaible expnasion in the dvd_device variable?


All times are GMT -5. The time now is 04:31 AM.