Highlighted

Does exporting frame from timeline is a sync process?

Explorer ,
Jul 25, 2020

Copy link to clipboard

Copied

Hey, 

 

I'm bulding a PPro panel, I doing an export of a frame from a sequence using the command:

 

1. some line of code..

2. activeSequence.exportFrameJPEG(<timecode>, <path_to_export_frame>)
3. another line of code..
 
my question is - after this command is executed and the program moves to the next line of code (line 3), do I have a guarantee that the frame is aleady saved and the file is now ready for a read action?
 
I'm asking because I had some issues reading from that file right after I exported it, but when I used some delay (~400-500ms) before reading it, I noticed that I can read the file just fine.
 
thanks
TOPICS
Export, SDK

Views

110

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Does exporting frame from timeline is a sync process?

Explorer ,
Jul 25, 2020

Copy link to clipboard

Copied

Hey, 

 

I'm bulding a PPro panel, I doing an export of a frame from a sequence using the command:

 

1. some line of code..

2. activeSequence.exportFrameJPEG(<timecode>, <path_to_export_frame>)
3. another line of code..
 
my question is - after this command is executed and the program moves to the next line of code (line 3), do I have a guarantee that the frame is aleady saved and the file is now ready for a read action?
 
I'm asking because I had some issues reading from that file right after I exported it, but when I used some delay (~400-500ms) before reading it, I noticed that I can read the file just fine.
 
thanks
TOPICS
Export, SDK

Views

111

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 25, 2020 0
Explorer ,
Jul 25, 2020

Copy link to clipboard

Copied

From my observation, exportFrameJPEG() consits of two parts:
- exporting frame, sync process.
- creating (writing) file, async process.

After export you still need to check if file was created in your system.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 25, 2020 0
Adobe Employee ,
Jul 25, 2020

Copy link to clipboard

Copied

No guarantees.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 25, 2020 0
New Here ,
Oct 16, 2020

Copy link to clipboard

Copied

I can't find exportFrameJPEG on the documentation, is there a return value?

I'm trying to execute this method but nothing happens, no exception or other error as @dpt12 mentioned, the next line is executed right after. How can I resolve this issue?

The sequence is active, the time input is valid and also the file path.

Thanks.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 16, 2020 0
Adobe Employee ,
Oct 16, 2020

Copy link to clipboard

Copied

exportFrameJPEG() is part of the unsupported, undocumented, and not-recommended QE DOM.

I can neither confirm nor deny that it returns a bool, true if successful. 😉


Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 16, 2020 0
New Here ,
Oct 16, 2020

Copy link to clipboard

Copied

Thanks for the quick reply!

So is there any other best practice for exporting a frame from a sequence?

thanks again.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 16, 2020 0
Adobe Employee ,
Oct 16, 2020

Copy link to clipboard

Copied

Definitely! Export via encodeSequence(), specifying a one frame work area. 


Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 16, 2020 0
New Here ,
Oct 16, 2020

Copy link to clipboard

Copied

Thanks, I've managed to export all the frames with 

 

seq.exportAsMediaDirect(fullPathToFile, outPreset.fsName,                                                       app.encoder.ENCODE_WORKAREA)

 

(yes I prefer to work directly with PPro)
 
What do you mean by specifying a one frame work area?
According to the documentation there're no parameter for in/out or specific time
how can I export a frame in a given time, for example: `00:00:01:20'.
Thanks!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 16, 2020 0
Adobe Employee ,
Oct 16, 2020

Copy link to clipboard

Copied

>What do you mean by specifying a one frame work area?

Exactly that; if you set the work area start and end to the same frame (in your example, 00:00:01:20), and pass 'ENCODE_WORK_AREA', you'll get one frame of output.

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 16, 2020 0
New Here ,
Oct 17, 2020

Copy link to clipboard

Copied

Thanks again Bruce! (:

So I've manged to manually select a work area and it worked, but I can't find a propper way to set the work area from cod,e there's nothing online out there.

Is there a way to Get and Set the work area in Extendscript ?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 17, 2020 0
Adobe Employee ,
Oct 17, 2020

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 17, 2020 1