Newbie Struggling


#1

Hi Guys

I have these MP4 files from a CD they have got a load of gibberish at the beginning (see image).

Please can you tell me how i can make them look correct? There are no other real tags to get details from!!!!

Cheers Thorrrr



#2

Hello Thor!

First and foremost, welcome to mp3tag forums. Although reading the manual would give you a much greater insight on how to use Mp3tag to fix your filenames i can easily tip you on this one:

Select all your files, right click to show context menu, select Convert > Filename -> Filename.

Old filename pattern: %1_%2_%3_%4_%5

New filename pattern: %5

There i just fixed all your files, you owe me a beer crate! :stuck_out_tongue:

Cheers!

PS: Read the manual


#3

Cheers Harakiri
Thanks for you quick response i did read the manual but i did struggle a little understanding it.
A quick follow up can i create a script to do this ?
Finally can i capitalize new file name at 5% as all the title begin with small case i need to Title case the title


#4

Where do you want to get the capital letter? For the filename? Then apply an action of the type "Captilization" (don't know the english for that) and select "Normal".
Windows does not care about the spelling, LINUX does very much so and apparantly, the iPod does not like extensions in capitals. So in general I would be careful with the filename.
But, once you have imported the title, you could safely apply a capitalization to the title tag. Play around with the delimiters for words and select the kind of type you want to have.


#5

Hi

It was my poor explanation i guess so sorry for that.
I want the old filename 5871_01_01_SC11_whatisDW.mp4
I want the old filename 5871_01_02_SC11_learningWeb.mp4

To look like Whatis DW 01-01.mp4 or To look like whatisdw 01-01.mp4
To look like Learning Web 01-02.mp4 or learningweb 01-02.mp4

Which ever is the safest option

There is clear capital letter in the text not sure if this could be used to exploit a space also the start of the text is not capitalized.

Hope this makes sense


#6

Sorry, I am out!
I cannot see any pattern why some words should stay together ("whatis") and others don't ("Learning Web").
Electronic data processing should relieve you from tedious routine jobs. But this does not look like a routine job to me.
Perhaps someone else...


#7

Hi i am happy for them to look like whatisdw 01-01.mp4 or learningweb 01-02.mp4 if that is easier to achieve. Please see image above to see pattern


#8

OK, let's give it a try:
Use the converter filename - filename
THe pattern for me looks like

5871_01_01_SC11_whatisDW

%1_%2_%3_%4_%5
and this should result in:
whatisdw 01-01
%5 %2-%3

Try it on a single file first. I may be wrong.


#9

I am getting scared that is what i have just written down to try (wow am i starting to understand a bit of it ???)
I will try when i get home at work now so not able to try it .

Cheers ohrenkino


#10
Begin Action Group Test_2011#20110606.Thorrrr

Action #1
Actiontype 7: Import tag fields (guess values)
Source format: %FILENAME%
Guessing pattern: %P1%%P2%%P3%%P4%_%P5%

Action #2
Actiontype 5: Format value
Field: P5
Formatstring: $caps2(%P5%)

Action #3
Actiontype 5: Format value
Field: P5
Formatstring: $regexp(%P5%,'(?<!^)(\u\l|(?<=\l)[\u\d])',' $1')

Action #4
Actiontype 5: Format value
Field: P0
Formatstring: %P5%÷-÷%P2%-%P3%

Action #5
Actiontype 5: Format value
Field: _FILENAME
Formatstring: %P0%

Action #6
Actiontype 9: Remove fields
Fields to remove (semicolon separated): P0;P1;P2;P3;P4;P5

Note: Replace each special ÷ character with one space character.
End Action Group Test_2011#20110606.Thorrrr (6 Actions)

From:
5871_01_01_SC11_learningWeb
5871_01_02_SC11_whatisDW
5871_01_03_SC11_CSSRules

To:
Learning Web - 01-01
Whatis DW - 01-02
CSS Rules - 01-03

DD.20110606.1243.CEST

============================================================
Addendum-1
If someone does not need to split the 'camel cased' textual part and does not need to delimit the words by a space character, then the formatting action using the $regexp expression can be removed.
The formatting action for tag-field 'P0' can be removed too.
Also the upcasing can be taken into the formatting action.
Also %P1% and %P4% can be replaced by %DUMMY%.
So the reduced action group will look like the following ...

Begin Action Group Test_2011#20110606.Thorrr.2

Action #1
Actiontype 7: Import tag fields (guess values)
Source format: %FILENAME%
Guessing pattern: %DUMMY%%P2%%P3%%DUMMY%_%P5%

Action #2
Actiontype 5: Format value
Field: _FILENAME
Formatstring: $caps2(%P5%)÷-÷%P2%-%P3%

Action #3
Actiontype 9: Remove fields
Fields to remove (semicolon separated): P2;P3;P5

Note: Replace each special ÷ character with one space character.
End Action Group Test_2011#20110606.Thorrr.2 (3 Actions)

From:
5871_01_01_SC11_learningWeb
5871_01_02_SC11_whatisDW
5871_01_03_SC11_CSSRules

To:
LearningWeb - 01-01
WhatisDW - 01-02
CSSRules - 01-03

============================================================
Addendum-2
The reduced problem as described in Addendum-1 can also be solved by the converter "Filename - Filename".

Convert | Filename - Filename | ALT+3

Select format string

Old filename pattern:
%1_%2_%3_%4_%5

New filename pattern:
$caps2(%5) - %2-%3

Preview
LearningWeb - 01-01.mp3

============================================================
Addendum-3
The complete problem including 'camel case splitting' can also be solved by the converter "Filename - Filename".

Convert | Filename - Filename | ALT+3

Select format string

Old filename pattern:
%1_%2_%3_%4_%5

New filename pattern:
$regexp($caps2(%5),'(?<!^)(\u\l|(?<=\l)[\u\d])',' $1') - %2-%3

Preview
Learning Web - 01-01.mp3

============================================================
Note:
Due to the converter "Filename - Filename" Mp3tag does not need to work physically on tag-fields within the files.
This might drastically reduce the processing time to a minimum.
Especially when processing large files such as MP4 files.

DD.20110606.1906.CEST


Uppercase after ()
#11

Sorry for the newbie query you say action groups! Does this mean all these actions can be in 1 box and all run together?

Or do i have to run them separate but have them in group called Test_2011#20110606.Thorrrr?


#12

DetlevD has a vast collection of sample actions and he apparently stores them for reference purposes. So you do not have to use the same name.
Have a look at the FAQs
/t/967/1

An action group is created if you press Alt-5, which opens the first dialogue, then "New", enter a decent name e.g. "Test_2011#20110606.Thorrrr" (just kidding, something like "mp4 cleanup" would be nice.).
Press OK.
The following, second dialogue has also a New button. Press it and enter the first action that DetlevD developed for you.
Save this action by pressing OK.
Back in the second dialogue you should see your just created action.
Press the New button again and enter DetlevD's second action.
Save it and so on until you have the 6 actions in the second dialogue.
Finally close the second dialogue with OK
You list of actions should have increased by 1.
You may carry out that action group straight away or call it from the Actions button in the toolbar.


#13

Cheers

Operation rename took 10 minutes but worked a treat see image.
Cheers



#14

OK next issue :slight_smile: now i have done this and saved them when viewed in iTunes the files follow no order they are not listed together. Is this because we have only changed the filename?

DO i need to copy filename to tag to get them to list properly?


#15

I do not know anything about iTunes and its sorting and display rules, but I assume, that the new file order is arranged alphabetically by the file name, isn't it so?
That would be the result of re-ordering the filename structure.

DD.20110606.1804.CEST


#16

Geezus Qristhe DetlevD, you're trully hardcore when it comes to helpin a brotha with arrays of actions!

Respekt friend, respekt! :ph34r:


#17

If you do not have any filled in tags than all the tags are the same and iTunes sorts them in an apparently random order.
If you use anything more sophisticated than the Explorer to sort your files DO fill in the tags.