Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-20 Thread CMG DiGiTaL
hi Reino, ok, but I liked your idea of putting the convert at the end of the file! so I don't need to create another folder... ...regarding quality, I have a large majority of FLAC audios, I think these commands work for FLAC too, right?! Thank you very much for your help.. It was really

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-20 Thread Reino Wijnsma
On 2022-02-21T01:38:30+0100, CMG DiGiTaL wrote: > OK, I would also need, along with the sample rate, to get the bitrate of > the file, because I realized that in the conversion, because I'm using > --acodec -b:a 320k, it's passing all the aidios to 320 kbps... until even > 192 kbps audio!. is

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-20 Thread CMG DiGiTaL
OK, I would also need, along with the sample rate, to get the bitrate of the file, because I realized that in the conversion, because I'm using --acodec -b:a 320k, it's passing all the aidios to 320 kbps... until even 192 kbps audio!. is there a way in the conversion I can get the correct bitrate

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-20 Thread Reino Wijnsma
On 2022-02-21T01:07:12+0100, CMG DiGiTaL wrote: > do i need to create the 48000 sample rates folder before running your > command, or will it create the folder automatically? Yes. No it won't. In your previous e-mail... On 2022-02-07T22:47:29+0100, CMG DiGiTaL wrote: > md

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-20 Thread CMG DiGiTaL
hi Reino, at the command prompt go to the General Audios directory and when I run any of the commands you sent, the following appears in the terminal window: C:\Users\CMG\Desktop\General Audios>FOR %A IN (*.mp3) DO @FOR /F "delims=" %B IN ('ffprobe -v 0 -show_entries stream^=sample_rate -of

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-20 Thread Reino Wijnsma
Hello Clamarc, (late reply as I'm a bit behind with cleaning up e-mails) On 2022-02-07T22:47:29+0100, CMG DiGiTaL wrote: > I have a folder "General Audios" and I created another one called "Audios > 48000 sample rate" > > I'm running the ffprobe command that returns the sample rate value of

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-14 Thread Mark Filipak
On 2022-02-06 20:25, CMG DiGiTaL wrote: Hi, I'm creating a bat file that will access a folder with several mp3 files. I would like to be able to select in this folder only the mp3s with a sample rate of 48000 khz and copy them to another folder where I will change from 48000 khz to 44100 khz.

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Mark Filipak
You know, I wouldn't do this for just ANYONE. 8-) Try this, Clamarc. @ECHO OFF ENDLOCAL SETLOCAL ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS FOR %%a IN (*.mp3) DO ( FOR /F "tokens=1,* usebackq" %%b IN (`ffprobe -i "%%a" -v error -show_entries stream^=sample_rate -of

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Mark Filipak
On 2022-02-07 16:47, CMG DiGiTaL wrote: hi, So, I have a folder "General Audios" and I created another one called "Audios 48000 sample rate" I'm running the ffprobe command that returns the sample rate value of each song.. but when I try to save the value in a string to be able to use the IF

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Kieran O Leary
On Mon, Feb 7, 2022 at 9:47 PM CMG DiGiTaL wrote: > hi, > So, > > I have a folder "General Audios" and I created another one called "Audios > 48000 sample rate" > > I'm running the ffprobe command that returns the sample rate value of each > song.. but when I try to save the value in a string

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread CMG DiGiTaL
hi, So, I have a folder "General Audios" and I created another one called "Audios 48000 sample rate" I'm running the ffprobe command that returns the sample rate value of each song.. but when I try to save the value in a string to be able to use the IF and copy only the ones with 48000 hz, I

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Mark Filipak
On 2022-02-07 13:05, CMG DiGiTaL wrote: Hi I made the changes to my .bat file, and the files are not being written for a detail that I also have doubts about I wrote and use the following batch program, FFPROBE_SHOW_FRAMES.CMD, to list a select subset of FF-style video metadata. Note the

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Kieran O Leary
Hi On Mon, Feb 7, 2022 at 6:14 PM CMG DiGiTaL wrote: > hi Reindl Harald > > forgot to send my changed code, follow now, so: > > cd\Users\%username%\Desktop\%pasta% > for %%F IN (*) do (ffprobe -i "%%F" -v error -show_entries > stream=sample_rate -of default=noprint_wrappers=1:nokey=1 >

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Phil Rhodes via ffmpeg-user
In an attempt to actually help solve the problem: Most Windows machines have, for a long time, had the commandline Javascript interpreter cscript.exe which I tend to bust out for moments like this, when batch files become a bit miserable. A lot of people have at least touched Javascript, given

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread CMG DiGiTaL
hi Reindl Harald forgot to send my changed code, follow now, so: cd\Users\%username%\Desktop\%pasta% for %%F IN (*) do (ffprobe -i "%%F" -v error -show_entries stream=sample_rate -of default=noprint_wrappers=1:nokey=1 if %%F==48000 (ffmpeg -i "%%F" -map 0:0 -acodec mp3 -b:a

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Kieran O Leary
Hi On Mon 7 Feb 2022 at 18:06, CMG DiGiTaL wrote: > Hi > I made the changes to my .bat file, and the files are not being written for > a detail that I also have doubts about > > see how the .bat file was: > > > > > Note: I'm using the for command to execute two commands > ffmpeg,

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Reindl Harald
Am 07.02.22 um 18:55 schrieb Kieran O Leary: I was surprised to see that the code of conduct has no process or contact email for reporting a violation. I’m really reluctant to reply to this thread further as I’ve been called several nasty names already you should have been reluctant before

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread CMG DiGiTaL
Hi I made the changes to my .bat file, and the files are not being written for a detail that I also have doubts about see how the .bat file was: Note: I'm using the for command to execute two commands ffmpeg, okay? I need one more help from you regarding the If command in

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Kieran O Leary
On Mon 7 Feb 2022 at 17:47, Phil Rhodes via ffmpeg-user < ffmpeg-user@ffmpeg.org> wrote: > I'll confirm what other people have said - this is basically a > conversation which has been continuing on this mailing list for years, even > decades. > I don't know what's really behind it - I've often

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Phil Rhodes via ffmpeg-user
I'll confirm what other people have said - this is basically a conversation which has been continuing on this mailing list for years, even decades. I don't know what's really behind it - I've often wondered whether there's neurodevelopmental disorders at play, whether it's a language problem,

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Carl Zwanzig
On 2/7/2022 9:04 AM, Reindl Harald wrote: with the snowflakes of your generation we would still live on trees as human race I will quote from just about a year ago- On 2/2/2021 2:59 AM, Reindl Harald wrote: the difference between both of you is "only" that i am 43 years old and started

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Rob Hallam
On Mon, 7 Feb 2022 at 17:05, Reindl Harald wrote: > why do you then respoind at all? > to achieve what expect noise? To forestall the usual cycle of: - "Reindl you could use different language" - "Reindl you don't need to insult people" - "Reindl you should do this, don't do that, etc etc etc"

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Reindl Harald
Am 07.02.22 um 17:57 schrieb Rob Hallam: On Mon, 7 Feb 2022 at 16:29, Reindl Harald wrote: god damned calling re-encode a lossy file a "stupid idea" isn't abusive - you guys should learn to distinct between "are you stupid" and "stupid idea" I did not say that it was! I do not

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Rob Hallam
On Mon, 7 Feb 2022 at 16:29, Reindl Harald wrote: > god damned calling re-encode a lossy file a "stupid idea" isn't abusive > - you guys should learn to distinct between "are you stupid" and "stupid > idea" I did not say that it was! I do not particularly care about this instance- I let Kieran

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Carl Zwanzig
On 2/7/2022 8:28 AM, Reindl Harald wrote: god damned calling re-encode a lossy file a "stupid idea" isn't abusive - Yes it is. That you can't see the issue suggests a lack of empathy for anyone with less understanding than you (this is not new, we've all see it before). There _may_ be a

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Reindl Harald
Am 07.02.22 um 17:25 schrieb Rob Hallam: On Mon, 7 Feb 2022 at 15:53, Kieran O Leary wrote: Is this kind of talk against the code of conduct? I don't think you need to blast somebody's needs as 'stupid', we don't know the use case here. (Sorry if cc'ing you JB is against etiquette, I just

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Rob Hallam
On Mon, 7 Feb 2022 at 15:53, Kieran O Leary wrote: > Is this kind of talk against the code of conduct? I don't think you need to > blast somebody's needs as 'stupid', we don't know the use case here. (Sorry > if cc'ing you JB is against etiquette, I just wanted to flag this message) On paper...

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Reindl Harald
Am 07.02.22 um 16:52 schrieb Kieran O Leary: and do yourself a favor and forget the stupid idea "copy them to another folder where I will change from 48000 khz to 44100 khz" Is this kind of talk against the code of conduct? I don't think you need to blast somebody's needs as 'stupid', we

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Kieran O Leary
hi On Mon, Feb 7, 2022 at 3:22 PM Reindl Harald wrote: > > > Am 07.02.22 um 14:55 schrieb CMG DiGiTaL: > > ok, but the sample rate information is in : > > Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 320 kb/s > > > > What happens is that I don't know which command I use to compare only the

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Reindl Harald
Am 07.02.22 um 14:55 schrieb CMG DiGiTaL: ok, but the sample rate information is in : Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 320 kb/s What happens is that I don't know which command I use to compare only the sample rate that is in the audio stream and manage to filter the audio

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread Kieran O Leary
Hi, I think you just want the sample rate value and nothing else? I used ffprobe here to do it for a file called out.mp3, and it produced a value of just '48000' ffprobe -i out.mp3 -v error -show_entries stream=sample_rate -of default=noprint_wrappers=1:nokey=1 48000 So perhaps you can work

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-07 Thread CMG DiGiTaL
Oi Reindl Harald, Hi Reindl Harald, ok, but the sample rate information is in : Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 320 kb/s What happens is that I don't know which command I use to compare only the sample rate that is in the audio stream and manage to filter the audio with only

Re: [FFmpeg-user] Get sample rate in mp3 files

2022-02-06 Thread Reindl Harald
Am 07.02.22 um 02:25 schrieb CMG DiGiTaL: Hi, I'm creating a bat file that will access a folder with several mp3 files. I would like to be able to select in this folder only the mp3s with a sample rate of 48000 khz and copy them to another folder where I will change from 48000 khz to 44100

[FFmpeg-user] Get sample rate in mp3 files

2022-02-06 Thread CMG DiGiTaL
Hi, I'm creating a bat file that will access a folder with several mp3 files. I would like to be able to select in this folder only the mp3s with a sample rate of 48000 khz and copy them to another folder where I will change from 48000 khz to 44100 khz. What command can I use to select only