Using AVI files

49 views
Skip to first unread message

annie

unread,
Jul 7, 2008, 2:46:01 PM7/7/08
to ViPER Mailing List
I want to use AVI files in VIPER for ground truth annotation of my
tracking frmaework but it only accepts mpg files.
Could anyone help me out how to use AVI files in VIPER

David Mihalcik

unread,
Jul 7, 2008, 3:59:05 PM7/7/08
to ViPER Mailing List
Unfortunately, the Java Media Framework (the library ViPER uses to
display (some) AVIs) doesn't allow frame-accurate scrubbing of AVI
files, so they aren't fully supported within the program.

I'd recommend saving the video file in another format that ViPER can
read, such as MPEG-1 or 2, or a folder full of numbered jpegs.

To get the image sequence, open the file in VirtualDub[1], then
select, from the menu, File > Export > Image Sequence... and export it
to a new directory. Then, within ViPER, select Media > Add Directory
as Single File...

To convert to an MPEG, use VLC[2] to open the file, selecting the
'Stream/Save' option to save to a file using the 'Advanced > settings'
in the file dialog. Make sure to select MPEG 1 and mp1v as your
encapsulating and video transcoding options. The mpeg will save a lot
of disk space, but you might lose a couple of frames at the end. If I
remember correctly that VLC's encoder has a bug (or viper's decoder
does, I'm not entirely sure).

[1] http://www.virtualdub.org/
[2] http://www.videolan.org/

- Dave Mihalcik

annie

unread,
Jul 8, 2008, 4:37:13 AM7/8/08
to ViPER Mailing List
Thanks for the help David
The image sequence method works for me :-)
Reply all
Reply to author
Forward
0 new messages