{"id":2285,"date":"2023-03-08T16:56:23","date_gmt":"2023-03-08T22:56:23","guid":{"rendered":"http:\/\/jimlund.org\/blog\/?p=2285"},"modified":"2023-03-08T16:59:12","modified_gmt":"2023-03-08T22:59:12","slug":"downloading-video-from-a-ebay-listing","status":"publish","type":"post","link":"https:\/\/jimlund.org\/blog\/?p=2285","title":{"rendered":"Downloading a video from an ebay listing"},"content":{"rendered":"\n<p>Using Firefox, go to the item page, open the Firefox Web Developer Tools (Menu -&gt; More tools -&gt; Web Developer Tools).  Click on the Network tab in the Tools section, then on the web page click on the video and play it.<\/p>\n\n\n\n<p>In the Network tab, requests for audio_128kb-0.m4s to audio_128kb-16.m4s appeared, and video_720p-0.m4s to video_720p-16.m4s.  I copied the URL for the video and audio requests (all the same but with a different -0 to -16 segment), and used wget to download the files.  Each was 1-2 MB:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget https:\/\/video.ebaycdn.net\/videos\/v1\/8f1e79501860a64d9e245434ffffec91\/5\/video_720p-0.m4s<\/pre>\n\n\n\n<p>After 32 wget commands, the entire video was present.  I downloaded segments from 0 up until after number 16, I got a &#8216;not found&#8217; message letting me know I had the last segment.<\/p>\n\n\n\n<p>Then I concatenated the pieces together:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat video_720p-0.m4s &gt;&gt; video_720p.m4s<br>cat video_720p-1.m4s &gt;&gt; video_720p.m4s<br>...<br>cat video_720p-16.m4s &gt;&gt; video_720p.m4s<br><\/pre>\n\n\n\n<p>And the same for the audio segments.  I put the cat commands into a batch file &#8220;cat.txt&#8221; and ran them using &#8220;bash cat.txt&#8221;.<br>Then ffmpeg was used to combine them and convert to mp4 format:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ffmpeg -i video_720p.m4s -i audio_128kb.m4s -c copy ebay_720p.mp4<br><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Using Firefox, go to the item page, open the Firefox Web Developer Tools (Menu -&gt; More tools -&gt; Web Developer Tools). Click on the Network tab in the Tools section, then on the web page click on the video and play it. In the Network tab, requests for audio_128kb-0.m4s to audio_128kb-16.m4s appeared, and video_720p-0.m4s to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,23],"tags":[],"class_list":["post-2285","post","type-post","status-publish","format-standard","hentry","category-computers","category-linux"],"_links":{"self":[{"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2285"}],"version-history":[{"count":4,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2285\/revisions"}],"predecessor-version":[{"id":2289,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2285\/revisions\/2289"}],"wp:attachment":[{"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}