List Info

Thread: Demuxing H.264




Demuxing H.264
user name
2007-04-03 15:01:48
Hello!

With some help from the IRC channel, I managed to get my
MPEG-4
decoder to work with a demuxer. That is, "filesrc !
qtdemux !
mympeg4dec ! mysink" now works correctly, thanks to the
codec_data
being prepended to the first buffer.

However, that's not helping much with H.264 and am having a
hard time
with it. The problem is that my decoder chokes with the raw
data. I
digged into gstffmpeg's H.264 decoder and the codec_data
seems to be
information about NAL Units.

Is there any way to decode this information without
#including and
linking against libavcodec?

I noticed this was discussed in this mailing list a couple
of days
ago, but couldn't find the final resolution.

Thanks for any pointers. Greetings!

Daniel Díaz
yosoydanieldiaz.org

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel

Re: Demuxing H.264
user name
2007-04-03 21:03:20
Daniel_Díaz, Hello
 
It sounds that you meet the same problem.
First, you need to parse codec_data, check file "h264.c" from gst-ffmpeg-0.10.2, the function "decode_frame" show you how to parse it.
Second, you should convert frame to nal unit, check file "media_export.c" from gpac-0.4.2, the function "gf_media_export_native" show you how to convert based pps, sps and unit size. ;
 
2007-04-04
----- Receiving the following content -----
From: mrchappgmail.com">Daniel_Díaz
Time: 2007-04-04, 04:01:48
Subject: [gst-devel] Demuxing H.264

Hello!

With some help from the IRC channel, I managed to get my MPEG-4
decoder to work with a demuxer. That is, "filesrc ! qtdemux !
mympeg4dec ! mysink" now works correctly, thanks to the codec_data
being prepended to the first buffer.

However, that's not helping much with H.264 and am having a hard time
with it. The problem is that my decoder chokes with the raw data. I
digged into gstffmpeg's H.264 decoder and the codec_data seems to be
information about NAL Units.

Is there any way to decode this information without #including and
linking against libavcodec?

I noticed this was discussed in this mailing list a couple of days
ago, but couldn't find the final resolution.

Thanks for any pointers. Greetings!

Daniel Díaz
danieldiaz.org">yosoydanieldiaz.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gstreamer-devel mailing list
lists.sourceforge.net">gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )