|
New input plugin for catching streams: msg#00030video.xine.devel
Hi xine team, I would like contribute new input plugin which grabs streams as go from input plugins - rip input plugin. It was tested with several input plugins and demuxers, all combinations (except reading files via CDDA...): a) input plugins FILE, FIFO, STDIN, HTTP, GNOME_VFS(samba), CDDA (with patched CDDA demuxer which enables handling non-seekable streams) b) demuxers FLI, ASF, MPEG_PES, MPEG_ELEM, CDDA (with rip returning always size of block 2352), SLAVE c) and also MMS+ASF Activation is by config option. Catching streams on command line can be: xine -p cfg:/input.ripping:1 <stream MRL> 'input.ripping' config option resets back to 0 after using RIP input plugin. I agree that using config option is dirty hack, I don't know how to work better with stream-related options. How it works: Engine, before testing all input plugins, tests 'input.ripping' config option. If it isn't set, call find_input_plugins(). If it's set, will be used RIP plugin. RIP plugin call self find_input_plugins(). All requests are resend into found input plugin, except seeking. Seeking is disabled, seeking forward and preview are implemented. Because of preview first block from input plugin is always replaced by new allocated block ==> no flags in the first buffer won't deliver. Possible problems: DVD? It wasn't tested... Legal issue: There was something about legal issue on this list about catching streams. I think it depends on user what he want to do with data in his computer: Save it? Or decode and send into speakers? And user should know what he may and what not. But I'm not jurist... This plugin can be good for developing and for testing (see test.sh for inspiration) - it saves directly what return input plugins. If you like this new plugin, use it. Can be something improved? Frantisek Dvorak PS: During testing I found interesting thing: MPEG is recognized with fifo://... but not with stdin://. Forcing by '#demux:mpeg_pes' always works. -- xena: warrior princess ________________________________________________________________________________ Stydím se ho vytáhnout! A jaký je váš důvod vyměnit svůj telefon za nový? Nokia 6610 již od 6577 Kč. http://www.atlas.cz/clickAD.asp?ad=32843
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: Can not compile rc0: 00030, Manfred Tremmel |
|---|---|
| Next by Date: | Red Dragon DVD: scene-selection problems: 00030, Chris Rankin |
| Previous by Thread: | [PATCH] double ratio againi: 00030, Philip Jägenstedt |
| Next by Thread: | Re: New input plugin for catching streams: 00030, Miguel Freitas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |