Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

pcm

How to get frequency from fft result?

December 14, 2023 by Tarik
Categories java Tags android, fft, java, pcm, signal-processing Leave a comment

Writing PCM recorded data into a .wav file (java android)

September 3, 2023 by Tarik

I’ve been wrestling with this exact same question for hours now, and my issue was mostly that when recording in 16 bits you have to be very careful about what you write to the output. The WAV file expects the data in Little Endian format, but using writeShort writes it to the output as Big … Read more

Categories java Tags android, audiorecord, java, pcm, wav Leave a comment

PCM audio amplitude values?

September 2, 2023 by Tarik

Think of the surface of the microphone. When it’s silent, the surface is motionless at position zero. When you talk, that causes the air around your mouth to vibrate. Vibrations are spring like, and have movement in both directions, as in back and forth, or up and down, or in and out. The vibrations in … Read more

Categories iphone Tags android, audio, audio-recording, iphone, pcm Leave a comment

Can ffmpeg convert audio from raw PCM to WAV?

May 1, 2023 by Tarik

The wav container just adds a simple header to the raw PCM data. The header includes the format, sample rate, and number of channels. Since the raw PCM data does not include this information, you will need to specify it on the command line. Options are specified before the file they apply to, so options … Read more

Categories audio Tags audio, ffmpeg, pcm, wav Leave a comment

Getting PCM data of HLS from AVPlayer

April 6, 2023 by Tarik

I would suggest you use FFMPEG library to process HLS streams. This is a little harder but gives more flexibility. I did HLS Player for Android a few years ago (used this project) I believe same applies to iOS.

Categories ios Tags audio, avplayer, http-live-streaming, ios, pcm Leave a comment

Can ffmpeg convert audio to raw PCM? If so, how? [closed]

February 1, 2023 by Tarik

Give this a shot: ffmpeg -i input.flv -f s16le -acodec pcm_s16le output.raw You can get these options by running: ffmpeg -formats See https://trac.ffmpeg.org/wiki/audio%20types for details

Categories ffmpeg Tags ffmpeg, flv, pcm Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa