Append Filename under "Scene video filter" section

About encoding, codec settings, muxers and filter usage
siva_kumaran
Blank Cone
Blank Cone
Posts: 10
Joined: 14 May 2015 01:45

Append Filename under "Scene video filter" section

Postby siva_kumaran » 14 May 2015 02:02

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.....

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Append Filename under "Scene video filter" section

Postby Jean-Baptiste Kempf » 20 May 2015 23:10

Did you try str_format_meta ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

siva_kumaran
Blank Cone
Blank Cone
Posts: 10
Joined: 14 May 2015 01:45

Re: Append Filename under "Scene video filter" section

Postby siva_kumaran » 02 Jun 2015 03:18

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

quartapound
New Cone
New Cone
Posts: 3
Joined: 30 Sep 2018 18:37

Re: Append Filename under "Scene video filter" section

Postby quartapound » 30 Sep 2018 20:04

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...


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 31 guests