Re: [FFmpeg-user] FFMpeg question on Raspberry Pi

2022-02-22 Thread Adam Nielsen via ffmpeg-user
> Thanks about the USB tip.  I’m trying to  concatenate automatically,
> however.   We have many Arlo cameras where we CAN connect to the
> internet.  Otherwise, you’re right, we could just use a trail cam but
> the time someone would need to be spending going through assembling
> videos would not be worth it.

Concatenating the videos into one would be fairly straightforward, if
somewhat inconvenient (if the video is of leaves blowing you'd have to
sit through it in full instead of just skipping to the next video).
But if you wanted to do this you could just copy the files off the trail
camera and run a short ffmpeg command to join them all together into
one video.

The hard part of what you ask is using the video player to scroll
through the videos and downloading a segment to your phone.

Also, how remote is this camera?  If you already have
Internet-connected cameras that do what you want, have you considered a
long range wireless link?  Mikrotik is one of the lower priced vendors,
with some of their longer range devices apparently being able to
maintain a line-of-sight link for 40 km (25 mi) on 2.4 GHz:

  https://mikrotik.com/products/group/wireless-systems

I haven't used any of these products so they are just examples of
what's available, not a recommendation.

Cheers,
Adam.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

2022-02-22 Thread CMG DiGiTaL
hi Clayton,

I understand... rules are rules and if I've broken any, I apologize to
everyone!


thanks a lot for the help, the code has now read the file with the
exclamation mark no problems!

only when recording the file he was converting all to 48000kHz sample rate,
but I made a change in the recording code line and now everything is ok!

Here's the change I made in the file's recording line:

before:
FOR /F "delims=" %%B IN ('ffprobe -v 0 -show_entries stream^=bit_rate -of
default^=nk^=1:nw^=1 "!filename!.mp3"') DO ffmpeg -hide_banner -i
"!filename!.mp3" -af
"loudnorm=linear=true:I=!vluf!:LRA=11:tp=!vpeak!:measured_I=!II!:measured_LRA=!ILRA!:measured_tp=!ITP!:measured_thresh=!IT!:offset=!TO!:print_format=summary"
-c:a libmp3lame -b:a %%B "..\Áudios LUFS ORI\!filename!_LUFS_CONVERTED.mp3"

later:
FOR /F "tokens=1,2 delims=," %%B IN ('ffprobe -v 0 -show_entries
stream^=bit_rate^,sample_rate -of csv^=p^=0 "!filename!.mp3"') DO ffmpeg
-hide_banner -i "!filename!.mp3" -af
"loudnorm=linear=true:I=!vluf!:LRA=11:tp=!vpeak!:measured_I=!II!:measured_LRA=!ILRA!:measured_tp=!ITP!:measured_thresh=!IT!:offset=!TO!:print_format=summary"
-c:a libmp3lame -b:a %%B -ar:a %%C "..\Áudios LUFS
ORI\!filename!_LUFS_CONVERTED.mp3"


thank you very much,
Clamarc

Em ter., 22 de fev. de 2022 às 22:05, Clayton Macleod 
escreveu:

> > hi Clayton,
>
> That wasn't me.  That was Reino.  I guess they're strict about formatting
> rules around here.  I just joined yesterday, so don't ask me.  Seems a
> little arbitrary to me, but if those are the rules and that's what they
> want, alrighty...
>
> I forgot to mention, you'll need to change one more thing in your loop.
> Anywhere you previously referenced %%G in the loop will have to be changed
> to reference temporary.mp3 instead, since you'll be renaming %%G to
> temporary.mp3 at the start of the loop.
>
>
> --
> Clayton Macleod
> If no one comes from the future to stop you from doing it, then how bad of
> a decision can it really be?
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] FFMpeg question on Raspberry Pi

2022-02-22 Thread Fred Kemp
Thanks about the USB tip.  I’m trying to  concatenate automatically, however.   
We have many Arlo cameras where we CAN connect to the internet.  Otherwise, 
you’re right, we could just use a trail cam but the time someone would need to 
be spending going through assembling videos would not be worth it.  

Any programmers I can contact?

Sent from my iPhone

> On Feb 22, 2022, at 7:46 PM, Adam Nielsen via ffmpeg-user 
>  wrote:
> 
> 
>> 
>> I need help in trying to develop a security camera for a remote 
>> area of a farm.  There is no internet in some places there and some of 
>> the motion videos may be long, e.g., 20 to 30 minutes.
>> 
>> So, I would like to be able to record these longer motion videos on 
>> a Raspberry Pi locally, concatenate them and then be able to somehow 
>> quickly review the compilation/concatenated video on a video player and 
>> then download the snippet(s) of video to a smart phone.
> 
> You're going to have to do a fair bit of programming/scripting to get
> this I suspect, as I don't think there's anything around that can do
> this out of the box on a Pi.
> 
> However, since you won't want to use an SD card for this (as writing
> all the video will kill the SD card very quickly) you'll probably need
> to use a USB external hard drive.  In this case you could just buy two,
> and swap them over when you visit the camera.  Then back on another
> computer you can flick through the video on the USB hard drive.
> 
>> 1. Recording motion using Motion or MotionEyes to a particular
>>directory for the day,
>> 2. Then using FFMpeg to possibly automatically concatenate the
>>videos in that directory into one bigger file, and
>> 3. Then using a video player to scroll through the video and
>>download a particular segment to my iPhone.
> 
> Have you considered using a game camera instead of a Raspberry Pi?  They
> have motion sensors built in, they'll capture video of the motion, and
> save each event as a different video file.  Then you can visit it, swap
> over the memory card, and watch all the videos on any device you can
> plug the card into (even a smartphone if you have a card reader for
> it).  They run off batteries and include infrared lights to capture
> video at night, so they are well suited for remote areas where you
> don't need a live video feed.
> 
> The only real benefit of using the Pi would be that you get
> Ethernet/WiFi on it for remote access/live video, but if you won't be
> using that because it's too far away from a WiFi network and you don't
> want to use WiFi extenders or dig a cable, using a game camera will
> probably save you a huge amount of effort.
> 
> Cheers,
> Adam.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] FFMpeg question on Raspberry Pi

2022-02-22 Thread Adam Nielsen via ffmpeg-user
>      I need help in trying to develop a security camera for a remote 
> area of a farm.  There is no internet in some places there and some of 
> the motion videos may be long, e.g., 20 to 30 minutes.
> 
>      So, I would like to be able to record these longer motion videos on 
> a Raspberry Pi locally, concatenate them and then be able to somehow 
> quickly review the compilation/concatenated video on a video player and 
> then download the snippet(s) of video to a smart phone.

You're going to have to do a fair bit of programming/scripting to get
this I suspect, as I don't think there's anything around that can do
this out of the box on a Pi.

However, since you won't want to use an SD card for this (as writing
all the video will kill the SD card very quickly) you'll probably need
to use a USB external hard drive.  In this case you could just buy two,
and swap them over when you visit the camera.  Then back on another
computer you can flick through the video on the USB hard drive.

>  1.     Recording motion using Motion or MotionEyes to a particular
> directory for the day,
>  2.     Then using FFMpeg to possibly automatically concatenate the
> videos in that directory into one bigger file, and
>  3.     Then using a video player to scroll through the video and
> download a particular segment to my iPhone.

Have you considered using a game camera instead of a Raspberry Pi?  They
have motion sensors built in, they'll capture video of the motion, and
save each event as a different video file.  Then you can visit it, swap
over the memory card, and watch all the videos on any device you can
plug the card into (even a smartphone if you have a card reader for
it).  They run off batteries and include infrared lights to capture
video at night, so they are well suited for remote areas where you
don't need a live video feed.

The only real benefit of using the Pi would be that you get
Ethernet/WiFi on it for remote access/live video, but if you won't be
using that because it's too far away from a WiFi network and you don't
want to use WiFi extenders or dig a cable, using a game camera will
probably save you a huge amount of effort.

Cheers,
Adam.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

2022-02-22 Thread Clayton Macleod
> hi Clayton,

That wasn't me.  That was Reino.  I guess they're strict about formatting
rules around here.  I just joined yesterday, so don't ask me.  Seems a
little arbitrary to me, but if those are the rules and that's what they
want, alrighty...

I forgot to mention, you'll need to change one more thing in your loop.
Anywhere you previously referenced %%G in the loop will have to be changed
to reference temporary.mp3 instead, since you'll be renaming %%G to
temporary.mp3 at the start of the loop.


-- 
Clayton Macleod
If no one comes from the future to stop you from doing it, then how bad of
a decision can it really be?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

2022-02-22 Thread Clayton Macleod
No need to make it any more complicated than need be.  You only need to add
two lines to the existing FOR loop.  The variable %%G contains the current
filename throughout the entire time the loop runs.  As this is the case,
you can simply rename it before you do any of the actual processing in the
loop, and then rename it back once you are finished processing it.  The
variable %%G will still have the current filename assigned to it until the
loop goes through the next iteration.  Take a random group of 10 mp3 files
and copy them into their own directory to do a little test.  Make a
renametest.cmd batch file that contains this, put it in the test directory
with the mp3 files and run it.  You'll see that as the loop runs each time
it renames a single file to temporary.mp3 and then back again.  It will
execute a dir command and then pause so you can see what all the filenames
currently are at each step.

@echo off
for %%G in (*.mp3) do (
dir
echo About to rename %%G to temporary.mp3.
pause
ren "%%G" temporary.mp3
dir
echo ...
echo You should see %%G is now missing from the list, replaced by
temporary.mp3.
echo About to rename temporary.mp3 back to %%G.
pause
ren temporary.mp3 "%%G"
dir
echo You should now see %%G has returned.
pause )

And since that works the way it does, you can simply insert this line at
the start of your loop:

ren "%%G" temporary.mp3

which will rename the current file you're working on.  And then before the
end of your loop you can insert this line to change the name back to the
original one:

ren temporary.mp3 "%%G"


-- 
Clayton Macleod
If no one comes from the future to stop you from doing it, then how bad of
a decision can it really be?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

2022-02-22 Thread CMG DiGiTaL
hi Clayton,

>  Please do not top-post. On this mailinglist it's against the rules, to
which you agreed upon subscribing.

but what did i do wrong?... i just answered the tip you gave about renaming
files?!!!... answering causes problems?!... did i do something wrong or are
you referring There are a couple of referrals I made earlier to Mark and to
the Reino?... if it's referrals, I apologize!

I appreciate your help I will test the commands you sent me
clamarc

Em ter., 22 de fev. de 2022 às 20:43, Reino Wijnsma 
escreveu:

> Hello Clamarc,
>
> Please do not top-post. On this mailinglist it's against the rules, to
> which you agreed upon subscribing.
>
> On 2022-02-22T07:32:05+0100, CMG DiGiTaL  wrote:
> >> FOR *%G* IN (*.mp3) DO (
> >it was because I took part of the sample rate command that you sent me
> > to be able to use it in my batch file that I already had here, you
> know?...
>
> I'm not sure you understand. I meant the strong / bold font layout, the
> two asterisks surrounding %G.
>
> > the problem that is driving me crazy, is that as some audio files have
> the
> > exclamation mark in the name, using the ENABLEDELAYEDEXPANSION, the batch
> > cancels because it
> > doesn't recognize the files with the exclamation mark
>
> Try this:
>
> @ECHO off
> SET vluf=-10.0
> SET vpeak=-0.0
> FOR %%A IN (*.mp3) DO (
>   SET "filename=%%~nA"
>   ffmpeg -hide_banner -i "%%A" -af
> "loudnorm=I=-15:TP=-1.5:LRA=11:print_format=summary" -f null NUL 2>
> "%%~nA.log"
>   @FOR /F "tokens=3" %%B IN ('FINDSTR /C:"Input Integrated" "%%~nA.log"')
> DO (SET II=%%B)
>   @FOR /F "tokens=4" %%B IN ('FINDSTR /C:"Input True Peak" "%%~nA.log"')
> DO (SET ITP=%%B)
>   @FOR /F "tokens=3" %%B IN ('FINDSTR /C:"Input LRA" "%%~nA.log"') DO (SET
> ILRA=%%B)
>   @FOR /F "tokens=3" %%B IN ('FINDSTR /C:"Input Threshold" "%%~nA.log"')
> DO (SET IT=%%B)
>   @FOR /F "tokens=3" %%B IN ('FINDSTR /C:"Target Offset" "%%~nA.log"') DO
> (SET TO=%%B)
>   DEL "%%~nA.log"
>   SETLOCAL ENABLEDELAYEDEXPANSION
>   ECHO !II! is the Input Integrated
>   ECHO !ITP! is the Input True Peak
>   ECHO !ILRA! is the Input LRA
>   ECHO !IT! is the Input Threshold
>   ECHO !TO! is the Target Offset
>   FOR /F "delims=" %%B IN ('ffprobe -v 0 -show_entries stream^=bit_rate
> -of default^=nk^=1:nw^=1 "!filename!.mp3"') DO ffmpeg -hide_banner -i
> "!filename!.mp3" -af
> "loudnorm=linear=true:I=!vluf!:LRA=11:tp=!vpeak!:measured_I=!II!:measured_LRA=!ILRA!:measured_tp=!ITP!:measured_thresh=!IT!:offset=!TO!:print_format=summary"
> -c:a libmp3lame -b:a %%B "..\Áudios LUFS ORI\!filename!_LUFS_CONVERTED.mp3"
>   ENDLOCAL
> )
>
> --
> Reino
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] FFMpeg question on Raspberry Pi

2022-02-22 Thread Matt C
Sounds like you want something more like a Ring camera or hunting camera with a 
bunch of wifi extenders if the farm does have internet.  Best of luck.

From: ffmpeg-user  on behalf of Fred Kemp 

Sent: Tuesday, February 22, 2022 8:14 PM
To: ffmpeg-user@ffmpeg.org 
Subject: [FFmpeg-user] FFMpeg question on Raspberry Pi

I need help in trying to develop a security camera for a remote
area of a farm.  There is no internet in some places there and some of
the motion videos may be long, e.g., 20 to 30 minutes.

 So, I would like to be able to record these longer motion videos on
a Raspberry Pi locally, concatenate them and then be able to somehow
quickly review the compilation/concatenated video on a video player and
then download the snippet(s) of video to a smart phone.

 I'm looking for direction as far as software goes.  I am not tech
savvy but I know enough to see this project possibly going down a number
of dead ends as I learn about the limitations of various software
packages.  Any help would be GREATLY appreciated!

 I was thinking of possibly:

 1. Recording motion using Motion or MotionEyes to a particular
directory for the day,
 2. Then using FFMpeg to possibly automatically concatenate the
videos in that directory into one bigger file, and
 3. Then using a video player to scroll through the video and
download a particular segment to my iPhone.

 Is this possible?

Thank you in advance for your time!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

2022-02-22 Thread Reino Wijnsma
Hello Clamarc,

Please do not top-post. On this mailinglist it's against the rules, to which 
you agreed upon subscribing.

On 2022-02-22T07:32:05+0100, CMG DiGiTaL  wrote:
>> FOR *%G* IN (*.mp3) DO (
>it was because I took part of the sample rate command that you sent me
> to be able to use it in my batch file that I already had here, you know?...

I'm not sure you understand. I meant the strong / bold font layout, the two 
asterisks surrounding %G.

> the problem that is driving me crazy, is that as some audio files have the
> exclamation mark in the name, using the ENABLEDELAYEDEXPANSION, the batch
> cancels because it
> doesn't recognize the files with the exclamation mark

Try this:

@ECHO off
SET vluf=-10.0
SET vpeak=-0.0
FOR %%A IN (*.mp3) DO (
  SET "filename=%%~nA"
  ffmpeg -hide_banner -i "%%A" -af 
"loudnorm=I=-15:TP=-1.5:LRA=11:print_format=summary" -f null NUL 2> "%%~nA.log"
  @FOR /F "tokens=3" %%B IN ('FINDSTR /C:"Input Integrated" "%%~nA.log"') DO 
(SET II=%%B)
  @FOR /F "tokens=4" %%B IN ('FINDSTR /C:"Input True Peak" "%%~nA.log"') DO 
(SET ITP=%%B)
  @FOR /F "tokens=3" %%B IN ('FINDSTR /C:"Input LRA" "%%~nA.log"') DO (SET 
ILRA=%%B)
  @FOR /F "tokens=3" %%B IN ('FINDSTR /C:"Input Threshold" "%%~nA.log"') DO 
(SET IT=%%B)
  @FOR /F "tokens=3" %%B IN ('FINDSTR /C:"Target Offset" "%%~nA.log"') DO (SET 
TO=%%B)
  DEL "%%~nA.log"
  SETLOCAL ENABLEDELAYEDEXPANSION
  ECHO !II! is the Input Integrated
  ECHO !ITP! is the Input True Peak
  ECHO !ILRA! is the Input LRA
  ECHO !IT! is the Input Threshold
  ECHO !TO! is the Target Offset
  FOR /F "delims=" %%B IN ('ffprobe -v 0 -show_entries stream^=bit_rate -of 
default^=nk^=1:nw^=1 "!filename!.mp3"') DO ffmpeg -hide_banner -i 
"!filename!.mp3" -af 
"loudnorm=linear=true:I=!vluf!:LRA=11:tp=!vpeak!:measured_I=!II!:measured_LRA=!ILRA!:measured_tp=!ITP!:measured_thresh=!IT!:offset=!TO!:print_format=summary"
 -c:a libmp3lame -b:a %%B "..\Áudios LUFS ORI\!filename!_LUFS_CONVERTED.mp3"
  ENDLOCAL
)

-- 
Reino

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] FFMpeg question on Raspberry Pi

2022-02-22 Thread Fred Kemp
    I need help in trying to develop a security camera for a remote 
area of a farm.  There is no internet in some places there and some of 
the motion videos may be long, e.g., 20 to 30 minutes.


    So, I would like to be able to record these longer motion videos on 
a Raspberry Pi locally, concatenate them and then be able to somehow 
quickly review the compilation/concatenated video on a video player and 
then download the snippet(s) of video to a smart phone.


    I'm looking for direction as far as software goes.  I am not tech 
savvy but I know enough to see this project possibly going down a number 
of dead ends as I learn about the limitations of various software 
packages.  Any help would be GREATLY appreciated!


    I was thinking of possibly:

1.     Recording motion using Motion or MotionEyes to a particular
   directory for the day,
2.     Then using FFMpeg to possibly automatically concatenate the
   videos in that directory into one bigger file, and
3.     Then using a video player to scroll through the video and
   download a particular segment to my iPhone.

    Is this possible?

   Thank you in advance for your time!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

2022-02-22 Thread CMG DiGiTaL
hi Clayton

I found your idea interesting, but I was confused on how to do it. I would
have it right after the main FOR and run:

for /f %%n in ("%%a") do ren temp.mp3  (is this command correct?)
ps. if I rename like this the originals are all with the name temp.mp3?

After the rename, should I process the files using %%n as input, and at the
end of processing, before writing the output, return the names to what they
were originally?... is that it?... because if I do that , the file with the
exclamation will return and the code will give the same error!

Another detail, how do I return the files to their original names if they
are all like temp.mp3?

I'm learning, and this is making it difficult for me to understand this
issue of renames in the files! I'm sorry and I ask for your patience with
this!

thanks
Clamarc

Em ter., 22 de fev. de 2022 às 03:54, Clayton Macleod 
escreveu:

> How about temporarily renaming the file at the start of the loop before any
> processing happens?
>
> ren %G temporary.mp3
> processing commands on temporary.mp3
> ren temporary.mp3 %G
>
> And then just rename it back at the end of the loop, like that.
>
>
> On Mon, 21 Feb 2022 at 22:32, CMG DiGiTaL  wrote:
>
> > hi Reino,
> >
> > thanks for the clarifications...
> >
> > > FOR *%G* IN (*.mp3) DO (
> >  Please don't do this. I understand you're trying to emphasize parts of
> > code...
> >
> >it was because I took part of the sample rate command that you sent me
> > to be able to use it in my batch file that I already had here, you
> know?...
> > I'm sorry about that!
> >
> > ...with regard to ENABLEDELAYEDEXPANSION, I put the question of this
> batch
> > LUFS here, because I already have it working in batch file with
> > ENABLEDELAYEDEXPANSION, t
> > he problem that is driving me crazy, is that as some audio files have the
> > exclamation mark in the name, using the ENABLEDELAYEDEXPANSION, the batch
> > cancels because it
> > doesn't recognize the files with the exclamation mark, so I'm trying
> > another way to make it work without using the ENABLEDELAYEDEXPANSION so
> > that I can have a batch file
> > that reads all files without giving problems.
> >
> > ps. this ENABLEDELAYEDEXPANSION problem, with the exclamation mark, is
> > killing me...
> > ...because I can't get my batch file to read all files without problems..
> > so what I'm doing is, taking the exclamation mark out of the files,
> running
> > the batch and then putting the
> > exclamation mark on the files manually!
> >
> > thanks
> > Clamarc
> >
> > Em seg., 21 de fev. de 2022 às 22:02, Reino Wijnsma 
> > escreveu:
> >
> > > On 2022-02-21T08:52:44+0100, CMG DiGiTaL  wrote:
> > > > I did these commands below
> > >
> > > This has nothing to with your initial question "Get sample rate in mp3
> > > files", or even FFmpeg. This is in fact a question about CMD and Batch.
> > > I will respond to this now, but I don't believe questions like these
> are
> > > for the ffmpeg-user mailinglist.
> > >
> > > I know CMD / Batch, but to be honest I don't know enough about FFmpeg's
> > > features to know what LUFS is/does. So I can't comment on whether this
> > is a
> > > useful approach or not.
> > > I can see you're trying to parse a loudnorm log and use these values in
> > > another FFmpeg call. A rather inefficient process, calling the txt-file
> > > multiple times with FINDSTR, if you ask me. Especially because you can
> > > enter print_format=json for the loudnorm-filter.
> > >
> > > > - Can I use a command of this size directly in cmd?
> > >
> > > Sure. The amount of characters doesn't come near CMD's commandline
> buffer
> > > of 8192 bytes.
> > > But you're gonna need delayed expansion for this, so I'd say you're
> > better
> > > off creating a bat-file.
> > >
> > > > FOR *%G* IN (*.mp3) DO (
> > >
> > > Please don't do this. I understand you're trying to emphasize parts of
> > > code, but in this particular case it's not bold printed, which raises
> the
> > > question if it's part of the code or not.
> > >
> > > >   set vluf=-10.0
> > > >   set vpeak=-0.0
> > >
> > > If these are always the same value for each mp3-file, then I would've
> > > declared them before the FOR-loop.
> > >
> > > >   @for /f "delims=" *%A* IN ('ffprobe -v 0 -show_entries
> > > *stream^=bit_rate*
> > > > -of csv^=p^=0 "*%G*"')
> > >
> > > This FFprobe call shouldn't be here. It should be right before the
> final
> > > FFmpeg call.
> > >
> > > >   *ffmpeg* -i "%G" -filter_complex
> > > > "[0:a]loudnorm=I=-15:TP=-1.5:LRA=11:print_format=summary" -f null x
> > > 2>%1.txt
> > >
> > > On Linux the convention is -f null /dev/null, but on Windows it's -f
> null
> > > NUL.
> > > I would recommend naming a file "%1". Could cause lots of problems.
> > >
> > > >   echo "%II" is the Input Integrated
> > >
> > > You forgot the closing % --> %II%. Only FOR-loop variables work
> without a
> > > closing %.
> > >
> > > >   @for /f "tokens=3" %B in ('findstr /C:"Output Integrated" %1.txt')
> do
> > > > (set 

Re: [FFmpeg-user] Unrecognized option -intra FFmpeg 5.0

2022-02-22 Thread Gyan Doshi



On 2022-02-22 05:24 pm, adam smith via ffmpeg-user wrote:

Hi fellow FFmpeg enthusiasts. Hope everyone is doing well.

I have updated to FFmpeg v5.0 and mostly I am having a great time.
I am however having an issue with Unrecognised option -intra when trying to 
create IMX30 or IMX50. The command below was working in 4.4


Use  -g 1  in place of -intra

Gyan
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] Unrecognized option -intra FFmpeg 5.0

2022-02-22 Thread adam smith via ffmpeg-user
Hi fellow FFmpeg enthusiasts. Hope everyone is doing well.

I have updated to FFmpeg v5.0 and mostly I am having a great time.
I am however having an issue with Unrecognised option -intra when trying to 
create IMX30 or IMX50. The command below was working in 4.4


/usr/src/app # ffmpeg -y -i /data/disposable/source.mp4 -filter_complex 
"[0:0]scale=w=720:h=576,setdar=dar=1.25[0scaled];[0:1]channelsplit=channel_layout=stereo:channels=FL|FR[001_channelsplit][002_channe
lsplit];[001_channelsplit]asplit=2[001_asplit][003_asplit];[002_channelsplit]asplit=2[002_asplit][004_asplit]"
  -map "[0scaled]" -map "[001_asplit]" -map "[002_asplit]" -map "[003_asplit]" 
-map "[004_aspl
it]" -c:v mpeg2video -pix_fmt yuv422p -s 720x576 -b:v 5000 -maxrate 
5000 -minrate 5000 -timecode 00:00:00:00 -r 25 -flags +ildct+low_delay 
-intra -intra_vlc 1 -non_linear_quant 1 -ps 1 -qmin 1
 -qmax 3 -top 1 -dc 10 -bufsize 200 -rc_init_occupancy 200 
-rc_buf_aggressivity 0.25 -rc_max_vbv_use 1 -rc_min_vbv_use 1 -aspect 16:9 -c:a 
pcm_s16le -ar 48000 -f tee "/data/disposable/output_imx50
.mxf"
ffmpeg version 5.0 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 10.2.1 (Alpine 10.2.1_pre1) 20201203
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl 
--enable-libass --enable-fontconfig --enable-libfreetype --enable-libvidstab 
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis 
--enable-libvpx --disable-libwebp --enable-libxcb --enable-libx265 
--enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl 
--enable-libfdk_aac --enable-postproc --enable-small --enable-version3 
--enable-libbluray --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg 
--enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread 
--enable-libsrt --enable-libaribb24 --extra-cflags=-I/opt/ffmpeg/include 
--extra-ldflags=-L/opt/ffmpeg/lib
  libavutil  57. 17.100 / 57. 17.100
  libavcodec 59. 18.100 / 59. 18.100
  libavformat59. 16.100 / 59. 16.100
  libavdevice59.  4.100 / 59.  4.100
  libavfilter 8. 24.100 /  8. 24.100
  libswscale  6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc56.  3.100 / 56.  3.100
Unrecognized option 'intra'.
Error splitting the argument list: Option not found

If I remove the -intra option the transcode completes but the resulting files 
are shown as XDCAMHD422 in media info, where as with the -intra option they are 
shown as IMX

Do you know what option I should be using instead?

Thanks for your help

Adam
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".