Skip to content

Instantly share code, notes, and snippets.

@gkeramidas
Created September 19, 2016 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gkeramidas/ec19bf398fbbd444d1b5c637f43c01d6 to your computer and use it in GitHub Desktop.
Save gkeramidas/ec19bf398fbbd444d1b5c637f43c01d6 to your computer and use it in GitHub Desktop.
0918 22:44 gkeramidas@gkeramidas-mbp:~$ ./to-ringtone.sh 00:00 00:30 ~/Music/iTunes/iTunes\ Media/Music/Black\ Sabbath/Heaven\ and\ Hell/01\ Neon\ Knights.mp3 neon.m4r
ffmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers
built with Apple LLVM version 7.3.0 (clang-703.0.31)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.1.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libopenh264 --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-libfdk-aac --enable-libx265 --disable-lzma --enable-nonfree --enable-vda
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 47.100 / 6. 47.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, mp3, from '/Users/gkeramidas/Music/iTunes/iTunes Media/Music/Black Sabbath/Heaven and Hell/01 Neon Knights.mp3':
Metadata:
title : Neon Knights
artist : Black Sabbath
album_artist : Black Sabbath
album : Heaven and Hell
track : 1/8
TPA : 1/1
genre : Heavy Metal
date : 1980
Duration: 00:03:50.58, start: 0.025056, bitrate: 159 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 158 kb/s
Metadata:
encoder : LAME3.99r
Side data:
replaygain: track gain - -3.200000, track peak - unknown, album gain - unknown, album peak - unknown,
Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 300x300 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
comment : Other
Codec AVOption vbr (VBR mode (1-5)) specified for output file #0 (neon.m4a) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[ipod @ 0x7fba5103a000] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, ipod, to 'neon.m4a':
Metadata:
title : Neon Knights
artist : Black Sabbath
album_artist : Black Sabbath
album : Heaven and Hell
track : 1/8
TPA : 1/1
genre : Heavy Metal
date : 1980
encoder : Lavf57.41.100
Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc57.48.101 aac
Stream mapping:
Stream #0:0 -> #0:0 (mp3 (native) -> aac (native))
Press [q] to stop, [?] for help
size= 472kB time=00:00:30.00 bitrate= 129.0kbits/s speed=50.9x
video:0kB audio:466kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.291035%
[aac @ 0x7fba5103b200] Qavg: 1457.893
0918 22:44 gkeramidas@gkeramidas-mbp:~$ ls -ld neon*
-rw-r--r-- 1 gkeramidas 1876110778 483689 18 Σεπ 22:44 neon.m4r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment