Importing/loading movie and soundfiles
Importing/loading movie and soundfiles
Hello,
I want to use a george-script to import an .avi moviefile into a layer.
I also want to import an audiolayer from a wav file using george.
how can I do this?
I want to use a george-script to import an .avi moviefile into a layer.
I also want to import an audiolayer from a wav file using george.
how can I do this?
Re: Importing/loading movie and soundfiles
Hello kaspar128,
Here is the command to load a video file into a new layer :
_ tv_LoadSequence "file" [start number] [field] ["STRETCH"] ["TIMESTRETCH"]
The command to add a sound track into your clip:
_ tv_SoundClipNew "soundfilename"
into your storyboard:
_ tv_SoundProjectNew "soundfilename"
Here is the command to load a video file into a new layer :
_ tv_LoadSequence "file" [start number] [field] ["STRETCH"] ["TIMESTRETCH"]
The command to add a sound track into your clip:
_ tv_SoundClipNew "soundfilename"
into your storyboard:
_ tv_SoundProjectNew "soundfilename"
TVPaint Team
Re: Importing/loading movie and soundfiles
Thanks for the reply,
I tried the ones mentioned above, but none of them seem to do anything.
Could it be the format?
the moviefile is an avi (mpeg4)
and the soundfile is a .wav-file (16-bit little endian)
or am I missing some more commands?
I tried the ones mentioned above, but none of them seem to do anything.
Could it be the format?
the moviefile is an avi (mpeg4)
and the soundfile is a .wav-file (16-bit little endian)
or am I missing some more commands?
Re: Importing/loading movie and soundfiles
Can you load them via the File menu ?
If yes it's not a file format problem.
If yes it's not a file format problem.
Quicktime is DEAD. Get over it and move on !
Re: Importing/loading movie and soundfiles
It worked!!
I had to replace the backslashes with unix-style slashes in the filepathname...
C:/path/to/file.avi
instead of:
C:\path\to\file.avi
Now I run into another problem:
(edit:)
The pathname were the file is located is very long, and there are spaces in the pathname....
George won't import the file now..
Is there a workaround?
I'm working on windows 7 by the way.
I had to replace the backslashes with unix-style slashes in the filepathname...
C:/path/to/file.avi
instead of:
C:\path\to\file.avi
Now I run into another problem:
(edit:)
The pathname were the file is located is very long, and there are spaces in the pathname....
George won't import the file now..
Is there a workaround?
I'm working on windows 7 by the way.
Re: Importing/loading movie and soundfiles
To manage path with spaces, you must encapsulate the path between quotes like this:
tv_LoadSequence "c:/path with spaces/to/file with space.avi"
tv_LoadSequence "c:/path with spaces/to/file with space.avi"
TVPaint Team
Re: Importing/loading movie and soundfiles
Here is what I tried so far...
I broke the string in parts to make it readable:
When the path doesn't contain spaces(as some folders do), the moviefile gets imported.
Isn't there some sort of wildcard/ escape-character I can use to mark the use of spaces?
Anyway, thanks for all the support so far!!
It would be really cool if this works out because it will save me a LOT of time!
I broke the string in parts to make it readable:
Code: Select all
longpath = "Z:/very/Long_path_to/my/Workfolder"
spacedfolder = "/Folder With spaces"
tv_LoadSequence longpath""spacedfolder"/MyMoviefile.avi" "STRETCH"
Isn't there some sort of wildcard/ escape-character I can use to mark the use of spaces?
Anyway, thanks for all the support so far!!
It would be really cool if this works out because it will save me a LOT of time!
Re: Importing/loading movie and soundfiles
Try
'"/folder with spaces"'
'"/folder with spaces"'
Re: Importing/loading movie and soundfiles
Alas, I tried the above but it still does nothing..
Is there some console or debug-output somewhere in TVP, to check where it goes wrong?
Is there some console or debug-output somewhere in TVP, to check where it goes wrong?
Re: Importing/loading movie and soundfiles
This should work:
Create a 'full' variable which contains all the pathfile.
And in the tv_LoadSequence, you can encapsulate the 'full' variable before and after with '"' (quote double-quote quote)
Code: Select all
longpath = "Z:/very/Long path with spaces to/my/Workfolder"
spacedfolder = "/Folder With spaces"
full = longpath""spacedfolder"/My Movie file with spaces.avi"
tv_LoadSequence '"'full'"' "STRETCH"
tv_warn result
And in the tv_LoadSequence, you can encapsulate the 'full' variable before and after with '"' (quote double-quote quote)
TVPaint Team
Re: Importing/loading movie and soundfiles
IT WORKED!!!
I must hold my enthausiasm, but this is really cool!!
This really opens perspectives to save a lot of time.
Being able to automate lots of import/export/saving makes people happy!
Thanks for the great support Mike, and the rest of course!
I must hold my enthausiasm, but this is really cool!!
This really opens perspectives to save a lot of time.
Being able to automate lots of import/export/saving makes people happy!
Thanks for the great support Mike, and the rest of course!
Re: Importing/loading movie and soundfiles
TVPaint Team