Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

I know nothing about Java but is this possible

Thread view: 
Pete - 07 Mar 2006 18:00 GMT
I need a program that extracts the file creation date and time from an
AVI(mjpg) file(eg: movie.avi) and then inserts that info/text inside a
text file that already has some text. So.. in effect the extracted date
and time is inserted into the subtitle file(eg: subtitle.ssa) for my
Virtualdub video editing program. tia

This is the .ssa subtitle file... All I need is the date and time info
inserted at the very bottom.

,    vcvc   [Script Info]
; This is a home movie from Dad
; It is one of many that documents the life of the Angus and and his Dad,
Title: <Home Movies 2006 with my Canon A300>
Original Script: <abc.net>
ScriptType: v4.00
Collisions: Normal
PlayResY: 600
PlayDepth: 0
Timer: 100.0000

[V4 Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour,
TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow,
Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding
Style:
Default,Arial,40,16777215,8421440,65535,-2147483640,0,0,1,1,1,2,30,30,30,0,0

[Events]
Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV,
Effect, Text
Dialogue: Marked=0,0:00:01.00,0:00:05.00,*Default,,0000,0000,0000,,Angus
and Dad
Dialogue: Marked=0,0:00:6.00,0:00:9.00,*Default,,0000,0000,0000,,INSERT
EXTRACTED TEXT HERE
Larry - 08 Mar 2006 20:50 GMT
Sure, this can be done.  Look at the "File" class for accessing the
file attributes you want (create date, etc.) and "FileOutputStream" for
writing data to a text file.

Larry
Gordon Beaton - 09 Mar 2006 07:36 GMT
> Sure, this can be done. Look at the "File" class for accessing the
> file attributes you want (create date, etc.) and "FileOutputStream"
> for writing data to a text file.

For plain text use e.g. an OutputStreamWriter, not any kind of
OutputStream.

/gordon

Signature

[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.