Posted: . At: 7:33 PM. This was 4 years ago. Post ID: 13943
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



Download only the audio from a video on Vimeo.


The video hosting site Vimeo works the same as Youtube, it has separate files for video and audio that are put together to play an online video. This can be downloaded easily with a script. The youtube-dl script can download only the audio from a Youtube video, and it can do it for Vimeo as well.

firstly, install youtube-dl and ffmpeg before trying this trick.

Here is an example. Downloading information about a Vimeo video.

jason@jason-virtual-machine:~$ youtube-dl -F https://vimeo.com/83462169
[vimeo] 83462169: Downloading webpage
[vimeo] 83462169: Extracting information
[vimeo] 83462169: Downloading webpage
[vimeo] 83462169: Downloading JSON metadata
WARNING: Unable to download JSON metadata: HTTP Error 403: Forbidden
[vimeo] 83462169: Downloading akfire_interconnect_quic m3u8 information
[vimeo] 83462169: Downloading fastly_skyfire m3u8 information
[vimeo] 83462169: Downloading akfire_interconnect_quic MPD information
[vimeo] 83462169: Downloading akfire_interconnect_quic MPD information
[vimeo] 83462169: Downloading fastly_skyfire MPD information
[vimeo] 83462169: Downloading fastly_skyfire MPD information
[info] Available formats for 83462169:
format code                                        extension  resolution note
dash-akfire_interconnect_quic_sep-audio-216945120  m4a        audio only DASH audio  114k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-fastly_skyfire_sep-audio-216945120            m4a        audio only DASH audio  114k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-akfire_interconnect_quic_sep-audio-216945121  m4a        audio only DASH audio  162k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-fastly_skyfire_sep-audio-216945121            m4a        audio only DASH audio  162k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-akfire_interconnect_quic_sep-video-216945120  mp4        640x360    DASH video  985k , mp4_dash container, avc1.64001F, video only
dash-fastly_skyfire_sep-video-216945120            mp4        640x360    DASH video  985k , mp4_dash container, avc1.64001F, video only
dash-akfire_interconnect_quic_sep-video-216945121  mp4        1280x720   DASH video 3869k , mp4_dash container, avc1.64001F, video only
dash-fastly_skyfire_sep-video-216945121            mp4        1280x720   DASH video 3869k , mp4_dash container, avc1.64001F, video only
dash-akfire_interconnect_quic-video-216945120      mp4        640x360    DASH video 1098k , mp4_dash container, avc1.64001F, mp4a.40.2 (48000Hz)
dash-fastly_skyfire-video-216945120                mp4        640x360    DASH video 1098k , mp4_dash container, avc1.64001F, mp4a.40.2 (48000Hz)
hls-akfire_interconnect_quic-786                   mp4        640x360     786k , avc1.64001F, 29.97fps, mp4a.40.2
hls-fastly_skyfire-786                             mp4        640x360     786k , avc1.64001F, 29.97fps, mp4a.40.2
http-360p                                          mp4        640x360    30fps
dash-akfire_interconnect_quic-video-216945121      mp4        1280x720   DASH video 4031k , mp4_dash container, avc1.64001F, mp4a.40.2 (48000Hz)
dash-fastly_skyfire-video-216945121                mp4        1280x720   DASH video 4031k , mp4_dash container, avc1.64001F, mp4a.40.2 (48000Hz)
hls-akfire_interconnect_quic-2613                  mp4        1280x720   2613k , avc1.64001F, 29.97fps, mp4a.40.2
hls-fastly_skyfire-2613                            mp4        1280x720   2613k , avc1.64001F, 29.97fps, mp4a.40.2
http-720p                                          mp4        1280x720   30fps (best)

The audio only files are what we want to download.

jason@jason-virtual-machine:~$ youtube-dl -f dash-fastly_skyfire_sep-audio-216945120 https://vimeo.com/83462169
[vimeo] 83462169: Downloading webpage
[vimeo] 83462169: Extracting information
[vimeo] 83462169: Downloading webpage
[vimeo] 83462169: Downloading JSON metadata
WARNING: Unable to download JSON metadata: HTTP Error 403: Forbidden
[vimeo] 83462169: Downloading akfire_interconnect_quic m3u8 information
[vimeo] 83462169: Downloading fastly_skyfire m3u8 information
[vimeo] 83462169: Downloading akfire_interconnect_quic MPD information
[vimeo] 83462169: Downloading akfire_interconnect_quic MPD information
[vimeo] 83462169: Downloading fastly_skyfire MPD information
[vimeo] 83462169: Downloading fastly_skyfire MPD information
[dashsegments] Total fragments: 45
[download] Destination: Arma 3 Cinematic Slow Motion 1920x1080HD Machinima-83462169.m4a
[download] 100% of 4.32MiB in 00:24
[ffmpeg] Correcting container in "Arma 3 Cinematic Slow Motion 1920x1080HD Machinima-83462169.m4a"

Now I have downloaded an m4a audio file that I wanted from the Vimeo video.

-rw-r--r--  1 jason jason 4.4M Jan  5 19:16 'Arma 3 Cinematic Slow Motion 1920x1080HD Machinima-83462169.m4a

This is a very simple Linux trick, and a good way to download music from Vimeo.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.