LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-20-2011, 02:49 PM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,726

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question Adding tag to a video file?


Hi.

I downloaded these public domain Popeye videos and notice that even when I renamed the video title, the original title is still on the video in Totem/VLC etc.? It shows the video title and download URL.

How can I add this to a video and can it be edited?
Attached Thumbnails
Click image for larger version

Name:	Video_tag.gif
Views:	20
Size:	35.6 KB
ID:	8674   Click image for larger version

Name:	Properties.gif
Views:	26
Size:	14.6 KB
ID:	8675  

Last edited by linustalman; 12-20-2011 at 02:56 PM.
 
Old 12-20-2011, 03:09 PM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by LinusStallman View Post
I downloaded these public domain Popeye videos and notice that even when I renamed the video title, the original title is still on the video in Totem/VLC etc.? It shows the video title and download URL.

How can I add this to a video and can it be edited?
much more interesting: How can I remove that extra garbage? I also have a few videos from different sources that seem to have tags like that embedded. Some of them are in mp4 encapsulation, some are Windows Media (wmv) files. AFAIR avi containers are clean. And I'd like to get rid of these tags, just like I can remove ID3 tags from an mp3 file.

[X] Doc CPU
 
Old 12-21-2011, 04:42 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
I don't think there's any easy way to do it. I've never seen any kind of generic tag editor that will work with all the various video containers out there (sounds like it's be a good project for someone interested in a programming challenge).

Some of the cli editors like mplayer and ffmpeg can add or modify metadata tags, however. The ffmpeg man page has this option, for example:

Code:
-metadata[:metadata_specifier] key=value (output,per-metadata)
	Set a metadata key/value pair.

	An optional metadata_specifier may be given to set metadata on streams
	or chapters. See "-map_metadata" documentation for details.

	This option overrides metadata set with "-map_metadata". It is also
	possible to delete metadata by using an empty value.

	For example, for setting the title in the output file:

		ffmpeg -i in.avi -metadata title="my title" out.flv

	To set the language of the second stream:

		ffmpeg -i INPUT -metadata:s:1 language=eng OUTPUT
I haven't tried it personally though. I imagine you'd have to use the "copy" value for the video and audio codecs, and re-wrap the streams into a new container with the tags you want.

-map_metadata, BTW, appears to be for copying tags from the input file(s) to the output file, so it appears that by using both options in tandem you can keep most of the tags as-is and modify only the ones you want.
 
Old 12-21-2011, 05:38 AM   #4
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,726

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Lightbulb

Quote:
Originally Posted by Doc CPU View Post
just like I can remove ID3 tags from an mp3 file
Yes, I use EasyTag for that, simple.
Surely it shouldn't be too difficult to do same with video files?
 
  


Reply



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
Adding new tag to an xml file using sed nano2 Linux - General 6 11-23-2011 05:47 AM
.ogv video does not display with <video> tag in Firefox 3.5 CoderMan Programming 4 01-30-2010 06:32 AM
Need assistance with shell script - replace a string with a start tag and end tag SupermanInNY Programming 18 01-02-2010 05:44 PM
LXer: Working with Ogg Theora and the video tag LXer Syndicated Linux News 0 08-20-2009 09:12 AM
How To get the data from a tag in XML File kingmaker2003 Programming 7 12-04-2008 11:12 PM

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

All times are GMT -5. The time now is 01:17 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