How could I stream 3gp or mp4 ?

149 views
Skip to first unread message

Martin Mueller

unread,
Jul 1, 2009, 6:10:59 AM7/1/09
to xuggler-users
Hello,

im trying to stream a video in a 3gp-container, or a mp4-container to
an output-stream.

But i get the following exception:

12:04:52.812 [send clip 0] ERROR org.ffmpeg - [mp4 @ 0xb3e0050] muxer
does not support non seekable output
12:04:52.812 [send clip 0] ERROR com.xuggle.xuggler - Error: could not
write header for container (../../../../../../../csrc/com/xuggle/
xuggler/Container.cpp:657)
java.lang.RuntimeException: Error Operation not permitted, failed to
write header to container com.xuggle.xuggler.IContainer@181201664
[url:xuggler:182bac49-18e1-4b11-9984-a8b74c1a338b-
java.nio.channels.Channels
$1-1543c88.mp4;type:WRITE;format:com.xuggle.xuggler.IContainerFormat@182699832
[oname:mp4;olongname:MP4 format;omimetype:application/
mp4;oextensions:mp4;];] while establishing stream
com.xuggle.xuggler.IStream@181842576[index:0;id:
0;streamcoder:com.xuggle.xuggler.IStreamCoder@182024712
[codec=com.xuggle.xuggler.ICodec@181222936
[type=CODEC_TYPE_AUDIO;id=CODEC_ID_AAC;name=libfaac;];time
base=1/90000;frame rate=0/0;sample rate=44100;channels=2;];framerate:
0/0;timebase:1/90000;direction:OUTBOUND;]
at com.xuggle.mediatool.MediaWriter.getStream(MediaWriter.java:1065)
at com.xuggle.mediatool.MediaWriter.encodeAudio(MediaWriter.java:837)
at com.xuggle.mediatool.MediaWriter.onAudioSamples(MediaWriter.java:
1448)
at com.xuggle.mediatool.AMediaToolMixin.onAudioSamples
(AMediaToolMixin.java:89)
at com.xuggle.mediatool.MediaToolAdapter.onAudioSamples
(MediaToolAdapter.java:101)
at com.unitedinternet.portal.ConfigureWriter.onAudioSamples
(ConfigureWriter.java:74)
at com.xuggle.mediatool.AMediaToolMixin.onAudioSamples
(AMediaToolMixin.java:89)
at com.xuggle.mediatool.MediaReader.dispatchAudioSamples
(MediaReader.java:628)
at com.xuggle.mediatool.MediaReader.decodeAudio(MediaReader.java:555)
at com.xuggle.mediatool.MediaReader.readPacket(MediaReader.java:469)


is it possible to mux that in another way, so it is possible to stream
it?

the codecs in there are MPEG4 and AAC

thanks for help

Martin Mueller

Art Clarke

unread,
Jul 1, 2009, 10:16:38 AM7/1/09
to xuggle...@googlegroups.com
Those containers aren't streamable (the FFmpeg muxer needs to seek back and forth in the file).  The RTP container is, but it has some trouble containing H264 video.

Community (since you guys do this more than I do), any other recommendations for Martin?

- Art
--
http://www.xuggle.com/
xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and video.

Use Xuggle to get the power of FFMPEG in Java.

Stas Oskin

unread,
Jul 5, 2009, 4:36:45 AM7/5/09
to xuggle...@googlegroups.com
From my experience (didn't check this on Xuggler yet), H.264 in RTP format works great.

2009/7/1 Art Clarke <acl...@xuggle.com>

Jeff

unread,
Jul 9, 2009, 1:23:27 PM7/9/09
to xuggler-users
Martin,

Which media/streaming server do you use? whats the use case?

-Jeff

On Jul 5, 1:36 pm, Stas Oskin <stas.os...@gmail.com> wrote:
> From my experience (didn't check this on Xuggler yet), H.264 in RTP format
> works great.
>
> 2009/7/1 Art Clarke <acla...@xuggle.com>
>
>
>
> > Those containers aren't streamable (the FFmpeg muxer needs to seek back and
> > forth in the file).  The RTP container is, but it has some trouble
> > containing H264 video.
>
> > Community (since you guys do this more than I do), any other
> > recommendations for Martin?
>
> > - Art
>
> > On Wed, Jul 1, 2009 at 3:10 AM, Martin Mueller <
> > karottenfres...@googlemail.com> wrote:
>
> >> Hello,
>
> >> im trying to stream a video in a 3gp-container, or a mp4-container to
> >> an output-stream.
>
> >> But i get the following exception:
>
> >> 12:04:52.812 [send clip 0] ERROR org.ffmpeg - [mp4 @ 0xb3e0050] muxer
> >> does not support non seekable output
> >> 12:04:52.812 [send clip 0] ERROR com.xuggle.xuggler - Error: could not
> >> write header for container (../../../../../../../csrc/com/xuggle/
> >> xuggler/Container.cpp:657)
> >> java.lang.RuntimeException: Error Operation not permitted, failed to
> >> write header to container com.xuggle.xuggler.IContainer@181201664
> >> [url:xuggler:182bac49-18e1-4b11-9984-a8b74c1a338b-
> >> java.nio.channels.Channels
>
> >> $1-1543c88.mp4;type:WRITE;format:com.xuggle.xuggler.IContainerFormat@182699­832
> > Use Xuggle to get the power of FFMPEG in Java.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages