|
||||||||
Help converting ts files from Humax PVR |
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#51 |
|
Forum Member
Join Date: Jan 2006
Location: Fife
Posts: 4,038
|
Quote:
So are you saying your BBC HD AC3 recording played OK without the fixing tool? Perhaps it's just an issue with DVBViewer then?
![]() Update: it looks like Enc HD recordings on the HDR are encrypted (or simply obfuscated) after all - as I can only play a few seconds of such recordings before they just stop playing... |
|
|
|
|
Please sign in or register to remove this advertisement.
|
|
|
#52 |
|
Forum Member
Join Date: Jan 2007
Posts: 19,460
|
Quote:
This seems so... as I have not downloaded that utility and processed the Lost Land of the Jaguar recording... and now I have sound after installing the codec pack (whereas before I got pops and cracks)...
Update: it looks like Enc HD recordings on the HDR are encrypted (or simply obfuscated) after all - as I can only play a few seconds of such recordings before they just stops playing... |
|
|
|
|
|
#53 |
|
Forum Member
Join Date: Jan 2006
Location: Fife
Posts: 4,038
|
Lost Land of the Jaguar was recorded in non-freesat mode (no Enc flag) on 31/12/2008.
The others, that froze or stopped playing after a few seconds, are a lot older and were recorded in freesat mode (with the Enc flag) and transferred directly off the internal HDD. I will make some more tests by transferring more recent Enc HD recordings off the HDR to see if they play or not. |
|
|
|
|
|
#54 |
|
Forum Member
Join Date: Jan 2007
Posts: 19,460
|
Quote:
Lost Land of the Jaguar was recorded in non-freesat mode (no Enc flag) on 31/12/2008.
The others, that froze or stopped playing after a few seconds, are a lot older and were recorded in freesat mode (with the Enc flag) and transferred directly off the internal HDD. I will make some more tests by transferring more recent Enc HD recordings off the HDR to see if they play or not. |
|
|
|
|
|
#55 |
|
Forum Member
Join Date: Jan 2006
Location: Fife
Posts: 4,038
|
I'll give the DVBView tool a go, but I thought that just fixes the audio..?
EDIT: Just registered and downloaded 'BBC HD Fixer', and it is no good... All my BBC HD recordings gives the error 'Lost sync while reading the TS packets'. I think this tool is just for DVBViewer BBC HD captures...
|
|
|
|
|
|
#56 |
|
Forum Member
Join Date: Jan 2007
Posts: 19,460
|
Quote:
I'll give the DVBView tool a go, but I thought that just fixes the audio..?
EDIT: Just registered and downloaded 'BBC HD Fixer', and it is no good... All my BBC HD recordings gives the error 'Lost sync while reading the TS packets'. I think this tool is just for DVBViewer BBC HD captures... ![]() Is this the first time you have tried to play recordings off the Humax on a PC? Someone definitely stated they managed to play a BBC HD file from the Humax on a PS3 but I can't recall who it was unfortunately.
|
|
|
|
|
|
#57 |
|
Forum Member
Join Date: Jan 2006
Location: Fife
Posts: 4,038
|
No problems, thanks for your efforts! This is the first time I've managed to play HDR's BBC HD recordings (but only the non enc). The enc recordings have behaved like this (plays just a few seconds before stopping) since the beginning...
I am making progress at least. Maybe the PS3 managed to play only non Enc recordings, like I have today..? |
|
|
|
|
|
#58 |
|
Forum Member
Join Date: Oct 2004
Location: Caer Lerion Lloegr
Posts: 309
|
Quote:
Looks like it son_t- sorry about that.
Is this the first time you have tried to play recordings off the Humax on a PC? Someone definitely stated they managed to play a BBC HD file from the Humax on a PS3 but I can't recall who it was unfortunately.What I normally do is remux the TS stream into an MKV container using Haali Media Splitter, this should be playable on a PC using VLC player. But I'm not finished there, I then demux the MKV using MKVExtractGUI, then I use the original AVC video and convert the AC3 5.1 channel stream , if available, to AAC using MediaCoder or Super. Finally I use Yamb to mux into an MP4 file. This is the only way that I've been able to keep the audio in sync with the video for some reason. The file then plays fine with Nero showtime. As I like to keep my files as small as possible, I will reduce the 14-16GB file to around 4GB so that it will play on the PS3, I find the end result acceptable, although the whole process could be considered a little time consuming! |
|
|
|
|
|
#59 |
|
Forum Member
Join Date: Oct 2008
Posts: 82
|
I tend to use http://handbrake.fr/ for these things and touch wood so far not an issue. It will work with ts files although not tried the Humax ones yet as I don't have one yet.
|
|
|
|
|
|
#60 |
|
Forum Member
Join Date: Jan 2007
Posts: 19,460
|
Quote:
Lost Land of the Jaguar was recorded in non-freesat mode (no Enc flag) on 31/12/2008.
The others, that froze or stopped playing after a few seconds, are a lot older and were recorded in freesat mode (with the Enc flag) and transferred directly off the internal HDD. I will make some more tests by transferring more recent Enc HD recordings off the HDR to see if they play or not. |
|
|
|
|
|
#61 |
|
Forum Member
Join Date: Jan 2006
Location: Fife
Posts: 4,038
|
Media Player Classic (unicode build)
Version: 6.4.9.1 (revision 73) (Right-click->Filters) Default DirectSound Device Video Mixing Render 9 (Renderless) Audio Switcher -> Lost Land of the Jaguar.ts / Audio ffdshow Video Decoder ffdshow Audio Decoder Lost Land of the Jaguar.ts -> Service 6940 (ticked) | V:PID 2328 [Undetermined] (ticked) | A:PID 2330 [Undetermined] (ticked) A: PID 2329 [English] | No subtitles (ticked) (Right-click->Properties) Video: MPEG4 Video (H264) 1440x1080 (16:9) 25.00fps [Video] Audio: MPEG4 Audio 48000Hz stereo [Audio] |
|
|
|
|
|
#62 |
|
Forum Member
Join Date: Jan 2007
Posts: 19,460
|
Quote:
Media Player Classic (unicode build)
Version: 6.4.9.1 (revision 73) (Right-click->Filters) Default DirectSound Device Video Mixing Render 9 (Renderless) Audio Switcher -> Lost Land of the Jaguar.ts / Audio ffdshow Video Decoder ffdshow Audio Decoder Lost Land of the Jaguar.ts -> Service 6940 (ticked) | V:PID 2328 [Undetermined] (ticked) | A:PID 2330 [Undetermined] (ticked) A: PID 2329 [English] | No subtitles (ticked) (Right-click->Properties) Video: MPEG4 Video (H264) 1440x1080 (16:9) 25.00fps [Video] Audio: MPEG4 Audio 48000Hz stereo [Audio] |
|
|
|
|
|
#63 |
|
Forum Member
Join Date: May 2008
Posts: 1,919
|
Quote:
No problems, thanks for your efforts! This is the first time I've managed to play HDR's BBC HD recordings (but only the non enc). The enc recordings have behaved like this (plays just a few seconds before stopping) since the beginning...
|
|
|
|
|
|
#64 |
|
Forum Member
Join Date: Jan 2006
Location: Fife
Posts: 4,038
|
Quote:
Ah, it is using ffdshow which is what I use in DVBViewer with no problem except in ITV HD- do you have any unencrypted ITV HD recording you can test with it? The MPC HC decoder can utilise DXVA for AVC/h.264 but it will only works if your GPU supports it.
Quote:
Why not try stripping out the humax junk with the vb routine posted above? Assuming the file structure is the same, which is a big assumption, I know.
![]() Could someone translate that code to C or Perl or something more accessible?
|
|
|
|
|
|
#65 |
|
Forum Member
Join Date: May 2008
Posts: 1,919
|
Quote:
I would if I had a VB compiler
Could someone translate that code to C or Perl or something more accessible?New document>Alt+F11. I had no idea this was possible before I read this thread, and having no experience of vb can't add a dialogue box to jack plug's code, but I was able to reproduce his experiment on the uploaded file from Nick123 by editing the path. vb is much more powerful than the stuff I used to type into 8 bit processors it seems!
|
|
|
|
|
|
#66 |
|
Forum Member
Join Date: May 2008
Posts: 1,919
|
Quote:
can't add a dialogue box
|
|
|
|
|
|
#67 |
|
Forum Member
Join Date: May 2005
Location: Redditch Worcs
Posts: 17,289
|
Quote:
I have a vb primer printed off now, but if some nice person could supply the code that would be great.
![]() Replace fni = "H:\" + "Test from Nick.ts" With fni = Application.GetOpenFilename(, , "File To Open") To specify a different file name and destination for the output at run time Replace the line fno= whatever file you hard coded with fno = Application.GetSaveAsFilename(, , , "File Name To Save") That's It |
|
|
|
|
|
#68 |
|
Forum Member
Join Date: May 2008
Posts: 1,919
|
grahamlthompson, thank you! It works a treat.
I've also discovered a sort of proof that the junk stripper is doing its job in that the original won't play in videoredo plus (which .ts files default to on my machine rather that videoredo TV suite) but the cleaned up file will. That primer didn't get as far as dialogue boxes anyway!
|
|
|
|
|
|
#69 |
|
Forum Member
Join Date: Jan 2006
Location: Fife
Posts: 4,038
|
I can't get to work.
I have Excel 2002. Start it up, get a new workbook. Alt+F11 to get the VB screen. Click on Sheet1 in the LHS menu. Menu-View->Code (or F7). Paste above code into editor... Code:
Public Sub trimTS()
Dim junk(3) As Byte, a(187) As Byte
Const sync_byte As Byte = &H47
Dim fni, fno
fni = "N:\" + "wag.ts"
fno = "N:\" + "wagpro.ts"
Open fni For Binary Access Read As #1
Open fno For Binary Access Write As #2
Get #1, , junk
Get #1, , a
While a(0) = sync_byte
Put #2, , a
Get #1, , junk
Get #1, , a
Wend
Close
End Sub
Press > (or Menu->Run->Run Sub/UserForm or F5). Two files are produced, wag and wagpro.ts of zero size! Tried this again on another SD recording - same result... What's wrong? EDIT: I used Graham's modification above for fni and fno, and the code seem to work... Here are the results: I tried this on Wallace and Gromit (BBC HD) recording of 3.6GB and it produced a 34.2MB file! I tried it on Talk To Her (SD) recording of 2.46GB and it produced a 1.95GB file. The processed Wallace and Gromit video file played up to the point where it freezes (HD protection kicks in)... and Talk To Her is as choppy as the original recording played on my Vista machine on the MPC I got working yesterday... Conclusion: The VB code does BUGGER ALL! ![]() ![]() (I think mwardy is asking a good question below!)
|
|
|
|
|
|
#70 |
|
Forum Member
Join Date: May 2008
Posts: 1,919
|
Quote:
Couldn't resist having a look at Nick's sample HDR file.
The file format is like this : JTJTJTJTJTJTJTJTJT... J = humax junk = 4 bytes T = transport stream packet = 188 bytes Just remove the junk to recover the original transport stream : TTTTTTTTT... Code:
Public Sub trimTS()
Dim junk(3) As Byte, a(187) As Byte
Const sync_byte As Byte = &H47
Dim fni, fno
fni = "H:\" + "Test from Nick.ts"
fno = "H:\" + "fixedNick.ts"
Open fni For Binary Access Read As #1
Open fno For Binary Access Write As #2
Get #1, , junk
Get #1, , a
While a(0) = sync_byte
Put #2, , a
Get #1, , junk
Get #1, , a
Wend
Close
End Sub
![]() Tia! |
|
|
|
|
|
#71 |
|
Forum Member
Join Date: May 2008
Posts: 1,919
|
Quote:
I can't get to work.
Edit: hang on, only one file is supposed to be produced, obviously. Something odd here.
|
|
|
|
|
|
#72 |
|
Forum Member
Join Date: Jan 2006
Location: Fife
Posts: 4,038
|
I've edited my post mwardy... And oh yeah, when processing the Talk To Her recording, the VB scripted bombed out with 'Bad record number' error...
|
|
|
|
|
|
#73 |
|
Forum Member
Join Date: May 2008
Posts: 1,919
|
Quote:
I tried this on Wallace and Gromit (BBC HD) recording of 3.6GB and it produced a 34.2MB file! I tried it on Talk To Her (SD) recording of 2.46GB and it produced a 1.95GB file. The processed Wallace and Gromit video file played up to the point where it freezes (HD protection kicks in)... and Talk To Her is as choppy as the original recording played on my Vista machine on the MPC I got working yesterday... Clearly it's not working at all with HD--but then you might not expect it to since the file structure will be different, I imagine, since it's h.264, and encrypted at that, which may be carried out by that 4 byte junk sequence (assuming it's still 4 bytes for HD) or may not. That was the point behind my question to jack plug about how you work out the file structure for .ts files. A quick search shows that SD broadcast transport streams are mpeg2 data sent in 188 byte packets, but I'm still unclear on how this module identifies the packet start. The next question will be, can the h.264 data be identified in a similar way? |
|
|
|
|
|
#74 |
|
Forum Member
Join Date: May 2008
Posts: 1,919
|
Quote:
when processing the Talk To Her recording, the VB scripted bombed out with 'Bad record number' error...
|
|
|
|
|
|
#75 |
|
Forum Member
Join Date: Jan 2006
Location: Fife
Posts: 4,038
|
It could be my PC, but I find the .ts recordings from the HDR vary widely from recordings to recordings... whoever wants to analyse the SD recordings will have to do it on more than just the one file!
There's no problem playing the SD files - VLC media player does just fine, so the 'junk bytes' might be something not worrying about... But for processing SD recordings, I've just tried the original on HDTVtoMPEG2 and it can't find a channel. After running through the VB script, HDTVtoMPEG is able to read it and process it. So the script is useful after all ![]() The VB script does work on the HD recording - because it works up to the point when copy encryption/protection kicks in... the 35Mb file produce does play. Anyway the result is, that the VB script (stripping of the junk bytes) does not allow Enc BBC HD recordings to be played... (it will only rip upto the enc point...) |
|
|
|
![]() |
|
All times are GMT. The time now is 08:57.





Could someone translate that code to C or Perl or something more accessible?