Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639028 - net-misc/youtube-dl - ERROR: RTMP download detected but "rtmpdump" could not be run. Please install it.
Summary: net-misc/youtube-dl - ERROR: RTMP download detected but "rtmpdump" could not ...
Status: RESOLVED DUPLICATE of bug 355661
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-28 04:08 UTC by deso
Modified: 2017-12-21 02:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description deso 2017-11-28 04:08:13 UTC
Running net-misc/youtube-dl-2017.11.15. On certain URLs youtube-dl may opt for using RTMP, in which case it needs rtmpdump or it will seize to download a file. There should be a dependency to media-video/rtmpdump in the ebuild.

Reproducible: Always

Steps to Reproduce:
1. youtube-dl 'http://www.3sat.de/mediathek/?mode=play&obj=70183'
> [3sat] 70183: Downloading video info
> [3sat] 70183: Downloading SMIL file
> [3sat] 70183: Downloading f4m manifest
> [3sat] 70183: Downloading m3u8 information
> [download] Destination: 'DIE RECHTE WENDE'-70183.flv
> ERROR: RTMP download detected but "rtmpdump" could not be run. Please install it.
Actual Results:  
youtube-dl aborts with above error.

Expected Results:  
youtube-dl should download the video.

If I install rtmpdump it *will* download the video correctly.

I've created a pull request here: https://github.com/gentoo/gentoo/pull/6314

But I may need some guidance as to how to proceed (new USE flag yes/no).
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2017-11-28 05:36:04 UTC
(In reply to deso from comment #0)
> 1. youtube-dl 'http://www.3sat.de/mediathek/?mode=play&obj=70183'
> > [3sat] 70183: Downloading video info
> > [3sat] 70183: Downloading SMIL file
> > [3sat] 70183: Downloading f4m manifest
> > [3sat] 70183: Downloading m3u8 information
> > [download] Destination: 'DIE RECHTE WENDE'-70183.flv
> > ERROR: RTMP download detected but "rtmpdump" could not be run. Please install it.
> Actual Results:  
> youtube-dl aborts with above error.

The error seems to be quite informative.

So you do:

emerge rtmpdump

and it suddenly works for you. All those other people who do not try to download the same stuff as you will not need rtmpdump until they see a message like yours.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2017-11-28 05:41:07 UTC

*** This bug has been marked as a duplicate of bug 355661 ***
Comment 3 deso 2017-11-29 02:42:58 UTC
(In reply to Jeroen Roovers from comment #1)
> (In reply to deso from comment #0)
> > 1. youtube-dl 'http://www.3sat.de/mediathek/?mode=play&obj=70183'
> > > [3sat] 70183: Downloading video info
> > > [3sat] 70183: Downloading SMIL file
> > > [3sat] 70183: Downloading f4m manifest
> > > [3sat] 70183: Downloading m3u8 information
> > > [download] Destination: 'DIE RECHTE WENDE'-70183.flv
> > > ERROR: RTMP download detected but "rtmpdump" could not be run. Please install it.
> > Actual Results:  
> > youtube-dl aborts with above error.
> 
> The error seems to be quite informative.
> 
> So you do:
> 
> emerge rtmpdump
> 
> and it suddenly works for you.

Thank you for your response. The error is quite informative, indeed, but that is not the point. Portage, the way I see it, is a software management tool. And in Gentoo that also implies managing USE flags. I can easily do so by means of /etc/portage/package.use or /etc/portage/make.conf.

Unfortunately, the net-misc/youtube-dl ebuild is broken in that it does not specify a dependency to media-video/rtmpdump when really there is one (an optional one but a dependency nevertheless). Because of that missing dependency I have no way to use Portage to control the correct functioning of youtube-dl, which, I hope you agree, includes the downloading of clips over RTMP, should that be desired.

So how am I supposed to manage the installation of rtmpdump? If I install it on demand as you suggest I have an unused and effectively untracked software package on my system the very moment I uninstall youtube-dl. I installed rtmpdump because it is used by youtube-dl, not because I am invoking it manually. That's exactly what a program like Portage should help me with.
I could install it in a one-shot manner but then it would get removed on every depclean.
Of course, I could also roll my own ebuild but that can't be a valid argument, can it? It is part of the core Portage tree after all.

> All those other people who do not try to download the same stuff as you will not need rtmpdump until they see a message like yours.

Well, all those other people simply would not set the rtmp USE flag that I proposed and that, as the pull request details, is used by other available programs such as curl and mplayer, and live happily ever after.

I hope we can work on finding a common ground.