I think you should be fine with youtube-dl. I used to be under the impression that youtube-dl executes proprietary JavaScript, but I now understand that it only *parses* the JavaScript to find the URL for some videos. It doesn't actually run the JavaScript, so it's not a freedom issue. avideo isn't maintained anymore, so I would just use youtube-dl.
signature.asc
Description: PGP signature