 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Alcahest
Joined: 25 Mar 2005 Posts: 135
|
Posted: Sat Jul 29, 2006 7:13 am Post subject: |
|
|
Yaye! I can confirm it works fine AVC with 4/3 ratio!
I didn't have the correct VLC-ENABLE.AVI, that's why!
Thanks jocky :D
Later,
Alcahest |
|
| Back to top |
|
 |
DocMAX
Joined: 13 Jun 2006 Posts: 35
|
Posted: Sat Jul 29, 2006 10:23 am Post subject: |
|
|
another question:
does vlc reencode mp3 files when i play them with pmpvlc 0.0.9 r2? if yes how can i send mp3 without reencoding? |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Sat Jul 29, 2006 5:50 pm Post subject: |
|
|
Yes, music files streamed from vlc are transcoded. Use PMP server for playing music untranscoded.
I also like the option to stream audio from vlc without transcoding. It actually works for mp3, but unfortunately it currently doesn't work for aac (iPod) :(
If you think it is worthwhile, I can produce a rev.3 with a "do not transcode mp3 music" option. |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Sat Jul 29, 2006 6:25 pm Post subject: |
|
|
I never explicitly mentioned it, but everybody should be aware that you can also use hostnames instead of ip addresses for vlc_server, pmp_server and live_server. Make sure you have set portforwarding rules on your home router for this to work. Be informed that the ports are unsecured tho...
Have fun playing your music, videos and live streams from anywhere in the world! |
|
| Back to top |
|
 |
Racer
Joined: 29 Jul 2006 Posts: 1
|
Posted: Sat Jul 29, 2006 11:09 pm Post subject: |
|
|
Just wanted to say thanks for this great program!
I do hope you will compile a linux version in the future ... if you have some time for it tho. |
|
| Back to top |
|
 |
captaintrip
Joined: 28 Jul 2006 Posts: 3
|
Posted: Sun Jul 30, 2006 5:20 am Post subject: |
|
|
@jockyw2001
thank you again, with the 360x272 resolution i can see now the full source screen - aspect ration problem has been gone ;)
cheers
captaintrip |
|
| Back to top |
|
 |
LazerTag
Joined: 18 Apr 2006 Posts: 3
|
Posted: Sun Jul 30, 2006 10:31 pm Post subject: |
|
|
| jockyw2001 wrote: | I never explicitly mentioned it, but everybody should be aware that you can also use hostnames instead of ip addresses for vlc_server, pmp_server and live_server. Make sure you have set portforwarding rules on your home router for this to work. Be informed that the ports are unsecured tho...
Have fun playing your music, videos and live streams from anywhere in the world! |
Nice!
Just curious, Are the hostname lookups done in your code or is this done by the PSP?
How about a feature to pick which network connection to use at start up or something?
Kind of a hassle to have to edit the pmp.ini or the network connection itself when traveling about the world. ;) _________________ ----------------------
---------------------------
LazerTag |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Sun Jul 30, 2006 11:40 pm Post subject: |
|
|
| LazerTag wrote: | | Just curious, Are the hostname lookups done in your code or is this done by the PSP? |
PSP
| Quote: |
How about a feature to pick which network connection to use at start up or something? |
Quite right and my current internal version has that already :)
I'm currently abroad and can stream here with appr. 364kbs
Quite happy with it. |
|
| Back to top |
|
 |
Alcahest
Joined: 25 Mar 2005 Posts: 135
|
Posted: Sun Jul 30, 2006 11:48 pm Post subject: |
|
|
Hi Jocky, i was wondering how i could make my own "VLC-ENABLE-360x272.AVI" ?
Is the encoding needed the same as with PMP AVC ?
If not, can you tell the audio & video stream specs and which muxer you used?
Thanks,
Alcahest |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Mon Jul 31, 2006 12:57 am Post subject: |
|
|
@Alcahest:
| Code: |
D:\Movies>"D:\Program Files\VideoLAN\VLC\vlc.exe" -vvv sp02.avi --sout #transcode{vcodec=h264,vb=800,width=360,height=272,fps=25,venc=x264{me=dia,subme=1,analyse=none,bframes=0,b-adapt=none,chroma-me=none,merange=1},acodec=mp3,ab=64,channels=2}:standard{access=file,mux=avi,dst="output.avi"}
|
|
|
| Back to top |
|
 |
Alcahest
Joined: 25 Mar 2005 Posts: 135
|
Posted: Mon Jul 31, 2006 12:58 am Post subject: |
|
|
oh superb, thanks jocky!
Later,
Alcahest
edit: worked perfect first try ;) |
|
| Back to top |
|
 |
braids
Joined: 31 Jul 2006 Posts: 1
|
Posted: Mon Jul 31, 2006 4:35 am Post subject: |
|
|
This is great program!!! It took me awhile to get it to work because of my con # was 1 instead of 0. I have a little problem. It will stop playing a video while streaming.
I have this problem in both avc and non- avc. I can press square and restart the video, but after a couple of minutes it will stop again. I know it is not locking up or anything since I can go back in the menu and select more videos. What can be the problem and a possible fix.
By the way, I haven't seen VLC use up much power on my computer. |
|
| Back to top |
|
 |
DocMAX
Joined: 13 Jun 2006 Posts: 35
|
Posted: Mon Jul 31, 2006 7:17 am Post subject: |
|
|
just another quick question:
can i watch tv in avc format and switch channels? is that possible? |
|
| Back to top |
|
 |
captaintrip
Joined: 28 Jul 2006 Posts: 3
|
Posted: Mon Jul 31, 2006 7:25 am Post subject: |
|
|
hello jockyw2001,
trying to get vlc with h264 streaming to run under linux. i'm using vlc 0.8.5 and x264 from svn. (btw div3 streaming works without a problem)
sound works a few seconds and i can see some colored pixels in the upper left corner.
psp gives me the following debug messages when trying to stream from linux:
| Code: | ..........
filename is http://192.168.0.10:1234/
ffplay.c: before call av_find_stream_info
[h264 @ 0x08BE04B0]non existing PPS referenced
[h264 @ 0x08BE04B0]decode_slice_header error
..........
ffplay.c: after call av_find_stream_info, err=0
ffplay.c: after call av_find_stream_info width=360, height=272, do_live_stream=1
ffplay.c: after call avcodec_set_dimensions width=360, height=272
audio enc->sample_rate=44100
avcodec_open start, codec_type=1, enc->codec_id=86017, CODEC_TYPE_AUDIO=1, CODEC
_TYPE_VIDEO=0
avcodec_open done
audio enc->sample_rate=0
avcodec_open start, codec_type=0, enc->codec_id=28, CODEC_TYPE_AUDIO=1, CODEC_TY
PE_VIDEO=0
avcodec_open done
bit_rate=0, flags=0, sub_id=0, extradata_size=39, gop_size=50, pix_fmt=0
enc->coded_width=360, enc->coded_height=272
avc_open result = (null)
avc_get result = avc_get: sceMpegAvcDecode failed, pkt->size=11213, pkt->data= 9
212900 |
from windows where it works perfectly:
| Code: | ..........
filename is http://192.168.0.238:1234/
ffplay.c: before call av_find_stream_info
[h264 @ 0x08BE04B0]non existing PPS referenced
[h264 @ 0x08BE04B0]decode_slice_header error
..........
ffplay.c: after call av_find_stream_info, err=0
ffplay.c: after call av_find_stream_info width=0, height=0, do_live_stream=1
ffplay.c: after call avcodec_set_dimensions width=360, height=272
audio enc->sample_rate=44100
avcodec_open start, codec_type=1, enc->codec_id=86017, CODEC_TYPE_AUDIO=1, CODEC
_TYPE_VIDEO=0
avcodec_open done
audio enc->sample_rate=0
avcodec_open start, codec_type=0, enc->codec_id=28, CODEC_TYPE_AUDIO=1, CODEC_TY
PE_VIDEO=0
avcodec_open done
bit_rate=0, flags=0, sub_id=0, extradata_size=0, gop_size=50, pix_fmt=0
enc->coded_width=360, enc->coded_height=272
avc_open result = (null) |
streaming to a windows vlc works also perfectly - so i think the linux x264 codec produces an output which is conform, but psp can't handle it.
my sout line on linux & windows is the following:
| Code: |
#transcode{vcodec=h264,vb=800,width=360,height=272,fps=25,venc=x264{me=dia,subme=1,analyse=none,bframes=0,b-adapt=none,chroma-me=none,merange=1},acodec=mp3,ab=64,channels=2,samplerate=44100}:std{access=http,mux=ts,url=192.168.0.10:1234}
|
vlc on linux logs the following:
| Code: |
[00000235] main interface: creating httpd
[00000242] dummy interface: using the dummy interface module...
libdvbpsi error (PSI decoder): TS discontinuity (received 11, expected 0) for PID 0
libdvbpsi error (PSI decoder): TS discontinuity (received 5, expected 0) for PID 1014
x264 [warning]: width or height not divisible by 16 (360x272), compression will suffer.
x264 [warning]: VBV is incompatible with constant QP, ignored.
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [warning]: width or height not divisible by 16 (360x272), compression will suffer.
x264 [info]: using SAR=136/135
x264 [warning]: VBV is incompatible with constant QP, ignored.
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
|
perhaps you have a clue what's going wrong here, it would be really nice to stream with my linux box, which is always on :)
thanks
captaintrip |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Mon Jul 31, 2006 4:14 pm Post subject: |
|
|
| DocMAX wrote: | | can i watch tv in avc format and switch channels? |
Set up the appropriate "sout" line, plenty of examples in this thread. Switch channel support is for a future version.
@captaintrip: you must patch x264:
VLC-x264-info_file.diff
x264-pictiming-magik.diff
(Courtesy jonny and magiK)
This caught my eye in your post:
| Code: |
ffplay.c: after call av_find_stream_info, err=0
ffplay.c: after call av_find_stream_info width=360, height=272, do_live_stream=1
ffplay.c: after call avcodec_set_dimensions width=360, height=272
|
Did you systematically see "after call av_find_stream_info width=360, height=272 " or do you more frequently see "after call av_find_stream_info width=0, height=0" ? You should try with different videos. |
|
| Back to top |
|
 |
DocMAX
Joined: 13 Jun 2006 Posts: 35
|
Posted: Tue Aug 01, 2006 4:51 am Post subject: |
|
|
| i dont have a dreambox... just a normal analog hauppaufe wintv card. (directshow input device) |
|
| Back to top |
|
 |
cyclone9
Joined: 01 Aug 2006 Posts: 1
|
Posted: Tue Aug 01, 2006 12:19 pm Post subject: |
|
|
avc eror: scempegavcdecode failed
press square button to stop playback
i hav seen my videos in the video menu..but when i try to run them..it has this error :(
EDIT:
If i wanted to stream internet tv..is this able to do it? |
|
| Back to top |
|
 |
MrEase
Joined: 01 Aug 2006 Posts: 3
|
Posted: Tue Aug 01, 2006 3:21 pm Post subject: NeutrinoTV |
|
|
Hi, you posted, that you have included 4 *.nvo for neutrinoTV in your release - I serached the bin and the source packet but canīt find them. Where do I get them, where do I copy them and what options do I have to set in NeutrinoTV?
I also have the problem, that my PSP wonīt play AVC, even after the dummy file. Like someone said before, I have a custom firmware. too. Perhaps this is the problem.
If I try the other (direct) method you describe to watch TV over my Dbox2, I get the error "unknwon format". In the messages window appears the following:
| Code: |
main debug: starting in synch mode
main debug: `http://192.168.178.26:31339/0,002C,00A3,0068,006A,0069' successfully opened
ts debug: pid[106] unknown
ts debug: pid[105] unknown
ts debug: pid[44] unknown
ts debug: PATCallBack called
ts debug: new PAT ts_id=1089 version=10 current_next=1
ts debug: * number=0 pid=16
ts debug: * number=12003 pid=44
ts debug: * number=12020 pid=46
ts debug: * number=12040 pid=45
ts debug: * number=12060 pid=47
ts debug: * number=12090 pid=48
ts debug: * number=12080 pid=41
ts debug: * number=12095 pid=49
ts debug: PMTCallBack called
ts debug: new PMT program number=12003 version=17 pid_pcr=163
ts debug: * es pid=163 type=2 fcc=mpgv
main debug: selecting program id=12003
main debug: looking for packetizer module: 17 candidates
main debug: using packetizer module "packetizer_mpegvideo"
main debug: stream out mode -> no decoder thread
ts debug: * es pid=104 type=3 fcc=mpga
main debug: looking for packetizer module: 17 candidates
main debug: using packetizer module "mpeg_audio"
main debug: stream out mode -> no decoder thread
ts debug: * es pid=105 type=6 dr->i_tag=0x56
ts debug: * EBU Teletext descriptor
ts debug: * es pid=105 type=6 dr->i_tag=0x52
ts debug: * Stream Component Identifier: 3
ts debug: * es pid=105 type=6 fcc=telx
ts debug: * es pid=106 type=6 dr->i_tag=0xa
ts debug: * es pid=106 type=6 dr->i_tag=0x52
ts debug: * Stream Component Identifier: 17
ts debug: * es pid=106 type=6 dr->i_tag=0x6a
ts debug: * es pid=106 type=6 fcc=a52
ts warning: first packet for pid=106 cc=0xf
ts warning: first packet for pid=105 cc=0xf
main debug: Connection from 192.168.178.25
|
Playback of video filed work great! |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Tue Aug 01, 2006 4:24 pm Post subject: |
|
|
Those .nvo files were in another distro.
Here's a 360x272 avc (you can change width to 480 and play with the videobitrate vb):
| Code: |
:http-caching=6000
:sout=#transcode{vcodec=h264,vb=600,width=360,height=272,fps=25,venc=x264{me=dia,subme=1,analyse=none,bframes=0,b-adapt=none,chroma-me=none,merange=1},acodec=mp3,ab=64,channels=2}:std{access=http,mux=ts,url=0.0.0.0:1234}
:sout-keep
|
and this a 360x272 div3:
| Code: |
:http-caching=6000
:sout=#transcode{vcodec=DIV3,vb=600,width=360,height=272,fps=25,acodec=mp3,ab=48,channels=2}:std{access=http,mux=ogg,url=0.0.0.0:1234}
:sout-keep
|
@cyclone and @docmax: RTFM (1st post) or read all about vlc on www.videolan.org |
|
| Back to top |
|
 |
MrEase
Joined: 01 Aug 2006 Posts: 3
|
Posted: Tue Aug 01, 2006 6:05 pm Post subject: |
|
|
I tried the second one - absolutely great! Many thanks! There remains a little bit of stuttering, but I think that depends on the 10Mbit of DBox. If there is a little offset between video and audio, is there something I can do?
---edit
I donīt know why - but even the AVC .nvo works now, although AVC never worked with videos, stange but nice.
But with AVC enabled my CPU (AMD XP2400, 756 MB) gets up to 80% CPU usage of Neutrino - is there a way to reduce this?
---2nd edit
AVC mode works only, if I donīt switch to 480*272 (AVC error: sceMpegAvcDecode failed; sound is OK), even after I removed my custom Firmware.
If I am using 360*272 and try to switch between the different resolutions with start-buttom, I get 4:3, 4:3 and 16:9 with incorrect ratio- does this depends on the 4:3 source of the DBox? |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Tue Aug 01, 2006 6:47 pm Post subject: |
|
|
| MrEase wrote: | I tried the second one - absolutely great! Many thanks! There remains a little bit of stuttering, but I think that depends on the 10Mbit of DBox.
| exactly, better buy a dreambox (wait for the upcoming h264 version)
| Quote: | If there is a little offset between video and audio, is there something I can do?
| try pause and unpause
| Quote: | | But with AVC enabled my CPU (AMD XP2400, 756 MB) gets up to 80% CPU usage of Neutrino - is there a way to reduce this? |
not with avc, try div3 if it is an issue
| Quote: | | AVC mode works only, if I donīt switch to 480*272 (AVC error: sceMpegAvcDecode failed; sound is OK), even after I removed my custom Firmware. If I am using 360*272 and try to switch between the different resolutions with start-buttom, I get 4:3, 4:3 and 16:9 with incorrect ratio- does this depends on the 4:3 source of the DBox? |
read the last couple of pages in this thread, you'll find the solution |
|
| Back to top |
|
 |
MrEase
Joined: 01 Aug 2006 Posts: 3
|
Posted: Tue Aug 01, 2006 10:11 pm Post subject: |
|
|
| jockyw2001 wrote: | | MrEase wrote: | I tried the second one - absolutely great! Many thanks! There remains a little bit of stuttering, but I think that depends on the 10Mbit of DBox.
| exactly, better buy a dreambox (wait for the upcoming h264 version) |
If I had the money... ;-)
| jockyw2001 wrote: | | Quote: | | AVC mode works only, if I donīt switch to 480*272 (AVC error: sceMpegAvcDecode failed; sound is OK), even after I removed my custom Firmware. If I am using 360*272 and try to switch between the different resolutions with start-buttom, I get 4:3, 4:3 and 16:9 with incorrect ratio- does this depends on the 4:3 source of the DBox? |
read the last couple of pages in this thread, you'll find the solution |
The problem where the right vlc-enable.avi with the correct entry in the .ini - now everything (vid, DVD and DBox!!!) works and Iīm more than impressed (and even more looking forward to the upcoming versions...).
Is there a possibility to strech 4:3 to fullscreen with keeping the ratio? if I press start the picture get streched but looses the ratio.
many thanks for patience and help! |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Wed Aug 02, 2006 7:48 am Post subject: |
|
|
| MrEase wrote: | Is there a possibility to strech 4:3 to fullscreen with keeping the ratio? if I press start the picture get streched but looses the ratio.
|
No. And if the AR of the stream is 16:9, stretching 360x272 to 480x272 is just what you need :) |
|
| Back to top |
|
 |
DocMAX
Joined: 13 Jun 2006 Posts: 35
|
Posted: Thu Aug 03, 2006 8:38 am Post subject: |
|
|
ok i read the vlc documentation and found the options croptop cropbottom cropleft cropright...
so i finaly watch 4:3 with croped top and bottom. 16:9 stuff now perfectly fits to psp screen. here is my commandline:
:sout=#transcode{croptop=90,cropbottom=80,cropleft=10,cropright=15,vcodec=h264,vb=600,width=480,height=272,fps=25,venc=x264{me=dia,subme=1,analyse=none,bframes=0,b-adapt=none,chroma-me=none,merange=1},acodec=mp3,ab=64,channels=2}:std{access=http,mux=ts,url=0.0.0.0:1234} |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Thu Aug 03, 2006 4:42 pm Post subject: |
|
|
| @docmax: very nice, thx for posting. I will include the crop options in the next version. |
|
| Back to top |
|
 |
DocMAX
Joined: 13 Jun 2006 Posts: 35
|
Posted: Thu Aug 03, 2006 8:44 pm Post subject: |
|
|
no problem. first time i found out something myself...
but can someone fiddle out how to reduce cpu utilization? i have a t2300 core duo processor with 1.66 ghz and its at its limit at AVC mode. is there a way to reduce cpu utilization? |
|
| Back to top |
|
 |
Porkape

Joined: 24 Jun 2006 Posts: 10
|
Posted: Mon Aug 07, 2006 10:03 am Post subject: |
|
|
Ok, I finally got AVC working with Live TV and files on the memory stick, but not for streaming DVDs for that I use non-AVC. AVC with live TV is still very choppy to be watchable. When trying to stream DVDs in AVC mode it crashes VLC running on the PC. I can't for some reason get the network files to show either so I haven't streamed stuff from my PC yet. I have port 8080 (TCP/UDP) and 1234 (TCP) forwarded to my PC. When selecting the music option it freezes every time with the wifi light on, I also have mp3 on the memory stick and can't access those if I have VLC running on the PC. I am attaching a blurry screenshot of the frozen PSP screen that I get when trying to stream music. You can't read any of the error messages as I used a cell phone cam. If anyone can give me tips on how to get any of these issues resolved that would be highly appreciated. Thank you.
Crash Screen |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Mon Aug 07, 2006 7:44 pm Post subject: |
|
|
| @Porkape: you do use the modified vlc do you? If not, download it from p.1 of this thread and try again. If you do, then probably your pc is too slow or does not have enough memory to encode h264 avc. You can check cpu and memory load in taskmanager. If your pc is good enough, you can try to delete the vlc cache and preference directory before starting vlc. |
|
| Back to top |
|
 |
Porkape

Joined: 24 Jun 2006 Posts: 10
|
Posted: Tue Aug 08, 2006 8:46 am Post subject: |
|
|
| Yes, I use the modified VLC from page 1 of this post. When streaming DVD's and Live TV my cpu is only at about 35%-40% and I have other stuff running too. I have an AMD 64 3000+ and 1 GB of RAM. Only thing I haven't tried is is deleting the cache and preference directory manually, I let the installation program do it when I installed the modified VLC. Also, the crash screen doesn't show up anymore for whatever reason when I select music with VLC running on my PC, it does, however, still freezes the PSP. My music directory is almost 30 GB and the directory path has Parenthesis/Brackets. Now, only if I can get my network files to show on the PSP. Thanks for the tips Jocky. |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Tue Aug 08, 2006 4:49 pm Post subject: |
|
|
| @Porkape: try with a simple directory name for the videodir, e.g. d:\movies\ Put a few files in it, update pmp.ini and try again. It could be that vlc on your pc is having trouble interpreting the directory of your current videodir. |
|
| Back to top |
|
 |
|
|
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
|