Capturing the output of volumedetect as JSON

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Capturing the output of volumedetect as JSON

redneb8888
Hi *,

ffprobe can nowadays produce JSON output, which is quite convenient
sometimes. I am trying to use that feature in order to get the output
of volumedetect as JSON. I tried the following:

    ffprobe -loglevel error -of json=c=1 -show_entries root -f lavfi
-i 'movie=filename=clip.mkv:streams=a,volumedetect'

The "-show_entries root" means that all information should be included
in the JSON output, but still I cannot find anything from volumedetect
there. On the other hand, the above trick works just fine with other
filters, e.g. for cropdetect you can do

    ffprobe -loglevel error -of json=c=1 -show_entries frame_tags -f
lavfi -i 'movie=filename=clip.mkv:streams=v,cropdetect'

Is there a way to make this work? Or is this a shortcoming of volumedetect?

Thanks
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Capturing the output of volumedetect as JSON

Paul B Mahol
On 10/3/18, redneb8888 <[hidden email]> wrote:

> Hi *,
>
> ffprobe can nowadays produce JSON output, which is quite convenient
> sometimes. I am trying to use that feature in order to get the output
> of volumedetect as JSON. I tried the following:
>
>     ffprobe -loglevel error -of json=c=1 -show_entries root -f lavfi
> -i 'movie=filename=clip.mkv:streams=a,volumedetect'
>
> The "-show_entries root" means that all information should be included
> in the JSON output, but still I cannot find anything from volumedetect
> there. On the other hand, the above trick works just fine with other
> filters, e.g. for cropdetect you can do
>
>     ffprobe -loglevel error -of json=c=1 -show_entries frame_tags -f
> lavfi -i 'movie=filename=clip.mkv:streams=v,cropdetect'
>
> Is there a way to make this work? Or is this a shortcoming of volumedetect?

No way, it is shortcoming of volumedetect. It outputs info at uninit only.

If you are interested in peak volume only try astats filter.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Capturing the output of volumedetect as JSON

redneb8888
On Wed, Oct 3, 2018 at 8:36 PM Paul B Mahol <[hidden email]> wrote:

>
> On 10/3/18, redneb8888 <[hidden email]> wrote:
> > Hi *,
> >
> > ffprobe can nowadays produce JSON output, which is quite convenient
> > sometimes. I am trying to use that feature in order to get the output
> > of volumedetect as JSON. I tried the following:
> >
> >     ffprobe -loglevel error -of json=c=1 -show_entries root -f lavfi
> > -i 'movie=filename=clip.mkv:streams=a,volumedetect'
> >
> > The "-show_entries root" means that all information should be included
> > in the JSON output, but still I cannot find anything from volumedetect
> > there. On the other hand, the above trick works just fine with other
> > filters, e.g. for cropdetect you can do
> >
> >     ffprobe -loglevel error -of json=c=1 -show_entries frame_tags -f
> > lavfi -i 'movie=filename=clip.mkv:streams=v,cropdetect'
> >
> > Is there a way to make this work? Or is this a shortcoming of volumedetect?
>
> No way, it is shortcoming of volumedetect. It outputs info at uninit only.
>
> If you are interested in peak volume only try astats filter.

Thanks for the suggestion, astats does what I want.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Capturing the output of volumedetect as JSON

Dennis
On Wed, Oct 3, 2018 at 5:55 PM redneb8888 <[hidden email]> wrote:

> On Wed, Oct 3, 2018 at 8:36 PM Paul B Mahol <[hidden email]> wrote:
> >
> > On 10/3/18, redneb8888 <[hidden email]> wrote:
> > > Hi *,
> > >
> > > ffprobe can nowadays produce JSON output, which is quite convenient
> > > sometimes. I am trying to use that feature in order to get the output
> > > of volumedetect as JSON. I tried the following:
> > >
> > >     ffprobe -loglevel error -of json=c=1 -show_entries root -f lavfi
> > > -i 'movie=filename=clip.mkv:streams=a,volumedetect'
> > >
> > > The "-show_entries root" means that all information should be included
> > > in the JSON output, but still I cannot find anything from volumedetect
> > > there. On the other hand, the above trick works just fine with other
> > > filters, e.g. for cropdetect you can do
> > >
> > >     ffprobe -loglevel error -of json=c=1 -show_entries frame_tags -f
> > > lavfi -i 'movie=filename=clip.mkv:streams=v,cropdetect'
> > >
> > > Is there a way to make this work? Or is this a shortcoming of
> volumedetect?
> >
> > No way, it is shortcoming of volumedetect. It outputs info at uninit
> only.
> >
> > If you are interested in peak volume only try astats filter.
>
> Thanks for the suggestion, astats does what I want.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".


I'd give ebur128 a try, its pretty accurate
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".