Can I make calls to APIs such as youtube-dl and ffmpeg from a chrome-app?

ErickR

First of all, I haven't started the implementation of the system I'm about to describe, as I didn't want to commit on implementing something I did not know if was possible.

So, what I'm trying to achieve is to build a chrome-app to download the audio from certain websites (e.g. youtube and soundcloud) using youtube-dl, post process it using ffmpeg and then upload it to a cloud service via some api. The reason I want to do it via a chrome-app is because I could do all the work on the client side (no need for servers) and I'd have the ability to insert javascript into the pages using content scripts, which would make the app pretty simple to use (I could create buttons such as 'download song' and stuff like that).

Although I have already read the documentation explaining the NaCl Technical Overview and some of the Application Structure, I still am not sure as to whether I would be able to make these calls via some C/C++ module or if I would get denied due to security reasons.

To summarize: considering that the user has the needed dependencies in his system (youtube-dl, python, ffmpeg and etc.), is it possible to make calls to third party APIs such as the ones described before via a chrome-app using NaCl ?

Thank you all in advance,

Xan

Chrome apps are normally sandboxed.

Less so than extensions - they can reach much more system resources via app APIs.

But still, what you mention is executing libraries / utilities out of browser, and it's not normally allowed.

(P)NaCl is tightly sandboxed in this regard. See this old question, it still applies: you can only use 3rd-party code that compiles into NaCl along with your app, not just link to a library. There are some library ports to NaCl, but it's not automatic.

Normally, a few years back you would use a mechanism like NPAPI to reach out and use a library out of browser. It's deprecated, and won't work anymore. In its place, Chrome offers a pipe-like (through stdio) connection to an external program called Native Messaging. You could use it to perform operations with system-level libraries and tools, but the downside is that you can't bundle the native host with your app, you'll need a separate installer.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I make youtube-dl return the creator of a playlist?

From Dev

How can I download a youtube playlist with youtube-dl and make it a mp3-playlist?

From Dev

Audio Downloader from YouTube with youtube-dl and ffmpeg

From Dev

Ffmpeg - youtube-dl

From Dev

Can I download videos from a YouTube search query using youtube-dl?

From Dev

How can I download part of a playlist from YouTube with 'youtube-dl'?

From Dev

Can I download videos from a YouTube search query using youtube-dl?

From Dev

How can I download part of a playlist from YouTube with 'youtube-dl'?

From Dev

How can I make an RSS feed from Youtube search using Google App Script?

From Dev

Can I pause YouTube in Chrome from the command line?

From Dev

Can I directly download audio using youtube-dl?

From Dev

Can I directly download audio using youtube-dl?

From Dev

How can I pass parameters to --output in youtube-dl?

From Dev

How can I authenticate SharePoint REST calls from Android App?

From Dev

Can I make an Android app that runs a web view in Chrome 39?

From Dev

Can I make an Android app that runs a web view in Chrome 39?

From Dev

How can I download the video description of a YouTube video without downloading the video with youtube-dl?

From Dev

Can I separate function calls in Chrome Profiler?

From Dev

How can I force a meteor app to make all HTTP calls through a proxy?

From Dev

Can I run chrome package app from JS?

From Dev

Can I make eBay API calls from client side with javascript or does that violate the Same-Origin Policy?

From Dev

Can't download using youtube-dl

From Dev

Can't download using youtube-dl

From Dev

How can I list video resolutions in youtube-dl while using it as a python module?

From Dev

How can I display VTT or other subtitle formats used by youtube-dl in VLC?

From Dev

How I can get intagram photo url with youtube-dl lib?

From Dev

How can I use youtube-dl using tor browser settings in terminal

From Dev

Chrome Packaged App Access Chrome APIs

From Dev

ffmpeg is not removing some seconds from the beginning of this video. Why and how can I make it do so?

Related Related

  1. 1

    How can I make youtube-dl return the creator of a playlist?

  2. 2

    How can I download a youtube playlist with youtube-dl and make it a mp3-playlist?

  3. 3

    Audio Downloader from YouTube with youtube-dl and ffmpeg

  4. 4

    Ffmpeg - youtube-dl

  5. 5

    Can I download videos from a YouTube search query using youtube-dl?

  6. 6

    How can I download part of a playlist from YouTube with 'youtube-dl'?

  7. 7

    Can I download videos from a YouTube search query using youtube-dl?

  8. 8

    How can I download part of a playlist from YouTube with 'youtube-dl'?

  9. 9

    How can I make an RSS feed from Youtube search using Google App Script?

  10. 10

    Can I pause YouTube in Chrome from the command line?

  11. 11

    Can I directly download audio using youtube-dl?

  12. 12

    Can I directly download audio using youtube-dl?

  13. 13

    How can I pass parameters to --output in youtube-dl?

  14. 14

    How can I authenticate SharePoint REST calls from Android App?

  15. 15

    Can I make an Android app that runs a web view in Chrome 39?

  16. 16

    Can I make an Android app that runs a web view in Chrome 39?

  17. 17

    How can I download the video description of a YouTube video without downloading the video with youtube-dl?

  18. 18

    Can I separate function calls in Chrome Profiler?

  19. 19

    How can I force a meteor app to make all HTTP calls through a proxy?

  20. 20

    Can I run chrome package app from JS?

  21. 21

    Can I make eBay API calls from client side with javascript or does that violate the Same-Origin Policy?

  22. 22

    Can't download using youtube-dl

  23. 23

    Can't download using youtube-dl

  24. 24

    How can I list video resolutions in youtube-dl while using it as a python module?

  25. 25

    How can I display VTT or other subtitle formats used by youtube-dl in VLC?

  26. 26

    How I can get intagram photo url with youtube-dl lib?

  27. 27

    How can I use youtube-dl using tor browser settings in terminal

  28. 28

    Chrome Packaged App Access Chrome APIs

  29. 29

    ffmpeg is not removing some seconds from the beginning of this video. Why and how can I make it do so?

HotTag

Archive