diff --git a/patches/lms-video.pd b/patches/lms-video.pd index 3e03c9b..dd65eb5 100644 --- a/patches/lms-video.pd +++ b/patches/lms-video.pd @@ -1,4 +1,4 @@ -#N canvas 574 186 611 318 10; +#N canvas 572 196 611 318 10; #N canvas 315 169 952 599 dmx 0; #X obj -7 437 list split; #X obj 99 444 list split; @@ -136,7 +136,7 @@ #X connect 5 0 7 0; #X connect 7 0 4 3; #X restore -309 -438 pd fondo; -#N canvas 73 329 1092 358 receive 0; +#N canvas 69 349 1134 358 receive 0; #X obj 22 -242 s winposx; #X obj 90 -242 s winposy; #X obj 158 -242 s winsizex; @@ -165,12 +165,14 @@ #X obj 847 -239 s ola; #X obj 898 -263 float; #X obj 898 -239 s universe; -#X obj 615 -432 s path; +#X obj 950 -432 s path; #X obj -39 -265 float; -#X obj 452 -449 unpack f f s; -#X obj 452 -477 netreceive 9195; +#X obj 787 -449 unpack f f s; +#X obj 787 -477 netreceive 9195; #X obj -39 -242 s window; -#X obj -39 -408 select 1 2 3 4 5 11 12 13 14 15 16 17 18 20 21; +#X obj -39 -408 select 1 2 3 4 5 11 12 13 14 15 16 17 18 20 21 22; +#X obj 986 -264 float; +#X obj 986 -242 s previewswitch; #X connect 4 0 0 0; #X connect 5 0 1 0; #X connect 6 0 2 0; @@ -202,6 +204,7 @@ #X connect 30 1 24 1; #X connect 30 1 26 1; #X connect 30 1 29 1; +#X connect 30 1 34 1; #X connect 30 2 28 0; #X connect 31 0 30 0; #X connect 33 0 29 0; @@ -219,6 +222,8 @@ #X connect 33 12 20 0; #X connect 33 13 24 0; #X connect 33 14 26 0; +#X connect 33 15 34 0; +#X connect 34 0 35 0; #X restore -249 -438 pd receive; #N canvas 687 175 450 564 window 0; #X msg 987 -347 color 0 0 0; @@ -354,7 +359,7 @@ #X connect 16 1 3 0; #X restore -176 -379 pd layer_5; #X obj -298 -336 loadbang; -#X obj -407 -259 print togui; +#X obj -127 -266 print togui; #N canvas 803 211 450 300 layer_6 0; #X msg -124 -32 1; #X msg -177 -33 0; @@ -595,7 +600,7 @@ #X connect 16 0 13 0; #X connect 16 1 3 0; #X restore -396 -379 pd layer_2; -#N canvas 384 140 450 300 layer_1 0; +#N canvas 382 150 450 300 layer_1 0; #X obj -253 -28 layer; #X msg -124 -32 1; #X msg -177 -33 0; @@ -635,13 +640,14 @@ #X restore -469 -379 pd layer_1; #X obj -298 -271 metro 1000; #X obj -298 -237 s metro; -#X msg -298 -299 1; -#X obj -364 -297 r textgui; +#X msg -298 -305 1; +#X obj -84 -304 r textgui; #X obj -476 -294 r preview; -#X msg -407 -294 0; +#X msg -127 -301 0; #X obj -476 -236 pix2jpg; #X text -384 -470 (c) 2012-2013 Santi Noreña libremediaserver@gmail.com GPL License; +#X obj -418 -336 r previewswitch; #X connect 5 0 16 0; #X connect 5 0 19 0; #X connect 14 0 15 0; @@ -649,4 +655,5 @@ GPL License; #X connect 17 0 6 0; #X connect 18 0 20 0; #X connect 19 0 6 0; +#X connect 22 0 14 0; #X coords 0 0 1 1 85 60 0; diff --git a/src/libremediaserver.cpp b/src/libremediaserver.cpp index 0f9ae81..7f4c12f 100644 --- a/src/libremediaserver.cpp +++ b/src/libremediaserver.cpp @@ -1588,6 +1588,39 @@ void libreMediaServer::sendFrame() m_msex->n_timer->start(); } +// Enable/Disable the GUI Master preview +void libreMediaServer::on_previewMaster_stateChanged (int state) +{ + if ((state == 0)) { + m_preview->stop(); + } + if ((state == 2)) + { + m_preview->start(); + } +} + +// Enable/Disable the GUI Layers preview +void libreMediaServer::on_previewLayer_stateChanged (int state) +{ + if ((state == 0)) { + QString desc = tr("0022 0;"); + if (!sendPacket(desc.toAscii().constData(),desc.size())) + { + errorsending(); + } + } + if ((state == 2)) + { + QString desc = tr("0022 1;"); + if (!sendPacket(desc.toAscii().constData(),desc.size())) + { + errorsending(); + } + } +} + + /////////////////////////////////////////////////////////////////// // // Terminal and Log @@ -1604,7 +1637,7 @@ void libreMediaServer::stdout_audio() { } } -// Sacamos la salida de Pure Data Video en la terminal +// Sacamos la salida de Pure Data Video en la terminal. Filtra mensajes para el GUI. void libreMediaServer::stdout() { QByteArray out = m_pd_video->readAllStandardError(); if (out.size() < 7) {return;} diff --git a/src/libremediaserver.h b/src/libremediaserver.h index 78bf769..668f328 100644 --- a/src/libremediaserver.h +++ b/src/libremediaserver.h @@ -123,6 +123,8 @@ private slots: void pdrestart(); void stdout(); void on_video_stateChanged(int state); + void on_previewMaster_stateChanged(int state); + void on_previewLayer_stateChanged(int state); //Audio void newPeer_audio(); void newmessage_audio(); diff --git a/src/libremediaserver.pro.user b/src/libremediaserver.pro.user index b5ab411..4df8f3a 100644 --- a/src/libremediaserver.pro.user +++ b/src/libremediaserver.pro.user @@ -1,6 +1,6 @@ - + ProjectExplorer.Project.ActiveTarget diff --git a/src/libremediaserver.ui b/src/libremediaserver.ui index 051687b..294bf81 100644 --- a/src/libremediaserver.ui +++ b/src/libremediaserver.ui @@ -91,7 +91,7 @@ - 570 + 520 170 31 27 @@ -107,7 +107,7 @@ - 650 + 600 170 31 27 @@ -384,7 +384,7 @@ 480 - 150 + 200 241 21 @@ -396,7 +396,7 @@ - 610 + 560 170 31 27 @@ -438,7 +438,7 @@ - 530 + 480 170 31 27 @@ -651,6 +651,41 @@ true + + + + 480 + 240 + 131 + 26 + + + + Preview Layers + + + true + + + + + + 480 + 270 + 141 + 26 + + + + Preview Master + + + true + + + false + + layer7Check layer5Check layer3Check @@ -692,6 +727,8 @@ layer7Preview layer8Preview masterPreview + previewLayer + previewMaster @@ -1112,7 +1149,7 @@ This program comes with ABSOLUTELY NO WARRANTY 0 0 745 - 25 + 29 diff --git a/todo.txt b/todo.txt index e495fc2..bbb91d7 100644 --- a/todo.txt +++ b/todo.txt @@ -18,6 +18,10 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ******************************************************************************* +v 0.03: ++ Pure Data: Carpetas para imágenes ++ Text: Diferentes ficheros de texto + Próximas versiones: @@ -32,8 +36,6 @@ Próximas versiones: - GUI: Configuración para anular los previews y salvar tiempo de proceso - Conectividad: CITP/MSEx 1.1. Thumbs y previews de imágenes --> Esperar a 1.2 en MagicQ? -+ Pure Data: Carpetas para imágenes -+ Text: Diferentes ficheros de texto - Pure Data: sincronismo de audio con videos --> Parece que hay que hacer un script para separar el audio del video, y luego ejecutarlos juntos. Un poco chapu, la verdad. La aternativa es volver a pdp mediante pdp2gem (inviable, demasiado proceso) --> De momento separando el .ogg del video, ejecutando en auto, y mandando play a la vez debería de estar sincronizados. Ahora mismo se podría separando el audio en un fichero .ogg y presionando el play a la vez en modo auto @@ -60,6 +62,8 @@ Próximas versiones: --> Depurar a saco las condiciones del reinicio - Scripts: script para formatear archivos de texto - GUI: avisar cuando no se pueda leer un archivo de texto +- Audio: Mute check box. + ----------------- Para considerar: