Jump to content

post processing - need filename


Recommended Posts

Posted (edited)

On the admin site, Live TV > Advanced > Recording Post Processing section, there are three variables:
{path} = path to file, e.g., c:\media\myMovie\myMovie.ts, I presume
${channelname}
${channelnumber}

What's the "$" about?  Used for only 2 of the 3 vars?  I don't even know how I'd use these since the recordings don't embed that info.

We need a var for the filename base so we can set the output, right?  If I'm using FFmpeg, I'd want to do something like:

    ffmpeg.exe -i {path} {base}_full.mp4

Am I missing something here?

Here is a potential usage of this Emby functionality, for reference:
image.png.5399638d324acd5a800896103c674aab.png

Edited by justinrh
clarification of usage
Posted

I think you need to give us a little more, what is your server is it the Shield?  Is your server on windows or Linux?

Where does

Quote

{base}_full.mp4

come from?

Posted
Quote

What's the "$" about?

You need to put {path} into the command line somewhere and the server will replace it with the real value. 

Posted (edited)

Fellas, please try to keep in mind the context and the examples I provided.  I think your questions are already answered.  I don't know how the server would make any difference, but I use Windows.

I said we need a var for "filename base", so I just created and example, like "{base}_full.mp4".

I asked about the $ because only 2 of 3 vars have it.  How is {path} special in that it doesn't need a $ but the other 2 do?

And how do you use:
  ${channelname}
  ${channelnumber}
Something like this?  (pseudo code!)  -in {path}
-out ${channelname}-${channelnumber}.mp4

Edited by justinrh
Posted

The OS matters because what you want do requires a script to be called, so for windows create a batch file lets' call it "c:\users\<yournamehere>\topmp4.bat"

put in it with a text editor

ffmpeg -i "%~1" "%~dpn1.mp4"

then make

Post-processing application:

"c:\users\<yournamehere>\topmp4.bat"

Post-processor command line arguments:

"{path}"

Posted

I amended my post to help clarify the issue.

Posted

None of them need a $. That is an error in the help text.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...