Okay I have an update to fix the error:
"Reading off the end of the data. Tried to read 6 bits when only 1 available"
and fails at "BL ANALYSIS: 99.0% EL ANALYSIS: 98.8% BL_EL_RPU WRITING: 99.0%"
The problem seems to be the duration of the video clip.
I was able to fix with a hex editor but did not understand the underlying cause.
I finally found the cause to be the length of the clip.
Here are the steps to resolve this.
Step one: find the length of the file using ffprobe
output:
The duration of my media is 00:02:53.98 this will not work with the tool
There either needs to be no decimal or one with 2 even numbers.
The max duration could only be 00:02:53.88
Now using ffmpeg
Code: Select all
ffmpeg -i ~/Desktop/00022.m2ts -map 0:0 -ss 00:00:00 -to 00:02:53.88 -c copy ~/Desktop/BL.hevc
ffmpeg -i ~/Desktop/00022.m2ts -map 0:1 -ss 00:00:00 -to 00:02:53.88 -c copy ~/Desktop/EL.hevc
Now run it through @yusesope's tool without errors
Profit
box4m wrote: ↑Tue Mar 10, 2020 5:53 am
smartrobot wrote: ↑Fri Mar 06, 2020 4:35 am
Is anyone else having this issue with @yusesope tool
Throws an error and hangs the video works it is just missing the last second or so
I can still use the output and create a mp4 using dlb_mp4base and will play back on my Visio TV
FFMPEG output warnings
Code: Select all
[NULL @ 0x5568201f5c80] Invalid NAL unit 36, skipping.
[NULL @ 0x5568201f6e40] Invalid NAL unit 36, skipping.
yusesope output
Code: Select all
___@little-server:~/src$ python3 bl_el_rpu_builder.py -tbw 4 -bl ~/BL.hevc -el ~/EL.hevc -o ~/Out.hvec
Exception in thread Thread-1:LYSIS: 86.8% BL_EL_RPU WRITING: 86.0%
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "bl_el_rpu_builder.py", line 175, in run
self.read()
File "bl_el_rpu_builder.py", line 163, in read
self.get_nal_info(mm,length,global_offset)
File "bl_el_rpu_builder.py", line 138, in get_nal_info
nal_type = self.get_nal_type(mmap_obj[(nal_offset + 3):(nal_offset + 5)])
File "bl_el_rpu_builder.py", line 128, in get_nal_type
nuh_layer_id = b_stream.read('uint:6')
File "/home/nick/.local/lib/python3.6/site-packages/bitstring.py", line 3902, in read
value, self._pos = self._readtoken(name, self._pos, length)
File "/home/nick/.local/lib/python3.6/site-packages/bitstring.py", line 2016, in _readtoken
"Tried to read {0} bits when only {1} available.".format(int(length), self.length - pos))
bitstring.ReadError: Reading off the end of the data. Tried to read 6 bits when only 1 available.
Exception in thread Thread-2:LYSIS: 92.4% BL_EL_RPU WRITING: 91.3%
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "bl_el_rpu_builder.py", line 175, in run
self.read()
File "bl_el_rpu_builder.py", line 163, in read
self.get_nal_info(mm,length,global_offset)
File "bl_el_rpu_builder.py", line 138, in get_nal_info
nal_type = self.get_nal_type(mmap_obj[(nal_offset + 3):(nal_offset + 5)])
File "bl_el_rpu_builder.py", line 128, in get_nal_type
nuh_layer_id = b_stream.read('uint:6')
File "~/.local/lib/python3.6/site-packages/bitstring.py", line 3902, in read
value, self._pos = self._readtoken(name, self._pos, length)
File "~/.local/lib/python3.6/site-packages/bitstring.py", line 2016, in _readtoken
"Tried to read {0} bits when only {1} available.".format(int(length), self.length - pos))
bitstring.ReadError: Reading off the end of the data. Tried to read 6 bits when only 1 available.
BL ANALYSIS: 99.3% EL ANALYSIS: 99.3% BL_EL_RPU WRITING: 99.3%
did you ever get this working?