LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-16-2006, 03:59 AM   #1
kunalagon
LQ Newbie
 
Registered: Jun 2006
Posts: 13

Rep: Reputation: 0
how to add tags to avi file ?


I want to add some tags (date, author...etc.) to avi file. I try transcode, and I read manual many times, but I realy dont understand. I read avi_comments example, and still dont know what command to use in trnacode command line to add comment. I see that I can use file in doc avi_comments, and I try that as avi_comments argument, but nothing. Does somebody know how to add avi comment with transcode, and if not, is there any other tool ?
 
Old 11-16-2006, 09:15 AM   #2
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
It seems easy enough to me. You simply create a taginfo text file with the values you want, as explained in avi_comments.txt. Something like this:

Code:
INAM Video Name
IART Name of Artist
ICOP Copyright Info
IGNR Genre of the video
ICMT A general comment line
And feed it into transcode along with the avi file you want to tag:

Code:
transcode -i inputvideo.avi -P3 --avi_comments taginfo.txt -o outputvideo.avi
And the result should be a tagged avi. I notice, however, that for some reason xine doesn't seem to want to recognize the tags. But I can get them with some cli tools such as avitype and the --identify flag of mplayer.

I see from the man page that mencoder also has an -info option for adding tags to an avi file, but I haven't tried it myself. It seems to be simpler than transcode's version, but more limited in the kind of tags it can create. It only covers some of the possible entry options.
 
Old 11-17-2006, 02:50 AM   #3
kunalagon
LQ Newbie
 
Registered: Jun 2006
Posts: 13

Original Poster
Rep: Reputation: 0
I still have some problems...
When I try:

Code:
transcode -i oli-proba2.avi -p3 --avi_comments tag.txt -o oli-proba2-tags.avi
I get this:
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] critical: invalid filename "3"



And when I try without p3, like this:

Code:
transcode -i oli-proba2.avi  --avi_comments tag.txt -o oli-proba2-tags.avi
I get this:

transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdread: Can't open file VIDEO_TS.IFO.
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source oli-proba2.avi (ok)
[transcode] V: import format | DivX5 RIFF data, AVI (V=ffmpeg|A=mp3)
[transcode] V: import frame | 360x240 1.50:1
[transcode] V: bits/pixel | 0.833
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import format | 0x55 MPEG layer-3 [48000,16,2] 128 kbps
[transcode] A: export | disabled
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame | 7680 (7680.000000)
[transcode] A: adjustment | 0@1000
[transcode] V: IA32/AMD64 accel | sse (sse 3dnowext 3dnow mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] warning : no option -y found, option -o ignored, writing to "/dev/null"
[transcode] V: video buffer | 10 @ 360x240
[import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG
[import_ffmpeg.so] v0.1.12 (2004-05-07) (video) ffmpeg: MS MPEG4v1-3/MPEG4/MJPEG
[export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "oli-proba2.avi" -x mp3 -d 0 | tcdecode -x mp3 -d 0 -z 48000
tc_memcpy: using sse for memcpy
encoding frames [000000-000332], 332.03 fps, EMT: 0:00:13, ( 0| 0| 0)
clean up | frame threads | unload modules | cancel signal | internal threads | done
[transcode] encoded 333 frames (0 dropped, 0 cloned), clip length 13.32 s
*** glibc detected *** transcode: free(): invalid pointer: 0xb6875008 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7d0fa5e]
/lib/libc.so.6(__libc_free+0x8b)[0xb7d1058b]
transcode(aframe_free+0x31)[0x80601e1]
transcode(main+0x5633)[0x80564a3]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb7cc1895]
transcode[0x804fff1]
======= Memory map: ========
08048000-08091000 r-xp 00000000 16:03 98306 /usr/bin/transcode
08091000-08093000 rw-p 00049000 16:03 98306 /usr/bin/transcode
08093000-081ed000 rw-p 08093000 00:00 0 [heap]
b4124000-b412e000 r-xp 00000000 16:03 9145251 /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc_s.so.1
b412e000-b412f000 rw-p 00009000 16:03 9145251 /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc_s.so.1
b4956000-b4957000 ---p b4956000 00:00 0
b4957000-b5157000 rwxp b4957000 00:00 0
b5157000-b5158000 ---p b5157000 00:00 0
b5158000-b5958000 rwxp b5158000 00:00 0
b5958000-b5959000 ---p b5958000 00:00 0
b5959000-b6159000 rwxp b5959000 00:00 0
b6854000-b6903000 rw-p b6854000 00:00 0
b74a9000-b74aa000 ---p b74a9000 00:00 0
b74aa000-b7caa000 rwxp b74aa000 00:00 0
b7caa000-b7cac000 rw-p b7caa000 00:00 0
b7cac000-b7dc5000 r-xp 00000000 16:03 3001318 /lib/libc-2.4.so
b7dc5000-b7dc7000 r--p 00118000 16:03 3001318 /lib/libc-2.4.so
b7dc7000-b7dc9000 rw-p 0011a000 16:03 3001318 /lib/libc-2.4.so
b7dc9000-b7dcc000 rw-p b7dc9000 00:00 0
b7dcc000-b7dce000 r-xp 00000000 16:03 3001179 /lib/libdl-2.4.so
b7dce000-b7dd0000 rw-p 00001000 16:03 3001179 /lib/libdl-2.4.so
b7dd0000-b7de0000 r-xp 00000000 16:03 5652491 /lib/libz.so.1.2.3
b7de0000-b7de1000 rw-p 00010000 16:03 5652491 /lib/libz.so.1.2.3
b7de1000-b7e04000 r-xp 00000000 16:03 3001167 /lib/libm-2.4.so
b7e04000-b7e06000 rw-p 00022000 16:03 3001167 /lib/libm-2.4.so
b7e06000-b7e15000 r-xp 00000000 16:03 3001184 /lib/libpthread-2.4.so
b7e15000-b7e16000 r--p 0000f000 16:03 3001184 /lib/libpthread-2.4.so
b7e16000-b7e17000 rw-p 00010000 16:03 3001184 /lib/libpthread-2.4.so
b7e17000-b7e19000 rw-p b7e17000 00:00 0
b7e19000-b7f30000 r-xp 00000000 16:03 9144496 /usr/lib/libxml2.so.2.6.26
b7f30000-b7f35000 rw-p 00116000 16:03 9144496 /usr/lib/libxml2.so.2.6.26
b7f35000-b7f37000 rw-p b7f35000 00:00 0
b7f5c000-b7f5d000 rw-p b7f5c000 00:00 0
b7f5d000-b7f5e000 r-xp b7f5d000 00:00 0 [vdso]
b7f5e000-b7f78000 r-xp 00000000 16:03 3001185 /lib/ld-2.4.so
b7f78000-b7f79000 r--p 00019000 16:03 3001185 /lib/ld-2.4.so
b7f79000-b7f7a000 rw-p 0001a000 16:03 3001185 /lib/ld-2.4.so
bfe43000-bfe57000 rwxp bfe43000 00:00 0 [stack]
bfe57000-bfe58000 rw-p bfe57000 00:00 0
Aborted
 
Old 11-17-2006, 02:58 AM   #4
kunalagon
LQ Newbie
 
Registered: Jun 2006
Posts: 13

Original Poster
Rep: Reputation: 0
OH, I think I made mistake, because I use lowercas p. Now I try -P3, and it works, than I use
Code:
mplayer -indetify
and I succesfully read all tags. Thanks a lot.
 
Old 11-17-2006, 01:57 PM   #5
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
Glad it worked for you.

Just for your info the "-P3" flag is pass-through for both video and audio; basically we're telling transcode to copy the data as-is from the old .avi file into the new one. You generally won't use that tag when you're trancoding from one format to another.
 
  


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
Does there a software which read RNG format to auto complete tags in XML file? nadavvin Linux - Software 0 11-02-2006 12:49 PM
My player cant play rmvb file while avi file is ok......what's going on??!!! shuvernce Linux - General 6 03-28-2006 09:45 PM
After Editing Tags with JuK - XMMS do not display tags correctly Artik Linux - Software 0 07-23-2005 05:55 AM
tags in wma (Windows Media Audio) file format HLVS Programming 6 09-21-2004 04:08 AM
How to convert the MPEG file to AVI file? stiphon General 3 06-08-2004 07:22 PM

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

All times are GMT -5. The time now is 09:23 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
Open Source Consulting | Domain Registration