CODEC_TYPE_DATA in output container

394 views
Skip to first unread message

Teddy Yueh

unread,
Feb 4, 2010, 12:57:08 PM2/4/10
to xuggler-users
Hey guys,

I was wondering if any of you have included a stream of codec type
CODEC_TYPE_DATA in your output containers. The codec id for my
particular case is CODEC_ID_PROBE. I've tried to set up the stream
coder to mirror that of the input stream coder (whose codec is null,
but the type and id are not) since I'm not going to change anything,
but when I try to open the stream coder, it errors and cannot open. If
I just add the stream and do not open the stream coder, my video
stream does not get processed anymore. I get empty frames (0 bytes).
Also, if I don't open the stream coder for the metadata stream, it
errors when the output container tries to write the trailer stating a
stream has already closed (in my case, the coder was never open).

I try to set bit rate, frame rate, sample rate, codec id and time
base. I'm not sure how to set the codec type.

Thoughts?

Thanks,
Teddy

Art Clarke

unread,
Feb 4, 2010, 4:44:35 PM2/4/10
to xuggle...@googlegroups.com
CODEC_ID_PROBE is a special codec used internally by FFmpeg and really should only be used when demuxing; You should never add it as an output codec.

- Art


--
You received this message because you are subscribed to the Google Groups "xuggler-users" group.
To post to this group, send email to xuggle...@googlegroups.com.
To unsubscribe from this group, send email to xuggler-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xuggler-users?hl=en.




--
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.

Teddy Yueh

unread,
Feb 4, 2010, 5:08:15 PM2/4/10
to xuggler-users
D'oh. Then is there no way to include metadata as output stream?

-Teddy

> > xuggler-user...@googlegroups.com<xuggler-users%2Bunsu...@googlegroups.com>


> > .
> > For more options, visit this group at
> >http://groups.google.com/group/xuggler-users?hl=en.
>

> --http://www.xuggle.com/

Art Clarke

unread,
Feb 5, 2010, 2:00:57 AM2/5/10
to xuggler-users
See the IContainer and IStream getMetaData and setMetaData methods.
Not all container formats in FFmpeg support reading and writing meta-
data (for example, FLV can read meta-data but cannot write it
currently).

- Art

pshmo

unread,
Feb 6, 2010, 8:01:29 AM2/6/10
to xuggler-users
Hey Art,

I don't think that CODEC_TYPE_DATA and meta data are the same thing. I
may be wrong but I believe Teddy is referring to embeded KLV in the
MPEG2 stream.

Is that right Teddy, or did I missunderstand.

> > > > xuggler-user...@googlegroups.com<xuggler-users%2Bunsubscribe@goog­legroups.com>


> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/xuggler-users?hl=en.
>
> > > --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.- Hide quoted text -
>
> - Show quoted text -

Art Clarke

unread,
Feb 6, 2010, 4:08:28 PM2/6/10
to xuggle...@googlegroups.com
Hi pshmo,

Sorry, you're right that he may have been referring to embedding a data track.  I haven't yet had a need to do that so can't personally attest to having tested it in Xuggler.  I have tested parsing out a data track that is already embedded so I know we can demux data tracks (like mpeg2ts).

- Art

To unsubscribe from this group, send email to xuggler-user...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/xuggler-users?hl=en.

Teddy Yueh

unread,
Feb 8, 2010, 11:50:29 AM2/8/10
to xuggler-users
That would be correct, pshmo. Embedded KLV in a MPEG2 stream is
exactly what I'm trying to do. Like Art, I can demux the data track
just fine. I need to add to it and send it back out now hehe. Has
anyone done this yet?

Thanks,
Teddy

> > > > > > xuggler-user...@googlegroups.com<xuggler-users%2Bunsu...@googlegroups.com>


> > <xuggler-users%2Bunsubscribe@goog­legroups.com>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/xuggler-users?hl=en.
>
> > > > > --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.- Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "xuggler-users" group.
> > To post to this group, send email to xuggle...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > xuggler-user...@googlegroups.com<xuggler-users%2Bunsu...@googlegroups.com>

Reply all
Reply to author
Forward
0 new messages