Implementing the record button like the vlc GUI
Posted: 29 Jul 2012 10:36
I have been looking into getting similar functionality into libvlc as the "record" button in the vlc gui. This button allows you to automatically save the current media to your Video/Music directory, wihout the need to specify any sout/transcoding options.
As with a lot of other libvlc implementation, it seems like this is simply a matter of using the appropriate vlc variables to trigger functionality.
Indeed, I have implemented in my own libvlc build some new API to query the recording state and start/stop the recording. This was pretty easy to do and seems to work just fine.
There are some limitations to this functionality - and the limitations are there in the vlc GUI as well as my own libvlc API. The limitations are that when recording is enabled it is not possible to pause, skip, change chapter, change time/position and so on - all of those functions become no-ops. Anyway, whilst recording is enabled those are probably understandable restrictions. If I remember correctly you also have to enable recording before playing the media - so it's not quite an on-the-fly solution. Also, I'm not sure whether you can have full control over the generated filenames or not.
So now I have this implemented and working is there any interest in this, and is such functionality (even with its limitations) worthy of being included in the official libvlc? Or would there be some other requirement of such an API to make it fit for inclusion in libvlc?
As with a lot of other libvlc implementation, it seems like this is simply a matter of using the appropriate vlc variables to trigger functionality.
Indeed, I have implemented in my own libvlc build some new API to query the recording state and start/stop the recording. This was pretty easy to do and seems to work just fine.
There are some limitations to this functionality - and the limitations are there in the vlc GUI as well as my own libvlc API. The limitations are that when recording is enabled it is not possible to pause, skip, change chapter, change time/position and so on - all of those functions become no-ops. Anyway, whilst recording is enabled those are probably understandable restrictions. If I remember correctly you also have to enable recording before playing the media - so it's not quite an on-the-fly solution. Also, I'm not sure whether you can have full control over the generated filenames or not.
So now I have this implemented and working is there any interest in this, and is such functionality (even with its limitations) worthy of being included in the official libvlc? Or would there be some other requirement of such an API to make it fit for inclusion in libvlc?