Video archive for "just in case" purposes

PhotoDmiK

Mu-43 Regular
Joined
May 26, 2015
Messages
136
I want to compress lot of my music video clips for storage. I tried following:

ffmpeg - lot of options, very slow, do not retain date/time and other metadata
OV3 - nearly none options, much faster, can't set bitrate, does retain date/time and other metadata

How others store old videos for "just in case" purposes?
 

DaveEP

Mu-43 Top Veteran
Joined
Sep 20, 2014
Messages
912
Handbrake. Best quality vs size and it's free.

Fast & good & small are not something you're going to see. Its the usual choice....

Good | Fast | Small

Pick TWO, you can't have all three.

Seriously consider H.265 instead of H.264 going forward. Overtime it will become the default codec and produces files much smaller than H.264. Right now, most players can't play it but most recent 4K TVs can and the computer world will soon catch up.

Other than that, I tend to archive in ProRes ;)
 

PhotoDmiK

Mu-43 Regular
Joined
May 26, 2015
Messages
136
Just found ffmpeg option for metadata copying.

Going to look at Handbrake and ProRes, thanks!
 

robcee

Mu-43 Veteran
Joined
Jan 10, 2016
Messages
490
Location
New Brunswick, Canada
Real Name
Rob Campbell
+1 for Handbrake. It puts a nice UI on top of ffmpeg, so if you like the results you can get with that, you'll love Handbrake.

VLC will also do a streaming, re-encoding thing, but the interface is a little confusing.
 

PhotoDmiK

Mu-43 Regular
Joined
May 26, 2015
Messages
136
Seems Handbrake does not retain date/time and other metadata too, have not found any options for this.

I'v got working batch file and playing witch compression options (libx264 -preset slow -crf 23):

Code:
for %%a in ("*.mov") do (
ffmpeg.exe -i "%%a" -map_metadata 0 -c:v libx264 -preset slow -crf 23 -c:a aac -b:a 320k "%%~na.mp4"
touch.exe -r "%%a" "%%~na.mp4"
)
pause
 

robcee

Mu-43 Veteran
Joined
Jan 10, 2016
Messages
490
Location
New Brunswick, Canada
Real Name
Rob Campbell
Seems Handbrake does not retain date/time and other metadata too, have not found any options for this.

I'v got working batch file and playing witch compression options (libx264 -preset slow -crf 23):

Code:
for %%a in ("*.mov") do (
ffmpeg.exe -i "%%a" -map_metadata 0 -c:v libx264 -preset slow -crf 23 -c:a aac -b:a 320k "%%~na.mp4"
touch.exe -r "%%a" "%%~na.mp4"
)
pause
you can add an options string to ffmpeg in one of the advanced tabs in Handbrake. Then again, if you're comfortable with a batch file and it gets the job done then there isn't really any need. Nicely done.

(not sure why you need to "touch.exe" the file once it's completed though - just updating the timestamp?)
 

PhotoDmiK

Mu-43 Regular
Joined
May 26, 2015
Messages
136
Oh yes, touch is to update time stamps. There is how it looks:
Code:
30.01.2016  14:42  27 390 230 P1301898.MOV
30.01.2016  14:42   3 990 476 P1301898_264fast23.mp4
30.01.2016  14:42   4 141 917 P1301898_264med23.mp4
30.01.2016  14:42   4 315 668 P1301898_264slow23.mp4
30.01.2016  14:42  10 053 020 P1301898_264ufast23.mp4
30.01.2016  14:42     850 255 P1301898_265med28.mp4
30.01.2016  14:42   1 590 088 P1301898_265slow23.mp4
smallest file is worst in quality.
So good compression is because its only singer moving and camera is on tripod.

And here is metadata preserved:
Code:
General
Complete name                  : C:\work\Muz\1\P1301898_264slow23.mp4
Format                         : MPEG-4
Format profile                 : Base Media
Codec ID                       : isom
File size                      : 4.12 MiB
Duration                       : 12s 22ms
Overall bit rate mode          : Variable
Overall bit rate               : 2 872 Kbps
Encoded date                   : UTC 2016-01-30 14:41:48
Tagged date                    : UTC 2016-01-30 14:41:48
Writing application            : Lavf57.24.101

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L5
Format settings, CABAC         : Yes
Format settings, ReFrames      : 5 frames
Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 12s 0ms
Bit rate                       : 2 588 Kbps
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Constant
Frame rate                     : 25.000 fps
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.050
Stream size                    : 3.70 MiB (90%)
Writing library                : x264 core 148 r2665 a01e339
Encoding settings              : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                       : Japanese
Encoded date                   : UTC 2016-01-30 14:41:48
Tagged date                    : UTC 2016-01-30 14:41:48
Color range                    : Full

Audio
ID                             : 2
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : 40
Duration                       : 12s 22ms
Duration_LastFrame             : -11ms
Bit rate mode                  : Variable
Bit rate                       : 282 Kbps
Maximum bit rate               : 320 Kbps
Channel(s)                     : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 48.0 KHz
Compression mode               : Lossy
Stream size                    : 414 KiB (10%)
Language                       : Japanese
Encoded date                   : UTC 2016-01-30 14:41:48
Tagged date                    : UTC 2016-01-30 14:41:48
 
Last edited:

PhotoDmiK

Mu-43 Regular
Joined
May 26, 2015
Messages
136
Well, for speed I'll use
Code:
ffmpeg -i "%%a" -map_metadata 0 -c:v libx264 -preset fast -crf 23 -c:a aac -b:a 320k "%%~na.mp4"
and for 2x smaller size for 100x price of speed
Code:
ffmpeg -i "%%a" -map_metadata 0 -c:v libx265 -preset slow -crf 23 -c:a aac -b:a 320k "%%~na.mp4"
 
Links on this page may be to our affiliates. Sales through affiliate links may benefit this site.
Mu-43 is a fan site and not associated with Olympus, Panasonic, or other manufacturers mentioned on this site.
Forum post reactions by Twemoji: https://github.com/twitter/twemoji
Copyright © 2009-2019 Amin Forums, LLC
Top Bottom