Skip to content

Instantly share code, notes, and snippets.

@ahsanatiq
ahsanatiq / cloudSettings
Last active February 18, 2020 01:56
vscode sync everything
{"lastUpload":"2020-02-18T01:56:30.149Z","extensionVersion":"v3.4.3"}
@ahsanatiq
ahsanatiq / ffmpeg.md
Created August 2, 2019 00:12 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@ahsanatiq
ahsanatiq / coding_exemplar_answers.md
Last active July 29, 2019 08:14
PHP Developer Coding Answers For Rebilly

PHP Developer Coding Exemplar Anwers

Answer for question 1

The reason that the exception message was thrown in the case presented by QA team is when "superman" term came at the start of string, strpos gives 0 bcoz it founded it at the start position, hence given 0 to the if condition with ! (not) operator makes it true.

Solution:

<?php