OpenTimelineIO Project conversion failed

kdenlive 23.08.3
OS Kubuntu 22.04.3

OpenTimelineIO Project conversion failed with following warning

Traceback (most recent call last):
File “/usr/lib/python3.10/site-packages/pkg_resources/init.py”, line 631, in _build_master
ws.require(requires)
File “/usr/lib/python3.10/site-packages/pkg_resources/init.py”, line 968, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/lib/python3.10/site-packages/pkg_resources/init.py”, line 829, in resolve
dist = self._resolve_dist(
File “/usr/lib/python3.10/site-packages/pkg_resources/init.py”, line 875, in _resolve_dist
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pyaaf2 1.7.1 (/app/lib/python3.10/site-packages), Requirement.parse(‘pyaaf2<1.7,>=1.4’), {‘OpenTimelineIO’})

During handling of the above exception, another exception occurred:


File “/usr/lib/python3.10/site-packages/pkg_resources/init.py”, line 829, in resolve
dist = self._resolve_dist(
File “/usr/lib/python3.10/site-packages/pkg_resources/init.py”, line 870, in _resolve_dist
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘pyaaf2<1.7,>=1.4’ distribution was not found and is required by OpenTimelineIO

Please help. Thanks

Regards

I strongly suggest to open a bug report. OTIO has not been working for some time for various reasons, and new bug reports help showing that the community wants to use it.

Hi,

Thanks for your advice. I have submitted a bug report.

I have been running OpenShot on Ubuntu Linux for prolonged time without problem. Several weeks ago I tried Kdenlive running on Ubuntu 22.04 desktop. The first problem encountered by me was the text fonts of Kdenlive screen being too small, almost unable to read. Ubuntu 22.04 is running Gnome desktop. I have no way to increase the font size.

Then I installed Kdenlive on Kubuntu 22.04 desktop running as VM of Oracle VirtualBox. The font problem was solved but I encountered another problem to export the video as .mp4 format. I need to upload the video to YouTube. I have no idea whether YouTube accepts .aaf format?

That is my present situation. Thanks

Regards

“Then I installed Kdenlive on Kubuntu 22.04 desktop running as VM of Oracle VirtualBox. The font problem was solved but I encountered another problem to export the video as .mp4 format. I need to upload the video to YouTube. I have no idea whether YouTube accepts .aaf format?”

Add the ppa for Avidemux to do it graphically or fire up Konsole and do with with ffmpeg on the command line and convert/copy the video in the .aaf to .mp4 container. A simple copy if applicable gets done in seconds.

Install the avidemux-qt package to get the latest 2.8.1 version.

Hi,

Thanks for your advice.

OS - Kubuntu 22.04 desktop

I followed below link to install Avidemux

Steps to Install Avidemux on Ubuntu 22.04 LTS Linux

Installation went throught without problem but I couldn’t start avidemux on Terminal
$ avidemux &

[1] 4824
$ avidemux: command not found

I’m running ffmpeg here sometimes. Is it just running on Terminal;

$ ffmpeg input.aaf output.mp4?

I couldn’t find it on Internet?

There are several online FREE websites converting aaf to mp4

Thanks

Regards

The avidemux-qt is the graphical program you should get icon to start but if wanting to fire it up from terminal avidemux3_qt5 is the command to use.

root@9600k:~# dpkg -L avidemux-qt
/.
/usr
/usr/bin
/usr/bin/avidemux3_qt5
/usr/share
/usr/share/applications
/usr/share/applications/org.avidemux.Avidemux.desktop
/usr/share/doc
/usr/share/doc/avidemux-qt
/usr/share/doc/avidemux-qt/changelog.Debian.gz
/usr/share/doc/avidemux-qt/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/metainfo
/usr/share/metainfo/org.avidemux.Avidemux.appdata.xml
/usr/share/man/man1/avidemux3_qt5.1.gz

In the terminal when typing in the commands use the TAB key for bash-completion. Simply type in avide TAB and it will complete the command for you. If really wanting to do it on the command line then the avidemux-cli is the package needed to be installed.

root@9600k:~# apt-cache search avidemux
avidemux-cli - Free video editor - command line version
avidemux-common - Free video editor - Common files
avidemux-jobs-qt - Free video editor - Jobs (Qt 5)
avidemux-plugins-cli - Free video editor - CLI plugins
avidemux-plugins-common - Free video editor - common plugins for all UIs
avidemux-plugins-qt - Free video editor - Qt 5 plugins
avidemux-plugins-settings - Free video editor - settings for the x264 and x265 plugins
avidemux-qt - Free video editor - QT 5 version
avidemux-qt-data - Free video editor - QT 5 version (internationalization files)
libavidemux-cli-dev - Free video editor (devel)
libavidemux-dev - Free video editor - development files
libavidemux-qt-dev - Free video editor (devel)
libavidemux6 - Free video editor - shared libraries
libavidemux6-cli - Free video editor - shared libraries
libavidemux6-qt - Free video editor - shared libraries

For the ffmpeg use something like this.

ffmpeg -i input.aaf -vcodec copy -acodec copy -o output.mp4

That simply copies the existing video and audio from one container to the other. If wanted you can convert to specific codecs like h264, 264, mpeg or the various sound ones used as options for it. An example of that.

ffmpeg -i input.aaf -vcodec libx265 -b:v 1000k -acodec aac -b:a 128k -o output.mp4

That tells the ffmpeg program to use the h265 codec for the conversion at a bitrate of 1000k while converting the audio to 128k aac audio.

Edit: and now I check my file to convert videos to the .mkv format it appears the -o is not needed. I did those examples above from what I thought was correct memory. My script if you every need to do many at the same time you can do it with the one command to execute the script.

zeus@9600k:~$ cat bin/to_mkv.sh 
#!/bin/bash

# Get directory script is running in
DIR="$(dirname "$PWD")/$(basename "$PWD")"

# Change to directory
cd $DIR

# Make new directory if not there for processed files so always working on copy.

if [ ! -d "$DIR/newfiles" ]; then
	mkdir "$DIR/newfiles"
fi


# Now process all .avi, .mp4, .m4v files under that directory
# The grep part will catch  .avi, .mp4, .m4v and sort them in order for processing.
for i in $(find "$PWD" -type f | grep '.avi\|.mp4\|.m4v' | sort -n ); do

	NAME=$(basename "$i")
	NAME2="$(echo "$NAME" | cut -d "." -f1)"
	#echo $NAME "to be converted to .mkv"
	#echo $EXTENSION
	mkvpropedit "$i" -d title
	Aspect=$(mediainfo $i | grep "Display aspect ratio" | cut -d ":" -f 2-6 | tr -d " ")
	#echo $Aspect
	# Use ffmpeg to create mkv with correct aspect ratio
	ffmpeg -i "$i" -vcodec copy -acodec copy -aspect $Aspect  "newfiles/$NAME2.mkv"
#	mkvpropedit "$i" -d artist
#   mkvpropedit -v movie.mkv -v --edit track:2 --set track-number=3 --edit track:3 --set track-number=2 # set track 3 to first audio delete removes track
#   https://www.bunkus.org/videotools/mkvtoolnix/doc/mkvpropedit.html

You need the mkvtoonix and mediainfo programs installed if wanting to use those parts of the file if not simply # at the start to comment them out to disable that execution. Oh and now I think the .avi processing is broken with recent versions of ffmpeg, this is why I use Avidemux it just converts those with complaining and throwing error.

Edit2: You would of course modify the files searched for to suit your needs.

$ dpkg -L avidemux-qt

/.
/usr
/usr/bin
/usr/bin/avidemux3_qt5
/usr/share
/usr/share/applications
/usr/share/applications/org.avidemux.Avidemux.desktop
/usr/share/doc
/usr/share/doc/avidemux-qt
/usr/share/doc/avidemux-qt/changelog.Debian.gz
/usr/share/doc/avidemux-qt/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/metainfo
/usr/share/metainfo/org.avidemux.Avidemux.appdata.xml
/usr/share/man/man1/avidemux3_qt5.1.gz

$ apt-cache search avidemux

avidemux-cli - Free video editor - command line version
avidemux-common - Free video editor - Common files
avidemux-jobs-qt - Free video editor - Jobs (Qt 5)
avidemux-plugins-cli - Free video editor - CLI plugins
avidemux-plugins-common - Free video editor - common plugins for all UIs
avidemux-plugins-qt - Free video editor - Qt 5 plugins
avidemux-plugins-settings - Free video editor - settings for the x264 and x265 plugins
avidemux-qt - Free video editor - QT 5 version
avidemux-qt-data - Free video editor - QT 5 version (internationalization files)
libavidemux-cli-dev - Free video editor (devel)
libavidemux-dev - Free video editor - development files
libavidemux-qt-dev - Free video editor (devel)
libavidemux6 - Free video editor - shared libraries
libavidemux6-cli - Free video editor - shared libraries
libavidemux6-qt - Free video editor - shared libraries

On Terminal run;

$ /usr/bin/avidemux3_qt5

starts Avidemux

Please refers to the screenshot attached.

Is it avidemux3_qt5 the latest version of Avidemux ?

Besides, I’ll test your command line and script later after having created a picture slide-show file.

Thanks

Regards

To find the version you run look in the Help menu About item it will tell you the version you run or since you do not seem scared of command line.

zeus@9600k:~$ apt-cache policy avidemux-qt
avidemux-qt:
  Installed: 1:2.8.1-1~xtradeb2
  Candidate: 1:2.8.1-1~xtradeb2
  Version table:
 *** 1:2.8.1-1~xtradeb2 500
        500 https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status

The 2.8.1 for it is the newest I have seen anywhere, the naming of these things is some of the time strange for the binary name that gets executed. It can differ from what the package that installs it is named.

$ apt-cache policy avidemux-qt

avidemux-qt:
Installed: 1:2.8.1-1~xtradeb2
Candidate: 1:2.8.1-1~xtradeb2
Version table:
*** 1:2.8.1-1~xtradeb2 500
500 Index of /xtradeb/apps/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status

Thanks

Regards

You are welcome, good luck with it.

Hi,

OS - Kubuntu 22.04 desktop

kdenlive seems out off my control. After attempting to insert clips with failure, now kdenlive starts a dark screen.

Please advise how to fix the problem? Thanks

Regards