{"id":4536,"date":"2019-09-26T18:00:15","date_gmt":"2019-09-26T18:00:15","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=4536"},"modified":"2025-07-21T10:42:53","modified_gmt":"2025-07-21T10:42:53","slug":"trimming-youtube-with-arguments","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/trimming-youtube-with-arguments\/","title":{"rendered":"Trimming Youtube with arguments"},"content":{"rendered":"\n<p>This was written in 2019; when I looked at this in 2023, Youtube had created a clip function, which allows this to be done much more easily. I have amended the page; I wanted to cut some speeches out of a Youtube Video of Conference, I missed the opportunity to do so for the GMB Congress &#8217;19 report, but I really need to do this for #lab19 . I added some comments on autoplay\/lopping in May 2020. I wonder,&nbsp;Does <a href=\"https:\/\/web.archive.org\/web\/20210305080210\/https:\/\/support.gospacecraft.com\/hc\/en-us\/articles\/204744184-Set-Specific-Start-and-End-Times-for-Your-Video\">this<\/a> work? Check overleaf to see &#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<h3 class=\"wp-block-heading\">Using the embed code<\/h3>\n\n\n\n<p>This is what reddit says, I also describe it further <a href=\"#newandold\">below<\/a>,<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-reddit wp-block-embed-reddit\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"reddit-embed-bq\" style=\"height:316px\" ><a href=\"https:\/\/www.reddit.com\/r\/youtube\/comments\/2eu12t\/modify_youtube_url_for_specific_start_and_stop\/\">Modify YouTube URL for specific start AND stop time?<\/a><br> by<a href=\"\"><\/a> in<a href=\"https:\/\/www.reddit.com\/r\/youtube\/\">youtube<\/a><\/blockquote><script async src=\"https:\/\/embed.reddit.com\/widgets.js\" charset=\"UTF-8\"><\/script>\n<\/div><\/figure>\n\n\n\n<p>I also found <a href=\"https:\/\/www.sitepoint.com\/community\/t\/embed-google-video-or-youtube-with-custom-thumbnail\/4367\/4\">a javascript solution<\/a> from sitepoint.com and <a href=\"https:\/\/stackoverflow.com\/questions\/51448091\/how-to-put-poster-for-embedded-youtube-using-iframe\">an article on stackoverflow<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using the clip function<\/h3>\n\n\n\n<p><strong>Create and share a Clip<\/strong><\/p>\n\n\n\n<p>These can only be short, less than a minute I think. <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Sign in to YouTube.<\/li>\n\n\n\n<li>Go to a video you want to clip.<\/li>\n\n\n\n<li>Select Menu Clip .<\/li>\n\n\n\n<li>Add a title for your Clip (max 140 characters).<\/li>\n\n\n\n<li>Select the section of the video you&#8217;d like to clip. &#8230;\n<ul class=\"wp-block-list\">\n<li>NB These are now limited to 1 minute.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Click SHARE CLIP.<\/li>\n\n\n\n<li>Choose an option for sharing the clip:<\/li>\n<\/ol>\n\n\n\n<p>See also google <a href=\"https:\/\/support.google.com\/youtube\/answer\/10332730?hl=en\">support<\/a>&#8216;s page<\/p>\n\n\n\n<a name=\"newandold\"><\/a>\n\n\n\n<h3 class=\"wp-block-heading\">What I used to do<\/h3>\n\n\n\n<p>Get the <strong>Embed <\/strong>code, add a ?start=xxx&amp;end=xxx to the generated code, paste it into your host page, ta da!<\/p>\n\n\n\n<p>If using an &lt;iframe&gt; tag, them the parameters are appended to the <code>src<\/code> parameter generated by youtube.<\/p>\n\n\n\n<p>Here&#8217;s Simon Hannah at #lab19<\/p>\n\n\n\n<p><center><iframe loading=\"lazy\" width=\"560\" height=\"315\" \r\n    src=\"https:\/\/www.youtube.com\/embed\/E8YlUqPBh9U?start=3013&end=3237\"\r\n    frameborder=\"0\" allow=\"accelerometer; \r\n    autoplay; encrypted-media; gyroscope; picture-in-picture\" \r\n    allowfullscreen>\r\n    <\/iframe><\/center><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">And autolooping<\/h4>\n\n\n\n<p>I tried to <a href=\"https:\/\/davelevy.info\/wiki\/memories-of-the-family\/\">make a video auto loop<\/a> but couldn&#8217;t find the runes, maybe it&#8217;s a wordpress thing, although I tried to do it withhut the autoplay parameter.<\/p>\n\n\n\n<p>It is <a href=\"http:\/\/www.youtube.com\/watch?v=Ll-BkOJamrE&amp;start=107&amp;end=219\">recommended<\/a> that one appends<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">?autoplay=1&amp;loop=1&amp;playlist=${the youtube code of the video}?\n<\/pre>\n\n\n\n<p>to the src argument in the &lt;iframe&gt; tag.<\/p>\n\n\n\n<p><strong>Image Credit:<\/strong> Ian Collins <a href=\"https:\/\/www.flickr.com\/photos\/3n\/3507260109\/\">flickr<\/a> CC 2009 BY-ND<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This was written in 2019; when I looked at this in 2023, Youtube had created a clip function, which allows this to be done much more easily. I have amended the page; I wanted to cut some speeches out of a Youtube Video of Conference, I missed the opportunity to do so for the GMB&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4537,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[3],"tags":[1351,1353,1452,911,1352,71,1354],"class_list":["post-4536","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-clipping","tag-editing","tag-looping","tag-technology","tag-trimming","tag-video","tag-youtube"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2019\/09\/start-stop-w650-cropped-BY-ND.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=4536"}],"version-history":[{"count":6,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4536\/revisions"}],"predecessor-version":[{"id":12641,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4536\/revisions\/12641"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/4537"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=4536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=4536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=4536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}