[20180930][windows10] mp4box ver7.2.0 最小お手軽環境構築!インストーラー起動なし! – 4Kエンコード時代が来る前に、動画のメタ情報の変化を見る、日付もツール名称も上書きされてたどな~^^;

gpac-masterのビルド回避。(mp4boxとかとか)

最新版インストーラが配布元不明とかやっぱりいやですよね(^◇^;
でも、ソレを回避して中のプログラム使うのもどうかと思いますが、細かいことは気にしない@@

mp4boxのためだけに、Windowsで1から環境構築してもあまりつぶしがきかないので、、、、
gccとかの環境があるかLinux使える人ならすぐかと思いますが、稼働しているLinuxが無いんで逃げ道を探してたところです。

最新版のgpac-マスターのビルドをダウンロード。
https://gpac.wp.imt.fr/mp4box/

GPAC Nightly Builds
https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/

現時点の最新版(windows64bit版)
gpac-0.7.2-DEV-rev744-ge1fa8f05-master-x64.exe

発行元証明が無いので、必ずウィルスチェック入れておいてください。
発行元があってもかけるように心がけましょう。
大手のウィルスチェックはファイルを右クリックして、コマンドを選択できるだけでいけると思います。
(設定が必要な場合もありますが、外出時のドアの鍵や、車のドアロックと一緒で、再確認はくせにしましょう^^)

7zでディレクトリに展開して、mp4box.exeを他のディレクトリにコピーして実行、dllが無いとエラーを吐くので、dllをmp4box.exeと同じディレクトリにコピー
エラーが出なくなるまで続ける。

・js.dll
・libcryptoMD.dll
・libgpac.dll
・libsslMD.dll
・mp4box.exe

とか、そんな感じ。
使ってるうちにエラーが出ると思うので、必要なものをコピーしていく。(同じバージョンの元ファイルは残しておいた方がよい)

おま環構築:例
・ディレクトリ用意:[d:\Tools\Mp4Box]
・ファイルをコピー
・パスを通す(mo4boxがあるディレクトリを環境変数に足してあげる)
パスの通し方はググってください

Windowsの環境パスを通す(path)
http://realize.jounin.jp/path.html

—-
・エクスプローラーのPCを右クリック、システムのプロパティを開く。詳細設定タブを開く。その中の環境変数(N)ボタンを押す。
・2つのウィンドウの下の方、システム環境変数の[Path]をダブルクリックか、選択して編集(i)ボタンを押す。
・新規追加で [d:\Tools\Mp4Box](カギ括弧はいらない) を追加してあげるヽ(*^。^*)ノ終了。

パスが通っているか確認する。
・コマンドプロンプト(開いていたら開き直すと環境を読み直してくれます)で、[d:\Tools\Mp4Box]以外のディレクトリで、mp4box.exeを実行する。ヘルプが出ればパスが通りました。
・パスが通っていないときは、コマンドプロンプトで[path]と入力して、新規追加したディレクトリのパスが間違っていないか確認しましょう。
—-
テスト:
AVT-C878 で録画した test.mov を 分離して、結合してみた。

・トラック1と2を分離する(動画データ部分と音声データ部分)
>mp4box -raw 1 test.mov
>mp4box -raw 2 test.mov

・統合する
>mp4box -add test_track1.h264 -add test_track2.aac -new new.mp4

・再生確認でコマ送りになる(できあがった動画のfpsが25になっていた。元は60fps)
・fpsフレームレートを指定して統合する
>mp4box -fps 60 -add test_track1.h264 -add test_track2.aac -new new.mp4

new.mp4がぱっと見た目違和感なく再生されたので設定はさておき、mp4box初期インストール完了ってことで。

.BAT(コマンドプロンプトのバッチファイル)を作ってタイマーで動かせば日付自体はある程度自由に操作・上書きできるっすな。
夜中に起きてて「メディアの作成日付」が気になるような人にはお手軽で十分かも。

バイナリでちまちまいじるのもまた趣味の世界?ってことで!w

—-

General
Complete name : D:\1\test.MOV
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt 0000.00 (qt )
File size : 36.4 MiB
Duration : 19 s 750 ms
Overall bit rate : 15.5 Mb/s
Encoded date : UTC 2018-09-29 07:11:57
Tagged date : UTC 2018-09-29 07:11:57
Writing library : icat
Comment : QuickTime 6.0 or greater

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : 2 Ref Frames
Format settings, CABAC : No
Format settings, RefFrames : 2 frames
Format settings, GOP : M=3, N=15
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 19 s 750 ms
Bit rate : 15.2 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.122
Stream size : 35.8 MiB (98%)
Language : English
Encoded date : UTC 2018-09-29 07:11:57
Tagged date : UTC 2018-09-29 07:11:57
Color range : Full
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 19 s 733 ms
Bit rate mode : Constant
Bit rate : 256 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 616 KiB (2%)
Language : English
Encoded date : UTC 2018-09-29 07:11:57
Tagged date : UTC 2018-09-29 07:11:57

—-

General
Complete name : D:\1\new.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/avc1)
File size : 36.4 MiB
Duration : 19 s 750 ms
Overall bit rate mode : Variable
Overall bit rate : 15.5 Mb/s
Encoded date : UTC 2018-09-29 17:28:47
Tagged date : UTC 2018-09-29 17:28:47

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : 2 Ref Frames
Format settings, CABAC : No
Format settings, RefFrames : 2 frames
Format settings, GOP : M=3, N=15
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 19 s 750 ms
Bit rate : 15.2 Mb/s
Maximum bit rate : 29.2 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.122
Stream size : 35.8 MiB (98%)
Title : h264@GPAC0.7.2-DEV-rev744-ge1fa8f05-master
Encoded date : UTC 2018-09-29 17:28:47
Tagged date : UTC 2018-09-29 17:28:47
Color range : Full
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 19 s 733 ms
Bit rate mode : Variable
Bit rate : 256 kb/s
Maximum bit rate : 263 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 616 KiB (2%)
Title : aac@GPAC0.7.2-DEV-rev744-ge1fa8f05-master
Encoded date : UTC 2018-09-29 17:28:47
Tagged date : UTC 2018-09-29 17:28:47