Giter Club home page Giter Club logo

Comments (9)

abenzick avatar abenzick commented on August 16, 2024 2

We have video! This is going to be tedious to get through the files but this approach is working.

from unifi-protect-remux.

petergeneric avatar petergeneric commented on August 16, 2024 1

Let me know if those other ubnt_ubvinfo invocations work, if they don't work against files on a local Linux drive then we can try a private follow-up

from unifi-protect-remux.

petergeneric avatar petergeneric commented on August 16, 2024

Could be - this indicates that the ubnt_ubvinfo command failed to run against that .ubv file - there have been a number of reports like this for WSL, in all cases I think users were running against a .ubv file stored on their Windows drive mounted inside WSL. Can you try copying to an ext4 (or otherwise linux-native) filesystem and re-running?

If you do manage to get it running with the .ubv file on a Windows disk/share, let me know how because it'd help other folks using Windows!

from unifi-protect-remux.

abenzick avatar abenzick commented on August 16, 2024

I was running it from a windows mounted drive. I just copied everything into the /usr/bin folder to test and am getting the same error. Suggestions on another folder to copy to?

This video is actually part of something interesting that's timely to review and we are restricted in options based on the circumstances of an investigation.

There could be some user errors on my end. Hit me up offline and I can share more details.

from unifi-protect-remux.

petergeneric avatar petergeneric commented on August 16, 2024

If you are able to, the easiest thing might be to run the remux tool on Ubiquiti hardware, you just need to download the ARM static build of FFmpeg per the instructions on this project's main README.md

If you're getting exit code 5 on the ubnt_ubvinfo tool even with the .ubv in /usr/bin then that suggests to me the video file might be corrupt (or there's some weirdness going on with WSL2) - try running the following commands... basically if it doesn't work then the remux tool can't extract the video (I do have ways to recover partial content from a .ubv file, but that's a manual process).

ubnt_ubvinfo -p -f your-file.ubv
ubnt_ubvinfo -P -f your-file.ubv

If these both work then try writing the latter command's contents to your-file.ubv.txt - the remux tool will use that if present rather than running ubnt_ubvinfo.

P.S. another option if you're not able to load the remux tool onto your Ubiquiti hardware is to run /usr/share/unifi-protect/app/node_modules/.bin/ubnt_ubvexport -s your-file.ubv -d my_output_prefix and see if that works - it doesn't seem to work as reliably on partial/corrupt files as my tool, but worth a try if ubnt_ubvinfo is failing on WSL2

from unifi-protect-remux.

abenzick avatar abenzick commented on August 16, 2024

Thank you so much for the feedback. We aren't operational on the Ubiquiti hardware. It was imaged and the .ubv files obtained that way. I have gone through the file structure we imaged and can't find the ubnt_ubvexport file anywhere in the image.
\

from unifi-protect-remux.

abenzick avatar abenzick commented on August 16, 2024

/usr/bin$ ubnt_ubvinfo -p -f B4FBE49EA3D9_0_rotating_1684832814509.ubv

fixed metadata: dl . '> N
dynamic metadata: 40/0
contents: 44/1073604572
seek points: 433
0. OFF: 44; WC: 1684832802935
1. OFF: 2489892; WC: 1684832807963
it goes on through all the points and ends:
432. OFF: 1071159452; WC: 1684834962972
:0 Shutting down the logger leaving you in the dark. Bye bye... :(

from unifi-protect-remux.

abenzick avatar abenzick commented on August 16, 2024

Running with capital P

------------ PARTITION END ------------
:0 Malformed R123x packet
:0 Error occurred while parsing the file: (-2146697211)
Stats
Audio: frames: 101484; bytes: 17319936; minTs: 1684832803310; maxTs: 1684834968317; bitrate: 62.50kbps; mbday: 659.18 MB/day
Video: frames: 54125; bytes: 1052318813; minTs: 1684832802935; maxTs: 1684834967932; bitrate: 3797.35kbps; mbday: 40050.12 MB/day
:0 Shutting down the logger leaving you in the dark. Bye bye... :(

from unifi-protect-remux.

petergeneric avatar petergeneric commented on August 16, 2024

Ok, can you redirect the output of the command with a capital P to (your-file.ubv).txt please? It looks like there is corruption in the file, but there's still at least 30 minutes of video available that could be extracted.

With the .txt file in place, try running remux your-file.ubv again, and it should pick up the indexes from the .txt file instead of running a fresh ubnt_ubvinfo invocation & extract what it can

from unifi-protect-remux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.