Changes between Version 8 and Version 9 of audio types


Ignore:
Timestamp:
Mar 21, 2021, 3:19:04 AM (3 months ago)
Author:
Roger Pack
Comment:

add example

Legend:

Unmodified
Added
Removed
Modified
  • audio types

    v8 v9  
    11= Audio Types =
    22
    3 FFmpeg can read various raw audio types (sample formats) and demux or mux them into different containers (formats). For example, you can read and write raw PCM audio into a WAV container.
     3FFmpeg can read various raw audio types (sample formats) and demux or mux them into different containers (formats). For example, you can read and write raw PCM audio into a WAV container.  Or convert between raw types.
    44
    55== Sample Formats ==
     
    6666ffmpeg -i input -f s16le -c:a pcm_s16le output.raw
    6767}}}
     68
     69You can determine the format of a file, ex
     70
     71{{{
     72$ ffmpeg -i Downloads/BabyElephantWalk60.wav
     73ffmpeg version ...
     74...
     75Input #0, wav, from 'Downloads/BabyElephantWalk60.wav':
     76  Duration: 00:01:00.00, bitrate: 352 kb/s
     77    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s
     78}}}
     79
     80The pcm_s16le tells you what format your audio is in.  And that happens to be a common format.