Created
July 6, 2017 20:32
-
-
Save LeifAndersen/4ad123e2bf3b528f5d13b10d4f78d973 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ffmpeg -i demo.mp4 -filter_complex "[a:0]asetpts=2*(PTS-STARTPTS)[fa]" -map "[fa]" out.mp3 | |
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers | |
built with Apple LLVM version 8.0.0 (clang-800.0.42.1) | |
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.2 --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 --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 | |
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'demo.mp4': | |
Metadata: | |
major_brand : isom | |
minor_version : 512 | |
compatible_brands: isomiso2avc1mp41 | |
encoder : Lavf57.71.100 | |
Duration: 00:03:20.11, start: 0.000000, bitrate: 4256 kb/s | |
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 4122 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default) | |
Metadata: | |
handler_name : VideoHandler | |
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default) | |
Metadata: | |
handler_name : SoundHandler | |
File 'out.mp3' already exists. Overwrite ? [y/N] y | |
Stream mapping: | |
Stream #0:1 (aac) -> asetpts | |
asetpts -> Stream #0:0 (libmp3lame) | |
Press [q] to stop, [?] for help | |
Output #0, mp3, to 'out.mp3': | |
Metadata: | |
major_brand : isom | |
minor_version : 512 | |
compatible_brands: isomiso2avc1mp41 | |
TSSE : Lavf57.71.100 | |
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp (default) | |
Metadata: | |
encoder : Lavc57.89.100 libmp3lame | |
size= 3127kB time=00:06:40.16 bitrate= 64.0kbits/s speed=71.4x | |
video:0kB audio:3127kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.011118% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment