forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AVC testfile

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Sun Jul 02, 2006 11:44 am    Post subject: AVC testfile Reply with quote

Hi jonny,

I recorded a x264 test file "DISCOVERYCHANNEL.avi" with my self compiled vlc which includes the modded x264. Now I want to convert this file to .pmp in order to verify that it can be played with PMP AVC 1.02

So I demuxed it with ffmpeg:
ffmpeg -i DISCOVERYCHANNEL.avi -vcodec copy -f rawvideo -an test.264
ffmpeg -i DISCOVERYCHANNEL.avi -acodec copy -vn test.mp3

Then I muxed it:
pmp_muxer_avc -v test.264 -a test.mp3 -o DISCOVERYCHANNEL.pmp -d 1 -w 480 -h 272 -r 25000 -s 1000

Unfortunately now I see this error:
Status: [dwTotalFrames == 0]

Have you any idea what I'm doing wrong?
I have put the test.264 and test.mp3 files here:
EDIT: removed dl link since the problem is solved

The current status of building AVC support in PMP VLC is as follows:
- after searching doom9 I managed to find an excellent set of parameters for doing real-time transcoding with a cpu load such that I can still do something on my pc
- i'm 80% finished implementing the guidelines you pm'd me (thx!!)

Cheers,
JockyW

EDIT: actually I intended to send this as a pm to jonny... but if anyone else can assist feel free :)


Last edited by jockyw2001 on Mon Jul 03, 2006 12:52 am; edited 1 time in total
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Sun Jul 02, 2006 6:09 pm    Post subject: Reply with quote

hi JockyW

are you using those patches?

http://jonny.leffe.dnsalias.com/pmp_mod_avc/rar/x264_2nd_source.rar

the error you get happen when --aud is not specified (it is already in the default settings if you use the last patches)

PS:
the latest muxer also take avi as input
Back to top
View user's profile Send private message Visit poster's website
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Sun Jul 02, 2006 8:17 pm    Post subject: Reply with quote

jonny wrote:
are you using those patches?
http://jonny.leffe.dnsalias.com/pmp_mod_avc/rar/x264_2nd_source.rar

Yes, I patched x264 with both diffs and linked it in vlc.

Quote:

the error you get happen when --aud is not specified (it is already in the default settings if you use the last patches)

Aha, it could be that vlc calls x264 without setting that option. I will take a look in the sourcecode.
EDIT: Must have caught too much sun yesterday, I forgot to apply the patches. Shame on me :(

Quote:

PS:
the latest muxer also take avi as input

Does it also take avi which has both the video and audio streams? I mean can I simply forget about demuxing the avi and call pmp_muxer_avc without -a test.mp3? (I think I tried already and it failed, even when I tried it with "-a test.mp3")
Code:

pmp_muxer_avc -v test.avi  -o DISCOVERYCHANNEL.pmp -d 1
Back to top
View user's profile Send private message
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Sun Jul 02, 2006 10:10 pm    Post subject: Reply with quote

I can now mux the .h264 and .mp3 streams to a correct pmp file. Pmp_muxer_avc_1_01 doesn't complain. Both the .h264 and .mp3 streams are outputted by vlc which uses the modified x264 encoder (magiK and jonny's diffs are both applied)

However, when I try to play the pmp with pmp_mod_avc_1_02 I get:
Error: "avc_get: sceMpegAvcDecode failed"
So there are one or more parameters sceMpegAvcDecode is stumbling over.

x264 encoding params are:
me=dia,subme=3,analyse=none,bframes=1,b-adapt=none,chroma-me=none,merange=12

video params are:
vcodec=h264,vb=800,width=480,height=272,fps=25

mp3 params are:
acodec=mp3,ab=48,samplerate=44100,channels=2

Does anyone see which parameter(s) is causing the prob?
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Sun Jul 02, 2006 11:44 pm    Post subject: Reply with quote

Quote:

Does it also take avi which has both the video and audio streams?

mp3 need to be always demuxed and passed with -a
(from the video side, there is no need to strip an eventual audio track from the avi)

Quote:

So there are one or more parameters sceMpegAvcDecode is stumbling over

for sure bframes / not sure about the others (i'm lazy to check :p hot is killing me :)
Back to top
View user's profile Send private message Visit poster's website
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Mon Jul 03, 2006 12:12 am    Post subject: Reply with quote

jonny wrote:
for sure bframes / not sure about the others (i'm lazy to check :p hot is killing me :)

YES! It works great with bframes=0 :)
Thx jonny!!

EDIT: feeding the avi directly to pmp_muxer_avc doesn't work. But who cares :) (the filesize of the avi is 6,591,972 bytes so prolly your muxer is trying to read beyond EOF)
Code:

D:\Consoles\PSP\pmp_muxer_avc_1_01>pmp_muxer_avc -v DISCOVERYCHANNEL.avi  -a test.mp3 -o DISCOVERY2.pmp  -d 1

PMP Muxer AVC v1.01 by jonny

DISCOVERYCHANNEL.avi:
Processing video ...

Status: [read failed on 6591972, 4 (0) ("DISCOVERYCHANNEL.avi")]
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Mon Jul 03, 2006 1:28 am    Post subject: Reply with quote

Quote:

YES! It works great with bframes=0 :)
Thx jonny!!

great, i guess full quality streaming is approaching :)


Quote:

EDIT: feeding the avi directly to pmp_muxer_avc doesn't work. But who cares :) (the filesize of the avi is 6,591,972 bytes so prolly your muxer is trying to read beyond EOF)

this seems a sort of non closed chunk, can you pm me the avi?
Back to top
View user's profile Send private message Visit poster's website
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Mon Jul 03, 2006 1:50 am    Post subject: Reply with quote

jonny wrote:
great, i guess full quality streaming is approaching :)

Exactly :)

Quote:
this seems a sort of non closed chunk, can you pm me the avi?

you've got pm
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group