Page 1 of 1
x264 build with VLC on windows for streaming
Posted: 04 Apr 2010 11:47
by rishe
hi everyone,
I compile x264 source using
./configure --prefix=/usr/compiled --enable-shared --enable-pic
make
make install
It created libx264.a, libx264.dll, libx264-76.dll, x264.exe -> pasted them in /usr/win32/ bin, include and lib
Compiled VLC 1.0.5. Tried Streaming http but gives an error:
It seems your FFMPEG (libavcodec) installation lacks the following encoder:
H264/MPEG AVC PART 10
but i do have x264 encoder in vlc source code. What is wrong? how to correctly build x264 with vlc?
please help.. thanks..
rishe
Re: x264 build with VLC on windows for streaming
Posted: 04 Apr 2010 14:16
by VLC_help
What encoding option you used? You have libx264_plugin.dll in plugins folder?
Re: x264 build with VLC on windows for streaming
Posted: 05 Apr 2010 01:52
by rishe
when you say encoding option do you mean this one? -> :sout=#transcode{vcodec=h264,vb=800,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=44100}:std{access=http,mux=ts,dst=169.254:88:52:1024}
And yes i do have libx264_plugin.dll on vlc 1.0.5\plugins.
Actually before I only used vlc source code and contrib and it works fine in streaming. But when i compiled x264 snapshot to contrib, then compile vlc again, the video encoder doesnt work, but audio streams fine.
Re: x264 build with VLC on windows for streaming
Posted: 05 Apr 2010 17:28
by VLC_help
It is just that
It seems your FFMPEG (libavcodec) installation lacks the following encoder:
H264/MPEG AVC PART 10
means that VLC cannot find the encoder (and VLC shouldn't try libavcodecs one).
If you use
Code: Select all
:sout=#transcode{vcodec=h264,venc=x264,vb=800,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=44100}:std{access=http,mux=ts,dst=169.254:88:52:1024}
does it work any better?
Re: x264 build with VLC on windows for streaming
Posted: 05 Apr 2010 18:07
by rishe
i changed on how i compiled the x264 snapshot. compiled x264 on its own folder with options
Code: Select all
./configure --prefix=/usr/win32/x264 --enable-shared --enable-pic
make
make install
then added to configure
--with-x264-tree=usr/win32/x264
then
compiled vlc
though no error was found when i run vlc but i think the x264 encoder used was not that of the snapshot.
I did it also using it as you suggested w/ venc=x264.
Still it uses the x264 encoder of vlc. Is there a way to call the x264 snapshot? edit any makefile?
By the way thank you for all the replies