FFMPEG -> how to keep the original audio quality during conversion?
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.
Related videos on Youtube
![Alex](https://i.stack.imgur.com/lwDbZ.jpg?s=256&g=1)
Alex
Updated on September 18, 2022Comments
-
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 theHashSet
withadd(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 theHashSet
.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 over 8 yearssee 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 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 almost 11 yearsSee the documentation on stream copying for more information.
-
Alex over 8 yearsAhh OK so the actual hashing involves the memory address as input?
-
ThisClark over 8 yearsI'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).