Replace MP4 Meta Tags?
-
mrbosco
- Posts: 141
- Joined: 03 Sep 2011 09:40
Replace MP4 Meta Tags?
If I have a movie file in mp4 format I can go to properties...details...title and change whatever is there to the filename of the movie.
Is there anyway to automate this with a script?
Thanks.
Is there anyway to automate this with a script?
Thanks.
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Replace MP4 Meta Tags?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
admin
- Site Admin
- Posts: 66699
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
highend
- Posts: 15000
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Replace MP4 Meta Tags?
for .mp4 video files?
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 66699
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Replace MP4 Meta Tags?
Help:
"Works with all files that support ID3v1 tags, e.g. MP3, MP4, M4A. "
"Works with all files that support ID3v1 tags, e.g. MP3, MP4, M4A. "
FAQ | XY News RSS | XY X
-
highend
- Posts: 15000
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Replace MP4 Meta Tags?
But this is not about standard id3 tags
What he wants to change is this title: IPropertyStorage is the keyword here
What he wants to change is this title: IPropertyStorage is the keyword here
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 66699
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
mrbosco
- Posts: 141
- Joined: 03 Sep 2011 09:40
Re: Replace MP4 Meta Tags?
Is it possible to add it to a wish list of future features?
-
admin
- Site Admin
- Posts: 66699
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Replace MP4 Meta Tags?
Hmm, this is really from the dark side of Windows, I would guess the Office people are responsible for it. So, I will probably always find something better to do than torture myself with this horrific interface.
FAQ | XY News RSS | XY X
-
mrbosco
- Posts: 141
- Joined: 03 Sep 2011 09:40
Re: Replace MP4 Meta Tags?
OK, thanks anyway.
The reason I'm trying to do this is Plex Media player uses these fields (if present) over the actual filename for its scanner.
So if there's garbage in these fields, Plex screws up. There really should be a way of telling plex to ignore these fields but I can't seem to find one.
Thought if XYPlorer gave me an easy way to populate the fields or blank them out that would solve my problem.
Thanks for your help and the timely responses.
:-)
The reason I'm trying to do this is Plex Media player uses these fields (if present) over the actual filename for its scanner.
So if there's garbage in these fields, Plex screws up. There really should be a way of telling plex to ignore these fields but I can't seem to find one.
Thought if XYPlorer gave me an easy way to populate the fields or blank them out that would solve my problem.
Thanks for your help and the timely responses.
:-)
-
totmad1
- Posts: 131
- Joined: 24 Jun 2013 12:37
Re: Replace MP4 Meta Tags?
You can automate by using ffmpeg.It achieves this by "remuxing" i.e. copying while putting in the metadata.
In this case it puts "Action" as Genre.
Code: Select all
$ffmpeg="%porta%\ffmpeg\bin\ffmpeg.exe";
$genre="Action";
$SelectedItems = get("SelectedItemsPathNames","|");
foreach($Item, $SelectedItems,"|") {
$base= gpc("$Item", "base");
$path= gpc("$Item", "path");
$ext= gpc("$Item", "ext");
$cmdline = <<<CMD_LINE
cmd /c ""$ffmpeg" -i "$Item" -metadata title="$base" -metadata genre="$genre" -acodec copy -vcodec copy "$path\ $base _NEW.$ext""
CMD_LINE;
$cmdline = Replace($cmdline, "<crlf>", ' ');
Run($cmdline, , 0, 0);
wait 500;
}totmad1 (totally mad one)
-
highend
- Posts: 15000
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Replace MP4 Meta Tags?
I just stumbled upon "prop": https://prop.codeplex.com/releases/view/11675
The Vista version still works fine on Windows 10.
To set a title you have to use:
prop.exe set "<full path to file>" System.Title="<base name of your file>"
Only 105 KB large^^
The Vista version still works fine on Windows 10.
To set a title you have to use:
prop.exe set "<full path to file>" System.Title="<base name of your file>"
Only 105 KB large^^
Code: Select all
$prop = "D:\Tools\@Command Line Tools\prop\Vista\prop.exe";
foreach($item, <get SelectedItemsPathNames |>, , "e") {
if (gpc($item, "ext") != "mp4") { continue; }
$baseName = gpc($item, "base");
runret("""$prop"" set ""$item"" System.Title=""$baseName""");
status "Setting base name for '" . gettoken($item, -1, "\") . "'";
}
One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club