I want to stream raw pcm a-law audio file with live555 libary.
The file doesn't contains header like wav file has.
I tried to stream it using testWAVAudioStreamer.cpp but it didn't work. (error of unsupported file).
I can play the audio file using ffplay like that:
ffplay -f alaw -ar 8k audio_file
How can i stream this file using testWAVAudioStreamer?
Related
I am trying to get the encryption media API to work for my opus audio file, but i cant seem to figure out how to convert my opus audio file to webm file format
Is it possible to write videoframes from rtsp source in a own file format desigend as a ring buffer using ffmpeg lib?
Am trying to convert .264 files to mp4 or avi or wav format.
I have tried ffmpeg but no luck.
I am using python 2.7 on windows 7.
Please help!!
If you have a .264 file I would suggest to wrap it in a mp4 container (no re-encode required that way).
Try the following:
ffmpeg -i INPUT.h264 -c:v copy OUTPUT.mp4
Moreover, .264 contains video only so there's no way you're gonna convert it to WAV which contains audio only.
I'm building an application in C++ that should use FFmpeg to send a live stream to Flash Media Server. For starters I would like to be able to send a .mp4 file. Using the FFmpeg .exe I can do it like this:
ffmpeg -re -i TEST.mp4 -vcodec libx264 -f flv rtmp://[host]/[application]/[stream]
How would you go about implementing something like that in code? I can only figure out how to read data, not write it. I have found functions to open input but nothing about how to connect to FMS. All write functions I can find seems to be how to write to file. Please advice.
I use this code to create an mkv file with a webm video:
Code
The video that is generated can be opened in vlc and mplayer, however, firefox sais: video can't be played because the file is corrupt
How do I have to change the header so I can open it in firefox, too?
Found the solution... this code actually outputs a so called ivf format, while the real mkv output code can be found here:
(Much more complicated, though)