oztoppy Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
keith_leitch

Senior Member
Registered:
Posts: 742
Reply with quote  #1 
I'm looking for information about the exact directory and filename used for the timeshift buffer. 

The reason for this is that I am using a TRF-2460 in one room, which has a set of analog inputs. I would like to be able to set it to "watch" an analog input while using other devices (Like my TRF-7160) around the house to play back the timeshift buffer while it is "watching." This works in theory, because I can record the analog input and play back that recording elsewhere. I just think it would be less fiddly if I could set a link to the buffer somewhere that I can access it.

The fact that the TimeShiftSaver TAP exists tells me that I should be able to find this file somewhere (because they did). However, that TAP doesn't make the saved buffers visible until timeshifting stops; I want to play it while timeshifting is in progress.

If I had the source to TimeShiftSaver, I could probably figure this out.
0
davidmorr

Senior Member
Registered:
Posts: 214
Reply with quote  #2 
I have found that playing the timeshift buffer while it is still recording is problematical. What I found was that it was fine while you just let it play through. But once you started to skip backwards and forwards, it got confused. It was like it was going back to minute 165, but minute 165 was now minute 158. And the same with skipping forward.
0
keith_leitch

Senior Member
Registered:
Posts: 742
Reply with quote  #3 
Yes, you are right that skipping can be problematic when timeshifting. However, I still want to do this, and don't anticipate a lot of need for skipping in my application. David, do you know the path and filename where the buffer is stored?
0
IanL-S

Moderator
Registered:
Posts: 686
Reply with quote  #4 
I have a feeling that the timeshift buffer is stored in the top data directory - you cannot see it in the listing because it has an *.ts extension rather than *.mpg. I use the timeshift saver TAP which creates a directory where saved time shifts are stored - and *mpg is added to the file name.
0
keith_leitch

Senior Member
Registered:
Posts: 742
Reply with quote  #5 
I believe I may have found it. The file mnt/hd/DataFiles/__temprec__.ts seems to increase in size until I change channels, when the size resets to 0. That along with the file extension makes me think Ian has nailed it.

Ian, thanks for the suggestion. I do use TimeShiftSaver, but that only makes a file available after timeshifting is complete. I want to read it while timeshifting is in progress.

I will look at setting a link to it. The experiment progresses...
0
mykear

Avatar / Picture

Junior Member
Registered:
Posts: 28
Reply with quote  #6 
Have you investigated the LiveServer tap? Not necessarily what you want as toppy is not (I think) a target playback device, usually a PC or tablet/phone and may not work from analogue input as you want it to. See https://forum.tms-taps.net/viewtopic.php?t=49744
__________________
  • TF2400 with 9 TAPs in Autostart (INFplus,TMSArchive,TMSCommander,StartFTPd,lost+found,TMSTimer,WebControl,jdaSkip,BackupSettings)
  • Also use bgc, TMSMount, RebuildNAV, MovieCutter and TapToDate)
  • TF7100HDPVRt (Retired - No TAP support)
0
keith_leitch

Senior Member
Registered:
Posts: 742
Reply with quote  #7 
Yes, thanks, I have. The limitation is, as you say, that I can only play back from a PC. It does work from the analogue input, though, if memory serves.
0
keith_leitch

Senior Member
Registered:
Posts: 742
Reply with quote  #8 
I've had some success, but ultimately failure for now.

I tried using 'ln -s' and 'ln -s -n' to set a a softlink from the timeshift file to the file StreamLive.mpg and its associated .inf & .nav files. As I often do, I forgot to chmod 777 all the files, so I was stumped for a long time as to why they didn't appear; once I figured that out, StreamLive appeared on the DataFiles list. 

However, I cannot play it from the other PVR. Trying to do so results in a black screen and a long pause. If I launch it through TMSArchive, it returns error code #-1/#1.

When I tried to remove the 'ln' switches to make it a hard link, the command didn't seem to result in any files at all.

The file naming seems to suggest that the Timeshift buffer is a raw transport stream that only gets wrapped in a container after something like TimeShiftSaver is done with it. That's just a blind guess, though.

Oh, well. It was worth a try.
0
DeltaMikeCharlie

Mostly Harmless
Registered:
Posts: 316
Reply with quote  #9 
Have you tried putting the softlink in the MediaFiles directory?

DataFiles/__temprec__.ts ====> MediaFiles/Timeshift.mpg.
0
keith_leitch

Senior Member
Registered:
Posts: 742
Reply with quote  #10 
No. Something to try next, thanks. However, I did softlink all the associated .nav & .inf files into the Datafiles directory, so shouldn't that make it play as a recording?
0
keith_leitch

Senior Member
Registered:
Posts: 742
Reply with quote  #11 
Nice suggestion, but no dice. The linked file doesn't even appear in the list. I tried a .mpg and a .mp4 extension, and I also linked the NAV and INF (even though that makes no sense.) Seems like this may not be a life-hack after all.
0
davidmorr

Senior Member
Registered:
Posts: 214
Reply with quote  #12 
Is the actual location of the file a part of the shared volume? If not, then the link will be pointing to an inaccessible file.
0
keith_leitch

Senior Member
Registered:
Posts: 742
Reply with quote  #13 
I think it must be, because an ls -l command shows the link pointing to the full path of the file. On the other hand, this could explain why the files showed up on the list when I linked them to DataFiles, but not when I linked them to MediaFiles. Since I couldn't play them anyway, it's probably academic.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.