Skip to content

Commit

Permalink
force audio to stereo for astats processing
Browse files Browse the repository at this point in the history
  • Loading branch information
dericed committed Sep 7, 2023
1 parent f21108c commit a9e5afc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Core/FileInformation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,11 +773,11 @@ FileInformation::FileInformation (SignalServer* signalServer, const QString &Fil
}
Filters[0].erase(0, 1); // remove first comma
if (ActiveFilters[ActiveFilter_Audio_astats])
Filters[1]+=",aformat=sample_fmts=flt|fltp,astats=metadata=1:reset=1:length=0.4";
Filters[1]+=",aformat=sample_fmts=flt|fltp:channel_layouts=stereo,astats=metadata=1:reset=1:length=0.4";
if (ActiveFilters[ActiveFilter_Audio_aphasemeter])
Filters[1]+=",aphasemeter=video=0";
if (ActiveFilters[ActiveFilter_Audio_EbuR128])
Filters[1]+=",ebur128=metadata=1,aformat=sample_fmts=flt|fltp";
Filters[1]+=",ebur128=metadata=1,aformat=sample_fmts=flt|fltp:channel_layouts=stereo";
Filters[1].erase(0, 1); // remove first comma

m_panelSize.setWidth(512);
Expand Down
2 changes: 1 addition & 1 deletion docs/data_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A QCTools Document can be created in any of the following ways:

For a file with video and audio named EXAMPLE.mov
```
ffprobe -f lavfi -i "movie=EXAMPLE.mov:s=v+a[in0][in1],[in0]signalstats=stat=tout+vrep+brng,cropdetect=reset=1:round=1,idet=half_life=1,deflicker=bypass=1,split[a][b];[a]field=top[a1];[b]field=bottom,split[b1][b2];[a1][b1]psnr[c1];[c1][b2]ssim[out0];[in1]ebur128=metadata=1,aformat=sample_fmts=flt|fltp,astats=metadata=1:reset=1:length=0.4[out1]" -show_frames -show_versions -of xml=x=1:q=1 -noprivate | gzip > EXAMPLE.mov.qctools.xml.gz
ffprobe -f lavfi -i "movie=EXAMPLE.mov:s=v+a[in0][in1],[in0]signalstats=stat=tout+vrep+brng,cropdetect=reset=1:round=1,idet=half_life=1,deflicker=bypass=1,split[a][b];[a]field=top[a1];[b]field=bottom,split[b1][b2];[a1][b1]psnr[c1];[c1][b2]ssim[out0];[in1]ebur128=metadata=1,aformat=sample_fmts=flt|fltp:channel_layouts=stereo,astats=metadata=1:reset=1:length=0.4[out1]" -show_frames -show_versions -of xml=x=1:q=1 -noprivate | gzip > EXAMPLE.mov.qctools.xml.gz
```
For a file with video and no audio named EXAMPLE.mov
Expand Down

0 comments on commit a9e5afc

Please sign in to comment.