Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, that uses Python code (pyext) to send TCP messages, I want to use [netsend] to send them, without Python.
I start VLC with:
vlc -I rc --rc-host=localhost:1234
And, in Pd:
[connect localhost 1234( | | [list add file.mp4( | [list prepend send] | [list trim] | / [netsend]
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. For example, when I click on [list add file.mp4(, VLC says (sorry for the language):
[0x7f387c0044a8] filesystem access error: cannot open file /home/mario/file.mp4; (No such file or directory) [0x7f387c0044a8] main access error: Falló lectura de archivo [0x7f387c0044a8] main access error: VLC no pudo abrir el archivo «/home/mario/file.mp4;» (No such file or directory). [0x7f3888005ac8] main input error: open of `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles.
Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) to receive this messages and, when it does, it prints:
received data: b'add file.mp4;\n'
Ssome guys from #dataflow told me that the best workaround is to make a small program/app/script that strips semicolons. Yes, now I'm writing it... but I would not need another program to do this.
I've never reported a Pd bug. I'm writing this mail to you to know about this (maybe it is not necessary to report it)... and maybe someone knows another workaround.
Thank you.
Hello,
Now, with Pd 0.46.7 you have [netsend -b]. It allows you to send a string in 'binary' mode (you don't need anymore to use the FUDI protocol used by netsend before).
Then, something like :
[list add file.mp4( | [l2s] <- from zexy library (there is vanilla solution for this) | [list fromsymbol] | [list append 10] | [list prepend send] | [list trim] | [netsend -b]
should work. ++
Jack
Le 06/05/2016 14:45, Mario Mey a écrit :
Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, that uses Python code (pyext) to send TCP messages, I want to use [netsend] to send them, without Python.
I start VLC with:
vlc -I rc --rc-host=localhost:1234
And, in Pd:
[connect localhost 1234( | | [list add file.mp4( | [list prepend send] | [list trim] | / [netsend]
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. For example, when I click on [list add file.mp4(, VLC says (sorry for the language):
[0x7f387c0044a8] filesystem access error: cannot open file /home/mario/file.mp4; (No such file or directory) [0x7f387c0044a8] main access error: Falló lectura de archivo [0x7f387c0044a8] main access error: VLC no pudo abrir el archivo «/home/mario/file.mp4;» (No such file or directory). [0x7f3888005ac8] main input error: open of `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles.
Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) to receive this messages and, when it does, it prints:
received data: b'add file.mp4;\n'
Ssome guys from #dataflow told me that the best workaround is to make a small program/app/script that strips semicolons. Yes, now I'm writing it... but I would not need another program to do this.
I've never reported a Pd bug. I'm writing this mail to you to know about this (maybe it is not necessary to report it)... and maybe someone knows another workaround.
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Hi,
attached is some workaround for controlling VLC, one using [tcpclient], and another one using dbus-send.
Both uses tcl for scripting with [hc/sys_gui]
patco
Le 06/05/2016 à 15:51, Jack a écrit :
Hello,
Now, with Pd 0.46.7 you have [netsend -b]. It allows you to send a string in 'binary' mode (you don't need anymore to use the FUDI protocol used by netsend before).
Then, something like :
[list add file.mp4( | [l2s] <- from zexy library (there is vanilla solution for this) | [list fromsymbol] | [list append 10] | [list prepend send] | [list trim] | [netsend -b]
should work. ++
Jack
Le 06/05/2016 14:45, Mario Mey a écrit :
Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, that uses Python code (pyext) to send TCP messages, I want to use [netsend] to send them, without Python.
I start VLC with:
vlc -I rc --rc-host=localhost:1234
And, in Pd:
[connect localhost 1234( | | [list add file.mp4( | [list prepend send] | [list trim] | / [netsend]
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. For example, when I click on [list add file.mp4(, VLC says (sorry for the language):
[0x7f387c0044a8] filesystem access error: cannot open file /home/mario/file.mp4; (No such file or directory) [0x7f387c0044a8] main access error: Falló lectura de archivo [0x7f387c0044a8] main access error: VLC no pudo abrir el archivo «/home/mario/file.mp4;» (No such file or directory). [0x7f3888005ac8] main input error: open of `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles.
Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) to receive this messages and, when it does, it prints:
received data: b'add file.mp4;\n'
Ssome guys from #dataflow told me that the best workaround is to make a small program/app/script that strips semicolons. Yes, now I'm writing it... but I would not need another program to do this.
I've never reported a Pd bug. I'm writing this mail to you to know about this (maybe it is not necessary to report it)... and maybe someone knows another workaround.
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Jack, thank you for this patch. It works. Also thanks to Patrice... but I want to make it easy.
Now, I would want to know how to reproduce l2s with Vanilla (I'm trying to use only Vanilla).
... and there's something else: If I send "playlist" to VLC, the right outlet of [netsend -b] prints the playlist... but one character per print. Something like:
print: 43 print: 45 print: 45 print: 45 print: 45 print: 91 print: 32 print: 80 print: 108 print: 97 print: 121 print: 108 ...
If I put [list tosymbol] before [print], the characters appears:
print: symbol + print: symbol - print: symbol - print: symbol - print: symbol - print: symbol [ print: symbol print: symbol P print: symbol l print: symbol a print: symbol y print: symbol l ...
How should I convert all this messages into one message? If possible, respecting the return carriage.
El 06/05/16 a las 10:51, Jack escribió:
Hello,
Now, with Pd 0.46.7 you have [netsend -b]. It allows you to send a string in 'binary' mode (you don't need anymore to use the FUDI protocol used by netsend before).
Then, something like :
[list add file.mp4( | [l2s] <- from zexy library (there is vanilla solution for this) | [list fromsymbol] | [list append 10] | [list prepend send] | [list trim] | [netsend -b]
should work. ++
Jack
Le 06/05/2016 14:45, Mario Mey a écrit :
Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, that uses Python code (pyext) to send TCP messages, I want to use [netsend] to send them, without Python.
I start VLC with:
vlc -I rc --rc-host=localhost:1234
And, in Pd:
[connect localhost 1234( | | [list add file.mp4( | [list prepend send] | [list trim] | / [netsend]
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. For example, when I click on [list add file.mp4(, VLC says (sorry for the language):
[0x7f387c0044a8] filesystem access error: cannot open file /home/mario/file.mp4; (No such file or directory) [0x7f387c0044a8] main access error: Falló lectura de archivo [0x7f387c0044a8] main access error: VLC no pudo abrir el archivo «/home/mario/file.mp4;» (No such file or directory). [0x7f3888005ac8] main input error: open of `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles.
Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) to receive this messages and, when it does, it prints:
received data: b'add file.mp4;\n'
Ssome guys from #dataflow told me that the best workaround is to make a small program/app/script that strips semicolons. Yes, now I'm writing it... but I would not need another program to do this.
I've never reported a Pd bug. I'm writing this mail to you to know about this (maybe it is not necessary to report it)... and maybe someone knows another workaround.
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Can you send a full output from [netsend -b] ? To get your message line by line, you must recreate the chain by accumulating numerical values until a 10 or/and 13 comes. For this a [route 10 13] (to do something when a 10 or 13 comes), [list prepend] (to accumulate) and [list] (to store accumulation) should help. See attached files for one possibility of vanilla version of [l2s]. ++
Jack
Le 06/05/2016 17:46, Mario Mey a écrit :
Jack, thank you for this patch. It works. Also thanks to Patrice... but I want to make it easy.
Now, I would want to know how to reproduce l2s with Vanilla (I'm trying to use only Vanilla).
... and there's something else: If I send "playlist" to VLC, the right outlet of [netsend -b] prints the playlist... but one character per print. Something like:
print: 43 print: 45 print: 45 print: 45 print: 45 print: 91 print: 32 print: 80 print: 108 print: 97 print: 121 print: 108 ...
If I put [list tosymbol] before [print], the characters appears:
print: symbol + print: symbol - print: symbol - print: symbol - print: symbol - print: symbol [ print: symbol print: symbol P print: symbol l print: symbol a print: symbol y print: symbol l ...
How should I convert all this messages into one message? If possible, respecting the return carriage.
El 06/05/16 a las 10:51, Jack escribió:
Hello,
Now, with Pd 0.46.7 you have [netsend -b]. It allows you to send a string in 'binary' mode (you don't need anymore to use the FUDI protocol used by netsend before).
Then, something like :
[list add file.mp4( | [l2s] <- from zexy library (there is vanilla solution for this) | [list fromsymbol] | [list append 10] | [list prepend send] | [list trim] | [netsend -b]
should work. ++
Jack
Le 06/05/2016 14:45, Mario Mey a écrit :
Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, that uses Python code (pyext) to send TCP messages, I want to use [netsend] to send them, without Python.
I start VLC with:
vlc -I rc --rc-host=localhost:1234
And, in Pd:
[connect localhost 1234( | | [list add file.mp4( | [list prepend send] | [list trim] | / [netsend]
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. For example, when I click on [list add file.mp4(, VLC says (sorry for the language):
[0x7f387c0044a8] filesystem access error: cannot open file /home/mario/file.mp4; (No such file or directory) [0x7f387c0044a8] main access error: Falló lectura de archivo [0x7f387c0044a8] main access error: VLC no pudo abrir el archivo «/home/mario/file.mp4;» (No such file or directory). [0x7f3888005ac8] main input error: open of `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles.
Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) to receive this messages and, when it does, it prints:
received data: b'add file.mp4;\n'
Ssome guys from #dataflow told me that the best workaround is to make a small program/app/script that strips semicolons. Yes, now I'm writing it... but I would not need another program to do this.
I've never reported a Pd bug. I'm writing this mail to you to know about this (maybe it is not necessary to report it)... and maybe someone knows another workaround.
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Forget an abstraction (float2symbol). ++
Jack
Le 06/05/2016 19:15, Jack a écrit :
Can you send a full output from [netsend -b] ? To get your message line by line, you must recreate the chain by accumulating numerical values until a 10 or/and 13 comes. For this a [route 10 13] (to do something when a 10 or 13 comes), [list prepend] (to accumulate) and [list] (to store accumulation) should help. See attached files for one possibility of vanilla version of [l2s]. ++
Jack
Le 06/05/2016 17:46, Mario Mey a écrit :
Jack, thank you for this patch. It works. Also thanks to Patrice... but I want to make it easy.
Now, I would want to know how to reproduce l2s with Vanilla (I'm trying to use only Vanilla).
... and there's something else: If I send "playlist" to VLC, the right outlet of [netsend -b] prints the playlist... but one character per print. Something like:
print: 43 print: 45 print: 45 print: 45 print: 45 print: 91 print: 32 print: 80 print: 108 print: 97 print: 121 print: 108 ...
If I put [list tosymbol] before [print], the characters appears:
print: symbol + print: symbol - print: symbol - print: symbol - print: symbol - print: symbol [ print: symbol print: symbol P print: symbol l print: symbol a print: symbol y print: symbol l ...
How should I convert all this messages into one message? If possible, respecting the return carriage.
El 06/05/16 a las 10:51, Jack escribió:
Hello,
Now, with Pd 0.46.7 you have [netsend -b]. It allows you to send a string in 'binary' mode (you don't need anymore to use the FUDI protocol used by netsend before).
Then, something like :
[list add file.mp4( | [l2s] <- from zexy library (there is vanilla solution for this) | [list fromsymbol] | [list append 10] | [list prepend send] | [list trim] | [netsend -b]
should work. ++
Jack
Le 06/05/2016 14:45, Mario Mey a écrit :
Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, that uses Python code (pyext) to send TCP messages, I want to use [netsend] to send them, without Python.
I start VLC with:
vlc -I rc --rc-host=localhost:1234
And, in Pd:
[connect localhost 1234( | | [list add file.mp4( | [list prepend send] | [list trim] | / [netsend]
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. For example, when I click on [list add file.mp4(, VLC says (sorry for the language):
[0x7f387c0044a8] filesystem access error: cannot open file /home/mario/file.mp4; (No such file or directory) [0x7f387c0044a8] main access error: Falló lectura de archivo [0x7f387c0044a8] main access error: VLC no pudo abrir el archivo «/home/mario/file.mp4;» (No such file or directory). [0x7f3888005ac8] main input error: open of `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles.
Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) to receive this messages and, when it does, it prints:
received data: b'add file.mp4;\n'
Ssome guys from #dataflow told me that the best workaround is to make a small program/app/script that strips semicolons. Yes, now I'm writing it... but I would not need another program to do this.
I've never reported a Pd bug. I'm writing this mail to you to know about this (maybe it is not necessary to report it)... and maybe someone knows another workaround.
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Another option is to use [makefilename %d] in place of this [float2symbol] abstraction. But I've never seen this clever abstraction. Thanks Jack!
Joel
On 05/06/2016 12:20 PM, Jack wrote:
Forget an abstraction (float2symbol). ++
Jack
Le 06/05/2016 19:15, Jack a écrit :
Can you send a full output from [netsend -b] ? To get your message line by line, you must recreate the chain by accumulating numerical values until a 10 or/and 13 comes. For this a [route 10 13] (to do something when a 10 or 13 comes), [list prepend] (to accumulate) and [list] (to store accumulation) should help. See attached files for one possibility of vanilla version of [l2s]. ++
Jack
Le 06/05/2016 17:46, Mario Mey a écrit :
Jack, thank you for this patch. It works. Also thanks to Patrice... but I want to make it easy.
Now, I would want to know how to reproduce l2s with Vanilla (I'm trying to use only Vanilla).
... and there's something else: If I send "playlist" to VLC, the right outlet of [netsend -b] prints the playlist... but one character per print. Something like:
print: 43 print: 45 print: 45 print: 45 print: 45 print: 91 print: 32 print: 80 print: 108 print: 97 print: 121 print: 108 ...
If I put [list tosymbol] before [print], the characters appears:
print: symbol + print: symbol - print: symbol - print: symbol - print: symbol - print: symbol [ print: symbol print: symbol P print: symbol l print: symbol a print: symbol y print: symbol l ...
How should I convert all this messages into one message? If possible, respecting the return carriage.
El 06/05/16 a las 10:51, Jack escribió:
Hello,
Now, with Pd 0.46.7 you have [netsend -b]. It allows you to send a string in 'binary' mode (you don't need anymore to use the FUDI protocol used by netsend before).
Then, something like :
[list add file.mp4( | [l2s] <- from zexy library (there is vanilla solution for this) | [list fromsymbol] | [list append 10] | [list prepend send] | [list trim] | [netsend -b]
should work. ++
Jack
Le 06/05/2016 14:45, Mario Mey a écrit :
Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, that uses Python code (pyext) to send TCP messages, I want to use [netsend] to send them, without Python.
I start VLC with:
vlc -I rc --rc-host=localhost:1234
And, in Pd:
[connect localhost 1234( | | [list add file.mp4( | [list prepend send] | [list trim] | / [netsend]
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. For example, when I click on [list add file.mp4(, VLC says (sorry for the language):
[0x7f387c0044a8] filesystem access error: cannot open file /home/mario/file.mp4; (No such file or directory) [0x7f387c0044a8] main access error: Falló lectura de archivo [0x7f387c0044a8] main access error: VLC no pudo abrir el archivo «/home/mario/file.mp4;» (No such file or directory). [0x7f3888005ac8] main input error: open of `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles.
Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) to receive this messages and, when it does, it prints:
received data: b'add file.mp4;\n'
Ssome guys from #dataflow told me that the best workaround is to make a small program/app/script that strips semicolons. Yes, now I'm writing it... but I would not need another program to do this.
I've never reported a Pd bug. I'm writing this mail to you to know about this (maybe it is not necessary to report it)... and maybe someone knows another workaround.
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Hello Joel,
[makefilename %d] is OK if you send an integer like 1 or 25487. But if you send something like 254.56, you only get [symbol 254(. That's why, i made this abstraction ;) ++
Jack
Le 06/05/2016 19:28, Joel Matthys a écrit :
Another option is to use [makefilename %d] in place of this [float2symbol] abstraction. But I've never seen this clever abstraction. Thanks Jack!
Joel
On 05/06/2016 12:20 PM, Jack wrote:
Forget an abstraction (float2symbol). ++
Jack
Le 06/05/2016 19:15, Jack a écrit :
Can you send a full output from [netsend -b] ? To get your message line by line, you must recreate the chain by accumulating numerical values until a 10 or/and 13 comes. For this a [route 10 13] (to do something when a 10 or 13 comes), [list prepend] (to accumulate) and [list] (to store accumulation) should help. See attached files for one possibility of vanilla version of [l2s]. ++
Jack
Le 06/05/2016 17:46, Mario Mey a écrit :
Jack, thank you for this patch. It works. Also thanks to Patrice... but I want to make it easy.
Now, I would want to know how to reproduce l2s with Vanilla (I'm trying to use only Vanilla).
... and there's something else: If I send "playlist" to VLC, the right outlet of [netsend -b] prints the playlist... but one character per print. Something like:
print: 43 print: 45 print: 45 print: 45 print: 45 print: 91 print: 32 print: 80 print: 108 print: 97 print: 121 print: 108 ...
If I put [list tosymbol] before [print], the characters appears:
print: symbol + print: symbol - print: symbol - print: symbol - print: symbol - print: symbol [ print: symbol print: symbol P print: symbol l print: symbol a print: symbol y print: symbol l ...
How should I convert all this messages into one message? If possible, respecting the return carriage.
El 06/05/16 a las 10:51, Jack escribió:
Hello,
Now, with Pd 0.46.7 you have [netsend -b]. It allows you to send a string in 'binary' mode (you don't need anymore to use the FUDI protocol used by netsend before).
Then, something like :
[list add file.mp4( | [l2s] <- from zexy library (there is vanilla solution for this) | [list fromsymbol] | [list append 10] | [list prepend send] | [list trim] | [netsend -b]
should work. ++
Jack
Le 06/05/2016 14:45, Mario Mey a écrit :
Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, that uses Python code (pyext) to send TCP messages, I want to use [netsend] to send them, without Python.
I start VLC with:
vlc -I rc --rc-host=localhost:1234
And, in Pd:
[connect localhost 1234( | | [list add file.mp4( | [list prepend send] | [list trim] | / [netsend]
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. For example, when I click on [list add file.mp4(, VLC says (sorry for the language):
[0x7f387c0044a8] filesystem access error: cannot open file /home/mario/file.mp4; (No such file or directory) [0x7f387c0044a8] main access error: Falló lectura de archivo [0x7f387c0044a8] main access error: VLC no pudo abrir el archivo «/home/mario/file.mp4;» (No such file or directory). [0x7f3888005ac8] main input error: open of `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles.
Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) to receive this messages and, when it does, it prints:
received data: b'add file.mp4;\n'
Ssome guys from #dataflow told me that the best workaround is to make a small program/app/script that strips semicolons. Yes, now I'm writing it... but I would not need another program to do this.
I've never reported a Pd bug. I'm writing this mail to you to know about this (maybe it is not necessary to report it)... and maybe someone knows another workaround.
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Of course, to get decimal, you can use [makefilename %f] but in this case, you got a symbol very different :
Your float : float 0.19 The symbol you get : symbol 0.190000
With the abstraction [float2symbol] you will get : symbol 0.19 ++
Jack
Le 06/05/2016 20:05, Jack a écrit :
Hello Joel,
[makefilename %d] is OK if you send an integer like 1 or 25487. But if you send something like 254.56, you only get [symbol 254(. That's why, i made this abstraction ;) ++
Jack
Le 06/05/2016 19:28, Joel Matthys a écrit :
Another option is to use [makefilename %d] in place of this [float2symbol] abstraction. But I've never seen this clever abstraction. Thanks Jack!
Joel
On 05/06/2016 12:20 PM, Jack wrote:
Forget an abstraction (float2symbol). ++
Jack
Le 06/05/2016 19:15, Jack a écrit :
Can you send a full output from [netsend -b] ? To get your message line by line, you must recreate the chain by accumulating numerical values until a 10 or/and 13 comes. For this a [route 10 13] (to do something when a 10 or 13 comes), [list prepend] (to accumulate) and [list] (to store accumulation) should help. See attached files for one possibility of vanilla version of [l2s]. ++
Jack
Le 06/05/2016 17:46, Mario Mey a écrit :
Jack, thank you for this patch. It works. Also thanks to Patrice... but I want to make it easy.
Now, I would want to know how to reproduce l2s with Vanilla (I'm trying to use only Vanilla).
... and there's something else: If I send "playlist" to VLC, the right outlet of [netsend -b] prints the playlist... but one character per print. Something like:
print: 43 print: 45 print: 45 print: 45 print: 45 print: 91 print: 32 print: 80 print: 108 print: 97 print: 121 print: 108 ...
If I put [list tosymbol] before [print], the characters appears:
print: symbol + print: symbol - print: symbol - print: symbol - print: symbol - print: symbol [ print: symbol print: symbol P print: symbol l print: symbol a print: symbol y print: symbol l ...
How should I convert all this messages into one message? If possible, respecting the return carriage.
El 06/05/16 a las 10:51, Jack escribió:
Hello,
Now, with Pd 0.46.7 you have [netsend -b]. It allows you to send a string in 'binary' mode (you don't need anymore to use the FUDI protocol used by netsend before).
Then, something like :
[list add file.mp4( | [l2s] <- from zexy library (there is vanilla solution for this) | [list fromsymbol] | [list append 10] | [list prepend send] | [list trim] | [netsend -b]
should work. ++
Jack
Le 06/05/2016 14:45, Mario Mey a écrit : > Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a > patch in https://github.com/mxa/AudioVideoPatches, that uses Python code > (pyext) to send TCP messages, I want to use [netsend] to send them, > without Python. > > I start VLC with: > > vlc -I rc --rc-host=localhost:1234 > > And, in Pd: > > [connect localhost 1234( > | > | [list add file.mp4( > | [list prepend send] > | [list trim] > | / > [netsend] > > The connection is well done, but I discovered that the messages arrives > with a ";" at the end of the message. For example, when I click on [list > add file.mp4(, VLC says (sorry for the language): > > [0x7f387c0044a8] filesystem access error: cannot open file > /home/mario/file.mp4; (No such file or directory) > [0x7f387c0044a8] main access error: Falló lectura de archivo > [0x7f387c0044a8] main access error: VLC no pudo abrir el archivo > «/home/mario/file.mp4;» (No such file or directory). > [0x7f3888005ac8] main input error: open of > `file:///home/mario/file.mp4%3B' failed > [0x7f3888005ac8] main input error: Su entrada no puede abrirse > [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL > «file:///home/mario/file.mp4%3B». Vea el registro para más detalles. > > Also, I use a simple Python script (Server code in > https://wiki.python.org/moin/TcpCommunication) to receive this messages > and, when it does, it prints: > > received data: b'add file.mp4;\n' > > Ssome guys from #dataflow told me that the best workaround is to make a > small program/app/script that strips semicolons. Yes, now I'm writing > it... but I would not need another program to do this. > > I've never reported a Pd bug. I'm writing this mail to you to know about > this (maybe it is not necessary to report it)... and maybe someone knows > another workaround. > > Thank you. > > _______________________________________________ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Didn't know this one :D ++
Jack
Le 06/05/2016 20:19, IOhannes m zmölnig a écrit :
On 05/06/2016 08:16 PM, Jack wrote:
Of course, to get decimal, you can use [makefilename %f] but in this case, you got a symbol very different :
Your float : float 0.19 The symbol you get : symbol 0.190000
[makefilename %g]
gfrdsa IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
I remove the [float2symbol] abstraction and change it with [makefilename %g] (thanx IOhannes) in the list2symbol.pd if someone need a vanilla solution of zexy/list2symbol. It is attached. ++
Jack
Le 06/05/2016 19:15, Jack a écrit :
Can you send a full output from [netsend -b] ? To get your message line by line, you must recreate the chain by accumulating numerical values until a 10 or/and 13 comes. For this a [route 10 13] (to do something when a 10 or 13 comes), [list prepend] (to accumulate) and [list] (to store accumulation) should help. See attached files for one possibility of vanilla version of [l2s]. ++
Jack
Le 06/05/2016 17:46, Mario Mey a écrit :
Jack, thank you for this patch. It works. Also thanks to Patrice... but I want to make it easy.
Now, I would want to know how to reproduce l2s with Vanilla (I'm trying to use only Vanilla).
... and there's something else: If I send "playlist" to VLC, the right outlet of [netsend -b] prints the playlist... but one character per print. Something like:
print: 43 print: 45 print: 45 print: 45 print: 45 print: 91 print: 32 print: 80 print: 108 print: 97 print: 121 print: 108 ...
If I put [list tosymbol] before [print], the characters appears:
print: symbol + print: symbol - print: symbol - print: symbol - print: symbol - print: symbol [ print: symbol print: symbol P print: symbol l print: symbol a print: symbol y print: symbol l ...
How should I convert all this messages into one message? If possible, respecting the return carriage.
El 06/05/16 a las 10:51, Jack escribió:
Hello,
Now, with Pd 0.46.7 you have [netsend -b]. It allows you to send a string in 'binary' mode (you don't need anymore to use the FUDI protocol used by netsend before).
Then, something like :
[list add file.mp4( | [l2s] <- from zexy library (there is vanilla solution for this) | [list fromsymbol] | [list append 10] | [list prepend send] | [list trim] | [netsend -b]
should work. ++
Jack
Le 06/05/2016 14:45, Mario Mey a écrit :
Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, that uses Python code (pyext) to send TCP messages, I want to use [netsend] to send them, without Python.
I start VLC with:
vlc -I rc --rc-host=localhost:1234
And, in Pd:
[connect localhost 1234( | | [list add file.mp4( | [list prepend send] | [list trim] | / [netsend]
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. For example, when I click on [list add file.mp4(, VLC says (sorry for the language):
[0x7f387c0044a8] filesystem access error: cannot open file /home/mario/file.mp4; (No such file or directory) [0x7f387c0044a8] main access error: Falló lectura de archivo [0x7f387c0044a8] main access error: VLC no pudo abrir el archivo «/home/mario/file.mp4;» (No such file or directory). [0x7f3888005ac8] main input error: open of `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles.
Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) to receive this messages and, when it does, it prints:
received data: b'add file.mp4;\n'
Ssome guys from #dataflow told me that the best workaround is to make a small program/app/script that strips semicolons. Yes, now I'm writing it... but I would not need another program to do this.
I've never reported a Pd bug. I'm writing this mail to you to know about this (maybe it is not necessary to report it)... and maybe someone knows another workaround.
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Hello,
I was wondering if an abstraction like 'list2symbol' need (or not) to have the same behavior than the external 'list2symbol' from zexy ? For exemple, zexy external 'list2symbol' waits a symbol on its cold inlet, this is not the case with the abstraction i made. I think, it is better to get the exact behavior. So i decided to change the abs. Abs and its help attached. ++
Jack
Le 07/05/2016 17:16, Jack a écrit :
I remove the [float2symbol] abstraction and change it with [makefilename %g] (thanx IOhannes) in the list2symbol.pd if someone need a vanilla solution of zexy/list2symbol. It is attached. ++
Jack
Le 06/05/2016 19:15, Jack a écrit :
Can you send a full output from [netsend -b] ? To get your message line by line, you must recreate the chain by accumulating numerical values until a 10 or/and 13 comes. For this a [route 10 13] (to do something when a 10 or 13 comes), [list prepend] (to accumulate) and [list] (to store accumulation) should help. See attached files for one possibility of vanilla version of [l2s]. ++
Jack
Le 06/05/2016 17:46, Mario Mey a écrit :
Jack, thank you for this patch. It works. Also thanks to Patrice... but I want to make it easy.
Now, I would want to know how to reproduce l2s with Vanilla (I'm trying to use only Vanilla).
... and there's something else: If I send "playlist" to VLC, the right outlet of [netsend -b] prints the playlist... but one character per print. Something like:
print: 43 print: 45 print: 45 print: 45 print: 45 print: 91 print: 32 print: 80 print: 108 print: 97 print: 121 print: 108 ...
If I put [list tosymbol] before [print], the characters appears:
print: symbol + print: symbol - print: symbol - print: symbol - print: symbol - print: symbol [ print: symbol print: symbol P print: symbol l print: symbol a print: symbol y print: symbol l ...
How should I convert all this messages into one message? If possible, respecting the return carriage.
El 06/05/16 a las 10:51, Jack escribió:
Hello,
Now, with Pd 0.46.7 you have [netsend -b]. It allows you to send a string in 'binary' mode (you don't need anymore to use the FUDI protocol used by netsend before).
Then, something like :
[list add file.mp4( | [l2s] <- from zexy library (there is vanilla solution for this) | [list fromsymbol] | [list append 10] | [list prepend send] | [list trim] | [netsend -b]
should work. ++
Jack
Le 06/05/2016 14:45, Mario Mey a écrit :
Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, that uses Python code (pyext) to send TCP messages, I want to use [netsend] to send them, without Python.
I start VLC with:
vlc -I rc --rc-host=localhost:1234
And, in Pd:
[connect localhost 1234( | | [list add file.mp4( | [list prepend send] | [list trim] | / [netsend]
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. For example, when I click on [list add file.mp4(, VLC says (sorry for the language):
[0x7f387c0044a8] filesystem access error: cannot open file /home/mario/file.mp4; (No such file or directory) [0x7f387c0044a8] main access error: Falló lectura de archivo [0x7f387c0044a8] main access error: VLC no pudo abrir el archivo «/home/mario/file.mp4;» (No such file or directory). [0x7f3888005ac8] main input error: open of `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles.
Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) to receive this messages and, when it does, it prints:
received data: b'add file.mp4;\n'
Ssome guys from #dataflow told me that the best workaround is to make a small program/app/script that strips semicolons. Yes, now I'm writing it... but I would not need another program to do this.
I've never reported a Pd bug. I'm writing this mail to you to know about this (maybe it is not necessary to report it)... and maybe someone knows another workaround.
Thank you.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On Fri, 2016-05-06 at 12:46 -0300, Mario Mey wrote:
Jack, thank you for this patch. It works. Also thanks to Patrice... but I want to make it easy.
Now, I would want to know how to reproduce l2s with Vanilla (I'm trying to use only Vanilla).
... and there's something else: If I send "playlist" to VLC, the right outlet of [netsend -b] prints the playlist... but one character per print.
[...]
I found the cheapest method to concatenate a stream of atoms to lists is appending them with 'add2 $1' to a message box. Then you wait for the message delimiting character ('10' or '13' in this case) to flush the content of of the message box.
The resulting list can be passed to [list tosymbol]. However, be a aware that the human-friendly outcome (e.g. 'Now playing: ROTHKO - On the Day We Said Goodbye') will be a symbol, not a list and can't be parsed easily with Pd tools.
Roman
Here is the patch:
http://stackoverflow.com/questions/37052150/how-to-control-vlc-from-pd-vanil...
Thanks everybody.
Hello Mario,
Here a small change in your patch to control VLC. It uses [route 10 13] to output a line when it is complete (when 10 or/and 13 comes). ++
Jack
Le 06/05/2016 22:22, Mario Mey a écrit :
Here is the patch:
http://stackoverflow.com/questions/37052150/how-to-control-vlc-from-pd-vanil...
Thanks everybody.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
I tried to use the [route 10 13] with no success. It was not so much important to receive the entire playlist or entire help text... so, I didn't go on trying. Now, you did it. Everything is well printed. Really good, thank you!
Something else... if there any way to get rid of the word "symbol" in the console, before any line? like [list trim], but with "symbol". It would be the last thing to do.
print: symbol > > +----[ Playlist - Sin definir ] print: symbol | 2 - Lista de reproducción print: symbol | 11 - Colour In Storytelling.mp4 (00:16:24) [played 1 time] print: symbol | 12 - Jorge\, Amaru y Soema en España.mp4 (00:00:44) print: symbol | 13 - movie_max.webm (00:03:38) print: symbol | 3 - Biblioteca multimedia print: symbol +----[ End of playlist ]
Thank you, Jack!
El 07/05/16 a las 12:29, Jack escribió:
Hello Mario,
Here a small change in your patch to control VLC. It uses [route 10 13] to output a line when it is complete (when 10 or/and 13 comes). ++
Jack
Le 06/05/2016 22:22, Mario Mey a écrit :
Here is the patch:
http://stackoverflow.com/questions/37052150/how-to-control-vlc-from-pd-vanil...
Thanks everybody.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Le 09/05/2016 22:01, Mario Mey a écrit :
I tried to use the [route 10 13] with no success. It was not so much important to receive the entire playlist or entire help text... so, I didn't go on trying. Now, you did it. Everything is well printed. Really good, thank you!
Cool !
Something else... if there any way to get rid of the word "symbol" in the console, before any line? like [list trim], but with "symbol". It would be the last thing to do.
Yes, just add the message [$1( before the [print] ++
Jack
print: symbol > > +----[ Playlist - Sin definir ] print: symbol | 2 - Lista de reproducción print: symbol | 11 - Colour In Storytelling.mp4 (00:16:24) [played 1 time] print: symbol | 12 - Jorge\, Amaru y Soema en España.mp4 (00:00:44) print: symbol | 13 - movie_max.webm (00:03:38) print: symbol | 3 - Biblioteca multimedia print: symbol +----[ End of playlist ]
Thank you, Jack!
El 07/05/16 a las 12:29, Jack escribió:
Hello Mario,
Here a small change in your patch to control VLC. It uses [route 10 13] to output a line when it is complete (when 10 or/and 13 comes). ++
Jack
Le 06/05/2016 22:22, Mario Mey a écrit :
Here is the patch:
http://stackoverflow.com/questions/37052150/how-to-control-vlc-from-pd-vanil...
Thanks everybody.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Thanks again!
El 09/05/16 a las 17:22, Jack escribió:
Le 09/05/2016 22:01, Mario Mey a écrit :
I tried to use the [route 10 13] with no success. It was not so much important to receive the entire playlist or entire help text... so, I didn't go on trying. Now, you did it. Everything is well printed. Really good, thank you!
Cool !
Something else... if there any way to get rid of the word "symbol" in the console, before any line? like [list trim], but with "symbol". It would be the last thing to do.
Yes, just add the message [$1( before the [print] ++
Jack
print: symbol > > +----[ Playlist - Sin definir ] print: symbol | 2 - Lista de reproducción print: symbol | 11 - Colour In Storytelling.mp4 (00:16:24) [played 1 time] print: symbol | 12 - Jorge\, Amaru y Soema en España.mp4 (00:00:44) print: symbol | 13 - movie_max.webm (00:03:38) print: symbol | 3 - Biblioteca multimedia print: symbol +----[ End of playlist ]
Thank you, Jack!
El 07/05/16 a las 12:29, Jack escribió:
Hello Mario,
Here a small change in your patch to control VLC. It uses [route 10 13] to output a line when it is complete (when 10 or/and 13 comes). ++
Jack
Le 06/05/2016 22:22, Mario Mey a écrit :
Here is the patch:
http://stackoverflow.com/questions/37052150/how-to-control-vlc-from-pd-vanil...
Thanks everybody.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
As [list] help file says: "The "list trim" object inputs lists (or makes lists out of incoming non-list messages) and outputs a message (...)"
**or makes lists out of incoming non-list messages**
Yes, it does the trick. Also [$1(.
:)
El 09/05/16 a las 18:09, IOhannes m zmölnig escribió:
On 05/09/2016 10:01 PM, Mario Mey wrote:
like [list trim], but with "symbol".
erm, how about [list trim]?
gfmadsr IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On 05/06/2016 02:45 PM, Mario Mey wrote:
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message.
this is the format that Pd messages are transmitted in. it is not a bug, but called FUDI
https://en.wikipedia.org/wiki/FUDI
both applications (e.g. Pd and VLC) need to speak the same protocol in order to communicate. to make [netsend] not speak FUDI but any arbitrary protocol, use the 'raw' mode (as jack has pointed out)
gfmdsar IOhannes
I understand this ";" at the end of the message... but I found something that I do call bug.
In text-object-help.pd, inside [pd tolist] and [pd fromlist], there's this message box:
[this is a message ; this is another 1 ... ;(
Inside the file, it is:
... #X msg 81 115 list this is a message \; this is another 1 ... \; ...
When I edit this message box and delete the semicolon with backspace, PureData stops responding. Maybe some functions from the menu appears to work, but it is freeze.
El 06/05/16 a las 15:08, IOhannes m zmölnig escribió:
On 05/06/2016 02:45 PM, Mario Mey wrote:
The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message.
this is the format that Pd messages are transmitted in. it is not a bug, but called FUDI
https://en.wikipedia.org/wiki/FUDI
both applications (e.g. Pd and VLC) need to speak the same protocol in order to communicate. to make [netsend] not speak FUDI but any arbitrary protocol, use the 'raw' mode (as jack has pointed out)
gfmdsar IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list