Page 1 of 2
Batch convert BVR to MP4
Posted: Wed Dec 29, 2021 9:26 pm
by ckilner
Rightly or wrongly, I have copied a large number of .bvr files from the BlueIris file system over to a backup drive. What I would like to do now is to convert them all to mp4 so that they can be viewed outside BlueIris. Is there a way to do this?
Re: Batch convert BVR to MP4
Posted: Thu Dec 30, 2021 11:58 am
by MikeBwca
...
Re: Batch convert BVR to MP4
Posted: Sat Jan 01, 2022 3:37 pm
by Thixotropic
I've attached a converter script I wrote a while ago that uses ffmpeg. I think this will do exactly what you want.
1) Read the README file.
2) Modify the source and target params at the top of the script and run it. It'll convert a directory full of .BVR clips to .MP4, with selectable scaling and resolution (quality). Please let me know if you have any trouble with it.
Note that you'll need to install ffmpeg (free) for it to work.
FFMPEG can be downloaded from here:
https://www.ffmpeg.org/download.html
Cheers
Re: Batch convert BVR to MP4
Posted: Sat Jan 01, 2022 8:50 pm
by ramaz16
Thixotropic wrote: ↑Sat Jan 01, 2022 3:37 pm
I've attached a converter script
Did you try to playback exported by your script MP4 in the latest BI version? I export fragments of BVR clips to MP4 using BI5.x x64 own encoder with 100% quality in H264/AAC with Zero frame latency in 2-passes. The source BVRs are from analog cam and standalone mic, they are re-encoded by BI to include date/time overlay. However, the exported MP4s won't play in BI. It shows "Install latest K-Lite codec" on screen, but once I did that, BI just shows empty framed playback window with no picture. Same MP4s are playing well in any soft video player, including Windows 10 Movies & TV. Why does one need to install K-Lite if Windows own player has no problems with these files?
For some reason, Exif Tool shows 2 tracks in this MP4
sample - may be this is the reason it doesn't play in BI after K-Lite install? Also, after installing K-Lite I got periodic monitor blackouts, so had to remove it anyway, never had need in it, as MPC-BE, VLC and such play everything.
Any suggestions, what K-Lite codec version or standalone Lav will work with BI for sure to play exported by it MP4s? Or better yet, how to link BI to the existing system codec? May be BI devs can do that for us?
Re: Batch convert BVR to MP4
Posted: Sat Jan 01, 2022 11:39 pm
by YrbkMgr
ckilner wrote: ↑Wed Dec 29, 2021 9:26 pm
Rightly or wrongly, I have copied a large number of .bvr files from the BlueIris file system over to a backup drive. What I would like to do now is to convert them all to mp4 so that they can be viewed outside BlueIris. Is there a way to do this?
Manually deleting stuff from folders like storage and alerts and such can be dicey. BI recommends against manual deletions and to rely instead on moving/deleting, etc from within the console so as to avoid corruption of the database. Ask me how I know...
It's probably best to get your arms around understanding how clips and archiving works so that you can set storage and retention parameters to manage what goes where and when, automatically. I no longer care about how many clips I have - I set it and forget it and can find what I want when I need to. Worth looking into in my view.
Since you've already manually moved the BVR's, here's what I would do... Create a new storage location in Clips and Archiving. Move your BVR's there and repair/regenerate the database. Then set retention and export policy to automatically export those BVR's to MP4.
- 2022-01-01_173755.JPG (138.84 KiB) Viewed 172313 times
Re: Batch convert BVR to MP4
Posted: Sat Jan 01, 2022 11:47 pm
by ramaz16
ckilner wrote: ↑Wed Dec 29, 2021 9:26 pm
I have copied a large number of .bvr files from the BlueIris file system over to a backup drive. What I would like to do now is to convert them all to mp4 so that they can be viewed outside BlueIris. Is there a way to do this?
Try adding your current drive & folder as Saved location in BI settings, and Regenerate the Clips DB. Then you can manually select all in Clips List and Batch Export to MP4 from Context Menu (Help. p.116)
Re: Batch convert BVR to MP4
Posted: Sun Jan 02, 2022 12:13 am
by YrbkMgr
Pretty much what I said above.
Re: Batch convert BVR to MP4
Posted: Sun Jan 02, 2022 1:08 am
by Thixotropic
ramaz16 wrote: ↑Sat Jan 01, 2022 8:50 pmDid you try to playback exported by your script MP4 in the latest BI version?
No, I wrote it and used it for a while for a project I was doing. Later I decided I didn't really need to export clips for what I wanted to do and I moved on to other things.
Maybe I misunderstood what you said; that is, why would I need to play the exported clips using BI?
For me the point of exporting the clips was to play them using other players on other platforms that didn't or couldn't have BI on them. (??)
Re: Batch convert BVR to MP4
Posted: Sun Jan 02, 2022 2:01 am
by YrbkMgr
Thixotropic wrote: ↑Sun Jan 02, 2022 1:08 am
For me the point of exporting the clips was to play them using other players on other platforms that didn't or couldn't have BI on them. (??)
That's my understanding as well.
Re: Batch convert BVR to MP4
Posted: Sun Jan 02, 2022 4:51 am
by ramaz16
Thixotropic wrote: ↑Sun Jan 02, 2022 1:08 am
why would I need to play the exported clips using BI?
For me the point of exporting the clips was to play them using other players on other platforms. (??)
Each use case is different. Some export files to MP4 to present them as video evidence.
Anyway, BI has an embedded video player that plays several file formats quite well. It allows to speedup playback at various rates, which is very important when reviewing several clips at the end of day. This feature also helpful when playing MP4s, if it can. Generally, a video player-editor is expected to play a file it converted to another format - this is bottom line quality standard. I currently have to use 2 players: BI player for BVR and MPC-BE for MP4 to use accelerated playback. Note, that the question "why?" can not substitute the answer to my question "how?", which was asked repeatedly by users for many years. BI Help advising to install K-Lite codec is not well justified and simply doesn't work lately.