NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 383 384 385 386 387 … 433 Next »
.TS file format ?

.TS file format ?
Hal2010
Offline

Member

Posts: 60
Threads: 7
Joined: Jun 2010
#11
2011-01-30, 02:54 AM (This post was last modified: 2011-01-30, 03:39 AM by Hal2010.)
Another question, not directly on topic, but about recordings in general: is it possible to schedule manual recording to other steps than 10 minutes? For instance, I would like to have test recording from 21:24 to 21:27. That is possible with GBPVR. Now... I cannot get it.[/QUOTE]

I am not sure if you realise that you can use "start time" and "finish time" adjusted by pre- and post- padding to achieve exact start and finish times.
Unfortunately though this method wont work with your example. It requires a "finish time" to be set which is prior to the "start time"; I think nPVR assumes that the "finish time" is tomorrow.
zvm
Offline

Member

Posts: 70
Threads: 10
Joined: Jan 2007
#12
2011-01-30, 07:51 AM (This post was last modified: 2011-01-30, 07:57 AM by zvm.)
I know about pre- and post- padding. And I am using that frequently. But that is not what I am asking, as you concluded in your second sentence. Not that big deal though - just wondering because it was possible before.

And automatic transcoding? If I want my recordings in avi format, I need to take two actions: 1. ts to mpg; 2. mpg to avi. The emphasis is on "I, myself". With GBPVR it can be done without my presence.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#13
2011-01-30, 07:54 AM
zvm Wrote:Why is option to automatically transcode to avi gone (or any other format)? I like it on GBPVR. With that option no other transcoding tool is required. And more importantly, none of my time. Smile
This is one of those things that's been explained before. Maybe someone ought to write a FAQ for some of this stuff. Not me, but someone...

Anyhow, NPVR has been designed around the .ts file. Everything about the way it works and communicates with clients is built on recording and playback of .ts files. Therefore there are no built-in automatic transcoding options available, and as far as I can tell from sub's comments there never will be, nor will there be any Transcode buttons in the stock Recordings or Video plugins, though plugin devs would be free to do this in their own plugins.

That said, you can add transcoding commands to your PostProcessing.bat file. ffmpeg is included with NPVR, and you can look in the GB-PVR Config.xml file to see the ffmpeg command lines it used for the various transcoding options and build those into your script. If you transcode a recording and then delete the original file, NPVR will automatically detect the new file and play it when you ask it to. But this is left up to you to do, to make the point that transcoding may break other functionality.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
zvm
Offline

Member

Posts: 70
Threads: 10
Joined: Jan 2007
#14
2011-01-30, 08:30 AM
Thanks for a quick reply. Smile
I know about ffmpeg command lines in config.xml of GBPVR - I used to change those lines options to accommodate to my needs.
Script should check whether there is a new TS file on certain location (Recordings folder) and if so, do the transcoding. But I don't know how to pass source file location and name (automatically, dynamically) to post_processing.bat. :o
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#15
2011-01-30, 08:50 AM
I'm not sure I follow you there... why does anything need to monitor any location?

NPVR calls PostProcessing.bat when the recording is done. The full path and file name of the recording is passed as %1. %2 is the channel it was recorded from, useful in the case where you want different transcoding commands for different channels. %3 is the recording OID from the database, which you probably won't have any use for. If you need the full path and file name without the extension, that's %~dpn1.

so you could have a commands like:
Code:
ffmpeg -i %1 -f avi -vcodec mpeg4 -otheroption 1 -somethingelse 2 %~dpn1.avi
del %1
so you recode the original file to a new file with an .avi extension, then delete the original file. of course I'd want to check somehow that the transcode really worked before deleting the original file, I'm not sure how you do that.... faith maybe?
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
zvm
Offline

Member

Posts: 70
Threads: 10
Joined: Jan 2007
#16
2011-01-30, 01:10 PM
johnsonx42 Wrote:I'm not sure I follow you there... why does anything need to monitor any location?

NPVR calls PostProcessing.bat when the recording is done. The full path and file name of the recording is passed as %1. %2 is the channel it was recorded from, useful in the case where you want different transcoding commands for different channels. %3 is the recording OID from the database, which you probably won't have any use for. If you need the full path and file name without the extension, that's %~dpn1.

so you could have a commands like:
Code:
ffmpeg -i %1 -f avi -vcodec mpeg4 -otheroption 1 -somethingelse 2 %~dpn1.avi
del %1
so you recode the original file to a new file with an .avi extension, then delete the original file. of course I'd want to check somehow that the transcode really worked before deleting the original file, I'm not sure how you do that.... faith maybe?


first of all, thanks a lot for helping me!

I may have been missing something, but where is PostProcessing.bat? :confused: Before it was in GBPVR directory. But in 1.4.7 it does not exist (I would have copy it from there). Neither in NPVR. Or I just cannot find it.
Furthermore, even if I find or create PostProcessing.bat how do I tell NPVR to calls it?
Thanks again! Smile

PS: I wouldn't delete original recording. I am not doing it now either. Just for the reason you mentioned. I delete it after I make sure transcoding went well. Basically, whole this story for me is relevant only for recordings I would like to keep. That's why I liked old GBPVR possibility to assign transcoding to particular recording - not like in last versions: all or nothing.
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#17
2011-01-30, 01:58 PM
The PostProcessing (and all other .bat files belonging to npvr) are in the "Scripts" folder in npvr's data directory. Npvr automatically calls PostProcessing after each recording.

"I'd rather have a bottle in front of me than a frontal lobotomy"
zvm
Offline

Member

Posts: 70
Threads: 10
Joined: Jan 2007
#18
2011-01-30, 02:25 PM
Well, not in my case. There is just placeholder.txt whose content is:

Batch files can be created in this directory.

PostProcessing.bat
ParallelProcessing.bat
UpdateEPG.bat


But there are no any files. Maybe I can download them from somewhere and put them into that directory!? Or could someone post them?
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#19
2011-01-30, 03:43 PM
zvm Wrote:Maybe I can download them from somewhere and put them into that directory!? Or could someone post them?

The content of the batchfiles depends on what you want to do, where the programs you want to run is located etc. There is no standard PostProcessing.bat, you'r supposed to create one yourself and put the commands you want into it.

"I'd rather have a bottle in front of me than a frontal lobotomy"
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#20
2011-01-30, 06:19 PM
You might try having a peak at the sticky linked oh-so-prominently in my signature.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  incorrect frequency in adelaide .ini file spin35 5 2,906 2023-02-01, 05:40 PM
Last Post: sub
  ts file shows length too long? SuttonWillow 2 1,834 2021-03-15, 01:56 PM
Last Post: mvallevand
  Unhandled Exception: file name too long (idiots at pbs made it super long) jobby99 1 1,356 2020-10-29, 09:40 PM
Last Post: mvallevand
  ts file shows length too long SamM 4 2,280 2020-10-06, 02:45 AM
Last Post: Ehrlichia
  Possible to record in different format than .ts files? gadgetgaz 29 12,378 2020-10-04, 03:05 PM
Last Post: Ehrlichia
  EPG displaying small subset of xmltv file. Esteban 9 2,921 2020-07-18, 10:07 PM
Last Post: Esteban
  Recordings Date Format NumberFive 3 1,976 2020-05-14, 11:08 PM
Last Post: NumberFive
  Max File Size jrockow 2 1,489 2020-04-21, 02:38 PM
Last Post: jrockow
  Skip causes fast-forward to the end of the file madbrain 9 3,724 2020-02-27, 10:24 PM
Last Post: Esch
  Be notified when EPG (xml file) is empty ? nonob 2 1,386 2020-02-14, 05:00 PM
Last Post: nonob

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode