[MPlayer-dev-eng] [PATCH] dumping live streams
Chandan Pitta
chandan.pitta at gmail.com
Thu Aug 24 23:11:30 CEST 2006
Hello,
Sorry for sending this so many times, but I am doing some mistake each time.
I am writing some code to record live stream into separate files based
on the metadata. I have attached the code modifications I did to get
it to work. MPlayer can be compiled and used with the patch, however a
few things have to be added to make it more functional. For testing
you can use "mplayer <live stream url>" and that will cause the stream
to be written to separate files for each of the tracks in the stream
(if metadata is available).
I have the following questions before it can be completed:
1. In the code I am assuming that the streams will be written to files
in the current directory from which the user executes mplayer. Do you
think that it would be better to allow user to select the directory
where he wants the streams to be recorded to. For example by making
use of an option like "-dumpdir" or something? If yes then do you have
pointers as to where I should start looking for?
2. While closing the stream, is there a method that is called on the
http plug-in by mplayer? I did not know if there is some closing
method, so I added streaming_close(). Is there a better place to close
the file stream?
3. Finally how can I add the proper extension to the file? Currently I
am just adding .mp3 extension. But the user may be recording .rm or
.wmv streams too. Is there a way to identify the format from within
http.c?
I started looking at mplayer code a couple of days ago and this will
be my first open source contribution. So please bear with me if my
questions are stupid or too simple.
Thank you,
Chandan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer.patch
Type: application/octet-stream
Size: 3988 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060824/c262dfc4/attachment.obj>
More information about the MPlayer-dev-eng
mailing list