This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kaudiocreator encoder with "more than 1 command"?

Tags: None
(comma "," separated)
sbbgnew
Registered Member
Posts
5
Karma
0
OS
Hi,
I've been using Kaudiocreator and FAAC for a long while and decide to give nero AAC encoder a try.
Nero AAC encoder came with 3 commands. neroAacEng is for encoding ONLY, while neroAacTag is for tagging.

So here comes my problem. I try to creator new encoder setting in Kaudiocreator like.

Code: Select all
neroAacEnc -lc -q 0.6 -if %f -of %o ; neroAacTag %o -meta:title=%{title} -meta:artist=%{artist} -meta:album=%{albumtitle} -meta:track=%{number}


The file only got encoded, but NOT tagged. I also tried something like.

Code: Select all
neroAacEnc -lc -q 0.6 -if %f -of %o && neroAacTag %o -meta:title=%{title} -meta:artist=%{artist} -meta:album=%{albumtitle} -meta:track=%{number}


No, none of these worked for me. :'(

Can anyone give me some hint about how to make Kaudiocreator execute "all commands" in the encoder?
Thanks.
sbbgnew
Registered Member
Posts
5
Karma
0
OS
I tried with a shell script, put the two command together.
But it seems Kaudiocreator cannot properly execute it. It always stuck at encoding step.

I tried the best I can, I think.
May anyone lend me a hand?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If you provide the arguments to the script by hand does it work properly?

Is the script marked as being executable with the appropriate #! line?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
sbbgnew
Registered Member
Posts
5
Karma
0
OS
Oh, thank you, finally!

Here is the shabby script I wrote to do this:
Code: Select all
#!/bin/bash
neroAacEnc -lc -q 0.6 -if "$1" -of "$2"
neroAacTag -meta:title="$3" -meta:artist="$4" -meta:album="$5" -meta:track=$6 "$2"
exit 0

I tested this by:
Code: Select all
./neroaacenctag.sh testinput.wav this.m4a title artist "album this" 2

And it successfully generate this.m4a which with proper tag.

And I put this into encoder command:
Code: Select all
neroaacenctag.sh "%f" "%o" "%{title}" "%{artist}" "%{albumtitle}" %{number}

Could it be anything wrong about the way I use the command because of my unfamiliarity with "%" operator?

Thank you for your help in advance.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you tried adding statements to the start of your bash script to echo out (to a log file if needed) what arguments have been passed in?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
sbbgnew
Registered Member
Posts
5
Karma
0
OS
Thank you, just some miss path. :<
Problem solved.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]