Advertisement
Guest User

Untitled

a guest
Mar 18th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.57 KB | None | 0 0
  1. Command:
  2.  
  3. ./ffmpeg -i 5BCD2B50-E87C-4549-865A-CCC7B1DB96DA.mp3 \
  4. -i 7D1393B3-5B8C-4D5B-866E-141454E4DDB2.mp3 \
  5. -filter_complex " \
  6. [0:a] atrim=26:60,afade=t=in:st=0:d=7,afade=t=out:st=50:d=9[fadedout0]; \
  7. [1:a] atrim=0:29,afade=t=out:st=24:d=5[fadedout1];\
  8. aevalsrc=0:d=26[paddedoutput1]; \
  9. [paddedoutput1][fadedout1] concat=n=2:v=0:a=1 [padded1]; \
  10. [fadedout0][padded1] amix=inputs=2" -y out.wav
  11.  
  12. Output:
  13.  
  14. rohan@rohan-vbox:~/test_folder$ ./run.sh
  15. ffmpeg version N-53555-g6b7ce0e-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2016 the FFmpeg developers
  16.   built with gcc 5.3.1 (Debian 5.3.1-11) 20160307
  17.   configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx --cc=gcc
  18.   libavutil      55. 19.100 / 55. 19.100
  19.   libavcodec     57. 28.103 / 57. 28.103
  20.   libavformat    57. 28.102 / 57. 28.102
  21.   libavdevice    57.  0.101 / 57.  0.101
  22.   libavfilter     6. 39.102 /  6. 39.102
  23.   libswscale      4.  0.100 /  4.  0.100
  24.   libswresample   2.  0.101 /  2.  0.101
  25.   libpostproc    54.  0.100 / 54.  0.100
  26. [mp3 @ 0x5a01280] Estimating duration from bitrate, this may be inaccurate
  27. Input #0, mp3, from '5BCD2B50-E87C-4549-865A-CCC7B1DB96DA.mp3':
  28.   Metadata:
  29.     artist          : FamilyJules7x
  30.     TCM             : Danny Baranowsky
  31.     album           : PC Covers
  32.     genre           : Video Game Music
  33.     date            : 2012
  34.   Duration: 00:07:25.60, start: 0.000000, bitrate: 328 kb/s
  35.     Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
  36.     Stream #0:1: Video: png, rgb24(pc), 720x720 [SAR 2835:2835 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
  37.     Metadata:
  38.       comment         : Other
  39. Input #1, mp3, from '7D1393B3-5B8C-4D5B-866E-141454E4DDB2.mp3':
  40.   Metadata:
  41.     major_brand     : isom
  42.     minor_version   : 512
  43.     compatible_brands: isomiso2mp41
  44.     encoder         : Lavf57.28.100
  45.   Duration: 00:02:14.14, start: 0.025057, bitrate: 139 kb/s
  46.     Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 139 kb/s
  47.     Metadata:
  48.       encoder         : Lavc57.28
  49. Output #0, wav, to 'out.wav':
  50.   Metadata:
  51.     IART            : FamilyJules7x
  52.     TCM             : Danny Baranowsky
  53.     IPRD            : PC Covers
  54.     IGNR            : Video Game Music
  55.     ICRD            : 2012
  56.     ISFT            : Lavf57.28.102
  57.     Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s (default)
  58.     Metadata:
  59.       encoder         : Lavc57.28.103 pcm_s16le
  60. Stream mapping:
  61.   Stream #0:0 (mp3) -> atrim
  62.   Stream #1:0 (mp3) -> atrim
  63.   amix -> Stream #0:0 (pcm_s16le)
  64. Press [q] to stop, [?] for help
  65. Error while filtering: Cannot allocate memory
  66. size=    5857kB time=00:01:00.00 bitrate= 799.7kbits/s speed= 302x    
  67. video:0kB audio:5857kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.002634%
  68. rohan@rohan-vbox:~/test_folder$ free -m
  69.              total       used       free     shared    buffers     cached
  70. Mem:          2000       1776        224         23         52        663
  71. -/+ buffers/cache:       1060        940
  72. Swap:         2045        115       1930
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement