Click here to go to the forum index Click here for the home page
 
Author Message

<  TAP and patch development  ~  Simple and fast .REC conversion

Page 3 of 3
Goto page Previous  1, 2, 3
richie
Posted: Sun Jun 22, 2008 5:37 pm Reply with quote
Frequent contributor Joined: 30 Mar 2005 Posts: 156 Location: Ash Vale (Hannington)
I misunderstood your post, I was thinking "And bdb has a rec2ts that does that (and I think it's a fairly portable C program)." was referring to the 2GB file limit rather than the non in-place editing. Ah well!
View user's profile Send private message
birdman
Posted: Mon Jun 23, 2008 12:49 am Reply with quote
Frequent contributor Joined: 13 Dec 2006 Posts: 1765 Location: Hitchin, HERTS Tx: Sandy Heath
R2-D2 wrote:
You're probably right about a basic limitation in the C library used on the Asus, which I suppose is not completely unreasonable (although a little short-sighted). So the previous suggestion of a TAP that does the job starts to make a little more sense.
The C library has LFS entrypoints:
Quote:
[admin@Asus /lib]$ strings -a libc.so.0 | grep open64
fopen64
freopen64
__libc_open64
The issue is whether particular software is build to use it.

_________________

Toppy: TF5800PVR/250 - Black, now 1TB WD10EURX
F/W: MS6 Recommended F/W 12/9/2009 -FmVrXp+BmC0CbFsIPsUUuWfZXl,
Loader: C5.14, Hardware: 1.01
TAPs: SecCache (UK) v0.4; EPG2MEI v0.96; FontManager 1.0d; QuickJump 1.71; MhegOnOff(Now1) A3; EIT Sub v0.6; MyStuff 6.6
USB connected: SheevaPlug with Debian wheezy
Sig mostly from MyInfo on 26/10/09
View user's profile Send private message
R2-D2
Posted: Mon Jun 23, 2008 8:04 am Reply with quote
Frequent contributor Joined: 18 Dec 2006 Posts: 12148
birdman wrote:
The issue is whether particular software is build to use it.
Well, the issue may be more what those functions do on the Asus, but it's worth a try to explicit build, say, rec2ts.c using _LARGEFILE_SOURCE.

_________________
Troubleshooting -- User Manual -- Dark Side of the Matrix: Firmwares and Patches
View user's profile Send private message Visit poster's website
Loggy
Posted: Thu Aug 07, 2008 11:40 am Reply with quote
Joined: 04 Sep 2006 Posts: 5 Location: Mamchester
This sounds more like a file system or kernel issue on the editing computer. Earlier 32 bit file systems had a maximum size of 2^31-1 bytes.

There are (in Linux) configuration options for the kernel but the file system still has to be able to cope - maybe by using an external drive.

This is not to be confused with running an executable of >2GB.
View user's profile Send private message
jof
Posted: Tue Jul 21, 2009 3:01 pm Reply with quote
Joined: 03 Mar 2009 Posts: 24
R2-D2 wrote:
Hi,

I've been looking at the Toppy's .rec format and I've found that all I need to do to turn a .rec file into something that is generally usable is to remove the (roughly) 4KB header (to the first 0x47 sync byte). This leaves a normal MPEG Transport Stream (.ts) file which lots of things can play and manipulate.

However, it's desperately inefficient to chop the top off a file since (on most filesystems I've been exposed to) you end up having to basically copy the whole file. So it struck me that a much better idea might be to rewrite the 4KB header part. So I tried inserting 0x47 sync bytes starting from the beginning and at 188 byte intervals (as if it were part of a TS file). This worked perfectly and lined up exactly with the first real 0x47 sync byte. And the file then played perfectly in Media Player Classic (which it didn't if just one of those 0x47 sync bytes was missing).

Now, after the last inserted 0x47 sync byte in the header is invariably a big chunk of zero bytes, which I reckon could be used to store the bytes that had been changed so you could actually change the file back to the original Toppy .rec format just as easily. In fact, in the examples I've looked at there was only one byte that was changed that was variable (i.e. part of the text of the recording description) and couldn't otherwise be easily replaced.

So, it strikes me that it would be fairly easy to write a TAP and/or computer (PC/Mac/Linux) program to do this update (and maybe change the file extension at the same time to .TS to signal the change).

Silly idea or not?


Hi all,
I was looking for something to allow Media Player Classic to play my transferred .rec files and happened across this forum thread.

Now I hope I'm not treading on anyone elses toes...
Based on all the information here (thanks to all), I've written a small Windows command line program for the sole purpose of instantaneously (nearly) converting my .rec files to TS so that I can play them in Media Player Classic and then convert back again if needed.
The conversion direction is simply based on the file extension.

The TS file retains all information overwritten by sync bytes in the zero padding so that the second conversion produces the exact same file as the original. It works with files > 2GB on my WinXPPro.

Can anyone suggest a good place to host it?
View user's profile Send private message
SonicLife
Posted: Tue Jul 21, 2009 3:49 pm Reply with quote
Frequent contributor Joined: 24 Oct 2005 Posts: 1262
When you convert back to .rec do you get the original header info back, or is it lost?

What flavour of MPC are you using, and how did you get it to play TS files properly, mine won't play TS.

I would be happy to host your program if you don't get a better offer.

_________________
Toppy conversion scripts to convert toppy recordings to other formats.
View user's profile Send private message Visit poster's website
R2-D2
Posted: Tue Jul 21, 2009 4:22 pm Reply with quote
Frequent contributor Joined: 18 Dec 2006 Posts: 12148
SonicLife wrote:
What flavour of MPC are you using, and how did you get it to play TS files properly, mine won't play TS.
You'll need the DirectShow plugin HDTV Pump.

_________________
Troubleshooting -- User Manual -- Dark Side of the Matrix: Firmwares and Patches
View user's profile Send private message Visit poster's website
jof
Posted: Wed Jul 22, 2009 4:21 pm Reply with quote
Joined: 03 Mar 2009 Posts: 24
Quote:
Now I hope I'm not treading on anyone elses toes...
Based on all the information here (thanks to all), I've written a small Windows command line program for the sole purpose of instantaneously (nearly) converting my .rec files to TS so that I can play them in Media Player Classic and then convert back again if needed.
The conversion direction is simply based on the file extension.

The TS file retains all information overwritten by sync bytes in the zero padding so that the second conversion produces the exact same file as the original. It works with files > 2GB on my WinXPPro.

I've updated my website to host the program TFRecToTS.
If it's of use to anyone, you can download it from HERE.
View user's profile Send private message
stuaxo
Posted: Fri Oct 02, 2009 2:02 am Reply with quote
Regular contributor Joined: 10 Feb 2008 Posts: 26
jof wrote:
Quote:
Now I hope I'm not treading on anyone elses toes...
Based on all the information here (thanks to all), I've written a small Windows command line program for the sole purpose of instantaneously (nearly) converting my .rec files to TS so that I can play them in Media Player Classic and then convert back again if needed.
The conversion direction is simply based on the file extension.

The TS file retains all information overwritten by sync bytes in the zero padding so that the second conversion produces the exact same file as the original. It works with files > 2GB on my WinXPPro.

I've updated my website to host the program TFRecToTS.
If it's of use to anyone, you can download it from HERE.


This looks quite interesting, any chance of putting the source up (preferanly under MIT/LGPL license or somesuch) - it would be nice to run see if this compiles under linux (yes fairly lazy of me to not just reimplement myself, but still).
View user's profile Send private message
R2-D2
Posted: Fri Oct 02, 2009 8:48 am Reply with quote
Frequent contributor Joined: 18 Dec 2006 Posts: 12148
stuaxo wrote:
any chance of putting the source up
Based on the PHP code here, if I'm not mistaken.

_________________
Troubleshooting -- User Manual -- Dark Side of the Matrix: Firmwares and Patches
View user's profile Send private message Visit poster's website
kermit
Posted: Tue Oct 06, 2009 9:27 am Reply with quote
Frequent contributor Joined: 01 Jun 2005 Posts: 972 Location: Brisbane, Australia
matt wrote:
I've converted the above script to a droplet for Mac OS X.

Drag and drop a REC or TS file onto it to do a quick conversion back and forth.

notes: only supports one file at a time. doesn't have a fancy icon.

download: http://www.gingerbeardman.com/toppy-rec2ts.zip (58kb)

if you find it useful please let me know.

matt
I've just read this post, downloaded the app and yes Matt it is very useful.

_________________
Cheers Simon
>8-]

TF5000PVRt 500GB March '09 f/w
View user's profile Send private message
DrGreg
Posted: Wed Mar 13, 2013 4:18 pm Reply with quote
Regular contributor Joined: 29 Oct 2010 Posts: 77
"matt wrote:
I've converted the above script to a droplet for Mac OS X.

Drag and drop a REC or TS file onto it to do a quick conversion back and forth.

notes: only supports one file at a time. doesn't have a fancy icon.

download: http://www.gingerbeardman.com/toppy-rec2ts.zip (58kb)

if you find it useful please let me know.

matt"
Many thanks Matt. rec2ts worked perfectly and the .ts files play flawlessly over my network. Very Happy

_________________
TF5810, TS On, F/W: MS6 Recommended F/W 12/9/2009
TAPs: MyStuff 6.3; EPG2MEI v0.96; Font Manager 1.0d; Extend v1.7; MyInfo B5.5; EIT Sub (Game) v0.6; SecCache (UK) v0.4;
Sig generated by MyInfo on 16/5/11
MyInfo on 21/1/11[/size]
View user's profile Send private message

Display posts from previous:  

All times are GMT + 1 Hour
Page 3 of 3
Goto page Previous  1, 2, 3

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum