Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play FLV data synchronously [closed]

I am just investigating http://www.broccoliproducts.com/softnotebook/rtmpclient/rtmpclient.php RTMP client code. And it is working fine so it gets data and saves the FLV file locally.

The code is pretty simple. So my questions are:

1. Is it possible to play this streaming synchronously? (okay with some delay because of the caching) (I've tried to open writing file via VLC but it is busy...)

2. Any clue how to implement it?

!!! It is not any kind of advertisement of this project! I just need to create some RTMP Player in WPF.

like image 598
Friend Avatar asked Jan 28 '13 12:01

Friend


1 Answers

If you have Cygwin you could pipe output through tee

rtmpdump -i "rtmp://server/app playpath=mp4:foo.mp4" | tee a.flv | vlc -

This will save the output to a file, while simultaneously playing the stream through VLC. If you prefer not to install Cygwin I have a small version available, only 3.2 MB. Also you could probably just find a Windows version of tee.

like image 97
Zombo Avatar answered Oct 12 '22 22:10

Zombo