Convert a .MP4 to Opus Via Command Line?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I'm looking for a command line method to convert .mp4's to .opus files. I've read (How to convert a sound file to Opus), but most (If not all) of the answers were unable to do so in a command line format that actually runs on my system. NOTE: I've made sure that I installed all the required libraries



The post is rather dated, and the commands don't work. Is there an easy command line method to convert a local .mp4 to .opus? I would prefer a single command instead of say 2 or 3, but that would be ok too.



Command 0:




opusenc --bitrate 510 --max-delay 10 "music.mp3" "music.opus"

Error parsing input file: music.mp3




Using ffmpeg:




ffmpeg "Ace Combat 6 OST - The Liberation Of Gracemeria.mp4" "Ace Combat 6 OST - The Liberation Of Gracemeria.opus"
ffmpeg version 3.3.4-2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7 (Ubuntu 7.2.0-8ubuntu2)
configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-netcdf
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100




However at the end in red is: Output #0, mp4, to 'Ace Combat 6 OST - The Liberation Of Gracemeria.mp4':
Output file #0 does not contain any stream
And no file appears in the folder.










share|improve this question























  • The commands in that link still work if you replace avconv with ffmpeg (and have ffmpeg installed). Also, you have to be more specific when you say the commands "don't work", e.g., by providing their outputs.
    – dsstorefile1
    Mar 21 at 2:27











  • @dsstorefile That would require me to post an output for every command there. That would certainly take a while, but I suppose it is do-able
    – Sarah Szabo
    Mar 21 at 4:42











  • Well, at least post the outputs of the commands of the first two answers so people know what you mean when you say things don't work.
    – dsstorefile1
    Mar 21 at 4:44







  • 1




    @SarahSzabo You mean mp4 or mp3? Both are in your question, mind you neither are handled directly by opusenc...
    – andrew.46
    Mar 21 at 5:20






  • 1




    @dsstorefile Nice, I'm unfamiliar with ffmpeg I got it using the new syntax with the -b 320k option.
    – Sarah Szabo
    Mar 22 at 2:43














up vote
1
down vote

favorite












I'm looking for a command line method to convert .mp4's to .opus files. I've read (How to convert a sound file to Opus), but most (If not all) of the answers were unable to do so in a command line format that actually runs on my system. NOTE: I've made sure that I installed all the required libraries



The post is rather dated, and the commands don't work. Is there an easy command line method to convert a local .mp4 to .opus? I would prefer a single command instead of say 2 or 3, but that would be ok too.



Command 0:




opusenc --bitrate 510 --max-delay 10 "music.mp3" "music.opus"

Error parsing input file: music.mp3




Using ffmpeg:




ffmpeg "Ace Combat 6 OST - The Liberation Of Gracemeria.mp4" "Ace Combat 6 OST - The Liberation Of Gracemeria.opus"
ffmpeg version 3.3.4-2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7 (Ubuntu 7.2.0-8ubuntu2)
configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-netcdf
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100




However at the end in red is: Output #0, mp4, to 'Ace Combat 6 OST - The Liberation Of Gracemeria.mp4':
Output file #0 does not contain any stream
And no file appears in the folder.










share|improve this question























  • The commands in that link still work if you replace avconv with ffmpeg (and have ffmpeg installed). Also, you have to be more specific when you say the commands "don't work", e.g., by providing their outputs.
    – dsstorefile1
    Mar 21 at 2:27











  • @dsstorefile That would require me to post an output for every command there. That would certainly take a while, but I suppose it is do-able
    – Sarah Szabo
    Mar 21 at 4:42











  • Well, at least post the outputs of the commands of the first two answers so people know what you mean when you say things don't work.
    – dsstorefile1
    Mar 21 at 4:44







  • 1




    @SarahSzabo You mean mp4 or mp3? Both are in your question, mind you neither are handled directly by opusenc...
    – andrew.46
    Mar 21 at 5:20






  • 1




    @dsstorefile Nice, I'm unfamiliar with ffmpeg I got it using the new syntax with the -b 320k option.
    – Sarah Szabo
    Mar 22 at 2:43












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm looking for a command line method to convert .mp4's to .opus files. I've read (How to convert a sound file to Opus), but most (If not all) of the answers were unable to do so in a command line format that actually runs on my system. NOTE: I've made sure that I installed all the required libraries



The post is rather dated, and the commands don't work. Is there an easy command line method to convert a local .mp4 to .opus? I would prefer a single command instead of say 2 or 3, but that would be ok too.



Command 0:




opusenc --bitrate 510 --max-delay 10 "music.mp3" "music.opus"

Error parsing input file: music.mp3




Using ffmpeg:




ffmpeg "Ace Combat 6 OST - The Liberation Of Gracemeria.mp4" "Ace Combat 6 OST - The Liberation Of Gracemeria.opus"
ffmpeg version 3.3.4-2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7 (Ubuntu 7.2.0-8ubuntu2)
configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-netcdf
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100




However at the end in red is: Output #0, mp4, to 'Ace Combat 6 OST - The Liberation Of Gracemeria.mp4':
Output file #0 does not contain any stream
And no file appears in the folder.










share|improve this question















I'm looking for a command line method to convert .mp4's to .opus files. I've read (How to convert a sound file to Opus), but most (If not all) of the answers were unable to do so in a command line format that actually runs on my system. NOTE: I've made sure that I installed all the required libraries



The post is rather dated, and the commands don't work. Is there an easy command line method to convert a local .mp4 to .opus? I would prefer a single command instead of say 2 or 3, but that would be ok too.



Command 0:




opusenc --bitrate 510 --max-delay 10 "music.mp3" "music.opus"

Error parsing input file: music.mp3




Using ffmpeg:




ffmpeg "Ace Combat 6 OST - The Liberation Of Gracemeria.mp4" "Ace Combat 6 OST - The Liberation Of Gracemeria.opus"
ffmpeg version 3.3.4-2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7 (Ubuntu 7.2.0-8ubuntu2)
configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-netcdf
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100




However at the end in red is: Output #0, mp4, to 'Ace Combat 6 OST - The Liberation Of Gracemeria.mp4':
Output file #0 does not contain any stream
And no file appears in the folder.







command-line video files convert






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 21 at 13:59

























asked Mar 21 at 2:23









Sarah Szabo

347416




347416











  • The commands in that link still work if you replace avconv with ffmpeg (and have ffmpeg installed). Also, you have to be more specific when you say the commands "don't work", e.g., by providing their outputs.
    – dsstorefile1
    Mar 21 at 2:27











  • @dsstorefile That would require me to post an output for every command there. That would certainly take a while, but I suppose it is do-able
    – Sarah Szabo
    Mar 21 at 4:42











  • Well, at least post the outputs of the commands of the first two answers so people know what you mean when you say things don't work.
    – dsstorefile1
    Mar 21 at 4:44







  • 1




    @SarahSzabo You mean mp4 or mp3? Both are in your question, mind you neither are handled directly by opusenc...
    – andrew.46
    Mar 21 at 5:20






  • 1




    @dsstorefile Nice, I'm unfamiliar with ffmpeg I got it using the new syntax with the -b 320k option.
    – Sarah Szabo
    Mar 22 at 2:43
















  • The commands in that link still work if you replace avconv with ffmpeg (and have ffmpeg installed). Also, you have to be more specific when you say the commands "don't work", e.g., by providing their outputs.
    – dsstorefile1
    Mar 21 at 2:27











  • @dsstorefile That would require me to post an output for every command there. That would certainly take a while, but I suppose it is do-able
    – Sarah Szabo
    Mar 21 at 4:42











  • Well, at least post the outputs of the commands of the first two answers so people know what you mean when you say things don't work.
    – dsstorefile1
    Mar 21 at 4:44







  • 1




    @SarahSzabo You mean mp4 or mp3? Both are in your question, mind you neither are handled directly by opusenc...
    – andrew.46
    Mar 21 at 5:20






  • 1




    @dsstorefile Nice, I'm unfamiliar with ffmpeg I got it using the new syntax with the -b 320k option.
    – Sarah Szabo
    Mar 22 at 2:43















The commands in that link still work if you replace avconv with ffmpeg (and have ffmpeg installed). Also, you have to be more specific when you say the commands "don't work", e.g., by providing their outputs.
– dsstorefile1
Mar 21 at 2:27





The commands in that link still work if you replace avconv with ffmpeg (and have ffmpeg installed). Also, you have to be more specific when you say the commands "don't work", e.g., by providing their outputs.
– dsstorefile1
Mar 21 at 2:27













@dsstorefile That would require me to post an output for every command there. That would certainly take a while, but I suppose it is do-able
– Sarah Szabo
Mar 21 at 4:42





@dsstorefile That would require me to post an output for every command there. That would certainly take a while, but I suppose it is do-able
– Sarah Szabo
Mar 21 at 4:42













Well, at least post the outputs of the commands of the first two answers so people know what you mean when you say things don't work.
– dsstorefile1
Mar 21 at 4:44





Well, at least post the outputs of the commands of the first two answers so people know what you mean when you say things don't work.
– dsstorefile1
Mar 21 at 4:44





1




1




@SarahSzabo You mean mp4 or mp3? Both are in your question, mind you neither are handled directly by opusenc...
– andrew.46
Mar 21 at 5:20




@SarahSzabo You mean mp4 or mp3? Both are in your question, mind you neither are handled directly by opusenc...
– andrew.46
Mar 21 at 5:20




1




1




@dsstorefile Nice, I'm unfamiliar with ffmpeg I got it using the new syntax with the -b 320k option.
– Sarah Szabo
Mar 22 at 2:43




@dsstorefile Nice, I'm unfamiliar with ffmpeg I got it using the new syntax with the -b 320k option.
– Sarah Szabo
Mar 22 at 2:43















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017792%2fconvert-a-mp4-to-opus-via-command-line%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017792%2fconvert-a-mp4-to-opus-via-command-line%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491