-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does python-camtasia work with .tscproj files? #9
Comments
It works on the directory containing the tscproj. Try that and let me know.
I don't think we've ever tried it on windows at all.
…On Tue, Sep 24, 2019, 04:22 Scott Specker ***@***.***> wrote:
I'm trying to use python-camtasia but keep getting an error in Windows:
FileNotFoundError: [Errno 2] No such file or directory:
'C:\\temp\\project.tscproj\\project.tscproj'
The file "C:\temp\project.tscproj" exists and was the file I specified in
my code. But it still gives me the same error.
Since the examples show:
proj = camtasia.load_project('path/to/project.cmproj')
I thought maybe .tscproj files weren't supported?
Thanks,
Scott
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AAATK6HEZDJPZKD2BSLVCZDQLGBXZA5CNFSM4IZZS3JKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HNGGYRA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAATK6GA3BOINGTIT2527F3QLGBXZANCNFSM4IZZS3JA>
.
|
That was the ticket. After pointing camtasia.load_project() to the folder containing my project AND renaming my project to "project.tscproj", I was able to get the library to work. It looks like it works for the Windows version of Camtasia. So far I've only read the media_bin, but I'll try some other functions later today. For Windows, it would be nice to specify the full .tscproj path, since this allows names other than "project.tscproj". While I tried renaming my file with that - as seen in my original post - that's not what I normally do. |
Ah, I see. I hadn't anticipated that the project file would ever be named
something other than "project.tscproj". Underwhat conditions does this
happen? I'll admit that my exposure camtasia is actually pretty narrow, so
I'm probably missing some common use cases.
I'll see about updating the API to support this. In order to keep backwards
compatibility for the short term, how about if you could specify the
project file as well as the project directory, e.g. `def
load_project(project_dir, project_file='project.tscproj')`?
…On Tue, Sep 24, 2019 at 12:30 PM Scott Specker ***@***.***> wrote:
That was the ticket. After pointing camtasia.load_project() to the folder
containing my project AND renaming my project to "project.tscproj", I was
able to get the library to work.
It looks like it works for the Windows version of Camtasia. So far I've
only read the media_bin, but I'll try some other functions later today.
For Windows, it would be nice to specify the full .tscproj path, since
this allows names other than "project.tscproj". While I tried renaming my
file with that - as seen in my original post - that's not what I normally
do.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AAATK6HZLOTDLL4SPSOR27TQLH253A5CNFSM4IZZS3JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7OBDEA#issuecomment-534516112>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAATK6FNW22YXC7LEURVMNDQLH253ANCNFSM4IZZS3JA>
.
|
On second thought, it's probably better that I just bite the bullet and update the API to use tscproj-files as the basis for projects rather than cmproj directories. Any thoughts you've got on this would be appreciated. |
From a Windows perspective, either way would work. I'll have to check out the Mac version. Do they specify a .camproj -- and have the project.tscproj file in a folder bundle that's not easily accessible? |
On mac there's a cmproj directory containing a tscproj file. In my experience, the tscproj is always called "project.tscproj", which is why the package is currently coded as it is. But the code in the package doesn't really rely on that file name in any real way, and it should be straightforward to let users specify whatever file name they want. |
On windows does Camtasia no use a folder as the "top" of its project structure? If not, where does it store the media associated with the project? If so, what name does it give its tscproj file? I'm trying to get a grip on what differences there are between the platforms. Also, what version of Camtasia are you using? |
I'm using the latest version of Camtasia: 2019.0.7. Now that the features appear to be the same between the Mac and Windows I could probably switch over, although my associate is Windows only. The .tscproj file keeps track of everything in the project. As far as I understand, there aren't any restrictions where anything else is placed (e.g. media files). When you produce an output, it puts all the files under the directory you specify for output. In other words, there isn't a specific directory structure for Camtasia projects in Windows. |
Here's a Mac/Windows comparison for Camtasia that TechSmith pointed me to. It doesn't answer many questions, but does provide a bit of insight between them. |
Ok, this is something I'll have to sort out. On mac, the camtasia notion of a project seems to revolve around a directory, i.e. you open a project by selecting a .cmproj directory, not a .tscproj file. This is why I built the API the way I did. |
I'm not sure if I ever closed the loop with you on this one. I can get to open a project on Windows if I name the project "project.tscproj". For example, I can open the project file C:\Work\My_Camtasia_Project\project.tscproj using:
|
Ok, I'm glad you can make it work. I haven't had much time to work on this lately, and I don't know if I'll have any in the near future.
Even if there isn't a specific internal structure, is there still at least the notion of a top-level directory that contains everything? I'm still not sure what the API should treat at the "project" from a file-system perspective. |
I'm trying to use python-camtasia but keep getting an error in Windows:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\temp\\project.tscproj\\project.tscproj'
The file "C:\temp\project.tscproj" exists and was the file I specified in my code. But it still gives me the same error.
Since the examples show:
proj = camtasia.load_project('path/to/project.cmproj')
I thought maybe .tscproj files weren't supported?
Thanks,
Scott
The text was updated successfully, but these errors were encountered: