Audio MD5 Checksum with ffmpegffmpeg add two audio streams to videoFFMPEG Stream Definition - changing number...
Find the smallest value of the function
Does it take energy to move something in a circle?
How can the probability of a fumble decrease linearly with more dice?
Why didn't Tom Riddle take the presence of Fawkes and the Sorting Hat as more of a threat?
Plausible reason to leave the Solar System?
How do I prevent a homebrew Grappling Hook feature from trivializing Tomb of Annihilation?
Memory usage: #define vs. static const for uint8_t
Should I cite R or RStudio?
Is there a way to store 9th-level spells in a Glyph of Warding or similar method?
Broad Strokes - missing letter riddle
Is `Object` a function in javascript?
In harmony: key or the flow?
Microtypography protrusion with Polish quotation marks
Why avoid shared user accounts?
Can you determine if focus is sharp without diopter adjustment if your sight is imperfect?
The No-Straight Maze
Why did Luke use his left hand to shoot?
Am I correct in stating that the study of topology is purely theoretical?
How do you funnel food off a cutting board?
Book where a space ship journeys to the center of the galaxy to find all the stars had gone supernova
I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."
Translation needed for 130 years old church document
What is a good reason for every spaceship to carry a weapon on board?
Subsurf on a crown. How can I smooth some edges and keep others sharp?
Audio MD5 Checksum with ffmpeg
ffmpeg add two audio streams to videoFFMPEG Stream Definition - changing number of filesHow Do I Detect Audio Delay With ffmpeg?ffmpeg copying audio and reencoding video causes encode error in Iphone playerUnable to re-encode audio stream with different bitrate using ffmpegHow do I use ffmpeg to mix an audio/video file with an audio file with an offset?Streaming audio and video to VLC with ffmpeg and ffserverFFmpeg audio phase reversalHow to deal with ffmpeg streaming glitchesBatch replacing .m4v with a different audio track
I'm getting these results under Windows (ffmpeg version N-78636-g45d3af9)
ffmpeg.exe -i TEST.mp3 -c:a copy -f md5 -
MD5=cb017003b355c2b39d71e8020bd76f5b
ffmpeg.exe -i TEST.mp3 -f md5 -
MD5=7bbe06733ddc930c8a120bced0f3fad9
Why is it different? And what is the proper way to calculate MD5 checksum for audio data only? How do I make ffmpeg return the string (MD5=xxxxx.xxxxx) only?
windows command-line audio ffmpeg mp3
add a comment |
I'm getting these results under Windows (ffmpeg version N-78636-g45d3af9)
ffmpeg.exe -i TEST.mp3 -c:a copy -f md5 -
MD5=cb017003b355c2b39d71e8020bd76f5b
ffmpeg.exe -i TEST.mp3 -f md5 -
MD5=7bbe06733ddc930c8a120bced0f3fad9
Why is it different? And what is the proper way to calculate MD5 checksum for audio data only? How do I make ffmpeg return the string (MD5=xxxxx.xxxxx) only?
windows command-line audio ffmpeg mp3
1
Next time asking about ffmpeg, please include the full, uncut command line output.
– slhck
Feb 23 '16 at 12:17
just thought it's easy to understand when I cut it! but nex time I will for sure ... Thanks
– Data-Base
Feb 23 '16 at 12:23
1
Sure thanks. Sometimes it's not necessary, but it helps us catch minor errors or give explanations better suited to the question.
– slhck
Feb 23 '16 at 12:23
add a comment |
I'm getting these results under Windows (ffmpeg version N-78636-g45d3af9)
ffmpeg.exe -i TEST.mp3 -c:a copy -f md5 -
MD5=cb017003b355c2b39d71e8020bd76f5b
ffmpeg.exe -i TEST.mp3 -f md5 -
MD5=7bbe06733ddc930c8a120bced0f3fad9
Why is it different? And what is the proper way to calculate MD5 checksum for audio data only? How do I make ffmpeg return the string (MD5=xxxxx.xxxxx) only?
windows command-line audio ffmpeg mp3
I'm getting these results under Windows (ffmpeg version N-78636-g45d3af9)
ffmpeg.exe -i TEST.mp3 -c:a copy -f md5 -
MD5=cb017003b355c2b39d71e8020bd76f5b
ffmpeg.exe -i TEST.mp3 -f md5 -
MD5=7bbe06733ddc930c8a120bced0f3fad9
Why is it different? And what is the proper way to calculate MD5 checksum for audio data only? How do I make ffmpeg return the string (MD5=xxxxx.xxxxx) only?
windows command-line audio ffmpeg mp3
windows command-line audio ffmpeg mp3
edited Feb 23 '16 at 12:24
slhck
161k47447470
161k47447470
asked Feb 23 '16 at 11:51
Data-BaseData-Base
1832513
1832513
1
Next time asking about ffmpeg, please include the full, uncut command line output.
– slhck
Feb 23 '16 at 12:17
just thought it's easy to understand when I cut it! but nex time I will for sure ... Thanks
– Data-Base
Feb 23 '16 at 12:23
1
Sure thanks. Sometimes it's not necessary, but it helps us catch minor errors or give explanations better suited to the question.
– slhck
Feb 23 '16 at 12:23
add a comment |
1
Next time asking about ffmpeg, please include the full, uncut command line output.
– slhck
Feb 23 '16 at 12:17
just thought it's easy to understand when I cut it! but nex time I will for sure ... Thanks
– Data-Base
Feb 23 '16 at 12:23
1
Sure thanks. Sometimes it's not necessary, but it helps us catch minor errors or give explanations better suited to the question.
– slhck
Feb 23 '16 at 12:23
1
1
Next time asking about ffmpeg, please include the full, uncut command line output.
– slhck
Feb 23 '16 at 12:17
Next time asking about ffmpeg, please include the full, uncut command line output.
– slhck
Feb 23 '16 at 12:17
just thought it's easy to understand when I cut it! but nex time I will for sure ... Thanks
– Data-Base
Feb 23 '16 at 12:23
just thought it's easy to understand when I cut it! but nex time I will for sure ... Thanks
– Data-Base
Feb 23 '16 at 12:23
1
1
Sure thanks. Sometimes it's not necessary, but it helps us catch minor errors or give explanations better suited to the question.
– slhck
Feb 23 '16 at 12:23
Sure thanks. Sometimes it's not necessary, but it helps us catch minor errors or give explanations better suited to the question.
– slhck
Feb 23 '16 at 12:23
add a comment |
1 Answer
1
active
oldest
votes
If you read the documentation for the MD5 muxer, it says:
By default audio frames are converted to signed 16-bit raw audio and video frames to raw video before computing the hash.
So, in your second command (without specifying any codec option), this'd be the equivalent of -c:a pcm_s16le, while in your first example, you keep the MP3 audio bitstream. That's why they have different checksums.
The proper way would probably be to disable video streams (if the MP3 file contains artwork, for example) using -vn:
ffmpeg.exe -i TEST.mp3 -vn -f md5 -
You can disable the other output by redirecting stderr:
ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL
On Linux, use /dev/null instead of NUL.
now I get this MD5=6e08f3bb7e5e8cc27e2f77a7817abbba a bit more confused ... but I will change the file tags and see how it will be :)
– Data-Base
Feb 23 '16 at 12:24
1
If the MP3 contains artwork, it'll be rendered as a video stream and used in the MD5 calculation unless you disable it with-vn. If you show the complete ffmpeg output in your question, we can have a better look at it.
– slhck
Feb 23 '16 at 12:25
after deleting all tags from file: ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -c:a copy -f md5 - 2> MD5=886d08f4e9c5450ee12796b006307a33
– Data-Base
Feb 23 '16 at 12:28
That makes sense now. (I was asking about the full output, without the redirection, to see what kind of tags there were, but you seem to have resolved the problem.)
– slhck
Feb 23 '16 at 13:41
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1044413%2faudio-md5-checksum-with-ffmpeg%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you read the documentation for the MD5 muxer, it says:
By default audio frames are converted to signed 16-bit raw audio and video frames to raw video before computing the hash.
So, in your second command (without specifying any codec option), this'd be the equivalent of -c:a pcm_s16le, while in your first example, you keep the MP3 audio bitstream. That's why they have different checksums.
The proper way would probably be to disable video streams (if the MP3 file contains artwork, for example) using -vn:
ffmpeg.exe -i TEST.mp3 -vn -f md5 -
You can disable the other output by redirecting stderr:
ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL
On Linux, use /dev/null instead of NUL.
now I get this MD5=6e08f3bb7e5e8cc27e2f77a7817abbba a bit more confused ... but I will change the file tags and see how it will be :)
– Data-Base
Feb 23 '16 at 12:24
1
If the MP3 contains artwork, it'll be rendered as a video stream and used in the MD5 calculation unless you disable it with-vn. If you show the complete ffmpeg output in your question, we can have a better look at it.
– slhck
Feb 23 '16 at 12:25
after deleting all tags from file: ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -c:a copy -f md5 - 2> MD5=886d08f4e9c5450ee12796b006307a33
– Data-Base
Feb 23 '16 at 12:28
That makes sense now. (I was asking about the full output, without the redirection, to see what kind of tags there were, but you seem to have resolved the problem.)
– slhck
Feb 23 '16 at 13:41
add a comment |
If you read the documentation for the MD5 muxer, it says:
By default audio frames are converted to signed 16-bit raw audio and video frames to raw video before computing the hash.
So, in your second command (without specifying any codec option), this'd be the equivalent of -c:a pcm_s16le, while in your first example, you keep the MP3 audio bitstream. That's why they have different checksums.
The proper way would probably be to disable video streams (if the MP3 file contains artwork, for example) using -vn:
ffmpeg.exe -i TEST.mp3 -vn -f md5 -
You can disable the other output by redirecting stderr:
ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL
On Linux, use /dev/null instead of NUL.
now I get this MD5=6e08f3bb7e5e8cc27e2f77a7817abbba a bit more confused ... but I will change the file tags and see how it will be :)
– Data-Base
Feb 23 '16 at 12:24
1
If the MP3 contains artwork, it'll be rendered as a video stream and used in the MD5 calculation unless you disable it with-vn. If you show the complete ffmpeg output in your question, we can have a better look at it.
– slhck
Feb 23 '16 at 12:25
after deleting all tags from file: ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -c:a copy -f md5 - 2> MD5=886d08f4e9c5450ee12796b006307a33
– Data-Base
Feb 23 '16 at 12:28
That makes sense now. (I was asking about the full output, without the redirection, to see what kind of tags there were, but you seem to have resolved the problem.)
– slhck
Feb 23 '16 at 13:41
add a comment |
If you read the documentation for the MD5 muxer, it says:
By default audio frames are converted to signed 16-bit raw audio and video frames to raw video before computing the hash.
So, in your second command (without specifying any codec option), this'd be the equivalent of -c:a pcm_s16le, while in your first example, you keep the MP3 audio bitstream. That's why they have different checksums.
The proper way would probably be to disable video streams (if the MP3 file contains artwork, for example) using -vn:
ffmpeg.exe -i TEST.mp3 -vn -f md5 -
You can disable the other output by redirecting stderr:
ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL
On Linux, use /dev/null instead of NUL.
If you read the documentation for the MD5 muxer, it says:
By default audio frames are converted to signed 16-bit raw audio and video frames to raw video before computing the hash.
So, in your second command (without specifying any codec option), this'd be the equivalent of -c:a pcm_s16le, while in your first example, you keep the MP3 audio bitstream. That's why they have different checksums.
The proper way would probably be to disable video streams (if the MP3 file contains artwork, for example) using -vn:
ffmpeg.exe -i TEST.mp3 -vn -f md5 -
You can disable the other output by redirecting stderr:
ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL
On Linux, use /dev/null instead of NUL.
edited Feb 23 '16 at 12:22
answered Feb 23 '16 at 12:12
slhckslhck
161k47447470
161k47447470
now I get this MD5=6e08f3bb7e5e8cc27e2f77a7817abbba a bit more confused ... but I will change the file tags and see how it will be :)
– Data-Base
Feb 23 '16 at 12:24
1
If the MP3 contains artwork, it'll be rendered as a video stream and used in the MD5 calculation unless you disable it with-vn. If you show the complete ffmpeg output in your question, we can have a better look at it.
– slhck
Feb 23 '16 at 12:25
after deleting all tags from file: ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -c:a copy -f md5 - 2> MD5=886d08f4e9c5450ee12796b006307a33
– Data-Base
Feb 23 '16 at 12:28
That makes sense now. (I was asking about the full output, without the redirection, to see what kind of tags there were, but you seem to have resolved the problem.)
– slhck
Feb 23 '16 at 13:41
add a comment |
now I get this MD5=6e08f3bb7e5e8cc27e2f77a7817abbba a bit more confused ... but I will change the file tags and see how it will be :)
– Data-Base
Feb 23 '16 at 12:24
1
If the MP3 contains artwork, it'll be rendered as a video stream and used in the MD5 calculation unless you disable it with-vn. If you show the complete ffmpeg output in your question, we can have a better look at it.
– slhck
Feb 23 '16 at 12:25
after deleting all tags from file: ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -c:a copy -f md5 - 2> MD5=886d08f4e9c5450ee12796b006307a33
– Data-Base
Feb 23 '16 at 12:28
That makes sense now. (I was asking about the full output, without the redirection, to see what kind of tags there were, but you seem to have resolved the problem.)
– slhck
Feb 23 '16 at 13:41
now I get this MD5=6e08f3bb7e5e8cc27e2f77a7817abbba a bit more confused ... but I will change the file tags and see how it will be :)
– Data-Base
Feb 23 '16 at 12:24
now I get this MD5=6e08f3bb7e5e8cc27e2f77a7817abbba a bit more confused ... but I will change the file tags and see how it will be :)
– Data-Base
Feb 23 '16 at 12:24
1
1
If the MP3 contains artwork, it'll be rendered as a video stream and used in the MD5 calculation unless you disable it with
-vn. If you show the complete ffmpeg output in your question, we can have a better look at it.– slhck
Feb 23 '16 at 12:25
If the MP3 contains artwork, it'll be rendered as a video stream and used in the MD5 calculation unless you disable it with
-vn. If you show the complete ffmpeg output in your question, we can have a better look at it.– slhck
Feb 23 '16 at 12:25
after deleting all tags from file: ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -c:a copy -f md5 - 2> MD5=886d08f4e9c5450ee12796b006307a33
– Data-Base
Feb 23 '16 at 12:28
after deleting all tags from file: ffmpeg.exe -i TEST.mp3 -vn -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -f md5 - 2>NUL MD5=6e08f3bb7e5e8cc27e2f77a7817abbba ffmpeg.exe -i TEST.mp3 -c:a copy -f md5 - 2> MD5=886d08f4e9c5450ee12796b006307a33
– Data-Base
Feb 23 '16 at 12:28
That makes sense now. (I was asking about the full output, without the redirection, to see what kind of tags there were, but you seem to have resolved the problem.)
– slhck
Feb 23 '16 at 13:41
That makes sense now. (I was asking about the full output, without the redirection, to see what kind of tags there were, but you seem to have resolved the problem.)
– slhck
Feb 23 '16 at 13:41
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1044413%2faudio-md5-checksum-with-ffmpeg%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Next time asking about ffmpeg, please include the full, uncut command line output.
– slhck
Feb 23 '16 at 12:17
just thought it's easy to understand when I cut it! but nex time I will for sure ... Thanks
– Data-Base
Feb 23 '16 at 12:23
1
Sure thanks. Sometimes it's not necessary, but it helps us catch minor errors or give explanations better suited to the question.
– slhck
Feb 23 '16 at 12:23