![vlc streamer flv vlc streamer flv](https://1.bp.blogspot.com/_IkIY0TAOeVI/TTxloW9cpuI/AAAAAAAAAEQ/HWFBQ37KA2o/s1600/VLC-Player-Interface.jpg)
keep adding bytes to the file (choose a block size) using(FlvStream2FileWriter stream2File = new FlvStream2FileWriter("out.flv"))
VLC STREAMER FLV HOW TO
Here is an example of how to use the lib. If you run in the debugger you will also get a lot of useful output via the “Debug.Write” (System.Diagnostics) This will read in the source FLV and produce an output FLV with the correct duration in the metadata (thus it will allow seek operations) >ConsoleTest.exe “path to infile.flv” “path to outfile.flv” simply compile and in a console window you can run: This is the only project required to use in your application. In my case the “duration” or total time of the file in seconds will allow players to now seek in the file. I close the file and then go back in to the head to alter placeholder values. When the stream errors our or has reached the end. I also keep a count of audio and video packets… you could also choose to alter timestamps ect… I then write this out to the head of the file we are saving. I make sure that there are “placeholder” values for the meta data I want. The file on disk will contain the total duration and thus be seekable (tested with VLC).
![vlc streamer flv vlc streamer flv](http://pc-windows.com/wp-content/uploads/2020/03/download-vlc.jpg)
This means that you can drop out of the stream at any time and the file will contain the portion of content up to that point. My goal was to take an FLV stream … and save that stream to disk while still being able to seek inside the file. This code was developed to accomplish a specific task, but can be adapted to do a number of things to an FLV file.
![vlc streamer flv vlc streamer flv](https://programas24-7.com/wp-content/uploads/2017/07/VLC-Media-Player-v2.2.6-2.jpg)
Handles arbitrary file sizes and streams.Also I think it could be more useful than a lot of the other ones that are out there. But this one has been written to address some specific needs. It then saves the FLV to disk and corrects Metadata to allow for seek operations on stream close. Project takes and FLV stream coming in from a "raw" source, and could be at any point in the "live" stream.