Why is BI exporting only part of my 1 hour video?

Hmm, I tried out the latest version (10:30am EST) and successfully converted a few one hour clips from BVR to MP4 without an issue.

Then I tried yet another one hour clip and got the following error message. It plays fine in the BVR player, it just errors out when trying to convert it to an MP4.

1787756454647.png

All the clips I'm trying to convert come from the same camera and therefore the clips are saved in the same configuration and are one hour clips so not sure why it seems to complain about H.264 and 2560x1140. Basically recordings over a 16 hour period with all clips saved as one hour so 16 total clips.
 
Last night I already I did add a simple visualization to the seek bar showing which parts of the clip have the main stream, by making the seek bar brighter in those regions. It also says which streams are there when you mouse over the seek bar.
I actually tried using the BVR Player before posting this morning, AND TOTALLY MISSED this subtle but very cool solution.

It's working great on the exact BVR which exposed the /time/ JPG extraction problem I described in post #13.
 
Hmm, I tried out the latest version (10:30am EST) and successfully converted a few one hour clips from BVR to MP4 without an issue.

Then I tried yet another one hour clip and got the following error message. It plays fine in the BVR player, it just errors out when trying to convert it to an MP4.

View attachment 248167

All the clips I'm trying to convert come from the same camera and therefore the clips are saved in the same configuration and are one hour clips so not sure why it seems to complain about H.264 and 2560x1140. Basically recordings over a 16 hour period with all clips saved as one hour so 16 total clips.

Hmm, does it fail immediately or does it happen a while after the export started? Maybe the error message is incorrect and the failure is caused by something different. Does it happen every time you try to export this clip?

In the BVR Player, is there a setting I'm overlooking to keep the control panel always on when the mouse is not immediately over it?

There is not. I can add it later.
 
Just received the following in an email from Ken...

"... I just updated the [BVR] spec to include [the Blue Iris version] in the header frame."

EDIT:
From the updated spec...

2.2 version (header frame)

On the header frame this field holds the version of Blue Iris that created the file, packed one component per byte, most significant first:

Code:
0xMMmmppbb  ->  MM.mm.pp.bb
e.g. 0x06010211 = 6.1.2.17

A value of 0 means the file was written by a version that predates this field (Blue Iris < 6.1.0.7); readers MUST treat 0 as “unknown”, not as version 0.

Readers SHOULD NOT gate parse on this value -- the format is identified by structure, not version -- but it is useful for diagnostics and for handling any future version-specific quirks.

Writers other than Blue Iris SHOULD write 0 here rather than impersonating a Blue Iris version.

So going forward, a BVR used for troubleshooting can tell us exactly which BI version created it, rather than having to reconstruct that from dates, logs, etc.
 
Last edited:
  • Like
Reactions: bp2008
Hmm, does it fail immediately or does it happen a while after the export started? Maybe the error message is incorrect and the failure is caused by something different. Does it happen every time you try to export this clip?

It fails immediately when you click the EXPORT button. I tried a few scenarios of changing from WHOLE CLIP to just a few mins of the beginning, the middle and the end but all attempts immediately fail.

1787851322289.png
 
So a little more poking around. May or may not be a clue. But let's say that BVR-A is the problematic file that errors out. After BVR-A errors out, if you try to save a MP4 of BVR-B or BVR-C they also error out just like BVR-A. However, if you close your BVR web player then open a new one then both file BVR-B and BVR-C convert just fine. I even tried clearing out the cache all-time then trying again but that doesn't fix the issue. I have to exit from the BVR web player then open a new one and BVR-B and BVR-C will convert just fine. Don't know what's up with BVR-A that causes this issue but once it errors out then all subsequent files exhibit the same error message until you open a fresh new BVR web player. @bp2008
 
So a little more poking around. May or may not be a clue. But let's say that BVR-A is the problematic file that errors out. After BVR-A errors out, if you try to save a MP4 of BVR-B or BVR-C they also error out just like BVR-A. However, if you close your BVR web player then open a new one then both file BVR-B and BVR-C convert just fine. I even tried clearing out the cache all-time then trying again but that doesn't fix the issue. I have to exit from the BVR web player then open a new one and BVR-B and BVR-C will convert just fine. Don't know what's up with BVR-A that causes this issue but once it errors out then all subsequent files exhibit the same error message until you open a fresh new BVR web player. @bp2008
Very weird. I wonder if this is a bug in the BVR player or if it is a bug in the web browser's video encoder API.
I notice "Copy frames" is "Not possible for this stream", which is puzzling to me. Which video codec does that file use? Can you share one of the affected files by chance? I can probably fix the issue if I have a bvr file that can reproduce it.
 
Very weird. I wonder if this is a bug in the BVR player or if it is a bug in the web browser's video encoder API.
I notice "Copy frames" is "Not possible for this stream", which is puzzling to me. Which video codec does that file use? Can you share one of the affected files by chance? I can probably fix the issue if I have a bvr file that can reproduce it.

Codec info from one of the BVR files that converted correctly to MP4. @bp2008

1787857935002.png
 
Welp, so far I have not found another BVR file that exhibits the error reporting issue. But just to completely baffle everyone including myself here is something that is very odd about this file. As you know, the reason I started this thread is that it would seem that the BVR to MP4 converter was only converting/exporting a small segment of some of my one hour clips instead of the full hour.

Below, see that BI only saved/converted 22 mins of the one hour file. However, note that the file size suggests is a one hour clip. A 22 minute clip should only be about 1GB at most.

1787860969449.png

It should show something like 00:59:59 or 01:00:00 as the play length but it shows only 22mins. And in fact, if you open the file with Media Player or the legacy Windows Media Player or the legacy Movies & TV Player they all show the entire play time is 22 mins.

1787861217119.png

1787861538833.png

If you open this same file with the VLC Media Player it shows the full one hour clip AND it plays the entire one hour clip. Weird, huh?

1787861619688.png
 
Codec info from one of the BVR files that converted correctly to MP4. @bp2008

View attachment 248251

Well I figured out what the "Copy frames" is "Not possible for this stream" situation came from, and resolved that.

I've pushed a few changes to the BVR-Player-Web app. Now the Export to MP4 panel allows you to select which video track (main or sub stream or both) you'll use for the export. "Both" will almost always force you to re-encode (unless your main and sub stream are the same codec and resolution).

@Sybertiger it would be a good idea to try exporting that problematic bvr clip again. If it fails again, let me know if the error message is any different and please consider sharing the bvr file with me so I can dig into the issue deeper.

If you open this same file with the VLC Media Player it shows the full one hour clip AND it plays the entire one hour clip. Weird, huh?

Yes, that is weird.
 
  • Like
Reactions: Flintstone61
Welp, so far I have not found another BVR file that exhibits the error reporting issue. But just to completely baffle everyone including myself here is something that is very odd about this file. As you know, the reason I started this thread is that it would seem that the BVR to MP4 converter was only converting/exporting a small segment of some of my one hour clips instead of the full hour.

Below, see that BI only saved/converted 22 mins of the one hour file. However, note that the file size suggests is a one hour clip. A 22 minute clip should only be about 1GB at most.

I'd like to know if BVR-Player-Web can export fully the clips which Blue Iris could not. And if not, I'd like to fix it so it can :)
 
  • Like
Reactions: Flintstone61
Well Maesto, you fixed my issue with that problematic clip. It's even reporting the correct clip length. Hooray! Thanks @bp2008 !!

1787866614399.png
 
There is not. I can add it later.
Just got around to trying it. Works great. Thx!

Question about the controls in the screenshot below.
I originally assumed they retreated/advanced to the next sub- to main-stream transition, but from the GitHub guide they move a single frame (confirmed).
Would it be possible to add new controls? As space is limited in the Control Bar, maybe a Ctrl- option on the existing controls might be better?
Note also that the GitHub page does not show the actual control icons (double vs single arrow head)

1788189156317.png
1788189466795.png
 
Just got around to trying it. Works great. Thx!

Question about the controls in the screenshot below.
I originally assumed they retreated/advanced to the next sub- to main-stream transition, but from the GitHub guide they move a single frame (confirmed).
Would it be possible to add new controls? As space is limited in the Control Bar, maybe a Ctrl- option on the existing controls might be better?
Note also that the GitHub page does not show the actual control icons (double vs single arrow head)

View attachment 248435
View attachment 248436

I did not think of adding such a button. I'll add it as an option. I don't want to restrict feature availability to devices with physical keyboards though, so I'll just add these as regular buttons with no required Ctrl modifier. Actually since this app sucks on a small screen, I'll also go to some effort to improve usability on small screens too.

Yeah I'm aware the icons don't match in documentation. It is far easier for an AI to output symbol characters/emojis into a markdown file than it is to embed screenshots of the real icons, so that is what it does. And those characters can appear differently depending on the OS and font used to render them.
 
An update has been published.

The new setting has been added:

1788195133624.png

And all playback controls are now available on smaller screens without some disappearing or overflowing offscreen (they'll wrap to new lines if necessary, like UI3 does).
 
@bp2008 ... Possible small BVR-Player enhancement -- identify I-frames.

Would it be possible for BVR-Player to indicate when the current video frame is a keyframe/I-frame? For example, perhaps "frame 54* of 66", with the asterisk indicating a keyframe?

I'm investigating non-reencoded BVR exports whose actual starting frame appears to be preceding the requested start boundary, and I suspect BI is backing up to the preceding keyframe.

BTW, before exporting the BVR of interest, I'm testing the new Time selection dialog Ken added in 6.1.0.3. This is an enhancement to the previous Jump to dialog (now Playback position). I'm not aware of the genesis of this enhancement, but I'm guessing that the new Start/Stop controls are intended as easier-to-tweak alternatives to the Set export start frame and Set export start frame context menu options.

1788209527682.png