[CinCV TNG] Cinelerra CVE - disabled multithreading in codecs?

Andrew Randrianasulu randrianasulu at gmail.com
Mon Jul 17 02:24:38 CEST 2017


Hello again!


I just compiled and installed Cinelerra-CVE

Cinelerra-CVE 2.3.5
(C) 2006 Heroine Virtual Ltd.
(C) 2006-2017 The CinelerraCV Community
Internal ffmpeg library versions:
    libavutil      54. 31.100 / 54. 31.100
    libavcodec     56. 60.100 / 56. 60.100
    libavformat    56. 40.101 / 56. 40.101
    libswscale      3.  1.101 /  3.  1.101
    libswresample   1.  2.101 /  1.  2.101
Compiled on Пн июл 17 01:43:25 MSK 2017


and loaded very same mjpeg files I used to test Cinelerra-CV.
They can be played - but even decoding in CVE is slow, with video output device 
set to x11_xv I only get 7-8 fps. (1.4 Ghz * 4 core, but cores NOT maxed out 
during decoding)

Encoding is slow, like 3 min 39 sec transcoding mjpeg from avi source file into 
quicktime/mov mjpeg yuv420 file . Again, cores NOT maxed out.

I also tried with source mov file located on tmpfs (even if by looking at 
gkrellm file was already in fs cache and slowdown was not due to slow reading 
from hdd). same nearly 4 min.

On brighter side encoding to avi works much better, if still slow. Resulting 
file has sound! But bitrate quite sad:

mplayer /dev/shm/tmp/CVE.avi
MPlayer SVN-r37938-4.9.2 (C) 2000-2017 MPlayer Team
Codec name 'ffadpcmms' isn't unique. at line 5739

Playing /dev/shm/tmp/CVE.avi.
libavformat version 57.72.101 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [MJPG]  1280x720  24bpp  25.000 fps  6671.0 kbps (814.3 kbyte/s)
s3fb: Couldn't map S3 registers: Operation not permitted
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.96.101 (internal)
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
Clip info:
 Comments: Cinelerra-CVE 2.3.5
 Software: Lavf56.40.101
Load subtitles in /dev/shm/tmp/
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 1 ch, floatle, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [alsa] 48000Hz 1ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 1280x720 => 1280x720 Planar YV12
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x960 Planar YV12
_xgeWireToEvent: Unknown extension 147, this should never happen.0
_xgeWireToEvent: Unknown extension 147, this should never happen.


Exiting... (Quit)


-----

on the mov file, it has much bigger/better bitrate:


player /dev/shm/tmp/CVE.mov
MPlayer SVN-r37938-4.9.2 (C) 2000-2017 MPlayer Team
Codec name 'ffadpcmms' isn't unique. at line 5739

Playing /dev/shm/tmp/CVE.mov.
libavformat version 57.72.101 (internal)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5750ec80]Protocol name not provided, cannot 
determine if input is local or a network protocol, buffers and access patterns 
cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (mjpeg), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang eng
VIDEO:  [jpeg]  1280x720  24bpp  25.000 fps  22690.2 kbps (2769.8 kbyte/s)
s3fb: Couldn't map S3 registers: Operation not permitted
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.96.101 (internal)
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
Clip info:
 major_brand: qt
 minor_version: 512
 compatible_brands: qt
 creation_time: 2017-07-16T23:54:43.000000Z
 encoder: Lavf56.40.101
 comment: Cinelerra-CVE 2.3.5
Load subtitles in /dev/shm/tmp/
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 128.2 kbit/4.17% (ratio: 16030->384000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x960 Planar YV12
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x960 Planar YV12
_xgeWireToEvent: Unknown extension 147, this should never happen.0
_xgeWireToEvent: Unknown extension 147, this should never happen.


Exiting... (Quit)
----------------------------------


so, it works, but quite slowly atm. I double-checked preference setting about 
forcing uniprocessor use was NOT enabled.

Also, why CVE still fiddles with jack and oss, even if I have ALSA/default as my 
sound output method?

---full output to terminal, so far------------

guest at slax:~/New_hdd$ LIBGL_DRI3_DISABLE=1 /opt/cinelerra-einar/bin/cinelerracve
Cinelerra-CVE 2.3.5
(C) 2006 Heroine Virtual Ltd.
(C) 2006-2017 The CinelerraCV Community
Internal ffmpeg library versions:
    libavutil      54. 31.100 / 54. 31.100
    libavcodec     56. 60.100 / 56. 60.100
    libavformat    56. 40.101 / 56. 40.101
    libswscale      3.  1.101 /  3.  1.101
    libswresample   1.  2.101 /  1.  2.101
Compiled on Пн июл 17 01:43:25 MSK 2017

Cinelerra-CVE is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions. There is absolutely no warranty for Cinelerra-CVE.
ALSA lib pcm.c:7046:(snd_pcm_slave_conf) missing field rate
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
[swscaler @ 0xe2f014c0] Warning: data is not aligned! This can lead to a 
speedloss
[mjpeg @ 0xe042e360] Changeing bps to 8
ALSA lib pcm.c:7046:(snd_pcm_slave_conf) missing field rate
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:7046:(snd_pcm_slave_conf) missing field rate
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:7046:(snd_pcm_slave_conf) missing field rate
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:7046:(snd_pcm_slave_conf) missing field rate
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:7046:(snd_pcm_slave_conf) missing field rate
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:7046:(snd_pcm_slave_conf) missing field rate
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:7046:(snd_pcm_slave_conf) missing field rate
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:7046:(snd_pcm_slave_conf) missing field rate
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:7046:(snd_pcm_slave_conf) missing field rate
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:7046:(snd_pcm_slave_conf) missing field rate
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave





More information about the Cinelerra mailing list