LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-02-2016, 11:59 PM   #1
koyu
LQ Newbie
 
Registered: Jan 2016
Posts: 2

Rep: Reputation: Disabled
Change video metadata


Hello,

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.

Thanks.
 
Old 01-03-2016, 03:16 AM   #2
wchouser3
Member
 
Registered: May 2013
Location: Fort Wayne, Indiana
Distribution: Arch Linux
Posts: 74

Rep: Reputation: Disabled
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.
 
Old 01-03-2016, 06:24 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i had a quick look at my distros repos, all metadata utilities i can see are for audio only...

however, i know that ffmpeg/avconv can do what you want.
 
Old 01-03-2016, 05:18 PM   #4
koyu
LQ Newbie
 
Registered: Jan 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,

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.
 
Old 01-04-2016, 08:02 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by koyu View Post
Hi,

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.
exiftool is also an option
 
Old 01-05-2016, 03:15 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ 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 View Post
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 ?
try this:
Code:
ffmpeg -i "some track.mp3" -c copy -map_metadata -1 "some track no meta.mp3"
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.

also see here:
https://superuser.com/questions/4413...ts-with-ffmpeg
 
Old 01-05-2016, 05:58 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by koyu View Post
Hello,


The videos come in various extensions, most of them are wmv.

Thanks.
I'd resample them into mp4 handbrake has settings to modify and add information to movies too,
 
Old 01-05-2016, 06:04 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by ondoho View Post
^ if exiftools works on video, that would be really cool.
better, even.
there'd be graphical frontends for that, too, i think.


try this:
Code:
ffmpeg -i "some track.mp3" -c copy -map_metadata -1 "some track no meta.mp3"

also see here:
https://superuser.com/questions/4413...ts-with-ffmpeg
I think you may have typo'ed mp3 he's working with wmv windows movie format

command line
Code:
  [ 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).*}


exiftool
-
exiftool FAQ

exiftool tag table

Last edited by BW-userx; 01-05-2016 at 06:53 AM.
 
  


Reply


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
Image viewer that supports editing metadata and sorting/viewing by metadata? ahc_fan Linux - Software 1 12-02-2015 11:08 AM
howto find what caused directory metadata to change bolaoi Linux - Security 3 06-22-2012 10:04 AM
[SOLVED] What would change a Files Metadata 2w!st3d Linux - General 4 04-13-2012 01:31 PM
Looking for opinions on programs to change video formats/ resize video damgar Linux - Software 1 01-12-2010 04:52 PM
Change video card neranjana Linux - Hardware 1 09-15-2003 05:45 AM

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

All times are GMT -5. The time now is 07:15 AM.

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
Open Source Consulting | Domain Registration