Log in

View Full Version : Question abaout h.264 encoded streams


svenali
16th April 2007, 19:36
Hello all,

I need some base informations abaout h.264-es-streams:

1.) I worked with mpeg2-video-es in the past. There I could always find 00 00 01 00 - Startcodes for every encoded frame. Now, with AVC, it is different. I read in my book and hope to understood, that in AVC-Streams we have no complete frames, we have slices right? And I read in forums, that if I want to cut avc-streams, that i can make it on every IDR-Frames right too? If yes, then my problem is, how to identyfy an IDR-Frame in such a stream. I find starttags too but if i parse with help of ffmpeg decoder, i can't find the beginning of such an idr-frame. I wish such beautyful ISO-Reference file like my (downloaded) ISO-13818-1 pdf. But such a file for avc costs a lot of money. Does anyone could help me getting such file? Or could anyone help me answering the question how to identyfy such IDR-Frame and parse the specific headers (SPS/PPS) ?

2.) The use of .mpg-container file is not state-of-the art. Same question like above. Has anyone the ISO-14496-10 pdf-File? Or could anyone send me a description like that file. I know, here in the forum exists a thread about that topic, but this is not in the quality like the ISO-pdfs. Please help me.

3.) Does anyone know the new structure of a Blue-Ray or an HD-DVD medium? I mean, does such a new medium owns files like the VOB's at a dvd? I wanna know, if it is possible to store cutted mp4 files at a BlueRay to play the files in a new BlueRay Player???

Questions about question. I hope not, that it is impolite from me, but i have really a few problems with the new file-format. Now, i know a lot about mpeg2 and the streams, but the knew streams, i thought i can handle them, are a quiz for me. Please, it would be nice if anyone could give some hints. It would be also ok, if anyone has good pdf's like the ISO's.

Thanks very much,
svenali

akupenguin
16th April 2007, 23:13
1.) http://www.itu.int/rec/T-REC-H.264

svenali
17th April 2007, 09:14
:thanks: akupenguin

I've found this good document. Thank you very much. With that document I think i can identify everything.

To my second question. I've also looked for the container documents there (because of muxing h.264 into a mp4). I found only the h.222.0 - document but this describes the knowing containers ps and ts. I did not find a description of mp4-containers. Could anyone give me an internet address? I've looked in google but did not find something.

To my last question. I read that the BlueRay Disks and HD-DVD Discs uses a framerate of 24 fps. HD DigitalTV uses a framerate of 25. Am i right if i say, that i could mux a 25 fps video stream to a 24 fps video stream by manipulating the fps flags and also the timestamps??? Or is more than this to do :confused:?

sincerly,
sven

svenali
18th April 2007, 19:02
Hello,

OK, I think I was blind :rolleyes: . At now I found the docs I needed!

Sven

jcar
18th April 2007, 20:49
3) I guess they playback of mp4 files will depend on your player. The ps3 for example plays mp4 encoded in AVC but only certain profiles.
There's an example of the file structure of a BD here:
http://forum.doom9.org/showpost.php?p=938671&postcount=1

The m2ts/mts are where the video streams are.

PuzZLeR
19th April 2007, 04:47
Hello,

OK, I think I was blind :rolleyes: . At now I found the docs I needed!

Sven

Hey Sven. I'm happy for you. Can I get you to post some of your findings if you could be so kind?

Thanks.

svenali
22nd April 2007, 19:01
Sorry, i was away for some days.

I found very good documents here about containers here:
http://standards.iso.org/ittf/PubliclyAvailableStandards.

If you don't find them, i cn send it to you via mail.

nice sunday,
sven

CruNcher
23rd April 2007, 10:00
Jesus just tried to cut a sample out of a Blu-Ray (h264 .m2ts ) with the latest Xmuxer Pro that is horror i get so strange startcodes like for example this here :P
00000121003C088948AFDCBCED903B47
or this
0000000109100000000127640029AC7B
oh my this is funny muxing directly into .ts .mpg (ps) playback works better with different decoders/parsers (Cyberlink gives the best results here) then trying to mux into .mp4 or .mkv so many visual errors (even if demuxing the remuxed .ts file's raw h.264 stream into a .mp4) then, but mplayer seems to be the most robust here it shows most of this strange streams ok and even DGavcindex shows some of them ok (but muxing in .mp4 gives strange visual errors @ playback with basicly all Pro Decoders) VLC shows most of this as gray and with choped slices :P
so cutting directly somewhere inside the stream seems not a good idea (but if you use transport stream or programm stream it seems to work rather fine at least much better then putting those raw stuff into .mp4/.mkv). This seems to be a real interoperability nightmare :P i wonder why Xmuxer has this cut option then but ok with .ts and .mpg output it works quite well even with those strange startcodes.
Pro decoders like Sonic,Elecard,Cyberlink seem to be more optimized for .ts and .mpg (ps) then .mp4