The original file absolutely was decrypted (and AdDetected / Shrunk). The original .hmt as copied to another machine shows:That's strange, I don't see how the original file could be shrunk, with ad. detection while still encrypted.
A VRD developer describes what the message means here. The lost frames are not "resync frames" but good frames removed to match the audio track. I suppose you could resample the audio but that would make the whole process very slow.Moving forward, but still some work to do...
Running the Cut/Concat output file through VideoReDo's "Quick Stream Fix" produces a message "57 Audio Resync Frames Removed" and a file which will now play quite happily with perfect audio synch on the Humax and indexes / displays properly after running Sidecar against it. ...
-video_track_timescale
)?What is the output fromThe new .ts file reports "1" (encrypted I assume?) from stripts -E
stripts -E -d1 <rootfilename>
?Hi - after the Sidecar built HMT had been attached, this is the output from both -E and -E -d1 for the playable version of the file...What is the output fromstripts -E -d1 <rootfilename>
?
HumaxLounge# stripts -E -d1 S01E05\ -\ Episode\ 5b
+ Version: 1.4.5
+ Debugging level set to 1
+ Input: S01E05 - Episode 5b
+ Output: NULL
+ Opening input HMT file.
HD recording.
Encrypted: 0
Shrunk: 1
Video PID: 256, Audio PID: 257, PMTPID: 0, SID: 0
Event ID: 0
+ Opening S01E05 - Episode 5b.ts
+ Total size: 1345844736
Found start of PAT at offset 0xc0 len 13
00000000: 00 00 01 2c 47 40 00 11 00 00 b0 0d 00 01 c3 00 ...,G@..........
00000010: 00 00 01 f0 00 b4 1f d4 90 ff ff ff ff ff ff ff ................
00000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
000000a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
000000b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
47 0 (Cont: 1) TEI/PUS/PRI: 0/1/0 S: None A: No, payload only
End of PAT
1
Processed in: 0.06s
HumaxLounge# stripts -E S01E05\ -\ Episode\ 5b
1
Processed in: 0.01s
HumaxLounge#
HumaxLounge# stripts -E -d1 S01E05\ -\ Episode\ 5
+ Version: 1.4.5
+ Debugging level set to 1
+ Input: S01E05 - Episode 5
+ Output: NULL
+ Opening input HMT file.
HD recording.
Encrypted: 1
Shrunk: 1
Video PID: 301, Audio PID: 302, PMTPID: 300, SID: 17664
Event ID: 31912
+ Opening S01E05 - Episode 5.ts
+ Total size: 1405362816
Found start of PAT at offset 0x180 len 13
00000000: 35 8b 62 28 47 40 00 10 00 00 b0 0d 00 01 c1 00 5.b(G@..........
00000010: 00 00 01 f0 00 2a b1 04 b2 ff ff ff ff ff ff ff .....*..........
00000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00000090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
000000a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
000000b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
47 0 (Cont: 0) TEI/PUS/PRI: 0/1/0 S: None A: No, payload only
End of PAT
1
Processed in: 0.01s
HumaxLounge# stripts -E S01E05\ -\ Episode\ 5
1
Processed in: 0.00s
HumaxLounge#
-async 1 -fflags +genpts
to the ffmpeg "concat" step results in a file which plays cleanly on the Humax with no audio sync problems. Haven't tried playing all the way through yet, but skipping ahead to positions through the file works OK, again with no loss of sync. The ffmpeg documentation is a bit cryptic, but the net result seems to be a re-written and consistent set of Presentation Timestamps in the concatonated file.# Concatonate all the segments together...
echo "ffmpeg -hide_banner -loglevel error -stats -i "${concat%??}" -y -async 1 -fflags +genpts -c copy \""$root".m2ts\" >>\""$root".log\" 2>&1" >>"$root".sh;
# And go do the edit
That's probably the understatement of the century .The ffmpeg documentation is a bit cryptic
Now fixed in the script...It's "concatenated" too. But all good stuff...
Where is the dustbin??...or move it to the dustbin..
The dustbin / recycle bin gets instated if you install undelete.Where is the dustbin??
FromWhere is the dustbin??
/mod/sbin/empty_dustbin
:if [ "`cat /etc/model`" = HD ]; then
mediaroot=/media/drive1/Video
else
mediaroot="/mnt/hd2/My Video"
fi
if [ -f /mod/boot/dustbin.name ]; then
dustbin_dir="`cat /mod/boot/dustbin.name | sed 's/\//_/g'`"
else
dustbin_dir="[Deleted Items]"
fi
dustbin="$mediaroot/$dustbin_dir"
echo "Dustbin: $dustbin"
This question has produced the most comprehensive collection of answers I have seen for a long timeWhere is the dustbin??
I was rather expecting someone to say "in the sideway, collected every other Thursday..."This question has produced the most comprehensive collection of answers I have seen for a long time
That would certainly be useful for this script, although I'm trying hard to make this as generic as possible so that the same script will run cleanly in both Humax and non-Humax environments. On that note, is there a reliable test which will return whether the script is currently running on a Humax Fox T2?It would be quite trivial and vey useeful to provide a front end to it so that it could be invoked more easily
I think it would need to be refactored with some way of controlling what happens when the "safe" method might not be used:...
AFAIK [safe_delete] has never been exposed for use by command line or other shell languages.
It would be quite trivial and very useful to provide a front end to it so that it could be invoked more easily.
.hmi
file.Among other possibilities,...is there a reliable test which will return whether the script is currently running on a Humax Fox T2?
grep -qE '^HDR?' /etc/model 2>/dev/null
. One might prefer to use uname
, but it's in the coreutils package which may not be installed; some packages are dependencies of WebIf and can be expected to be present when scripts that manipulate recordings are running, but that's not one of them.-i concat:"aaa1.m2ts"|"aaa2.m2ts"|...etc. etc
ffconcat version 1.0
file 'S01E05 - Episode 5.ts'
inpoint 18.453333
outpoint 926.400000
file 'S01E05 - Episode 5.ts'
inpoint 1170.453333
outpoint 1798.400000
file 'S01E05 - Episode 5.ts'
inpoint 2042.410667
outpoint 2399.424000
file 'S01E05 - Episode 5.ts'
inpoint 2643.413333
outpoint 3213.440000