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 :)
AVC testfile
-
- Posts: 339
- Joined: Thu Sep 29, 2005 4:19 pm
AVC testfile
Last edited by jockyw2001 on Mon Jul 03, 2006 12:52 am, edited 1 time in total.
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
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
-
- Posts: 339
- Joined: Thu Sep 29, 2005 4:19 pm
Yes, I patched x264 with both diffs and linked it in vlc.jonny wrote:are you using those patches?
http://jonny.leffe.dnsalias.com/pmp_mod ... source.rar
Aha, it could be that vlc calls x264 without setting that option. I will take a look in the sourcecode.the error you get happen when --aud is not specified (it is already in the default settings if you use the last patches)
EDIT: Must have caught too much sun yesterday, I forgot to apply the patches. Shame on me :(
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")PS:
the latest muxer also take avi as input
Code: Select all
pmp_muxer_avc -v test.avi -o DISCOVERYCHANNEL.pmp -d 1
-
- Posts: 339
- Joined: Thu Sep 29, 2005 4:19 pm
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?
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?
mp3 need to be always demuxed and passed with -aDoes it also take avi which has both the video and audio streams?
(from the video side, there is no need to strip an eventual audio track from the avi)
for sure bframes / not sure about the others (i'm lazy to check :p hot is killing me :)So there are one or more parameters sceMpegAvcDecode is stumbling over
-
- Posts: 339
- Joined: Thu Sep 29, 2005 4:19 pm
YES! It works great with bframes=0 :)jonny wrote:for sure bframes / not sure about the others (i'm lazy to check :p hot is killing me :)
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")]
great, i guess full quality streaming is approaching :)YES! It works great with bframes=0 :)
Thx jonny!!
this seems a sort of non closed chunk, can you pm me the avi?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)
-
- Posts: 339
- Joined: Thu Sep 29, 2005 4:19 pm