cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
lala
Level VIII

How can merge such binaries with JSL?

If I want to use JMP for something other than statistics: For example, I downloaded several video clips from the Internet, got binaries, and how to combine these binaries with JSL and save them as one video file. For example, this video is formatted as mp4 Thanks Experts!

2023-04-03_20-09-56.png

rr = "";
rs = "";
For( j = 1, j <= N Row( dt ), j++,
	u = dt[j, "url"];
	request = New HTTP Request( URL( u ), Method( "Get" ) );
	rs = request << send;
	 rr = rr || rs ; //??
);

rr << Save video( "c:\3\test.mp4", "mp4" );  //??

 

 

2 REPLIES 2
Craige_Hales
Super User

Re: How can merge such binaries with JSL?

You might want to use FFmpeg. Make a Video in JMP with FFmpeg  ABC Music Video 

 

I believe RunProgram+FFmpeg will let JSL read and write a video, frame-by-frame.

 

By the time you figure out how to make it all work, you'll probably be able to make FFmpeg join two videos without JMP. If you don't need to see the images in JSL, there is no reason to use JSL.

 

FFmpeg has an enormously complicated command line. And a legal agreement that might make it not an option for some people.

Craige
lala
Level VIII

Re: How can merge such binaries with JSL?

Thank Craige! Yes, I still need to use JSL to analyze and get the real download address of the video. But Istill can't use JSL combined with ffmpeg to directly merge different videos in memory and save them to hard disk after merging.