Hi everybody,<br><br>I am using openRTSP to record the video and the audio stream of an RTSP source (openRTSP rtsp://url).<br>As expected, openRTSP is creating two files: "audio-MPEG4-GENERIC-2" for the audio (aac) and "video-MP4V-ES-1" for the video (m4v).<br>
I manage to play the video file with vlc (vlc file/m4v://video-MP4V-ES-1), however vlc fails when I try to do the same on the audio file (vlc file/m4a://audio-MPEG4-GENERIC-2). <br><br>Here bellow is the output of vlc in verbose mode:<br>
############<br>[00000305] main packetizer debug: using packetizer module "packetizer_mpeg4audio"<br>[00000303] main demuxer debug: using demux2 module "m4a"<br>[00000298] main input debug: thread 1126287696 (input) created at priority 0 (input/input.c:265)<br>
[00000298] main input debug: `file/m4a://audio-MPEG4-GENERIC-2' successfully opened<br>[00000298] main input debug: EOF reached<br>[00000298] main input debug: closing input<br>############<br><br>I believe this is because openRTSP creates a "raw" aac file, i.e a file without header.<br>
<br>Thus my questions:<br>How can I change openRTSP so that it creates a header for the audio file?<br>Is it possible to use the SDP information to create a header?<br>Does anyone knows a program/library that I can use to create a header for my aac raw file(ex: from SDP info)?<br>
<br><br>I am a newbe to openRTSP, thanks a lot in advance for any help!<br>