[jira] [Commented] (OPENMEETINGS-2327) Error while opening encoder for output stream #0:0

2020-05-05 Thread khvalera (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17100194#comment-17100194
 ] 

khvalera commented on OPENMEETINGS-2327:


Today I checked, I confirm that the problem is solved.

> Error while opening encoder for output stream #0:0
> --
>
> Key: OPENMEETINGS-2327
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2327
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M4
>Reporter: khvalera
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 5.0.0-M5
>
>
> When recording, I periodically get an error:
> {code}
> process: generate MP4
> command: ffmpeg -y -itsoffset 00:00:01.436 -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm
>  -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav
>  -c:v h264 -crf 24 -vsync 0 -pix_fmt yuv420p -preset superfast -profile:v 
> baseline -level 3.0 -movflags faststart -c:a aac -ar 22050 -b:a 32k 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
>  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
>  configuration: --prefix=/usr --disable-debug --disable-static 
> --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls 
> --enable-gpl --enable-ladspa --enable-libaom --enable-libass 
> --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype 
> --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack 
> --enable-libmfx --enable-libmodplug --enable-libmp3lame 
> --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg 
> --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex 
> --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 
> --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp 
> --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 
> --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared 
> --enable-version3
>  libavutil 56. 31.100 / 56. 31.100
>  libavcodec 58. 54.100 / 58. 54.100
>  libavformat 58. 29.100 / 58. 29.100
>  libavdevice 58. 8.100 / 58. 8.100
>  libavfilter 7. 57.100 / 7. 57.100
>  libswscale 5. 5.100 / 5. 5.100
>  libswresample 3. 5.100 / 3. 5.100
>  libpostproc 55. 5.100 / 55. 5.100
> Input #0, matroska,webm, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm':
>  Metadata:
>  encoder : GStreamer matroskamux version 1.16.2
>  creation_time : 2020-04-30T17:03:07.00Z
>  Duration: 00:00:13.93, start: 0.00, bitrate: 901 kb/s
>  Stream #0:0(eng): Video: vp8, yuv420p(progressive), 1920x1011, SAR 1:1 DAR 
> 640:337, 9 fps, 9.25 tbr, 1k tbn, 1k tbc (default)
>  Metadata:
>  title : Video
> Guessed Channel Layout for Input Stream #1.0 : stereo
> Input #1, wav, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav':
>  Duration: 00:00:15.00, bitrate: 1024 kb/s
>  Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 32000 Hz, stereo, 
> s16, 1024 kb/s
> Stream mapping:
>  Stream #0:0 -> #0:0 (vp8 (native) -> h264 (libx264))
>  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
> Press [q] to stop, [?] for help
> [libx264 @ 0x556e7c061b00] height not divisible by 2 (1920x1011)
> Error initializing output stream 0:0 -- Error while opening encoder for 
> output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width 
> or height
> Conversion failed!
> exitValue: 1
> optional: false
> out:
> process: generate preview PNG :: 53dff839-a8ee-4e2a-90e5-f66559ea4f71
> command: ffmpeg -y -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  -vf thumbnail,scale=640:-1 -frames:v 1 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.png
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
>  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
>  configuration: --prefix=/usr --disable-debug --disable-static 
> --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls 
> --enable-gpl --enable-ladspa --enable-libaom --enable-libass 
> --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype 
> --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack 
> --enable-libmfx --enable-libmodplug --enable-libmp3lame 
> --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg 
> 

[jira] [Commented] (OPENMEETINGS-2327) Error while opening encoder for output stream #0:0

2020-05-04 Thread khvalera (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17099126#comment-17099126
 ] 

khvalera commented on OPENMEETINGS-2327:


Sorry, the mail was in spam, did not see messages. I'll check it today or 
tomorrow. Thank you!
 

> Error while opening encoder for output stream #0:0
> --
>
> Key: OPENMEETINGS-2327
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2327
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M4
>Reporter: khvalera
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 5.0.0-M5
>
>
> When recording, I periodically get an error:
> {code}
> process: generate MP4
> command: ffmpeg -y -itsoffset 00:00:01.436 -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm
>  -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav
>  -c:v h264 -crf 24 -vsync 0 -pix_fmt yuv420p -preset superfast -profile:v 
> baseline -level 3.0 -movflags faststart -c:a aac -ar 22050 -b:a 32k 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
>  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
>  configuration: --prefix=/usr --disable-debug --disable-static 
> --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls 
> --enable-gpl --enable-ladspa --enable-libaom --enable-libass 
> --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype 
> --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack 
> --enable-libmfx --enable-libmodplug --enable-libmp3lame 
> --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg 
> --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex 
> --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 
> --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp 
> --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 
> --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared 
> --enable-version3
>  libavutil 56. 31.100 / 56. 31.100
>  libavcodec 58. 54.100 / 58. 54.100
>  libavformat 58. 29.100 / 58. 29.100
>  libavdevice 58. 8.100 / 58. 8.100
>  libavfilter 7. 57.100 / 7. 57.100
>  libswscale 5. 5.100 / 5. 5.100
>  libswresample 3. 5.100 / 3. 5.100
>  libpostproc 55. 5.100 / 55. 5.100
> Input #0, matroska,webm, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm':
>  Metadata:
>  encoder : GStreamer matroskamux version 1.16.2
>  creation_time : 2020-04-30T17:03:07.00Z
>  Duration: 00:00:13.93, start: 0.00, bitrate: 901 kb/s
>  Stream #0:0(eng): Video: vp8, yuv420p(progressive), 1920x1011, SAR 1:1 DAR 
> 640:337, 9 fps, 9.25 tbr, 1k tbn, 1k tbc (default)
>  Metadata:
>  title : Video
> Guessed Channel Layout for Input Stream #1.0 : stereo
> Input #1, wav, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav':
>  Duration: 00:00:15.00, bitrate: 1024 kb/s
>  Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 32000 Hz, stereo, 
> s16, 1024 kb/s
> Stream mapping:
>  Stream #0:0 -> #0:0 (vp8 (native) -> h264 (libx264))
>  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
> Press [q] to stop, [?] for help
> [libx264 @ 0x556e7c061b00] height not divisible by 2 (1920x1011)
> Error initializing output stream 0:0 -- Error while opening encoder for 
> output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width 
> or height
> Conversion failed!
> exitValue: 1
> optional: false
> out:
> process: generate preview PNG :: 53dff839-a8ee-4e2a-90e5-f66559ea4f71
> command: ffmpeg -y -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  -vf thumbnail,scale=640:-1 -frames:v 1 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.png
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
>  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
>  configuration: --prefix=/usr --disable-debug --disable-static 
> --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls 
> --enable-gpl --enable-ladspa --enable-libaom --enable-libass 
> --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype 
> --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack 
> --enable-libmfx --enable-libmodplug --enable-libmp3lame 
> --enable-libopencore_amrnb 

[jira] [Commented] (OPENMEETINGS-2327) Error while opening encoder for output stream #0:0

2020-05-02 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17098042#comment-17098042
 ] 

ASF subversion and git services commented on OPENMEETINGS-2327:
---

Commit ba0d7f3a3ec387f1f78152a2f64652127373f0c5 in openmeetings's branch 
refs/heads/master from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=ba0d7f3 ]

[OPENMEETINGS-2327] video dimentions are corrected to be dividable by 2


> Error while opening encoder for output stream #0:0
> --
>
> Key: OPENMEETINGS-2327
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2327
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M4
>Reporter: khvalera
>Assignee: Maxim Solodovnik
>Priority: Major
>
> When recording, I periodically get an error:
> {code}
> process: generate MP4
> command: ffmpeg -y -itsoffset 00:00:01.436 -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm
>  -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav
>  -c:v h264 -crf 24 -vsync 0 -pix_fmt yuv420p -preset superfast -profile:v 
> baseline -level 3.0 -movflags faststart -c:a aac -ar 22050 -b:a 32k 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
>  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
>  configuration: --prefix=/usr --disable-debug --disable-static 
> --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls 
> --enable-gpl --enable-ladspa --enable-libaom --enable-libass 
> --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype 
> --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack 
> --enable-libmfx --enable-libmodplug --enable-libmp3lame 
> --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg 
> --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex 
> --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 
> --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp 
> --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 
> --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared 
> --enable-version3
>  libavutil 56. 31.100 / 56. 31.100
>  libavcodec 58. 54.100 / 58. 54.100
>  libavformat 58. 29.100 / 58. 29.100
>  libavdevice 58. 8.100 / 58. 8.100
>  libavfilter 7. 57.100 / 7. 57.100
>  libswscale 5. 5.100 / 5. 5.100
>  libswresample 3. 5.100 / 3. 5.100
>  libpostproc 55. 5.100 / 55. 5.100
> Input #0, matroska,webm, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm':
>  Metadata:
>  encoder : GStreamer matroskamux version 1.16.2
>  creation_time : 2020-04-30T17:03:07.00Z
>  Duration: 00:00:13.93, start: 0.00, bitrate: 901 kb/s
>  Stream #0:0(eng): Video: vp8, yuv420p(progressive), 1920x1011, SAR 1:1 DAR 
> 640:337, 9 fps, 9.25 tbr, 1k tbn, 1k tbc (default)
>  Metadata:
>  title : Video
> Guessed Channel Layout for Input Stream #1.0 : stereo
> Input #1, wav, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav':
>  Duration: 00:00:15.00, bitrate: 1024 kb/s
>  Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 32000 Hz, stereo, 
> s16, 1024 kb/s
> Stream mapping:
>  Stream #0:0 -> #0:0 (vp8 (native) -> h264 (libx264))
>  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
> Press [q] to stop, [?] for help
> [libx264 @ 0x556e7c061b00] height not divisible by 2 (1920x1011)
> Error initializing output stream 0:0 -- Error while opening encoder for 
> output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width 
> or height
> Conversion failed!
> exitValue: 1
> optional: false
> out:
> process: generate preview PNG :: 53dff839-a8ee-4e2a-90e5-f66559ea4f71
> command: ffmpeg -y -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  -vf thumbnail,scale=640:-1 -frames:v 1 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.png
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
>  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
>  configuration: --prefix=/usr --disable-debug --disable-static 
> --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls 
> --enable-gpl --enable-ladspa --enable-libaom --enable-libass 
> --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype 
> 

[jira] [Commented] (OPENMEETINGS-2327) Error while opening encoder for output stream #0:0

2020-05-01 Thread Konstantin Kuzov (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17097591#comment-17097591
 ] 

Konstantin Kuzov commented on OPENMEETINGS-2327:


That's the limitation of libx264 encoder. It requires:

 - YUV 4:2:0 - both height and width divisible by 2

 - YUV 4:2:2 - only width divisible by 2

 - YUV 4:4:4 - without limitations

So if both x264 and pix_fmt yuv420p are required then both output height and 
width indeed must be rounded up to even numbers..

As for weird resolutions in general that's a pretty common problem. For example 
old mediatek hardware encoders cannot output anything not divisible by 16, so 
1920x1080 always becomes 1920x1088 there.

Also I've seen plenty of files with just broken metadata and at the same time 
with good video stream resolution.

> Error while opening encoder for output stream #0:0
> --
>
> Key: OPENMEETINGS-2327
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2327
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M4
>Reporter: khvalera
>Assignee: Maxim Solodovnik
>Priority: Major
>
> When recording, I periodically get an error:
> {code}
> process: generate MP4
> command: ffmpeg -y -itsoffset 00:00:01.436 -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm
>  -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav
>  -c:v h264 -crf 24 -vsync 0 -pix_fmt yuv420p -preset superfast -profile:v 
> baseline -level 3.0 -movflags faststart -c:a aac -ar 22050 -b:a 32k 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
>  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
>  configuration: --prefix=/usr --disable-debug --disable-static 
> --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls 
> --enable-gpl --enable-ladspa --enable-libaom --enable-libass 
> --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype 
> --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack 
> --enable-libmfx --enable-libmodplug --enable-libmp3lame 
> --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg 
> --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex 
> --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 
> --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp 
> --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 
> --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared 
> --enable-version3
>  libavutil 56. 31.100 / 56. 31.100
>  libavcodec 58. 54.100 / 58. 54.100
>  libavformat 58. 29.100 / 58. 29.100
>  libavdevice 58. 8.100 / 58. 8.100
>  libavfilter 7. 57.100 / 7. 57.100
>  libswscale 5. 5.100 / 5. 5.100
>  libswresample 3. 5.100 / 3. 5.100
>  libpostproc 55. 5.100 / 55. 5.100
> Input #0, matroska,webm, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm':
>  Metadata:
>  encoder : GStreamer matroskamux version 1.16.2
>  creation_time : 2020-04-30T17:03:07.00Z
>  Duration: 00:00:13.93, start: 0.00, bitrate: 901 kb/s
>  Stream #0:0(eng): Video: vp8, yuv420p(progressive), 1920x1011, SAR 1:1 DAR 
> 640:337, 9 fps, 9.25 tbr, 1k tbn, 1k tbc (default)
>  Metadata:
>  title : Video
> Guessed Channel Layout for Input Stream #1.0 : stereo
> Input #1, wav, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav':
>  Duration: 00:00:15.00, bitrate: 1024 kb/s
>  Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 32000 Hz, stereo, 
> s16, 1024 kb/s
> Stream mapping:
>  Stream #0:0 -> #0:0 (vp8 (native) -> h264 (libx264))
>  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
> Press [q] to stop, [?] for help
> [libx264 @ 0x556e7c061b00] height not divisible by 2 (1920x1011)
> Error initializing output stream 0:0 -- Error while opening encoder for 
> output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width 
> or height
> Conversion failed!
> exitValue: 1
> optional: false
> out:
> process: generate preview PNG :: 53dff839-a8ee-4e2a-90e5-f66559ea4f71
> command: ffmpeg -y -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  -vf thumbnail,scale=640:-1 -frames:v 1 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.png
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the 

[jira] [Commented] (OPENMEETINGS-2327) Error while opening encoder for output stream #0:0

2020-04-30 Thread Maxim Solodovnik (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17097121#comment-17097121
 ] 

Maxim Solodovnik commented on OPENMEETINGS-2327:


This might help: 
https://stackoverflow.com/questions/20847674/ffmpeg-libx264-height-not-divisible-by-2

> Error while opening encoder for output stream #0:0
> --
>
> Key: OPENMEETINGS-2327
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2327
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M4
>Reporter: khvalera
>Assignee: Maxim Solodovnik
>Priority: Major
>
> When recording, I periodically get an error:
> {code}
> process: generate MP4
> command: ffmpeg -y -itsoffset 00:00:01.436 -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm
>  -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav
>  -c:v h264 -crf 24 -vsync 0 -pix_fmt yuv420p -preset superfast -profile:v 
> baseline -level 3.0 -movflags faststart -c:a aac -ar 22050 -b:a 32k 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
>  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
>  configuration: --prefix=/usr --disable-debug --disable-static 
> --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls 
> --enable-gpl --enable-ladspa --enable-libaom --enable-libass 
> --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype 
> --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack 
> --enable-libmfx --enable-libmodplug --enable-libmp3lame 
> --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg 
> --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex 
> --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 
> --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp 
> --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 
> --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared 
> --enable-version3
>  libavutil 56. 31.100 / 56. 31.100
>  libavcodec 58. 54.100 / 58. 54.100
>  libavformat 58. 29.100 / 58. 29.100
>  libavdevice 58. 8.100 / 58. 8.100
>  libavfilter 7. 57.100 / 7. 57.100
>  libswscale 5. 5.100 / 5. 5.100
>  libswresample 3. 5.100 / 3. 5.100
>  libpostproc 55. 5.100 / 55. 5.100
> Input #0, matroska,webm, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm':
>  Metadata:
>  encoder : GStreamer matroskamux version 1.16.2
>  creation_time : 2020-04-30T17:03:07.00Z
>  Duration: 00:00:13.93, start: 0.00, bitrate: 901 kb/s
>  Stream #0:0(eng): Video: vp8, yuv420p(progressive), 1920x1011, SAR 1:1 DAR 
> 640:337, 9 fps, 9.25 tbr, 1k tbn, 1k tbc (default)
>  Metadata:
>  title : Video
> Guessed Channel Layout for Input Stream #1.0 : stereo
> Input #1, wav, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav':
>  Duration: 00:00:15.00, bitrate: 1024 kb/s
>  Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 32000 Hz, stereo, 
> s16, 1024 kb/s
> Stream mapping:
>  Stream #0:0 -> #0:0 (vp8 (native) -> h264 (libx264))
>  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
> Press [q] to stop, [?] for help
> [libx264 @ 0x556e7c061b00] height not divisible by 2 (1920x1011)
> Error initializing output stream 0:0 -- Error while opening encoder for 
> output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width 
> or height
> Conversion failed!
> exitValue: 1
> optional: false
> out:
> process: generate preview PNG :: 53dff839-a8ee-4e2a-90e5-f66559ea4f71
> command: ffmpeg -y -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  -vf thumbnail,scale=640:-1 -frames:v 1 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.png
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
>  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
>  configuration: --prefix=/usr --disable-debug --disable-static 
> --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls 
> --enable-gpl --enable-ladspa --enable-libaom --enable-libass 
> --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype 
> --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack 
> --enable-libmfx --enable-libmodplug --enable-libmp3lame 
> --enable-libopencore_amrnb 

[jira] [Commented] (OPENMEETINGS-2327) Error while opening encoder for output stream #0:0

2020-04-30 Thread Maxim Solodovnik (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17097118#comment-17097118
 ] 

Maxim Solodovnik commented on OPENMEETINGS-2327:


{{height not divisible by 2 (1920x1011) }}
really weird screen resolution
Will try to see what I can do here

> Error while opening encoder for output stream #0:0
> --
>
> Key: OPENMEETINGS-2327
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2327
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M4
>Reporter: khvalera
>Assignee: Maxim Solodovnik
>Priority: Major
>
> When recording, I periodically get an error:
> {code}
> process: generate MP4
> command: ffmpeg -y -itsoffset 00:00:01.436 -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm
>  -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav
>  -c:v h264 -crf 24 -vsync 0 -pix_fmt yuv420p -preset superfast -profile:v 
> baseline -level 3.0 -movflags faststart -c:a aac -ar 22050 -b:a 32k 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
>  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
>  configuration: --prefix=/usr --disable-debug --disable-static 
> --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls 
> --enable-gpl --enable-ladspa --enable-libaom --enable-libass 
> --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype 
> --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack 
> --enable-libmfx --enable-libmodplug --enable-libmp3lame 
> --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg 
> --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex 
> --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 
> --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp 
> --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 
> --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared 
> --enable-version3
>  libavutil 56. 31.100 / 56. 31.100
>  libavcodec 58. 54.100 / 58. 54.100
>  libavformat 58. 29.100 / 58. 29.100
>  libavdevice 58. 8.100 / 58. 8.100
>  libavfilter 7. 57.100 / 7. 57.100
>  libswscale 5. 5.100 / 5. 5.100
>  libswresample 3. 5.100 / 3. 5.100
>  libpostproc 55. 5.100 / 55. 5.100
> Input #0, matroska,webm, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b.webm':
>  Metadata:
>  encoder : GStreamer matroskamux version 1.16.2
>  creation_time : 2020-04-30T17:03:07.00Z
>  Duration: 00:00:13.93, start: 0.00, bitrate: 901 kb/s
>  Stream #0:0(eng): Video: vp8, yuv420p(progressive), 1920x1011, SAR 1:1 DAR 
> 640:337, 9 fps, 9.25 tbr, 1k tbn, 1k tbc (default)
>  Metadata:
>  title : Video
> Guessed Channel Layout for Input Stream #1.0 : stereo
> Input #1, wav, from 
> '/opt/openmeetings/webapps/openmeetings/data/streams/1/rec_27_6233f6ad-ed16-4f2b-9209-38bce2c4914b_FINAL_WAVE.wav':
>  Duration: 00:00:15.00, bitrate: 1024 kb/s
>  Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 32000 Hz, stereo, 
> s16, 1024 kb/s
> Stream mapping:
>  Stream #0:0 -> #0:0 (vp8 (native) -> h264 (libx264))
>  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
> Press [q] to stop, [?] for help
> [libx264 @ 0x556e7c061b00] height not divisible by 2 (1920x1011)
> Error initializing output stream 0:0 -- Error while opening encoder for 
> output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width 
> or height
> Conversion failed!
> exitValue: 1
> optional: false
> out:
> process: generate preview PNG :: 53dff839-a8ee-4e2a-90e5-f66559ea4f71
> command: ffmpeg -y -i 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.mp4
>  -vf thumbnail,scale=640:-1 -frames:v 1 
> /opt/openmeetings/webapps/openmeetings/data/streams/hibernate/53dff839-a8ee-4e2a-90e5-f66559ea4f71.png
>  
> exception: null
> error: ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
>  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
>  configuration: --prefix=/usr --disable-debug --disable-static 
> --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls 
> --enable-gpl --enable-ladspa --enable-libaom --enable-libass 
> --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype 
> --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack 
> --enable-libmfx --enable-libmodplug --enable-libmp3lame 
> --enable-libopencore_amrnb