google nativeclient - Encode video using ffmpeg and vp8 codec on Native Client -


i'm trying develop video encoder using native client. want output file .webm , i'm using ffmpeg example "muxing.c".

when run example error message: not find encoder 'vp8'

the error comes here:

*codec = avcodec_find_encoder(codec_id); if (!(*codec)) {     fprintf(stderr, "could not find encoder '%s'\n",             avcodec_get_name(codec_id)); } 

where codec_id value av_codec_id_vp8

when put output file .mp4 works.

can me. need enable vp8 encoder ffmpeg naclport? should do?

thanks!!

update

@lee gi gone:

yes. must need compile ffmpeg libvpx library encode vp8/vp9. can install via yum, apt. or can compile manually.

once libvpx installed, install ffmpeg libvpx in following command :

./configure --enable-libvpx  make -j 4 make install 

i put dependency libvpx on build.sh , pkg_info on ffmpeg naclport , built again. works!

yes. must need compile ffmpeg libvpx library encode vp8/vp9. can install via yum, apt. or can compile manually.

once libvpx installed, install ffmpeg libvpx in following command :

./configure --enable-libvpx make -j 4 make install 

Comments

Popular posts from this blog

r - how do you merge two data frames the best way? -

How to debug "expected android.widget.TextView but found java.lang.string" in Android? -

php - mySQL problems with this code? -