AVC testfile

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
jockyw2001
Posts: 339
Joined: Thu Sep 29, 2005 4:19 pm

AVC testfile

Post by jockyw2001 »

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.
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

hi JockyW

are you using those patches?

http://jonny.leffe.dnsalias.com/pmp_mod ... 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
jockyw2001
Posts: 339
Joined: Thu Sep 29, 2005 4:19 pm

Post by jockyw2001 »

jonny wrote:are you using those patches?
http://jonny.leffe.dnsalias.com/pmp_mod ... source.rar
Yes, I patched x264 with both diffs and linked it in vlc.
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 :(
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: Select all

pmp_muxer_avc -v test.avi  -o DISCOVERYCHANNEL.pmp -d 1
jockyw2001
Posts: 339
Joined: Thu Sep 29, 2005 4:19 pm

Post by jockyw2001 »

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?
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

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)
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 :)
jockyw2001
Posts: 339
Joined: Thu Sep 29, 2005 4:19 pm

Post by jockyw2001 »

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: Select all

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")]
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

YES! It works great with bframes=0 :)
Thx jonny!!
great, i guess full quality streaming is approaching :)

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?
jockyw2001
Posts: 339
Joined: Thu Sep 29, 2005 4:19 pm

Post by jockyw2001 »

jonny wrote:great, i guess full quality streaming is approaching :)
Exactly :)
this seems a sort of non closed chunk, can you pm me the avi?
you've got pm
Post Reply