投稿時間:2022-11-10 12:21:45 RSSフィード2022-11-10 12:00 分まとめ(23件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] おかずは「玉子焼き」だけの弁当、発売 ローソン100の”だけ弁当”シリーズ累計277万食に https://www.itmedia.co.jp/business/articles/2211/10/news052.html itmedia 2022-11-10 11:30:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] TSUTAYA BOOKSTORE、4年ぶりに恵比寿ガーデンプレイスに復活 https://www.itmedia.co.jp/business/articles/2211/10/news101.html itmedia 2022-11-10 11:26:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 「10年後の理想は会社役員」5割 高卒の新社会人に聞いた https://www.itmedia.co.jp/business/articles/2211/10/news094.html itmedia 2022-11-10 11:17:00
IT ITmedia 総合記事一覧 [ITmedia News] 楽天ウォレット、仮想通貨の証拠金取引所サービスを11月開始 9銘柄取り扱い国内最多 https://www.itmedia.co.jp/news/articles/2211/10/news099.html itmedia 2022-11-10 11:02:00
Linux Ubuntuタグが付けられた新着投稿 - Qiita Install Nginx on Oracle Cloud Compute Instance https://qiita.com/liu-wei/items/5474a328118894dfc043 infrastruture 2022-11-10 11:08:44
AWS AWSタグが付けられた新着投稿 - Qiita CloudFrontのキャッシュ削除をCLIでやる手順 https://qiita.com/mo12ino/items/7760faf82d1e03e4811a listdistributions 2022-11-10 11:43:26
AWS AWSタグが付けられた新着投稿 - Qiita golangとAWS Cognitoで認証機能を実装してみた https://qiita.com/teach_19/items/d99ed681fdc3d07c5fcd awssdk 2022-11-10 11:10:07
AWS AWSタグが付けられた新着投稿 - Qiita AWS CLI の使い方メモ(windows) https://qiita.com/kosh1/items/6c318eb4c8d073b82b9b awscli 2022-11-10 11:00:23
golang Goタグが付けられた新着投稿 - Qiita golangとAWS Cognitoで認証機能を実装してみた https://qiita.com/teach_19/items/d99ed681fdc3d07c5fcd awssdk 2022-11-10 11:10:07
海外TECH DEV Community How to build a video watermarking app using Python https://dev.to/kushal_70/how-to-build-an-automated-video-watermarking-app-using-python-5bfd How to build a video watermarking app using PythonWatermarking is a common way to label digital content It enables brands and creators add branding to their content Especially in this hyper connected era where videos spread in a blink of an eye it s important that brands can easily add branding to their work Of course you can use the available video editors or web apps They sure are simple and easy to watermark a single or a few videos But what if you need to watermark thousands of videos Even better what if you can build an app that enables users to watermark videos That s what this tutorial aims to teach to build a program using Python to automatically watermark videos After all Python developers love to automate don t they This tutorial has two parts watermarking a single videowatermarking multiple videos using a list The Shotstack API and SDKShotstack provides a cloud based video editing API Rendering videos is resource intensive and it can take hours to edit and generate videos at scale Shotstack s rendering infrastructure makes it possible to build and scale media applications in days not months We will also be using the Shotstack video editing Python SDK for thistutorial The SDK requires Python Install and configure the Shotstack SDKIf you want to skip ahead you can find the source code for this guide in our GitHub repository Otherwise follow the steps below to install dependencies and set up your API key First of all install the Shotstack Python SDK from the command line pip install shotstack sdkYou may need to use pip depending on how your environment is configured Then set your API key as an environment variable Linux Mac export SHOTSTACK KEY your key hereor if using Windows make sure to add the SHOTSTACK KEY to the path set SHOTSTACK KEY your key hereReplace your key here with your provided sandbox API key which is free for testing and development Create a Python script to watermark a videoCreate a file for the script in your favorite IDE or text editor You can call it whatever you like but for this tutorial we created a file called watermark video py Open the file and begin editing Import the required modulesLet s import the required modules for the project We need to import modules from the Shotstack SDK to edit and renderour video plus a couple of built in modules import shotstack sdk as shotstackimport osimport sysfrom shotstack sdk model clip import Clipfrom shotstack sdk api import edit apifrom shotstack sdk model track import Trackfrom shotstack sdk model timeline import Timelinefrom shotstack sdk model output import Outputfrom shotstack sdk model edit import Editfrom shotstack sdk model video asset import VideoAsset Configuring the API clientNext add the following which sets up the API client with the API URL and key this should use the API key added toyour environment variables If you want you can hard code the API key here but we recommend using environmentvariables host configuration shotstack Configuration host host configuration api key DeveloperKey os getenv SHOTSTACK KEY with shotstack ApiClient configuration as api client api instance edit api EditApi api client Understanding the timeline architectureThe Shotstack API follows many of the principles of desktop editing software such as the use of a timeline tracks andclips A timeline is like a container for multiple clips that includesdifferent assets which plays over time Tracks on the timeline allow us to layer clips on top of each other Setting up the video clipThe video needs to be hosted online and accessible via a public or signed URL We will use the following second drone footage as our video asset You can replace it with your own video URL from any online source Add the following code to create a VideoAsset using the video URL video asset VideoAsset src Next create a Clip A clip is container for different types of assets including the VideoAsset We can configure different propertieslike length duration to play for and start time when on the timeline the clip will play from For our clip we usethe video asset we just created a start of seconds and a length of seconds video clip Clip asset video asset start length Setting up the image clipNext we need to add an image which will be the watermark on the video We will be using the attached logo You can replace it with your own image url Similar to setting up the VideoAsset let s add the ImageAsset by adding the following code image asset ImageAsset src Let s configure the clip properties including the ImageAsset We will configure length start time position positionof the ImageAsset in the viewport scale size of the asset relative to viewport size and opacity transparency ofthe asset Visit the clip documentation to learn more aboutclip properties image clip Clip asset image asset start length scale position bottomRight opacity Adding the video clip to the timelineNext let s create a timeline to add our clips Before that we need to create two seperate tracks We shouldn t add two clips on the same track in the same timeframe as it will not know which asset to show on top This causes asset to flicker Let s add the image clip on track and the video clip on track by adding the following script track Track clips image clip track Track clips video clip Next let s add both tracks to our timeline Make sure they are ordered sequentially based on how they are layered If the track consisting of the image clip is second on the list then it won t show on the video as it will stay behind the video clip timeline Timeline background tracks track track Configuring the final edit and outputNext we need to configure our output We set the output format to mp Let s set the video resolution to hd which generates a video of px x px fps You can also configure other properties like repeat for auto repeat used in gifs thumbnail to generate a thumbnail from a specific point on the timeline destinations to set export destinations and more output Output format mp resolution hd edit Edit timeline timeline output output Sending the edit for rendering via the APIFinally we send the edit for processing and rendering using the API The Shotstack SDK takes care of converting our objects to JSON adding our key to the request header and POSTing everything to the API try api response api instance post render edit message api response response message id api response response id print f message n print f gt gt render id id except Exception as e print f Unable to resolve API call e Final scriptThe final script is below with a few additional checks and balances import shotstack sdk as shotstackimport osimport sysfrom shotstack sdk api import edit apifrom shotstack sdk model clip import Clipfrom shotstack sdk model track import Trackfrom shotstack sdk model timeline import Timelinefrom shotstack sdk model output import Outputfrom shotstack sdk model edit import Editfrom shotstack sdk model video asset import VideoAssetfrom shotstack sdk model image asset import ImageAssetif name main host configuration shotstack Configuration host host configuration api key DeveloperKey os getenv SHOTSTACK KEY with shotstack ApiClient configuration as api client api instance edit api EditApi api client video asset VideoAsset src video clip Clip asset video asset start length image asset ImageAsset src image clip Clip asset image asset start length scale position bottomRight opacity track Track clips image clip track Track clips video clip timeline Timeline background tracks track track output Output format mp resolution hd edit Edit timeline timeline output output try api response api instance post render edit message api response response message id api response response id print f message n print f gt gt render id id except Exception as e print f Unable to resolve API call e Running the scriptUse the python command to run the script python watermark video pyYou may need to use python instead of python depending on your configuration If the render request is successful the API will return the render id which we can use to retrieve the status of therender Checking the render status and output URLTo check the status we need another script that will call the API to render status endpoint Create a file calledstatus py and paste the following code import sysimport osimport shotstack sdk as shotstackfrom shotstack sdk api import edit apiif name main host configuration shotstack Configuration host host configuration api key DeveloperKey os getenv SHOTSTACK KEY with shotstack ApiClient configuration as api client api instance edit api EditApi api client api response api instance get render sys argv data False merged True status api response response status print f Status status if status done url api response response url print f gt gt Asset URL url Then run the script using command line python status py renderId Replace renderId with the ID returned from the watermark video py script Re run the status py script every seconds until the status is done and a URL is returned If something goes wrong the status will show as failed If everything ran successfully you should now have the URL of the final video just like the one at the start of thetutorial Watermarked video exampleWe can see the watermarked video below Accessing your rendered videos using the dashboardYou can view your rendered videos inside the Shotstack dashboard under Renders Videos are deleted after hours and need to be transferred to your own storage provider All files are however copied to Shotstack hosting and you can configure other destinations including S and Mux Watermarking multiple videosAs you can see how easy it is to watermark a video using the Shotstack Python SDK However the big advantage of using the Shotstack API is how easily we can scale without having to build and manage the rendering infrastructure To demonstrate the scalability we will watermark the following list of videos with the same logo we used above You can also use other data resources like the CSV and other apps integrating with their APIs video links The following script watermarks the list of videos If you want to test it create a new file calledwatermark videos py paste the script and save it import shotstack sdk as shotstackimport osimport sysfrom shotstack sdk api import edit apifrom shotstack sdk model clip import Clipfrom shotstack sdk model track import Trackfrom shotstack sdk model timeline import Timelinefrom shotstack sdk model output import Outputfrom shotstack sdk model edit import Editfrom shotstack sdk model video asset import VideoAssetfrom shotstack sdk model image asset import ImageAssetif name main host configuration shotstack Configuration host host configuration api key DeveloperKey os getenv SHOTSTACK KEY video links with shotstack ApiClient configuration as api client for link in video links api instance edit api EditApi api client video asset VideoAsset src link video clip Clip asset video asset start length image asset ImageAsset src image clip Clip asset image asset start length scale position bottomRight opacity track Track clips image clip track Track clips video clip timeline Timeline background tracks track track output Output format mp resolution hd edit Edit timeline timeline output output try api response api instance post render edit message api response response message id api response response id print f message n print f gt gt render id id except Exception as e print f Unable to resolve API call e Then use the python command to run the script python watermark videos pyTo check the render status run the status py file we created in the first part and run it using the command line python status py renderId Replace the renderId from the IDs returned from the watermark videos py Final thoughtsThis tutorial should have given you a basic understanding of how to programmatically edit and generate videos using Python and the Shotstack video editing API As a next step you could learn how to add other assets like text and images to build a simple media application This is just an introductory tutorial to programmatically working with media but we can do so much more We can use this for many use cases likevideo automation video personalization developing media applications and many more You can check out our other Python tutorials and YouTube videos to learn programmatic media and building video apps faster 2022-11-10 02:22:37
海外TECH DEV Community Join us to build the future of E-Commerce through automation https://dev.to/shotstack/join-us-to-build-the-future-of-e-commerce-through-automation-3d93 Join us to build the future of E Commerce through automationJoin us this November to build a future where e commerce meets Media Automation Over the past decade we ve witnessed a rapid digital transformation in online commerce Content like user generated content testimonials product images data driven creatives etc in the form of digital media has been a crucial part of marketing for sellers The demand for product content is only going to grow as more users adopt online shopping But what are we doing to solve this demand Do the brands have the right tools How can we use the latest technologies like AI and automation to efficiently solve this problem That is exactly what this hackathon aims to solve to develop creative applications that can efficiently generate marketing content for e commerce sellers through automation With Shotstack s cloud based video editing API developers can build media applications faster than ever Hackathon detailsWhen th November Where Virtual You can be literally anywhere Prize Gift worth USD for the winning project What s in it for you Networking with other innovative developers interested to build apps for e commerceOpportunity to receive free Shotstack API rendering credits valued up to An opportunity to reshape the future of e commerce through automation What can you build for this hackathon You can build anything that uses the Shotstack API to generate media and helps the e commerce sellers Some project ideas could be An automated product video generator plugin for an e commerce platform like Shopify Amazon Wix WooCommerce Ebay BigCommerce Magento Etsy etc Web apps that automatically generate product content tailored for e commerce E commerce tailored video and graphic design marketplace A personalized video bot for e commerce platforms that automatically generates personalized videos when customers buy Data driven automated media generator for re marketing based on customer behavior Testimonial banner generator that automatically generates content from product reviews for social media marketingand much more To see it in action try our automated product promo video generator from code How to participate Submit this hackathon entry formSign up for a free Shotstack developer account to get your API keyUse Shotstack API to build your submissionSubmit your project before November p m PT Learn more details about the hackathon on our website Join the Shotstack hackathon community forum to join the discussion or ask any other questions We can t wait to see what you build 2022-11-10 02:10:10
海外科学 BBC News - Science & Environment COP27: Sharp rise in fossil fuel industry delegates at climate summit https://www.bbc.co.uk/news/science-environment-63571610?at_medium=RSS&at_campaign=KARANGA climate 2022-11-10 02:00:44
金融 ニッセイ基礎研究所 貸出・マネタリー統計(22年10月)~銀行貸出の伸びが加速、久々に預金の伸びを上回る https://www.nli-research.co.jp/topics_detail1/id=72925?site=nli Mの内訳では、最大の項目である預金通貨普通預金など・前月rarr当月の伸び率が大きく低下したほか、現金通貨前月rarr当月やCD譲渡性預金・前月rarr当月の伸びも鈍化し、全体の伸び率低下に繋がった。 2022-11-10 11:54:25
海外ニュース Japan Times latest articles Munetaka Murakami homers as Japan routs Australia in WBC warmup https://www.japantimes.co.jp/sports/2022/11/10/baseball/murakami-japan-australia/ tokyo 2022-11-10 11:06:49
ニュース BBC News - Home US sees 'real problems' for Russia in Ukraine https://www.bbc.co.uk/news/world-europe-63578919?at_medium=RSS&at_campaign=KARANGA capital 2022-11-10 02:19:55
ニュース BBC News - Home Sharp rise in cancer care delays 'risking lives' https://www.bbc.co.uk/news/health-63573718?at_medium=RSS&at_campaign=KARANGA analysis 2022-11-10 02:20:58
ニュース BBC News - Home Tractors and crops targeted in rural crime wave https://www.bbc.co.uk/news/uk-63517666?at_medium=RSS&at_campaign=KARANGA areas 2022-11-10 02:41:22
ニュース BBC News - Home Antibody jab approved for common winter virus RSV https://www.bbc.co.uk/news/health-63572228?at_medium=RSS&at_campaign=KARANGA antibody 2022-11-10 02:23:09
ニュース BBC News - Home Capturing war-time memories, before it is too late https://www.bbc.co.uk/news/uk-63504826?at_medium=RSS&at_campaign=KARANGA deadliest 2022-11-10 02:42:28
ビジネス ダイヤモンド・オンライン - 新着記事 440億円稼いだスニーカー王、その転落 - WSJ発 https://diamond.jp/articles/-/312737 転落 2022-11-10 11:07:00
ビジネス 東洋経済オンライン 神対応をして好かれる人になる「言い方のコツ」 言いたいことを伝えて「部下に慕われる」話し方 | 自衛隊員も学ぶ!メンタルチューニング | 東洋経済オンライン https://toyokeizai.net/articles/-/630614?utm_source=rss&utm_medium=http&utm_campaign=link_back 人間関係 2022-11-10 11:30:00
マーケティング MarkeZine パシフィックコンサルタンツ、ヤフーと連携し検索データ×人流データを活用した非来訪客の実態把握を可能に http://markezine.jp/article/detail/40537 連携 2022-11-10 11:30:00
IT 週刊アスキー コラボレーションソフトウェア「Notion」日本語版が正式リリース 日本市場における事業を本格展開 https://weekly.ascii.jp/elem/000/004/112/4112473/ notion 2022-11-10 11:30:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)