Author Topic: is there any benefit to using libavresmaple over libswresample on the PI 3?  (Read 2822 times)

joyrider3774

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
I saw the libavresample option in the makefile so i configured ffmpeg with
"./configure --enable-mmal --disable-debug --enable-memalign-hack --enable-shared --enable-avresample"

and then edited the make file to make sure libavresmaple would be used it compiled fine and everything seems to run fine but can't seem to see / hear any diffrence.

should libavresmaple be faster than libswresample i see the makefile seems to give preference to libswresample but not certain if there is a reason for it or not.

Don't have any video's to test / benchmark with.

I think the choose has an impact on the audio resampler being used just don't know which one is faster in general

anyone can shed some light on this ?

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
@joyrider3774
Here
hardware accelerated means that video playback of scraped video files is faster and more stable (without stutter and hanging).
After changing to hardware acceleration, it should works.
Test a scraped video file (e.g. mame).
Then: Start AM > press TAB key > General > Video Decoder : mmal
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

joyrider3774

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
yes i know that but i'm not talking about mmal decoder for video playback.

I'm talking about libswresample  and libavresample. The make file gives preference over libswresample  if both are available, so i decided to to install libavresample first and then change the makefile so that change libavresample got preference.

I'm not certain when or for what libswresample  or libavresample is even used i'm guessing it has to do with resampling audio. Is it so that if i enable mmal libswresample  and libavresample  are not used ? so it doesn't matter what i compiled it against or does it get used for something (if so what) even when mmal is selected ?

Was just messing about with the sources & compiling them and changing little bits for fun but could not see a diffrence (for one because i was already using mmal and another i have no clue what those 2 libs are used for).

raygun

  • Administrator
  • Sr. Member
  • *****
  • Posts: 393
    • View Profile
I'm not aware of any technical reason why one would be better than the other.  They are both for audio resampling as you figured.  There are two due to the fork that happened to FFmpeg a few years ago.  swresample is what ffmpeg calls their resampler, avresample is the one for libav