LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2019, 08:52 AM   #16
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 3,795

Original Poster
Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401

Quote:
Originally Posted by hydrurga View Post
The man file and --help options are useful in showing the command's functionality.

In this case:

Code:
mkvpropedit -s title="New Title" filename.mkv
Would it be possible to batch convert and remove only ".mkv" from the title field for loads of video files?
 
Old 01-11-2019, 09:17 AM   #17
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Quote:
Originally Posted by linustalman View Post
Would it be possible to batch convert and remove only ".mkv" from the title field for loads of video files?
Yes. However reading the title tag seems not to be so simple with mkvtoolnix (well, if it is then I haven't found the simple way yet). As far as I can see, you have to
Code:
mkvmerge -J filename.mkv
then extract the title tag ("title") from the output. That's certainly doable in script, but there may be another command or toolbox (such as MediaInfo) that can extract a specific mkv tag in one go.

I would recommend that you ask about directly reading the title tag through the mkvtoolnix community (https://mkvtoolnix.download/community.html).

Then, your script would be (in English pseudocode):

Code:
for all *.mkv in directory:
   read title tag
   if title tag == "*\.mkv$" [\ delineating a following literal character; $ representing the end of the string]
      replace title_tag
You could write this in Bash or any of a number of other languages such as Python.

Last edited by hydrurga; 01-11-2019 at 09:18 AM.
 
1 members found this post helpful.
Old 01-12-2019, 12:43 PM   #18
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 3,795

Original Poster
Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
Post

Quote:
Originally Posted by hydrurga View Post
Yes. However reading the title tag seems not to be so simple with mkvtoolnix (well, if it is then I haven't found the simple way yet). As far as I can see, you have to
Code:
mkvmerge -J filename.mkv
then extract the title tag ("title") from the output. That's certainly doable in script, but there may be another command or toolbox (such as MediaInfo) that can extract a specific mkv tag in one go.

I would recommend that you ask about directly reading the title tag through the mkvtoolnix community (https://mkvtoolnix.download/community.html).

Then, your script would be (in English pseudocode):

Code:
for all *.mkv in directory:
   read title tag
   if title tag == "*\.mkv$" [\ delineating a following literal character; $ representing the end of the string]
      replace title_tag
You could write this in Bash or any of a number of other languages such as Python.
Hi hydrurga. I posted here: https://www.reddit.com/r/mkvtoolnix/...e_tags_of_many
 
1 members found this post helpful.
  


Reply

Tags
media tags, rename, vlc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ctags,tags and TAGS ,different inode,different file name,but seems same file hereisanan Linux - Server 5 05-14-2018 07:54 PM
[SOLVED] mp3 tags inconsistency between Linux and Sansa Fuze (mp3 tags editing software?) Hungry ghost Linux - Software 3 12-17-2012 09:09 PM
Looking for easy way to rename MP3 tags then sort files into directories thethinker Linux - Software 3 08-22-2010 11:47 PM
After Editing Tags with JuK - XMMS do not display tags correctly Artik Linux - Software 0 07-23-2005 06:55 AM
the site's img tags could use title and/or alt text akaBeaVis LQ Suggestions & Feedback 5 08-03-2003 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration