to find out what a programing riding on another program
I have searched the web, but find nothing regarding this issue:
let me use clipgrab for example: Since Clipgrab is using youtube-dl to download video. while newer version of clipgrab is using yt-dlp. how to know if the clipgrab is using which program ? I tried to search clipgrab in Htop, but it just does not show youtube-dl nor yt-dlp. example2: i would like to know what program mpv riding on when i use mpv to play youtube url. does the mpv uses youtube-dl or yt-dlp... ? that's what i want to know.. Please tell me how to do it. Thx |
Hi,
you can trace what is being called with strace. Try: Code:
strace mpv 'https://www.youtube.com/watch?v=aqz-KE-bpKQ' P.S. I was soooo tempted to Rickroll |
I'd just look at the source code.
|
probably you can try pstree too
|
Quote:
Code:
man mpv| less +/yt-dlp |
learn something new
Quote:
I never thought of looking into man of mpv to see what the author has to say about which package does the program ride on. and i was always go into man then execute search with "/".. now, i know i can do a 1 line method.. using your cli. Gracias. |
Quote:
strace is no good for this purpose. Code:
$ strace -qe execve mpv 'https://www.youtube.com/watch?v=aqz-KE-bpKQ' |
Quote:
I just learn by example on this utility.. 1st time user. .maybe i don't know how to use it right. Code:
$ pstree -pt 88789 |
Only manage to find out that mpv uses youtube-dl by default from man page using suggestion of ondoho
But this is not a permanent solution. If the author didn't write in man page.. then i won't know. Looking into source code is not something i know how to do. so i skipped that suggestion. |
some youtube video not working with mpv.. weird
Quote:
I also tried a random video that appears on the list ( https://www.youtube.com/watch?v=5-YjjrwAz8g) , no video, only got audio. I tried a random video, like this one, mpv show both audio and video just fine (https://www.youtube.com/watch?v=16y1AkoZkmQ) something is not right.. somehow, some video works while other not.. no idea what's wrong with mpv. |
Quote:
|
Also look at ldd - ldd programname or ldd /bin/programname etc.
|
Quote:
Mine says: Quote:
In any case, this is configurable in ~/.config/mpv/mpv.conf. |
Quote:
Is it possible to copy your mpv.conf into the specified address ? it could be possible to change which tool it uses to download youtube video in this config file. Hopefully. so far, i have made the mpv works by made using sym link as suggested by someone on this forum.. i sym linked yt-dlp to youtube-dl (which i have renamed to otherthing). |
Quote:
|
All times are GMT -5. The time now is 01:10 PM. |