Hi all
For some reason pix_record only produces 1 frame videos when recording from the webcam. The mov files produces are however 8M big. VLC cannot open the recorded video and only displays a small black frame with some solitary random green pixels. PD is able to open a single frame but no more frames can be accesed. PD says when loading the video
[pix_film]: loaded file: C:/Users/bgphumee/Desktop/photocall/test02.mov with 1 frames (160x120) at -1.000000 fps
This happens on windows 10 Enterprise with the latest PD with GEM installed via Deken. We also tried in another windows machine with similar results.
I made a small test from the PD help to make sure it was not my patch doing something wrong. I attach it.
I also tried it in Linux and I get some weird results with PD freezing while recording and not producing any file at all.
is this some bug in GEM or am I making something wrong? I have not used GEM for three of four years and it might have changed. I searched online but could not find any references to similar errors.
many thanks
enrike
On 2/20/24 17:50, altern wrote:
This happens on windows 10 Enterprise with the latest PD with GEM installed via Deken. We also tried in another windows machine with similar results.
it *always* helps if you can state which exact platform you are using, not just which OS version (Pd-version, 32bit/64bit/...)
in the case of [pix_record] (and [pix_video], [pix_image] and [model]) Gem uses a plugin-system for the actual backends. this is great, since it allows you to use Gem even if your system does not have e.g. quicktime4linux installed, but if you do have quicktime4linux installed you can just use it. unfortunately this complicates debugging a bit, as I do not know which plugins have successfully loaded on your system.
when loading Gem, the available (and usable) plugins should be printed with something like:
video record plugins: QT4L V4L2
what does it say on your machine?
gfmdsar IOhannes
hi
On Tue, 20 Feb 2024 at 20:06, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 2/20/24 17:50, altern wrote:
This happens on windows 10 Enterprise with the latest PD with GEM
installed
via Deken. We also tried in another windows machine with similar results.
it *always* helps if you can state which exact platform you are using, not just which OS version (Pd-version, 32bit/64bit/...)
sorry, it is PD 0.54.1 for windows 64 bits, the portable version
in the case of [pix_record] (and [pix_video], [pix_image] and [model]) Gem uses a plugin-system for the actual backends. this is great, since it allows you to use Gem even if your system does not have e.g. quicktime4linux installed, but if you do have quicktime4linux installed you can just use it. unfortunately this complicates debugging a bit, as I do not know which plugins have successfully loaded on your system.
when loading Gem, the available (and usable) plugins should be printed with something like:
video record plugins: QT4L V4L2
what does it say on your machine?
GEM: video record plugins: PNM GEM: video capture plugins: NDI VIDS decklink
and when I open the gem window it says
[pix_video]: backend #0='NDI' <--- DISABLED [pix_video]: backend #0='VIDS' : videoInput [pix_video]: backend #1='decklink' <--- DISABLED
the complete gem startup says
GEM: Graphics Environment for Multimedia GEM: ver: 0.94.git v0.94-843-gc6eff7f12 GEM: compiled on Feb 5 2024 GEM: maintained by IOhannes m zmoelnig GEM: Authors : Mark Danks (original version) GEM: Chris Clepper GEM: Cyrille Henry GEM: IOhannes m zmoelnig GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al. GEM: found a bug? miss a feature? please report it: GEM: homepage https://gem.iem.at/ GEM: bug-tracker https://bugs.gem.iem.at/ GEM: mailing-list https://lists.puredata.info/listinfo/gem-dev/ GEM: compiled for MMX/SSE2 architecture GEM: using SSE2 optimization GEM: detected 4 CPUs GEM: image loading plugins: magick SGI STB jpeg tiff GEM: film loading plugins: DirectShow GEM: image saving plugins: SGI STB jpeg magick tiff GEM: model loading plugins: ASSIMP3 OBJ GEM: video record plugins: PNM GEM: video capture plugins: NDI VIDS decklink
thanks
enrike
On 2/21/24 09:00, altern wrote:
sorry, it is PD 0.54.1 for windows 64 bits, the portable version
thanks.
GEM: video record plugins: PNM
ah well. the only recording capability that is available for your installation is PNM, which creates a portable anymap image, and not really a "film" in the traditional sense.
the use-case is typically to write the data to a named pipe and then use ffmpeg or whatever to turn that into a real film:
from the commit message:
1. `mkfifo fifo.ppm`
2. record frames into `fifo.ppm` with this plugin
3. encode video with `ffmpeg -f image2pipe -i fifo.ppm ...`
i probably have to add this to the actual documentation.
i'm afraid there is no real video recording backend available on Windows at the momemt (there used to be a QuickTime based backend, but apple never made this available for 64bit systems - including Windows; also iirc the quicktime backends required Gem to be compiled with MSVC which i no longer do).
gdmasr IOhannes
For the recording of the gem windows, Obs open broadcast gave me good résults.
Le mer. 21 févr. 2024 à 09:41, IOhannes m zmoelnig zmoelnig@iem.at a écrit :
On 2/21/24 09:00, altern wrote:
sorry, it is PD 0.54.1 for windows 64 bits, the portable version
thanks.
GEM: video record plugins: PNM
ah well. the only recording capability that is available for your installation is PNM, which creates a portable anymap image, and not really a "film" in the traditional sense.
the use-case is typically to write the data to a named pipe and then use ffmpeg or whatever to turn that into a real film:
from the commit message:
1. `mkfifo fifo.ppm` 2. record frames into `fifo.ppm` with this plugin 3. encode video with `ffmpeg -f image2pipe -i fifo.ppm ...`
i probably have to add this to the actual documentation.
i'm afraid there is no real video recording backend available on Windows at the momemt (there used to be a QuickTime based backend, but apple never made this available for 64bit systems - including Windows; also iirc the quicktime backends required Gem to be compiled with MSVC which i no longer do).
gdmasr IOhannes _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list