Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have downloaded some videos that contain title metadata, which contains rubbish text.
This unfortunately causes vlc to display the title metadata when the video is played, instead of the file name. Would it be possible to make a script that either deletes the title metadata, or at least forces it to be the same as the current filename ?
The videos come in various extensions, most of them are wmv.
if you're wanting to remove the text file that is presumably muxed into the file. I recommend MKVToolnix. It will list the individual parts of the file Audio, Video, Subtitles, etc, and let you choose what you want re-muxed. This creates a MKV video file, which plays nicely on VLC. If you need other formats, Avidemux is a good option. It's just not as fast and easy as MKVToolnix.
thanks for the answers. I have indeed heard of the various tools that you mention (avonc, ffmeg, mkvtoolnix, avidemux, ...), but I'm not a tech expert, so I really don't know how to use them.
More precisely, how is it that I could use these to achieve what I want, which is to programmatically (through a script) change all the videos to remove the metadata ?
thanks for the answers. I have indeed heard of the various tools that you mention (avonc, ffmeg, mkvtoolnix, avidemux, ...), but I'm not a tech expert, so I really don't know how to use them.
More precisely, how is it that I could use these to achieve what I want, which is to programmatically (through a script) change all the videos to remove the metadata ?
^ if exiftools works on video, that would be really cool.
better, even.
there'd be graphical frontends for that, too, i think.
Quote:
Originally Posted by koyu
how is it that I could use these to achieve what I want, which is to programmatically (through a script) change all the videos to remove the metadata ?
this simply removes the metadata - all media players i know of then default to the file name, so there's no point in setting the metadata to "some track".
it also copies the track; you then have to remove the old track.
it is possible that your system uses "avconv" instead of "ffmpeg", but you can use the same command, just replace "ffmpeg" with "avconv".
if it works for you we can automate it into a script.
[ user >$exiftool -Title="what ever you want" filename.ext
script or command line
Code:
for i in path ; do exiftool -Title="${i.*}" "$i" done
that should add just the title of the file name to the title tag in the file, might need to fiddle with it a bit. the percent sign keeps getting removed out of code. it's {i(percent sign).*}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.