Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th May 2005, 15:28   #1  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
Sony AVC sample

as some might already know Sony's PSP supports AVC playback

now it seems that this doesnt work from .mp4 (as for AAC and MPEG-4 part2 video from the Memory Stick), but from the ".pmf" format

the .pmf format seemed to be a proprieatary container developed by sony, but now showed itself to be simply .mpg (mpeg-ps)

therefore if you wanna have a look at an avc stream from sony
1) grab the following pmf sample file
2) extract the video from it with mplayer via
Code:
mplayer -dumpvideo -dumpfile raw.264 icon1.pmf
3) play it with mplayer or run the h264_parse tool from mpeg4ip on it to analyse it

the stream (300 frames) uses CABAC, Access Unit Delimiters (as mandatory for .mpg files), no B-Frames, no Deblocking, and no multiple reference frames

the stream is full of buffering_period and pic_timing SEI, which maybe should make the decoding easier?

the stream seems to be problematic because it uses different PPS every keyframe (pic_init_qp_minus26 changes in every PPS), which can bork at least the libavcodec/ffmpeg decoder (as used in videolan, mplayer or ffdshow) when placing the stream in .mp4 (with either mp4box or mp4creator)
is it allowed to have varying PPS every keyframe?
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 6th May 2005, 19:02   #2  |  Link
JohnV
Registered User
 
JohnV's Avatar
 
Join Date: Jan 2002
Location: Finland
Posts: 522
Can you play .pmf from a memory stick, and can you create this kind of avc stream which works from memory stick with a non-sony AVC-encoder which puts the stream to mpeg-ps?
__________________
Check Nero Digital Information Thread on Doom9

Juha Laaksonheimo
JohnV is offline   Reply With Quote
Old 8th May 2005, 03:19   #3  |  Link
godhead
Registered User
 
godhead's Avatar
 
Join Date: Feb 2002
Posts: 63
JohnV,

I attempted to play a .pmf from the memory stick but it wasn't recognized. I'm assuming this is something UMD only. I'm really starting to think the UMD's have an AVC playback app that runs. I doubt there's anything more than MPEG4 SP support in the OS. This is just a guess right now, but maybe more can be found when they start looking at the UMD movie file dumps.
godhead is offline   Reply With Quote
Old 8th May 2005, 09:04   #4  |  Link
unixfs
Registered User
 
Join Date: May 2002
Posts: 308
That sample doesn't contain a PSM, that is needed to qualify the codec
used (AVC in this case), missing which the default is MPEG2, so mplayer/vlc/tcvp can't play the samples unless you dump video.
Do you have any other sample?
It's ironic that the directory is called PSMC
I could fix mplayer's demuxer with a specific parameter, but it would be
really bad.
Someone should warn Sony to implement the standard properly, not
only part of it.
unixfs is offline   Reply With Quote
Old 8th May 2005, 10:45   #5  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
Quote:
Originally posted by unixfs
[B]That sample doesn't contain a PSM, that is needed to qualify the codec
used (AVC in this case), missing which the default is MPEG2, so mplayer/vlc/tcvp can't play the samples unless you dump video.
any other things that make .pmf different from normal .mpg?

Quote:
Do you have any other sample?
here and here

Quote:
Someone should warn Sony to implement the standard properly, not
only part of it.
i doubt sony gives a damn. afterall the files are called .pmf and are therefore not meant to be fully spec compliant
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free

Last edited by bond; 8th May 2005 at 11:28.
bond is offline   Reply With Quote
Old 8th May 2005, 11:13   #6  |  Link
unixfs
Registered User
 
Join Date: May 2002
Posts: 308
thanks for those samples.

There are funny, bad and mysterious things:
- the video stream doesn't seems to contain VUI messages and/or framerate informations (so you have to specify -fps xx when playing the stream with mplayer)
- audio is stored as private1 stream with substream id = 0; from the dump
I couldn't identify the format/codec used, but I have the feeling (I'm afraid) it is AAC in raw payload format (without ADTS headers);
in this case it's next to impossible to decode if you don't identify
the configurator
- there is a private2 stream that contains hundred of bytes every now and then; to me it seems way too long to contain AAC headers

Do you know anything more precise or a link to a specification?
unixfs is offline   Reply With Quote
Old 8th May 2005, 11:27   #7  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
the audio is sony's proprieatary atrac3 format pretty sure

is it stored correctly as "private stream"?
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 8th May 2005, 11:44   #8  |  Link
unixfs
Registered User
 
Join Date: May 2002
Posts: 308
syntactally yes, but using a substream id == 0 doesn't make much sense
unixfs is offline   Reply With Quote
Old 15th January 2006, 08:55   #9  |  Link
digigami
Digigami
 
Join Date: Jul 2005
Location: Los Angeles, CA
Posts: 182
Quote:
Originally Posted by unixfs
syntactally yes, but using a substream id == 0 doesn't make much sense
I would have to double check the ISO documents, but I think substream_id was a concept introduced by the VOB and is not part of the regular MPEG-2 PS specification. To be more specific - since it's not a VOB, the first data byte would not necessarily be part of any header.
__________________
Digigami
MoviesForMyPod MPEG-4 H.264 iPod Converter - Popular, free, easy.
MegaPEG MPEG-2 Encoder - Like Rodney Dangerfield, gets no respect (except from customers).
MPressionist MPEG-2 Analyzer - no problems with this one, everybody likes it, including me.

Last edited by digigami; 15th January 2006 at 08:58.
digigami is offline   Reply With Quote
Old 15th January 2006, 09:49   #10  |  Link
eb
Registered User
 
Join Date: Feb 2004
Location: Poland
Posts: 515
I can demux and play video from this first short sample E0 stream.
Audio is BF private stream but not playable for me.
Another 2 long samples nothing can do with them.
Picture from short sample
eb is offline   Reply With Quote
Old 8th June 2006, 18:01   #11  |  Link
digigami
Digigami
 
Join Date: Jul 2005
Location: Los Angeles, CA
Posts: 182
http://www.maxconsole.net/?mode=news&newsid=7679
Quote:
Sony Announce UMD Composer For UMD Video Creation

Sony Computer Entertainnment Japan have announced some new UMD video authoring software called UMD composer. It allows developers to create UMD discs images and will set you back a cool 215,000 yen, or less dauntingly approximately $2000 USD!
After demuxing and looking at some UMD titles I had pretty much determined they were encoded at 720x480 and also, some short sections were interlaced! I think we will know the rest soon enough.
__________________
Digigami
MoviesForMyPod MPEG-4 H.264 iPod Converter - Popular, free, easy.
MegaPEG MPEG-2 Encoder - Like Rodney Dangerfield, gets no respect (except from customers).
MPressionist MPEG-2 Analyzer - no problems with this one, everybody likes it, including me.
digigami is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:18.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.