将LibreOffice Impress导出的Flash文件转换为mp4格式吗?

问题描述 投票:0回答:1

我需要使用python将LibreOffice impress演示文稿导出为视频格式。

我设法使用pyuno将演示文稿导出为flash文件格式,我需要将其转换为mp4(或任何其他著名的视频)格式。我尝试使用“ ffmpeg”,但不起作用。

failed to read the duration of file /home/ankur/Desktop/test_dev_1010_v111.swf.
Here are the file infos returned by ffmpeg:

ffmpeg version 4.1-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
[mjpeg @ 0x52f5240] Found EOI before any SOF, ignoring
[swf @ 0x52f3b40] [IMGUTILS @ 0x7ffdb41d6e70] Picture size 0x0 is invalid
[swf @ 0x52f3b40] invalid frame size 0x0
Input #0, swf, from '/home/ankur/Desktop/test_dev_1010_v111.swf':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1058x794 [SAR 96:96 DAR 529:397], 12 tbr, 12 tbn
At least one output file must be specified

请向正确的方向引导我。

python python-3.x libreoffice openoffice.org openoffice-impress
1个回答
0
投票

取决于您的发行版,应从软件包或源文件中安装swf解析器/阅读器。 Gnu Gnash似乎是一个。Debian拥有可扩展的软件包,但是对于破坏者来说已经不存在了。他们还为Python绑定提供了python-gtk-gnash。如何转换是很久以前的explained

© www.soinside.com 2019 - 2024. All rights reserved.