Re: How to extract a video clip...
Hi Paul, Your app doesn't have to install ffmpeg on the user's system - your app can run it from where it resides in your app's bundle. (Just reference it in your command line using its full path, not just 'ffmpeg'.) Phil Davis On 3/19/22 12:18 PM, Paul Dupuis via use-livecode wrote: On 3/19/2022 2:55 PM, Matthias Rebbe via use-livecode wrote: You could use ffmpeg for this. Here‘s a post where it is described how to do it https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg I have (and still am) considering ffmpeg. It was what I was alluding to with the mention of a command line utility called by shell() in my original post. To bundle the macOS (~35mb) and Windows (~77mb) adds that size (or that compressed) to my Standalone, so my app can install it on the users system (I have the sort of computer novice customers that you do NOT want to ask to download additional software of). That's not too bad a size increase as my App sits at about 200-230mb currently. Still, I asked the USE-LIST as you never know whether some one out there has made a widget that could just be part of the standalone app or someone knows of a clever technique or a smaller utility Thank you. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis 503-307-4363 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to extract a video clip...
I was looking for some LiveCode lessons on how to use mergAV and there weren’t any. :-( Are there any good examples anywhere on how to use it? Thanks, Rick > On Mar 19, 2022, at 9:37 PM, Paul Dupuis via use-livecode > wrote: > > If mergeAV was macOS and Windows, I would definitely prioritize it over > ffmpeg as a solution. I appreciate the suggestion though. I did not know > mergeAV could create clips. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to extract a video clip...
Thanks Martin, My issue with mergeAV is that it is macOS/iOS only and I need macOS and Windows, so I would have to find another solution for Windows and if I use ffmpeg for Windows, I might as well use it for macOS as well so the same command line works across platforms and I am just installing a different version of ffmpeg based upon OS. If mergeAV was macOS and Windows, I would definitely prioritize it over ffmpeg as a solution. I appreciate the suggestion though. I did not know mergeAV could create clips. -- Paul On 3/19/2022 3:50 PM, Martin Koob via use-livecode wrote: Hi Look up the mergAVVideoComposition commands etc. in the dictionary. They are for Mac and iOS. Lots of versatility to slice dice and concatenate clips in a video composition. If you are on Windows I guess the ffmpeg would work. Martin Sent from my iPhone On Mar 19, 2022, at 3:19 PM, Paul Dupuis via use-livecode wrote: On 3/19/2022 2:55 PM, Matthias Rebbe via use-livecode wrote: You could use ffmpeg for this. Here‘s a post where it is described how to do it https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg I have (and still am) considering ffmpeg. It was what I was alluding to with the mention of a command line utility called by shell() in my original post. To bundle the macOS (~35mb) and Windows (~77mb) adds that size (or that compressed) to my Standalone, so my app can install it on the users system (I have the sort of computer novice customers that you do NOT want to ask to download additional software of). That's not too bad a size increase as my App sits at about 200-230mb currently. Still, I asked the USE-LIST as you never know whether some one out there has made a widget that could just be part of the standalone app or someone knows of a clever technique or a smaller utility Thank you. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to extract a video clip...
> > > hmm what if you found how the file format stores data and perhaps > derive the data by reading the firt 1000 bytes of the files? and getting > the data you need? I'm saying that assuming that this info is available in the "header" of the file. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to extract a video clip...
Hi Look up the mergAVVideoComposition commands etc. in the dictionary. They are for Mac and iOS. Lots of versatility to slice dice and concatenate clips in a video composition. If you are on Windows I guess the ffmpeg would work. Martin Sent from my iPhone > On Mar 19, 2022, at 3:19 PM, Paul Dupuis via use-livecode > wrote: > > On 3/19/2022 2:55 PM, Matthias Rebbe via use-livecode wrote: >> You could use ffmpeg for this. >> >> Here‘s a post where it is described how to do it >> >> https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg >> >> > > I have (and still am) considering ffmpeg. It was what I was alluding to with > the mention of a command line utility called by shell() in my original post. > To bundle the macOS (~35mb) and Windows (~77mb) adds that size (or that > compressed) to my Standalone, so my app can install it on the users system (I > have the sort of computer novice customers that you do NOT want to ask to > download additional software of). That's not too bad a size increase as my > App sits at about 200-230mb currently. > > Still, I asked the USE-LIST as you never know whether some one out there has > made a widget that could just be part of the standalone app or someone knows > of a clever technique or a smaller utility > > Thank you. > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to extract a video clip...
On 3/19/2022 2:55 PM, Matthias Rebbe via use-livecode wrote: You could use ffmpeg for this. Here‘s a post where it is described how to do it https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg I have (and still am) considering ffmpeg. It was what I was alluding to with the mention of a command line utility called by shell() in my original post. To bundle the macOS (~35mb) and Windows (~77mb) adds that size (or that compressed) to my Standalone, so my app can install it on the users system (I have the sort of computer novice customers that you do NOT want to ask to download additional software of). That's not too bad a size increase as my App sits at about 200-230mb currently. Still, I asked the USE-LIST as you never know whether some one out there has made a widget that could just be part of the standalone app or someone knows of a clever technique or a smaller utility Thank you. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to extract a video clip...
You could use ffmpeg for this. Here‘s a post where it is described how to do it https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg Von meinem iPhone gesendet > Am 19.03.2022 um 19:12 schrieb Paul Dupuis via use-livecode > : > > Hivemind, > > I have, in LiveCode, a list of media files (various formats mp4, mp3, etc.) > and a list of start and end times for various clips from each of the files. A > file may (and usually does) have several clips. > > Much to my disappointment, I can find NO way in LiveCode script to export a > portion of the media from the start time to the end time. I hope with the > revised media in LC10, this may get added! > > I CAN in LiveCode open the media in a Player object and play just the clip > from startTime to endTime. > > Has anyone come up with a way, given just a file, start time, and end time, > to output a new media file with just that clip? > > Perhaps a shell command to some already installed utility or a widget? I'd > even consider installing a free command line utility IF it was relatively > small (in terms of disk size) so I could packing in my app and have my app > unpack it on startup (the first time). I need this capability on macOS and > Windows at a minimum - other platforms are desirable, but a solution must be > available for macOS and windows (need not be the SAME solution as long as the > same result is achieved). Also, any solution needs to be local and not > require a server based service. > > Thoughts? Ideas? > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
How to extract a video clip...
Hivemind, I have, in LiveCode, a list of media files (various formats mp4, mp3, etc.) and a list of start and end times for various clips from each of the files. A file may (and usually does) have several clips. Much to my disappointment, I can find NO way in LiveCode script to export a portion of the media from the start time to the end time. I hope with the revised media in LC10, this may get added! I CAN in LiveCode open the media in a Player object and play just the clip from startTime to endTime. Has anyone come up with a way, given just a file, start time, and end time, to output a new media file with just that clip? Perhaps a shell command to some already installed utility or a widget? I'd even consider installing a free command line utility IF it was relatively small (in terms of disk size) so I could packing in my app and have my app unpack it on startup (the first time). I need this capability on macOS and Windows at a minimum - other platforms are desirable, but a solution must be available for macOS and windows (need not be the SAME solution as long as the same result is achieved). Also, any solution needs to be local and not require a server based service. Thoughts? Ideas? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode