-5

I have been trying to use this command on mac:

youtube-dl "link" ffmpeg -i Lec*.mp4 -map_channel 0.1.1 -ac 1 -vcodec copy fixed.mp4

to download a playlist which has some audio cut off but I keep on getting this error:

Usage: youtube-dl [OPTIONS] URL [URL...]
youtube-dl: error: no such option: -m

Any idea how to fix this?

  • 3
    Are you trying to pipe something into ffmpeg without the | or >? – Mioriin Dec 20 '17 at 5:40
  • @Mioriin I actually was just copy and pasting a code I found on a youtube video so it was exactly that, which am I suppose to use to fix my problem ? – bigfocalchord Dec 20 '17 at 5:43
  • Blindly running unknown commands from unknown and unverified sources on the internet is a BAD IDEA!! – Mioriin Dec 20 '17 at 23:18
1

Well, it's probably this comment that you copied the commands from, right?

The solution is that these are two commands, they are supposed to be executed separately: First download the video file, then process it.

$ youtube-dl "link"
$ ffmpeg -i Lec*.mp4 -map_channel 0.1.1 -ac 1 -vcodec copy fixed.mp4

Side note: It would have been much easier if you had given the source of the commands from the start...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.