How can i read a m4a file with missing moov atm? - audio

I recorded a M4A file on my phone, but when the battery died the files was written to disk without the moov atom at the end.
As a result, the file is unplayable. how can i fix this so the file can be played??

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

Can I convert mp3 files to mp4 on the fly in a browser?

The playstation 4's browser cannot play any audio files via html5, but it can play .mp4 files. I have a server with all my music on it (all .mp3 or .m4a) and I was wondering if there was any way to, in the playstation 4 browser, convert files to .mp4. If the files could be converted as the page loads, I can point tags to the newly converted .mp4 files. Even if there's some button I have to press to convert one file at a time, it's still better than nothing. Other solutions are welcome too.
Thanks, all

Convert wav file to pcap

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.

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

iPhone App Dev - Edited mp3 files are not working in App

In my application there are mp3 files located in the bundle (nothing from the web). Some of the mp3 files are original files and some I had edited using simple sound editing software (the ones where you insert a file, cut a slice of it and save it as a new and shorter mp3 file).
I'm using the AVAudioPlayer [initWithData] method.
All the original files (the ones that I hadn't edited and inserted to the bundle as is) are working perfectly and all the ones that were edited are not working at all.
I used 2 different editing software and the outcome is the same.
Anyone had ever encountered that or have any idea what may I done wrong?
Thanks,
Ohad
Converting the mp3 to caf worked for me
as specified here.
see the following:
How do I convert an audio file to the preferred format for iPhone OS?
The preferred full-quality audio format for iPhone OS is 16-bit, little-endian, linear PCM packaged as a CAF file. To convert an audio file to this format, use the afconvert tool at the command line in Mac OS X, as shown in Listing 5.
Listing 5 Converting an audio file to the preferred format for iPhone OS
/usr/bin/afconvert -f caff -d LEI16 {INPUT} {OUTPUT}
To see all the options available for the afconvert tool, enter afconvert -h at the command line.

Resources