Bug #766

Add script to batch convert video files to preservation format and access format using FFmpeg

Added by Evelyn McLellan over 10 years ago. Updated over 7 years ago.

Status:VerifiedStart date:
Priority:HighDue date:
Assignee:Joseph Perry% Done:

0%

Category:-
Target version:Release 0.6
Google Code Legacy ID:archivematica-111 Pull Request:
Sponsored: Requires documentation:

Description

Preservation format is MPEG-2 in MXF wrapper. Note that bitrate of original
video stream should be retained. Sample convert command for single AVI file
is available at
http://www.archivematica.org/wiki/index.php?title=AVI_to_MXF_test_results .

Access format is FLV. Sample convert command for single AVI file is
available at
http://www.archivematica.org/wiki/index.php?title=AVI_to_FLV_test_results .

An example of a script to batch convert video files using FFMPEG is at
http://www.autoitscript.com/forum/index.php?showtopic=108039 .

Evelyn to work with Austin on this.

[g] Legacy categories: Preservation planning

History

#1 Updated by Evelyn McLellan over 10 years ago

After discussing format conversions with an av expert, I think the command for
producing the best quality MPEG-2 files is as follows: ffmpeg -i <input_file> -vcodec
mpeg2video -qscale 1 -qmin 1 -intra -ar 48000 output.mxf.

The -qscale and -qmin commands establish the highest quality video quantizer scales
and -intra ensures interframe compression only - i.e. no compression of the images
themselves. The bonus is that the video stream bitrate does not have to be set to
match the original, making the command more generic - which should help with batch
processing.

#2 Updated by Evelyn McLellan over 10 years ago

Correction, access format is OGV (OGG Vorbis). Command to be determined.

#3 Updated by Evelyn McLellan about 10 years ago

Command for converting to access formats is as follows: ffmpeg -i sample.xxx -acodec
vorbis sample.ogv

#4 Updated by Evelyn McLellan about 10 years ago

  • Status changed from New to New

Change of plans. Convert to mpg for access files because vorbis codec can't be used
for mono audio streams and ogg with flac codec makes large files. Instead we will
convert video stream to mpeg-1 and audio stream to mp2. Long story short: ffmpeg -i
sample.xxx sample.mpg.

Also, am changing owner to Joseph.

[g] New owner: berwin22

#5 Updated by Anonymous about 10 years ago

- Missing comment -

#6 Updated by Anonymous about 10 years ago

- Missing comment -

#7 Updated by Joseph Perry about 10 years ago

Made appropriate modifications to VIDEO.xml.

Also available in: Atom PDF