FFMPEG -> how to keep the original audio quality during conversion?

164

I don't know that much about FFmpeg but after some Googling I found that you can use -acodec copy as parameter to simply take the audio from the source file.

Share:
164

Related videos on Youtube

Alex
Author by

Alex

Updated on September 18, 2022

Comments

  • Alex
    Alex almost 2 years

    I have a HashSet<User> and a User declared outside a while loop, and inside the loop I am setting the name with a setter method and then adding the User to the HashSet with add(User).

    This seemed to only update the single User in the HashSet. Only when I declare the User within the while loop is a new User added every time to the HashSet.

    I am thinking this is because if the HashSet add() method receives an object with the same memory address as an object currently in the set, it will only update the object and not add another new object to the HashSet. Is this correct?

    Then instantiating the User within the loop will cause it to have a different memory address and thus be added to the HashSet as a new object.

    I can put code on here, but this is for an assignment and I don't think my professor would like me to share code. The question I have is more about the Java language and not about my assignment, as you can see. If everyone absolutely needs to see code, however, I'll post something useful.

    • Nathan Hughes
      Nathan Hughes over 8 years
      see my answer for this question: stackoverflow.com/q/29830784/217324, it seems to be the same issue. btw just because you can't post the real code that's giving you the problem doesn't mean you can't construct a sample that reproduces the specific issue.
    • Alex
      Alex over 8 years
      @nathanhughes well it clearly wasn't needed as I expected. If it were needed then I would have posted something promptly.
  • llogan
    llogan almost 11 years
    See the documentation on stream copying for more information.
  • Alex
    Alex over 8 years
    Ahh OK so the actual hashing involves the memory address as input?
  • ThisClark
    ThisClark over 8 years
    I'm not certain about the hashing algorithm. You could find the source in your JDK installation files. I also found it in this answer. If you're wondering why I linked to a HashMap algorithm, the docs state This class implements the Set interface, backed by a hash table (actually a HashMap instance).