Can't extract mp3 audio from video with ffmpeg -


my input .mp4 video file.

try #1

ffmpeg -i pipe:0 -y -map media/73.mp3 

error:

ffmpeg version 3.3.3 copyright (c) 2000-2017 ffmpeg developers   built apple llvm version 8.1.0 (clang-802.0.42)   configuration: --prefix=/usr/local/cellar/ffmpeg/3.3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-vda   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 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f977d800000] stream 1, offset 0xa8: partial file [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f977d800000] not find codec parameters stream 0 (video: h264 (avc1 / 0x31637661), none(smpte170m/smpte170m/bt709), 320x176, 300 kb/s): unspecified pixel format consider increasing value 'analyzeduration' , 'probesize' options input #0, mov,mp4,m4a,3gp,3g2,mj2, 'pipe:0':   metadata: major_brand     : mp42 minor_version   : 0 compatible_brands: mp42isomavc1 creation_time   : 2012-03-13t08:58:06.000000z encoder         : handbrake 0.9.6 2012022800   duration: 00:00:10.03, bitrate: n/a stream #0:0(und): video: h264 (avc1 / 0x31637661), none(smpte170m/smpte170m/bt709), 320x176, 300 kb/s, 25 fps, 25 tbr, 90k tbn, 180k tbc (default) metadata: creation_time   : 2012-03-13t08:58:06.000000z   encoder         : jvt/avc coding stream #0:1(und): audio: aac (mp4a / 0x6134706d), 48000 hz, stereo, fltp, 160 kb/s (default) metadata:   creation_time   : 2012-03-13t08:58:06.000000z stream #0:2(und): audio: aac (mp4a / 0x6134706d), 48000 hz, stereo, fltp, 160 kb/s metadata:   creation_time   : 2012-03-13t08:58:06.000000z stream #0:3(und): subtitle: mov_text (text / 0x74786574), 0 kb/s metadata:   creation_time   : 2012-03-13t08:58:06.000000z stream mapping:   stream #0:1 -> #0:0 (aac (native) -> mp3 (libmp3lame))   stream #0:2 -> #0:1 (aac (native) -> mp3 (libmp3lame)) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f977d800000] stream 1, offset 0xa8: partial file pipe:0: invalid data found when processing input finishing stream 0:0 without data written it. finishing stream 0:1 without data written it. [mp3 @ 0x7f977b846800] invalid audio stream. 1 mp3 audio stream required. not write header output file #0 (incorrect codec parameters ?): invalid argument error initializing output stream 0:1 --  conversion failed! 

try #2

ffmpeg -i pipe:0 -y -vn -acodec copy media/72.mp3 

error:

[...] [mp3 @ 0x7febed835200] invalid audio stream. 1 mp3 audio stream required. not write header output file #0 (incorrect codec parameters ?): invalid argument 

try #3

ffmpeg -i pipe:0 -y -codec:a libmp3lame -qscale:a 2 media/74.mp3 

no error ffmpeg, file invalid (it's size 334 bytes)


try #4

ffmpeg -i pipe:0 -y -vn -acodec mp3 media/78.mp3 

no error ffmpeg, file invalid (it's size 334 bytes)


try #5

ffmpeg -f mp4 -i pipe:0 -y media/80.mp3 

no error ffmpeg, file invalid (it's size 334 bytes)


what doing wrong? seems easy thing do...


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -