[Libav-user] Only mp3 codec is playing

Noel Arthur tech.07.prince at gmail.com
Thu Aug 4 16:54:13 CEST 2011


Hi! Everything is working now for ffmpeg 0.6.3. I assumed
av_init_packet initializes packet.size to 0(seen with gdb that it's a
huge negative value). The problem with ffmpeg 0.7 and 0.8 still
persists. I'll try and pass my own io context. Hope it works.

On 7/29/11, n0eL Last nAme <tech.07.prince at gmail.com> wrote:
> Hi! Having a problem using ffmpeg libraries. Only MP3 works. Othere
> codecs I tried(ogg, wma) doesn't play. I only hear noise. BTW, mp3 is
> playing from some containers that I have tested(avi, mkv, mp4) which
> should indicate that libavformat is working. That's using ffmpeg
> 0.6.3. Using ffmpeg 0.7.1 and 0.8 doesn't open any files at all.
> avformat_open_input always return -2. Here's how I configured both.
> Thanks.
>
> #ffmpeg 0.6 configure
> CFLAGS='-I/pspdev/psp/sdk/include -G0 -ffast-math -DO_BINARY=0' \
> LDFLAGS='-L/pspdev/psp/sdk/lib -lc -lpspnet -lpspnet_inet
> -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel' \
> LIBS='-lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver
> -lpsputility -lpspuser -lpspkernel' \
> ./configure --prefix=C:/projects/player_cpp/ffmpeg-psp-0.6 \
> --cross-prefix=psp- --enable-cross-compile --target-os=linux \
> --arch=mips --enable-hardcoded-tables --enable-small \
> --enable-gpl --enable-swscale \
> --disable-muxers --disable-encoders \
> --disable-protocols --disable-network \
> --enable-protocol=file --disable-indevs \
> --disable-outdevs --disable-devices --disable-hwaccels \
> --disable-ffmpeg --disable-ffplay --disable-ffprobe \
> --disable-ffserver --disable-doc --disable-avdevice \
> --disable-vdpau --disable-dxva2 --disable-vaapi
>
> #ffmpeg 0.7/0.8 configure
> CFLAGS='-I/pspdev/psp/sdk/include -G0 -ffast-math -DO_BINARY=0' \
> LDFLAGS='-L/pspdev/psp/sdk/lib -lc -lpspnet -lpspnet_inet
> -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel' \
> LIBS='-lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver
> -lpsputility -lpspuser -lpspkernel' \
> ./configure --prefix=C:/projects/player_cpp/ffmpeg-psp-0.8 \
> --cross-prefix=psp- --enable-cross-compile --target-os=linux \
> --arch=mips --enable-hardcoded-tables \
> --enable-gpl --enable-swscale --disable-avfilter \
> --disable-muxers --disable-encoders --disable-filters \
> --disable-protocols --disable-network --disable-postproc \
> --enable-protocol=file --disable-indevs \
> --disable-outdevs --disable-devices --disable-hwaccels \
> --disable-ffmpeg --disable-ffplay --disable-ffprobe \
> --disable-ffserver --disable-doc --disable-avdevice \
> --disable-vdpau --disable-dxva2 --disable-vaapi
>


More information about the Libav-user mailing list