Skip to content

Survival recipes

reminders for me

Month: March 2017

cut audio files with ffmpeg

To create an mp3 file of the first 30s of an existent mp3 file, just use the following command.

ffmpeg -t 30 -i inputfile.mp3 -acodec copy outputfile.mp3

In case the original format is not mp3 you can use instead

ffmpeg -t 30 -i inputfile.webm -acodec libmp3lame -aq 4  outputfile.mp3

Author Albert LacambraPosted on 13/03/2017Tags audio, ffmpeg, mp3Leave a comment on cut audio files with ffmpeg

Move current reference of branch on Git

To force a git branch to point to a specific commit use the next command: git branch -f <branch-name> <commit-hash>

Author Albert LacambraPosted on 12/03/201713/03/2017Tags gitLeave a comment on Move current reference of branch on Git

Recent Posts

  • Hamcrest matchers
  • Creating new Hyperledger Fabric material and other commands
  • Useful vi commands
  • Mango queries for couchdb
  • Send gradle build to artifactory/nexus server

Archives

  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • August 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • September 2016

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Tags

audio aws bash database debug development dns docker fabric ffmpeg filesystem git gradle hyperledger intellij java java 8 java ee jax-rs less linux log logger logging logs mac macOS mp3 nashorn osx testing ubuntu vert.x
Survival recipes Proudly powered by WordPress