Comments (9)
We have video! This is going to be tedious to get through the files but this approach is working.
from unifi-protect-remux.
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.
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.
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.
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.
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.
/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.
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.
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)
- Error parsing track number!strconv.Atoi: parsing "--file=": invalid syntax HOT 5
- Error waiting for ubv: exit status 1 HOT 3
- A few items getting started HOT 1
- Error waiting for ubv: exit status 1 HOT 3
- Wrapper might need some adjustment HOT 1
- Video resolution lower than recording HOT 3
- where to find ubnt_ubvinfo on Dream Machine Pro HOT 2
- Remux : Command Not Found HOT 7
- Unable to run on X86 machine HOT 6
- Need more help / clarification HOT 14
- Question: Why sometimes the video is stored in low-res instead of the native 4K of the camera HOT 1
- Instructions for copying video files using scp HOT 1
- Could not find codec parameters for stream 0 (Video: h264, none): unspecified size HOT 5
- Allow skipping partitions whose inspection/remux fails
- Cannot run remux on any .ubv-files. HOT 2
- Extracting Frame by Frame HOT 22
- Newb question here HOT 1
- Simplifying automation / scripts HOT 3
- Add Support for H265 HEVC Encoding HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unifi-protect-remux.