LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-20-2020, 06:37 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Rep: Reputation: Disabled
why did youtube-dl -x give me an mp4 instead of mp3?


I used youtube-dl -x on some Youtube videos from my church to extract the audio; and unlike the last times I did, youtube-dl gave me mp4s instead of mp3s. I have no use for mp4s.

No problem, I started opening the mp4s in Audacity and saving the audio as mp3. But why am I getting mp4s this time? What would I need to do make youtube-dl extract only the audio? That's what the -x parameter is supposed to do. It's as though the parameter is being ignored.

I also tried changing the parameter to --extract-audio, although that's supposed to be the same thing. No change.
 
Old 12-20-2020, 06:44 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I would guess the tool determines the audio format based on some properties of the video file. You can control it:
Code:
--audio-format FORMAT       Specify audio format: "best", "aac",
                            "flac", "mp3", "m4a", "opus", "vorbis", or
                            "wav"; "best" by default; No effect without -x

Last edited by berndbausch; 12-20-2020 at 06:46 PM. Reason: wording
 
1 members found this post helpful.
Old 12-20-2020, 07:16 PM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Original Poster
Rep: Reputation: Disabled
That seems to have worked: after specifying mp3 as the type, I got an MP3. I just didn't have to do it before, that I remember.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Download A YouTube Playlist And Convert It To MP3 Using youtube-dl LXer Syndicated Linux News 0 10-22-2019 06:04 AM
[SOLVED] 10d6:1101 Actions Semiconductor Co., Ltd D-Wave 2GB MP4 Player / AK1025 MP3/MP4 RandomTroll Linux - Hardware 2 07-07-2019 10:51 AM
10d6:1101 Actions Semiconductor Co., Ltd D-Wave 2GB MP4 Player / AK1025 MP3/MP4 Player T RandomTroll General 5 07-19-2018 10:42 PM
magic words wanted ffmpeg avi to mp4 conversion for youtube vtbludgeon Linux - Software 9 06-23-2010 12:07 PM
converter for mp4, I-Pods and other portable mp4's ? stefan_rogin2000 Linux - Software 5 03-26-2008 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration