Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530194 - net-misc/youtube-dl should optionally depend on media-video/rtmpdump
Summary: net-misc/youtube-dl should optionally depend on media-video/rtmpdump
Status: RESOLVED DUPLICATE of bug 355661
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-23 16:28 UTC by gerion
Modified: 2014-11-24 01:46 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 gerion 2014-11-23 16:28:32 UTC
youtube-dl uses rtmpdump for sites which provide an rtmp stream.

If rtmpdump is not installed youtube-dl quits with an error, e.g.:
$ youtube-dl 'http://www.arte.tv/guide/de/051091-031/x-enius?autoplay=1'
[arte.tv:+7] 051091-031: Downloading webpage
[arte.tv:+7] 051091-031: Downloading JSON metadata
[download] Destination: X -enius - Wie lernt unser Gehirn-051091-031_PLUS7-D.flv
ERROR: RTMP download detected but "rtmpdump" could not be run. Please install it.

I think, it would be a nice solution to provide an rtmp useflag which install rtmpdump as dependency, so the user could choose whether he want it or not.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-23 21:14:54 UTC
(In reply to gerion from comment #0)
> youtube-dl uses rtmpdump for sites which provide an rtmp stream.
> 
> If rtmpdump is not installed youtube-dl quits with an error, e.g.:
> $ youtube-dl 'http://www.arte.tv/guide/de/051091-031/x-enius?autoplay=1'
> [arte.tv:+7] 051091-031: Downloading webpage
> [arte.tv:+7] 051091-031: Downloading JSON metadata
> [download] Destination: X -enius - Wie lernt unser
> Gehirn-051091-031_PLUS7-D.flv

Actually, that works fine without rtmpdump for me.

$ youtube-dl 'http://www.arte.tv/guide/de/051091-031/x-enius?autoplay=1' 'https://www.youtube.com/watch?v=wnUT_0QJfRY&list=UUsLTG-svFzsK22zFac0pwUA'
[arte.tv:+7] 051091-031: Downloading webpage
[arte.tv:+7] 051091-031: Downloading JSON metadata
[download] Destination: X -enius - Wie lernt unser Gehirn-051091-031_PLUS7-D.mp4
[download]  20.8% of 502.27MiB at  1.07MiB/s ETA 06:12

Maybe it's your version of youtube-dl that's outdated?

> ERROR: RTMP download detected but "rtmpdump" could not be run. Please
> install it.

Emerge rtmpdump. Then run youtube-dl again. If you'd depend on a USE flag on youtube-dl to do that for you, you'd have to re-emerge youtube-dl as well for the desired effect.

> I think, it would be a nice solution to provide an rtmp useflag which
> install rtmpdump as dependency, so the user could choose whether he want it
> or not.

So you claim that /before/ you install youtube-dl, you already know you will at one point find a video that requires rtmpdump, so that when that happens, no unpleasantness ensues? I don't agree.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-23 21:37:03 UTC

*** This bug has been marked as a duplicate of bug 355661 ***
Comment 3 gerion 2014-11-24 01:46:12 UTC
(In reply to Jeroen Roovers from comment #1)
> Maybe it's your version of youtube-dl that's outdated?
$ youtube-dl --version
2014.11.16

Old enough to run into the rtmp issue (emerged the today version and it works like yours).
> 
> > ERROR: RTMP download detected but "rtmpdump" could not be run. Please
> > install it.
> 
> Emerge rtmpdump. Then run youtube-dl again. If you'd depend on a USE flag on
> youtube-dl to do that for you, you'd have to re-emerge youtube-dl as well
> for the desired effect.
> 
> > I think, it would be a nice solution to provide an rtmp useflag which
> > install rtmpdump as dependency, so the user could choose whether he want it
> > or not.
> 
> So you claim that /before/ you install youtube-dl, you already know you will
> at one point find a video that requires rtmpdump, so that when that happens,
> no unpleasantness ensues? I don't agree.
You are right, but this is not my point. Surely I emerged rtmpdump even before creating this bug, but I emerged it with "-1" because I thought, this depedency will be covered by youtube-dl. I don't want to have rtmpdump in my world file, It may take the same amount of time to set the useflag but it will prevent you from having software installed which you don't need, once you will depclean youtube-dl.

Another point: If you are an admin and want to provide youtube-dl for your users, you want to make sure your installed youtube-dl has all the functionality it could have, so you activate all useflags (expecting it could then download rtmp streams like all other streams as well).