| View previous topic :: View next topic |
| Author |
Message |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Sun Jul 02, 2006 11:44 am Post subject: AVC testfile |
|
|
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 |
|
 |
jonny
Joined: 22 Sep 2005 Posts: 351
|
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Sun Jul 02, 2006 8:17 pm Post subject: |
|
|
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 |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Sun Jul 02, 2006 10:10 pm Post subject: |
|
|
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 |
|
 |
jonny
Joined: 22 Sep 2005 Posts: 351
|
Posted: Sun Jul 02, 2006 11:44 pm Post subject: |
|
|
| 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 |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Mon Jul 03, 2006 12:12 am Post subject: |
|
|
| 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 |
|
 |
jonny
Joined: 22 Sep 2005 Posts: 351
|
Posted: Mon Jul 03, 2006 1:28 am Post subject: |
|
|
| 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 |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Mon Jul 03, 2006 1:50 am Post subject: |
|
|
| 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 |
|
 |
|