SurLaTablo.py - Python program to query and convert Tablo recordings

sweet – that is what I figured – thanks for all the help – you guys rock !!

And thanks @FlyingDiver

So, how’s SurLaTablo 3 coming? :wink:

1 Like

for those who want to do a similar thing – here is the tested and working snippet – insert it anywhere in the list of conversion options;

'MKV': { 'help': [ 'Standard pass through conversion of video and audio from Tablo .ts to .MKV.' ], 'command': [ FFMPEG ], 'threads': [ '-threads', '0' ], 'inputfile': [ '-i', '${ts_filename}' ], 'subtitlefile': [ '-f', 'srt', '-i', '${srt_filename}' ], 'options': [ '-c:v', 'copy', '-c:a', 'copy' ], 'subtitleoptions': [ '-c:s', 'srt', '-metadata:s:s:0', 'language=${lang3}' ], 'audiooptions': [ '-metadata:s:a:0', 'language=${lang3}' ], 'metadata': [], 'ext': [ '.mkv' ] },

…and don’t forget to version the code, just so there is no confusion :wink:

Not coming… not for a bit. It’s bad enough the python idiots (emphasis emphasis, double emphasis) created ultra stupidity and channeled their inner-PHP to create a complete mess going from 2 to 3. Which, that alone might be “3”, just doing work for work sake, because apparently it’s pythonic.

Anyway, as you can probably tell I have a million and one things on my shoulders right now. I didn’t need the python lords throwing lightning bolts at me…

Btw, I have php code that has worked in versions 4 thru 7 (take that python!)

I need to get back to work on the python3 port. Likely that will be “3”. Who has time to do something productive? or beneficial?.. no love for python authors.

Btw, this python foo-for-rah, is impacting a lot of (used to be) stable things out there, forcing upgrade, deprecations and thousands of lines of code rewrite, again, thank you python authors. And though, I’m not a full author of many of those things, I contribute, therefore I have to go back and spend the time to convert my code (sheesh). There are lot of people that do not like python and may have avoided it. Just be glad you’re not having to deal with the 2 to 3 debacle they created. And no, before you go there, python 2to3 is a tool much like your cousin over your shoulder saying, “uh oh, look what you did.”

But still, while my hatred of python authors is great, I will bow before my evil masters… eventually…

Yeah, I do Python programming too. The platform I program for (a Home Automation system) is still on 2.7, and will be for a while yet. There’s some major logistical issues for them to upgrade to 3, mostly having to do with Catalina being the first MacOS to ship with 3. They currently support systems all the way back to Sierra or before, on older hardware, so the lack of P3 for the older systems is a major hurdle.

I will support 2.x even after 3, at least for a bit. Eventually, Apple will deprecate all the old Macs… and that’s coming up…

I don’t have any official way to have people support (free, no pressure) SurLaTablo, but feel free (if you want) to use https://paypal.me/gracepaints

Any concern about compatibility with updating firmware to 2.2.42?

(I’ve been bit in the past)

allen

There didnt appear to be anything alarming in the release notes. Virtually all 3rd party export apps use the same methods… we’d probably have known by now.

Since tablo supports outside debelopment, they might have announced an end.

I haven’t found any issue using it with the latest. But the code base is still dependent on Python 2 (which is going to become more and more of an issue). While I did start work on the Python 3 version, it got stalled, but I do need to return and finish it. So many projects, so little time.

1 Like

With some regret I’ve never use SurLa Tablo more than just trying it. My system still has several obsolete packages installed from DVB tuners, old perl a different exporting I used to use regularly and some related to h.264 either for video encoding or an old DVR package I used to use… and old python stuff.
Not sure if I actually need these, but once they’re gone it’s too late to realize it.

Isn’t Python 2 / 2.7 past EOL? It’s sad they can’t make some kind of “up grade” path without have to completely re-code the whole thing.

They built a revolutionary thing. More of a “Boa” than a version update of Python. Just the way it is. So, there’s work that has to be done (by me). Even worse, the 3.x variants vary greatly, enough to cause headaches. Which means, even post revolution, they are starting to act more like PHP. We’ll see.

(it’s actually tempted me to look at other languages in fact)

1 Like

Will this work with Silcon macs?

Should, but you’ll need to install Python2, since Apple doesn’t include it anymore.

@cjcox Can SurLaTablo extract a complete .ts file with no further processing?

It can. For example (and yes, a single ts file):

surlatablo.py -n -q 'FBI - s06e02' -k @ -c Null

No difference from the default Mp4 though, except the Mp4 includes some enhanced metadata info.

Edit:

-k @ means keep the extracted ts file

Null is the action… which of course in this case is Null (no action)

1 Like

Thanks!

@cjcox - Just checking - did you ever port this to Python 3?

Well… somebody else did (Alan H.). I haven’t reviewed the work. I was also working on it as well, but lost interest in continuing as the old Tablo company effectively died.

I was ready to buy one today so I stopped to see if progress had been made but after reading things I think you’re correct. The company we knew is gone. Sounds like they plugged the hole that allows ripping on the new Tablo. They also seem to have abandoned the “Legacy Tablo”. Still no sign of that firmware upgrade we were promised. It would have been better if they just told us they were stopping support years ago. The Legacy Tablo is old and I would have understood if they said they would only do security updates as needed. This really puts a dent into any future interest I have in their new devices. Being able to rip shows is a huge part of why I liked the Tablo.

Thanks by the way. The script I run is based on open source Tablo ripping projects although it’s custom. It would have been much more difficult to create without the open source community. I’m using Sonarr as a front end to rip shows from my Tablo. That way it doesn’t rip everything we record. Just stuff I want to collect.

1 Like