Read in jpg files from folder and stream out

About encoding, codec settings, muxers and filter usage
xyl8777
New Cone
New Cone
Posts: 2
Joined: 13 Dec 2017 13:36

Read in jpg files from folder and stream out

Postby xyl8777 » 13 Dec 2017 14:40

I am pretty new in VideoLan. I wonder if someone can help me doing this task.

I know the VLC player can read in mp4 and stream it out. I want to do one step further. Instead of reading from mp4, I want to pick up some picture jpg (or png) files from a folder and stream it out in mpeg4 or h264 format. Some other program will constantly feed that folder with new jpg (or png) files.

I am thinking maybe I can modify some of the VLC player source code, some files in C program I guess, to do this. I have downloaded the VLC source code and look into it. It is as deep as a jungle. I think I may need just a little portion of the codes.

Can someone give me a hint of how to proceed? I can either do it in Windows, or in Linux (Debian or Ubuntu).

Any suggestion will help.

Thanks a lot.

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: Read in jpg files from folder and stream out

Postby Jean-Baptiste Kempf » 15 Jan 2018 10:17

vlc /path/to/folder will work, but it will not reload when there are new pictures.
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.

postscripter
Blank Cone
Blank Cone
Posts: 36
Joined: 21 Jul 2017 08:30
Location: Hot Russia

Re: Read in jpg files from folder and stream out

Postby postscripter » 16 Feb 2018 13:33

You definitely need some scripting here. For myself I made this one, it picks up *.asf files from a folder and streams them out. And yes, other program sometimes feeds that folder with new ones.

Script is for windows/powershell. It speaks with VLC via HTTP. You'll need to slightly change the VLM command sequence (they're somewhere in the end), because now it stops the previous broadcasting and creates a new one for each new file instead of adding files to a current playlist.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 19 guests