Skip to main content

H2 videos with bad serial number (DES)

Issue: Some videos were recorded and uploaded to the server from an H2 DVR before the serial number was fixed from h2-wbdv2205260111 format to 2205260111 format.

Resolution: SSH to the DES and go to the first of the /fbdata/##/incoming folders.
Run ll | grep h2-wbdv to confirm if there are problem videos in that folder.

If there are files then run mkdir ../temp to make a folder to work on the files

then mv h2-wbdv ../temp/ That will move all the problem files to the temp folder so we can work on them.
cd ../temp/ to get to that folder.

Then run rename ‘h2-wbdv’ ” * which will rename all of the files in the folder to remove the h2-wbdv part.

Next run sed -i ‘s/h2-wbdv//g’ *.a to update the file name setting in all the .a files
And run sed -i ‘s/h2-wbdv//g’ *.h1t to update the file names in the .h1t files

Once that is done move all the files back to the incoming folder
mv * ../incoming/

Check for the files ingesting by running tail -f /var/logs/DvrVideoInserter-.log | grep

If the files are ingesting then check the other incoming folders for other stuck videos.