Convert wav file to pcap - audio

Trying to find a way to covert .wav file to pcap file. I have tried a open source program wav2rtp but the pcap file generated using this program is giving errors when I try to open pcap file in wireshark.
Is there a simpler way to do this file conversion ?
I have .wav & .au formats of the sound file.
Thanks.

You can stream audio (wav in in case) via RTP using VLC easily using GUI. This video will help you. Don't forget to change your codec/encoder to wav.

Related

Can .ts audio files be combined using cat command in append mode to get the .mp3 file

I have some .ts files as part of an hls audio stream. Can I use the cat command to append them and get the .mp3 file. I'm curious what ffmpeg does to create the mp3 from .ts or .m3u8 files so that I can implement it in a node server
No. If you just concatenate them the result is still a MPEG-TS container file, i.e. basically a sequence of 188-byte TS packets. What you need is a MPEG-TS demuxer which would turn (decapsulate) the TS into a sequence of MP3 audio frames
[1], more generally speaking the audio elementary stream.
[1] http://www.mp3-tech.org/programmer/frame_header.html

How to convert proprietary audio file with 16kbit/s

has anyone an idea how to convert this 16kbit/s (maybe) proprietary audio file, back to a standard wave file?
The header strings only tell "PPCM_16" but I don't think it's a packed PCM.
The file format must be about 10 - 25 years old.
The file (it's a .bin format): https://ufile.io/wh6bc
Thank you!
try on the command line:
sox yourfile.bin newfile.wav
and see how it goes

How to play wave files in X11

Please help, I need to play wave files in X11. Is there any API in X11 like PlaySound in windows? Thanks in advance
You can use aplay, mplayer, vlc, mpg123, mpg321, etc.
For raw (non-mp3, non-compressed) wav files, simple cat should work:
cat file.wav > /dev/dsp
If you need API way to do it, this is simple example how to play wav file using ALSA API.
However, this has nothing to do with X11.

What does LAME text does in MP3 file?

I see here http://en.wikipedia.org/wiki/MP3 that MP3 file consists of MP3 headers interchanged with MP3 data. MP3 header consist of few bytes.
But here is my MP3 file dump with ID3 tag cut. Header is highlighted with blue.
You can see that "LAME3.96" text is highlighted with green. What does it does there? Is this a part of MP3 elementary stream? Or this is the part of some headers I didn't tag?
LAME is an MP3 encoder, which is a program that takes an uncompressed audio source and outputs a compressed MP3. That piece of text there just indicates that the file was compressed using the LAME encoder. According to the LAME SourceForge page, the latest version is 3.99, pretty close to what you got inserted into the header of that file.
So don't worry, nobody tried to insult your MP3 file! :P

Stripping Audio From Vob Files through command prompt

What we need to do is either, extract the audio from a group or singular Vob video file and convert it to a .Wav format. Now the process of actually extracting the audio and converting it can be done from a third party application however this application has to be activated from a batch or c# script. The media we are retrieving the vob files from always comes from the CD drive and will always be placed in the same folder location once the conversion is complete.
In shot I need a program or script that can be activated remotely to extract and convert vob files to .WAV.
Any help will be greatly appreciated.
I only install ffmpeg on Windows and put in cmd this command:
ffmpeg -i [VOB_file_route].VOB [WAV_file_output_route].wav
And that's all, just works.
To do somthing like this you will need to use VLC and cmd they work togeather well and will allow you to strip video and audio from a file easily

Resources