Page 1 of 1

Append Filename under "Scene video filter" section

Posted: 14 May 2015 02:02
by siva_kumaran
I am working on a video processing task with vlc for study purpose. I am capturing the screen with "Recording ratio" under " scene video filter".
Unlike snapshot feature,image name cannot be append with filename or time.(correct me if i am wrong).
So currently i implemented timestamp feature in "scene.c",which results in saved image name as "prefix"(whatever we give) with timestamp. But i also want actual file name also with it.

I really stuck at this part. can i use "string_format" function here. if so please tell how to import this function to "scene.c".

I am using source code vlc_2.2.0

Thanking you in advance.....

Re: Append Filename under "Scene video filter" section

Posted: 20 May 2015 23:10
by Jean-Baptiste Kempf
Did you try str_format_meta ?

Re: Append Filename under "Scene video filter" section

Posted: 02 Jun 2015 03:18
by siva_kumaran
Did you try str_format_meta ?
I tried using str_format_meta() function in scene.c, but unable to solve the visibility issues of certain private variable.

In "snapshot.c" they get the input from 'p' which is private data(which is not visible outside src)
----------------> "input_thread_t *input = (input_thread_t*)p_vout->p->input;" (this is how it is used in snapshot.c )

So, my question is: Is there a way to make the private variable "p" visible outside the 'src' folder? Basically to use it in scene.c file.

Please help.

Thanks

Re: Append Filename under "Scene video filter" section

Posted: 30 Sep 2018 20:04
by quartapound
Does anyone have a copy of this?
So currently i implemented timestamp feature in "scene.c",which results in saved image name as "prefix"(whatever we give) with timestamp.
(already compiled?) this is exactly what I'm trying to do... (add timestamp to scene filter images, so they don't over-write eachother if you restart the program or the computer!)

... I haven't messed with an IDE in years and it would take forever for me to figure out how to add a few simple lines of code and compile...