<div>Hi Ben,</div>
<div>&nbsp;</div>
<div>Can you tell me how you did it? I am trying to mux AMR audio into a mov file, but all I get in output is a 182 byte file. I used the pipeline</div>
<div>filesrc ! audio/AMR,rate=8000,channels=2 ! ffmux_mov ! filesink.</div>
<div>(I checked that the file does indeed have a #!AMR header).</div>
<div>&nbsp;</div>
<div>I even tried doing it in mp4 using a AAC file as input and ffmux_mp4. When I tried to run the output file, the players show the duration as more than 8000 hours and are not able to play it at all! I am totally at a loss.
</div>
<div>&nbsp;</div>
<div>Would really appreciate some help here.</div>
<div>&nbsp;</div>
<div>Deeptendu<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/25/06, <b class="gmail_sendername">Benoit Fouet</b> &lt;<a href="mailto:benoit.fouet@purplelabs.com">benoit.fouet@purplelabs.com</a>&gt; wrote:</span></div>
<div><span class="gmail_quote">that does :)<br>indeed, I modified a bit the amrnb- dec/enc stuff a bit here, so that it<br>handles the amr header.<br>(to avoid the use of the amr parser)<br>sorry for all the noise, it seems i told a lot of stupid things yesterday...
<br><br>indeed, thanks for explanation Daniel !<br><br></span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Daniel Díaz wrote:<br>&gt; Hello there!<br>&gt;<br>&gt;<br>&gt; On 10/25/06, Benoit Fouet &lt;<a href="mailto:benoit.fouet@purplelabs.com">
benoit.fouet@purplelabs.com</a>&gt; wrote:<br>&gt;<br>&gt;&gt; Hi<br>&gt;&gt;<br>&gt;&gt; SP GLE wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; Hi,<br>&gt;&gt;&gt; I'm trying to link an 'amrnbenc' element and a 'ffmux_mov',<br>&gt;&gt;&gt; amrnbenc SRC caps are
<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;Capabilities:<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; audio/AMR<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rate: 8000<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channels: 1<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; ffmux_mov SINK Caps are<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; audio/x-amr-nb
<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rate: [ 8000, 96000 ]<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channels: [ 1, 2 ]<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; so linking seems incompatible, how can i link these elements ? Is there<br>&gt;&gt;&gt; a way to change capabilities ?
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; failed negotiation between pads is attached for the following cmd :<br>&gt;&gt;&gt; GST_DEBUG=4 GST_DEBUG_NO_COLOR=1&nbsp;&nbsp;gst-launch audiotestsrc !<br>&gt;&gt;&gt; audioconvert ! amrnbenc ! ffmux_mov ! filesink location=/tmp/f.mov
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Thanks.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt; you have to change the source code of amr decoder, so that it is<br>&gt;&gt; audio/x-amr-nb too on its sink pad.<br>&gt;&gt;<br>&gt;<br>
&gt; Why was that, again?<br>&gt;<br>&gt; As I understand it, audio/x-amr-nb-sh is &quot;MIME-ful&quot; AMR narrow band,<br>&gt; that is, with a header like this: `echo '#!AMR' &gt; header.amr`.<br>&gt;<br>&gt; Then, audio/AMR is &quot;MIME-less&quot; AMR information. Certainly, the output
<br>&gt; of the amrnbenc is lacking such header because it is pure AMR data, no<br>&gt; MIME header.<br>&gt;<br>&gt; That's why amrnbparse takes audio/x-amr-nb-sh and outputs audio/AMR.<br>&gt;<br>&gt; See section 8.1 of RFC 3267, where it says that MIME type for AMR is
<br>&gt; precisely audio/AMR, with audio/AMR-WB being used for wide band.<br>&gt;<br>&gt; Also, I vaguely recall that one of the de/muxers needed such header<br>&gt; for AMR, or needed it not when coming from RTP. Or something
<br>&gt; in-between :) But in any case, it is possible to have a complete<br>&gt; pipeline with those elements without changing the source code.<br>&gt;<br>&gt; Hope that makes some sense.<br>&gt;<br>that does :)<br>indeed, I modified a bit the amrnb- dec/enc stuff a bit here, so that it
<br>handles the amr header.<br>(to avoid the use of the amr parser)<br>sorry for all the noise, it seems i told a lot of stupid things yesterday...<br><br>indeed, thanks for explanation Daniel !<br><br>-- Ben<br><br>&gt; Daniel Díaz
<br>&gt; <a href="mailto:ddiaz@ti.com">ddiaz@ti.com</a><br>&gt;<br>&gt;<br>&gt;</blockquote>