Transcoding to H264 questions

About encoding, codec settings, muxers and filter usage
jockyw2001
Blank Cone
Blank Cone
Posts: 54
Joined: 24 Jun 2006 10:18

Transcoding to H264 questions

Postby jockyw2001 » 30 Jun 2006 15:21

I've developed a vlc client called "PMP VLC" for Sony PSP.
(http://forums.ps2dev.org/viewtopic.php?t=6053)

With the app PSP users can view video streams via wlan. The transcoding is done in real-time by vlc 0.8.5 on a PC.

Currently a good quality can be achieved with following transcode params:

Code: Select all

:sout=#transcode{vcodec=DIV3,vb=700,width=360,height=272,fps=25,acodec=mp3,ab=48,channels=2}:duplicate{dst=std{access=http,mux=ogg,url=0.0.0.0:1234}}
Since the PSP can do H264 decoding with dsp, I have started doing experiments with x264 (vcodec=h264). However, I have 2 problems:
1. it pushes my AMD 2400 cpu to 100% and the pc is not responsive anymore
2. the only http stream container for h264+mp3 which works seems to be .ts

My questions are therefore:
1. what x264 video encode settings can you recommend to reach a decent quality similar to DIV3@700kbs (360x272, 25fps) and a cpu load well under 100% (e.g. like with DIV3 around 60%)
2. can the ogg container work for http streaming? if not now perhaps in the future? is there another container which may work?

Thx in advance!

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 30 Jun 2006 22:30

Best way to know all that you ever wanted to know about x264 and using x264 in VLC is to come on #videolan (on Freenode) and ask Trax. He does transcoding tests for x264 all day long on computers with 2 or 4 CPUs for a dutch broadcasting company.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

jockyw2001
Blank Cone
Blank Cone
Posts: 54
Joined: 24 Jun 2006 10:18

Postby jockyw2001 » 02 Jul 2006 00:38

I finally found parameters which work quite well for my purposes:

Code: Select all

: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=12},acodec=mp3,ab=48,channels=2}:duplicate{dst=std{access=http,mux=asf,url=0.0.0.0:1234}}
EDIT: For PSP bframes should be 0


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests