Git Product home page Git Product logo

Comments (9)

aumouvantsillage avatar aumouvantsillage commented on June 7, 2024

so I don't know how to give more information.

You can use one of the options listed here: Helping debug Sozi

In the command line, sozi-to-video pres.sozi.html leads to the error below. Not sure if that is relevant (not sure if sozi-to-video is still supported).

sozi-to-video is a different program and is no longer supported.
I can't really tell whether the errors you get are relevant to the initial problem.

from sozi.

berchas avatar berchas commented on June 7, 2024

Thank you for your response! I tried "SOZI_DEVTOOLS=1 sozi mypres.svg", but sozi is still opening without the dev tools. In any case, it only occurred to me today that I can easily create a video from the exported pngs. Maybe helpful for other beginners:

ffmpeg -framerate 25 -i mypres-sozi-export/img%d.png -filter_complex "color=size=600x600:color=white [white]; [white][0:v] overlay=shortest=1 [out]" -map "[out]" output.mp4

The part after filter_complex is adding a white background to the video.
(One additional remark: something like %05d instead of %d leads to the same error message as sozi-to-video. Something related could also be the cause in the gui export)

from sozi.

aumouvantsillage avatar aumouvantsillage commented on June 7, 2024

You can try ELECTRON_ENABLE_LOGGING=1 to show JavaScript error messages in the terminal.

from sozi.

aumouvantsillage avatar aumouvantsillage commented on June 7, 2024

Everything works fine for me in Ubuntu 20.04 : I can open the dev tools and successfully export videos.
I will try to reproduce the problem in Ubuntu 22.04.

from sozi.

berchas avatar berchas commented on June 7, 2024

Following log for the video export:

[8638:0912/123044.821524:INFO:CONSOLE(644)] "Uncaught (in promise) TypeError: Object has been destroyed", source: /opt/Sozi/resources/app.asar/src/js/exporter/index.js (644)
[8638:0912/123045.370583:INFO:CONSOLE(644)] "Uncaught (in promise) TypeError: Object has been destroyed", source: /opt/Sozi/resources/app.asar/src/js/exporter/index.js (644)
/usr/share/libdrm/amdgpu.ids: No such file or directory
ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
[image2 @ 0x55f61ec80980] Could find no file with path '/tmp/tmp-8707-SvhWyozLZmXZ/img%d.png' and index in the range 0-4
/tmp/tmp-8707-SvhWyozLZmXZ/img%d.png: No such file or directory
[8638:0912/123047.988549:INFO:CONSOLE(585)] "Video export complete.", source: /opt/Sozi/resources/app.asar/src/js/exporter/index.js (585)
[8638:0912/123048.135013:INFO:CONSOLE(631)] "Uncaught (in promise) TypeError: Object has been destroyed", source: /opt/Sozi/resources/app.asar/src/js/exporter/index.js (631)

With regard to F12, no logs in the terminal. F11 and F5 are working, not sure about F2.

from sozi.

aumouvantsillage avatar aumouvantsillage commented on June 7, 2024

It would be interesting to monitor the content of the temporary folder where the PNG files are supposed to be written.
In your last attempt, it was '/tmp/tmp-8707-SvhWyozLZmXZ/.
Unfortunately, the name of this folder changes every time the export is run, and it is deleted immediately after completion.

In a previous version, some Windows users reported that the temporary folder was deleted before running FFMPEG. I could not reproduce this behavior, and it has not been reported for Linux, as far as I remember.

from sozi.

berchas avatar berchas commented on June 7, 2024

I monitored the tmp folder with the following (in the last phase of the creation):

watch -n 0.1 'ls -tr tmp-21139-NuvCn253hOiG/ | xargs >> tmp.txt'

Nothing to see there. The final number of images seems to fit more or less (frame rate of one per second, with a video length of about 90 seconds). At the end, the folder is deleted (even if I have opened one of the pictures or included another file into the tmp folder).
tmp.txt

For me, the manual way stated above is fine.

from sozi.

aumouvantsillage avatar aumouvantsillage commented on June 7, 2024

Thanks for your help.
I'll add a few debug messages to the export script. Maybe it will help clarify what is going on.

from sozi.

aumouvantsillage avatar aumouvantsillage commented on June 7, 2024

For your information, there is a new Beta release available.
It fixes a similar issue in the PowerPoint export.

It does not address your video export problem yet, but it should bring the F12 key back.

from sozi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.