[FFmpeg-user] SBC codec supported?

2020-08-05 Thread Hector Urroz
Is the bluetooth SBC codec supported in ffmpeg? I see references to it in
ffmpeg.org, for example:

https://www.ffmpeg.org/doxygen/4.1/sbc_8c_source.html

But the codec doesn't show up when I run "ffmpeg -codecs"

Thanks, Hector
___
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] Wrong display aspect ratio output

2020-08-05 Thread Gian Maria Allibrante
Hello,by encoding different inputs with the line below, the display aspect 
ratio of the output is wrong when the input has not the same proportional 
relationship, also the logo that the command adds seems to effected by the gap 
between input width/height relationship and output one. How to get an output 
that respest the input proportion, since the "cinema scope" could change, but 
keep 1080*1920 output resolution?

eg: to eep the original "cinema scope" instead stretch height like now.



ffmpeg -f concat -safe 0 -y -i list.txt -loop 1 -i ../logo/logo.png -c:a copy 
-c:v libx264 -x264opts keyint=$GOP:min-keyint=$GOP:no-scenecut -bf 0 -r $FPSC 
-b:v 4800k -maxrate 9600k -bufsize 19200k -profile:v main -crf 22 
-filter_complex 
"[0:v][1:v]overlay=main_w-overlay_w-10:10,scale=1920:1080,setsar=1" -t $TOTDUR 
1080set.mp4



Please if you need any other infos just say, thank you!
___
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] How can I get a duration and fps of any video that corresponds with the number of frames that can be read?

2020-08-05 Thread Phil Rhodes via ffmpeg-user
 > AFAICT, no video tool has solved this without running the entire stream. You 
 >might take one approach for fixed-rate containers/encodings and another for 
variable-rate.

It might be worth adding that there is a frame-count field available in several 
container formats, but it is very rarely correctly set. I've worked extensively 
with AVIs that have frame-count fields which were neither zeroed, nor set to 
the actual frame count. So, don't trust 'em unless you trust the application 
that wrote the file, and even then that would be a "trusting the file" smell.
P  
___
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] Error extracting srt

2020-08-05 Thread Alex Zachopoulos
Hi all,

I want to extract the SRT stream from mp4 files.
On my MacPro with High Sierra running ffmpeg 3.3 all is fine.
On my MacBook Pro with Catalina running ffmpeg 4.3 I keep getting an error.
This is the command I use to extract Stream #0:2 (subtitle) from file
1.mp4, on both computers:

ffmpeg -i 1.mp4 -vn -an -codec:s:0.2 srt 1.srt

On the MacBook Pro with Catalina and ffmpeg 4.3 is complains, twice:
First, somewhere down the middle of the dump it says:
*[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd3b4009800] stream 0, timescale not set*

Then at the end of the dump it says:
*[srt @ 0x7fd3b300ce00] Invalid stream specifier: s:0.2.*
*Last message repeated 1 times*

Like I said, the same command works without a hitch on the MacPro.
Anyone can help with any pointers, it'll be much appreciated.
Alex
___
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 distribution help

2020-08-05 Thread Carl Zwanzig

Hello,

Please read the mailing list FAQ which instructs people not to top-post.

On 8/5/2020 1:45 PM, Don Fotheringham wrote:

Is there no procedure that allows for some path to an agreement of user
fees or whatever?


There is not; the GPL and LGPL don't need one, follow the compliance 
checklist on the legal page and move on. Be mindful of patents, which are 
discussed at the bottom of the legal page.


You'll find a lot of info searching on "using lgpl in commercial software", 
including http://answers.google.com/answers/threadview/id/439136.html



So, you your organization _requires_ a specific agreement naming all the 
parties, you/they will be out of luck. OTOH, if you/they are comfortable 
with the LGPL, make a good attempt to comply and there shouldn't be any 
problems.


Later,

z!
___
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 distribution help

2020-08-05 Thread Paul B Mahol
On 8/5/20, Don Fotheringham  wrote:
> Thanks Carl.
> I have looked at those pages and remain confused.
> Audacity includes the screenshot below which leads me to think we are dead
> in the water with our plans to include FFmpeg in our install.
> Is there no procedure that allows for some path to an agreement of user
> fees or whatever?

FFmpeg do not own any patent(s).

>
> [image: image.png]
>
> On Wed, Aug 5, 2020 at 1:33 PM Carl Zwanzig  wrote:
>
>> On 8/5/2020 1:26 PM, Don Fotheringham wrote:
>> > We have developed software that requires the distribution of FFmpeg
>> > (included in the download). Our intention is to sell the software.
>> > Who do I contact to inquire further about how to proceed regarding
>> > permission, royalties, fees etc.?
>>
>> Since ffmpeg is licensed under the LGPL, it would be good to start with
>> https://ffmpeg.org/legal.html and
>> http://www.gnu.org/licenses/gpl-faq.html.
>>
>> That should pretty much cover things.
>>
>> A search of this mailing list will turn up similar info. See also
>> https://ffmpeg.org/mailing-list-faq.html.
>>
>> z!
>> just another reader of this list
>> ___
>> 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] Impossible to get the bit depth value of an audio-file with ffprobe

2020-08-05 Thread Paul B Mahol
On 8/5/20, scrutinizer  wrote:
> To add more practical usage examples where bits_per_sample is useless.
> Here’s an APE file on which MediaInfo reports 24 bit depth. And here’s the
> output of the ffprobe:
>
> '/Users/Me/Music/For Batch Conversion/Judas Priest - Stained Class -
> 1978.Ape':
>   Duration: 00:43:21.00, Start: 0.00, Bitrate: 3039 Kb/S
> Stream #0:0: Audio: Ape (Ape  / 0X20455041), 96000 Hz, Stereo, S32P
> Bits_Per_Sample=0
> Bits_Per_Raw_Sample=N/A
>
> Bits per sample is 0? It’s not. Any form of the ffprobe command - be it
> show_streams, select_stream, show_formats - returns the identically
> incorrect result.

This is obvious bug, bits_per_raw_sample should report 24.

>
>> On 5 Aug 2020, at 20:18, scrutinizer  wrote:
>>
>> If the option in question indeed is available then it’s undocumented. The
>> ffprobe help reveals the following usage:
>>
>> Global options (affect whole program instead of just one file):
>> -loglevel loglevel  set logging level
>> -v loglevel set logging level
>> -report generate a report
>> -max_alloc bytesset maximum size of a single allocated block
>> -y  overwrite output files
>> -n  never overwrite output files
>> -ignore_unknown Ignore unknown stream types
>> -filter_threads number of non-complex filter threads
>> -filter_complex_threads  number of threads for -filter_complex
>> -stats  print progress report during encoding
>> -max_error_rate maximum error rate  ratio of errors (0.0: no errors, 1.0:
>> 100% errors) above which ffmpeg returns an error instead of success.
>> -bits_per_raw_sample number  set the number of bits per raw sample
>> -vol volume change audio volume (256=normal)
>>
>>
>> There’s bits_per_raw_sample but no bits_per_sample. And the same is true
>> for the video options - no bits_per_sample.
>>
>>> On 5 Aug 2020, at 12:08, Paul Blakeman via ffmpeg-user
>>> mailto:ffmpeg-user@ffmpeg.org>> wrote:
>>>
>>>
>>>
>>> Input #0, wav, from 'Lee.wav':
>>>  Metadata:
>>>encoded_by  : Pro Tools
>>>originator_reference: 7iGQ3S9p7mlaaaGk
>>>date: 2020-07-23
>>>creation_time   : 14:05:55
>>>time_reference  : 158865370
>>>  Duration: 00:04:15.83, bitrate: 1422 kb/s
>>>Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2
>>> channels, s16, 1411 kb/s
>>> bits_per_sample=16
>>> bits_per_raw_sample=N/A
>>>
>>>
>>> When I try on an audio file created with ProTools
>>>
>>> ffprobe -show_streams -show_format Lee.wav | grep bits
>>>
>>> On an audio file “bits_per_sample” is what you are after
>>>
>>>
 On 5 Aug 2020, at 08:41, Paul B Mahol >>> > wrote:

 On 8/5/20, scrutinizer >>> > wrote:
> The file is AIFF, 24bit/96kHz. I want to get the “24bit” part (or
> simply
> “24").

 See bits per raw sample field.

>
>> On 5 Aug 2020, at 03:39, Carl Eugen Hoyos > > wrote:
>>
>>
>>
>>> Am 04.08.2020 um 16:56 schrieb scrutinizer >> >:
>>>
>>> is it possible to retrieve the bit depth value of an audio-file
>>
>> Depends on the file.
>>
>> Carl Eugen
>> ___
>> 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".
 ___
 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".
>>
>
> ___
> 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 

Re: [FFmpeg-user] FFmpeg distribution help

2020-08-05 Thread Carl Zwanzig

On 8/5/2020 1:26 PM, Don Fotheringham wrote:

We have developed software that requires the distribution of FFmpeg
(included in the download). Our intention is to sell the software.
Who do I contact to inquire further about how to proceed regarding
permission, royalties, fees etc.?


Since ffmpeg is licensed under the LGPL, it would be good to start with 
https://ffmpeg.org/legal.html and http://www.gnu.org/licenses/gpl-faq.html. 
That should pretty much cover things.


A search of this mailing list will turn up similar info. See also 
https://ffmpeg.org/mailing-list-faq.html.


z!
just another reader of this list
___
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 distribution help

2020-08-05 Thread Don Fotheringham
Hello,

We have developed software that requires the distribution of FFmpeg
(included in the download). Our intention is to sell the software.
Who do I contact to inquire further about how to proceed regarding
permission, royalties, fees etc.?

Thank you,
Don Fotheringham
___
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] Impossible to get the bit depth value of an audio-file with ffprobe

2020-08-05 Thread scrutinizer
To add more practical usage examples where bits_per_sample is useless. Here’s 
an APE file on which MediaInfo reports 24 bit depth. And here’s the output of 
the ffprobe:

'/Users/Me/Music/For Batch Conversion/Judas Priest - Stained Class - 1978.Ape':
  Duration: 00:43:21.00, Start: 0.00, Bitrate: 3039 Kb/S
Stream #0:0: Audio: Ape (Ape  / 0X20455041), 96000 Hz, Stereo, S32P
Bits_Per_Sample=0
Bits_Per_Raw_Sample=N/A

Bits per sample is 0? It’s not. Any form of the ffprobe command - be it 
show_streams, select_stream, show_formats - returns the identically incorrect 
result.

> On 5 Aug 2020, at 20:18, scrutinizer  wrote:
> 
> If the option in question indeed is available then it’s undocumented. The 
> ffprobe help reveals the following usage:
> 
> Global options (affect whole program instead of just one file):
> -loglevel loglevel  set logging level
> -v loglevel set logging level
> -report generate a report
> -max_alloc bytesset maximum size of a single allocated block
> -y  overwrite output files
> -n  never overwrite output files
> -ignore_unknown Ignore unknown stream types
> -filter_threads number of non-complex filter threads
> -filter_complex_threads  number of threads for -filter_complex
> -stats  print progress report during encoding
> -max_error_rate maximum error rate  ratio of errors (0.0: no errors, 1.0: 
> 100% errors) above which ffmpeg returns an error instead of success.
> -bits_per_raw_sample number  set the number of bits per raw sample
> -vol volume change audio volume (256=normal)
> 
> 
> There’s bits_per_raw_sample but no bits_per_sample. And the same is true for 
> the video options - no bits_per_sample.
>  
>> On 5 Aug 2020, at 12:08, Paul Blakeman via ffmpeg-user 
>> mailto:ffmpeg-user@ffmpeg.org>> wrote:
>> 
>> 
>> 
>> Input #0, wav, from 'Lee.wav':
>>  Metadata:
>>encoded_by  : Pro Tools
>>originator_reference: 7iGQ3S9p7mlaaaGk
>>date: 2020-07-23
>>creation_time   : 14:05:55
>>time_reference  : 158865370
>>  Duration: 00:04:15.83, bitrate: 1422 kb/s
>>Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 
>> channels, s16, 1411 kb/s
>> bits_per_sample=16
>> bits_per_raw_sample=N/A
>> 
>> 
>> When I try on an audio file created with ProTools 
>> 
>> ffprobe -show_streams -show_format Lee.wav | grep bits
>> 
>> On an audio file “bits_per_sample” is what you are after
>> 
>> 
>>> On 5 Aug 2020, at 08:41, Paul B Mahol >> > wrote:
>>> 
>>> On 8/5/20, scrutinizer >> > wrote:
 The file is AIFF, 24bit/96kHz. I want to get the “24bit” part (or simply
 “24").
>>> 
>>> See bits per raw sample field.
>>> 
 
> On 5 Aug 2020, at 03:39, Carl Eugen Hoyos  > wrote:
> 
> 
> 
>> Am 04.08.2020 um 16:56 schrieb scrutinizer > >:
>> 
>> is it possible to retrieve the bit depth value of an audio-file
> 
> Depends on the file.
> 
> Carl Eugen
> ___
> 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".
>>> ___
>>> 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".
> 

___
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] Input Buffer ovverun with Decklink 8K Pro and Nvenc

2020-08-05 Thread Carl Zwanzig

On 8/5/2020 12:23 PM, jroch via ffmpeg-user wrote:

I figured out i was not setting pixel format.


And I should have noticed that- BMD boards are famously finicky about the 
parameters.



About top post, sorry for that, i don't even think i know what this is
about.


Use google?

z!
___
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] Input Buffer ovverun with Decklink 8K Pro and Nvenc

2020-08-05 Thread jroch via ffmpeg-user
Hi,

Thanks for answer

I figured out i was not setting pixel format. This helped and i'm now
encoding at real time.

It was failing in every mode without that param

About top post, sorry for that, i don't even think i know what this is
about.

J



--
Sent from: http://www.ffmpeg-archive.org/
___
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] How can I get a duration and fps of any video that corresponds with the number of frames that can be read?

2020-08-05 Thread Carl Zwanzig

On 8/5/2020 9:52 AM, Tom Burrows via ffmpeg-user wrote:

I need to get the duration of any video file such that when multiplied
with the media's fps value (in this case, either ’tbr’ or ‘fps'), it
equals the number of frames in the video.
That works until you find a variable frame-rate video. I have found that to 
get a truly accurate duration or frame-count, you have to effectively render 
the entire file, even if to /dev/null. It does take (much) longer, but it's 
not really a re-encode, just a copy.


A prime example of this is an mp2 pulled out of a dvd vob- I've seen a lot 
of cases where the metadata info is wildly wrong* or that parts of the video 
change between 24 fps and 29.97, there's also the 3:2 pulldown flag


*duration 00:46:13 on a 90 minute movie? I think not.

AFAICT, no video tool has solved this without running the entire stream. You 
might take one approach for fixed-rate containers/encodings and another for 
variable-rate.


Later,

z!
___
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] Input Buffer ovverun with Decklink 8K Pro and Nvenc

2020-08-05 Thread Carl Zwanzig

On 8/5/2020 10:10 AM, jroch via ffmpeg-user wrote:

Any ideas on how to troubleshoot this ?


First- post the complete command output.

Second- check to see that your system has enough resources (cpu/mem/etc), in 
general, to make this work. (Try using the BMD MediaExpress program to capture.)


Third- try capture w/o encoding and send that to /dev/null. Does it fail?

(and last- remember not to top-post on this list)

Later,

z!
___
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] Impossible to get the bit depth value of an audio-file with ffprobe

2020-08-05 Thread scrutinizer
If the option in question indeed is available then it’s undocumented. The 
ffprobe help reveals the following usage:

Global options (affect whole program instead of just one file):
-loglevel loglevel  set logging level
-v loglevel set logging level
-report generate a report
-max_alloc bytesset maximum size of a single allocated block
-y  overwrite output files
-n  never overwrite output files
-ignore_unknown Ignore unknown stream types
-filter_threads number of non-complex filter threads
-filter_complex_threads  number of threads for -filter_complex
-stats  print progress report during encoding
-max_error_rate maximum error rate  ratio of errors (0.0: no errors, 1.0: 100% 
errors) above which ffmpeg returns an error instead of success.
-bits_per_raw_sample number  set the number of bits per raw sample
-vol volume change audio volume (256=normal)


There’s bits_per_raw_sample but no bits_per_sample. And the same is true for 
the video options - no bits_per_sample.
 
> On 5 Aug 2020, at 12:08, Paul Blakeman via ffmpeg-user 
>  wrote:
> 
> 
> 
> Input #0, wav, from 'Lee.wav':
>  Metadata:
>encoded_by  : Pro Tools
>originator_reference: 7iGQ3S9p7mlaaaGk
>date: 2020-07-23
>creation_time   : 14:05:55
>time_reference  : 158865370
>  Duration: 00:04:15.83, bitrate: 1422 kb/s
>Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 
> channels, s16, 1411 kb/s
> bits_per_sample=16
> bits_per_raw_sample=N/A
> 
> 
> When I try on an audio file created with ProTools 
> 
> ffprobe -show_streams -show_format Lee.wav | grep bits
> 
> On an audio file “bits_per_sample” is what you are after
> 
> 
>> On 5 Aug 2020, at 08:41, Paul B Mahol  wrote:
>> 
>> On 8/5/20, scrutinizer  wrote:
>>> The file is AIFF, 24bit/96kHz. I want to get the “24bit” part (or simply
>>> “24").
>> 
>> See bits per raw sample field.
>> 
>>> 
 On 5 Aug 2020, at 03:39, Carl Eugen Hoyos  wrote:
 
 
 
> Am 04.08.2020 um 16:56 schrieb scrutinizer :
> 
> is it possible to retrieve the bit depth value of an audio-file
 
 Depends on the file.
 
 Carl Eugen
 ___
 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".
>> ___
>> 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".

___
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] How can I get a duration and fps of any video that corresponds with the number of frames that can be read?

2020-08-05 Thread Phil Rhodes via ffmpeg-user
 A long time ago I hit this and as far as I was then able to tell, there is not 
a lightweight way to get the precise number of frames in a video file. I seem 
to recall (don't ask me how) there was a way to effectively have it "play" the 
file, to parse the container, without actually doing the work of decoding the 
frames. That's less hard work than literally decoding it all. It's still not a 
very cheap way to count frames, but it was the best solution I could find. 
Someone here may be able to advise.
P
On Wednesday, 5 August 2020, 18:01:27 BST, Tom Burrows via ffmpeg-user 
 wrote:  
 
 I'm a developer of the Python MoviePy package and I'm trying to rework how we 
import file information to be more robust.

I need to get the duration of any video file such that when multiplied with the 
media's fps value (in this case, either ’tbr’ or ‘fps'), it equals the number 
of frames in the video.

I've found 3 solutions:

(1) ffmpeg -i broken_video.mp4
(2) ffmpeg -i broken_video.mp4 -f null -
(3) ffmpeg -i broken_video.mp4 -codec copy -f null -
(Full outputs at the end)

FFmpeg reports that the video has 29.90 fps, 30 tbr, and contains 305 frames.

They all list Duration: 00:00:10.26 near the top. I believe that this is 
derived from the metadata and has proved to be unreliable, so I'd rather avoid 
using this. In this case, 10.26x30=307.8

(2) has time=00:00:10.21 near the bottom. 10.21x30=306.3. Also, this one is a 
lot slower since it is re-encoding the entire file.

(3) has time=00:00:10.19 10.19x30=305.7. This is the closest to 305, although 
it still rounds incorrectly.

I've also considered simply taking the fps and the number of frames and 
generating the duration from this (in this case, 30x305= 10.16667), but I’m 
assuming that sometimes the fps is wrong? (occasionally the tbr is something 
crazy like 10k and that would surely create an incorrect duration. Maybe this 
behaviour wouldn’t happen with ‘fps’?).

Is there a better solution to this problem?

—

$ ffmpeg -i broken_video.mp4
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared 
--enable-pthreads --enable-version3 --enable-avresample --cc=clang 
--host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl 
--enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus 
--enable-librubberband --enable-libsnappy --enable-libtesseract 
--enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r 
--enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr 
--enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil      56. 31.100 / 56. 31.100
  libavcodec    58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter    7. 57.100 /  7. 57.100
  libavresample  4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample  3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'broken_video.mp4':
  Metadata:
    minor_version  : 512
    major_brand    : isom
    compatible_brands: isomiso2avc1mp41
    information    : {"com.bytedance.info": "{}"}
    comment        : vid:v0200f97brb4glubn5v3g13q5db0
    encoder        : Lavf58.20.100
  Duration: 00:00:10.26, start: 0.00, bitrate: 743 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
smpte170m/bt470bg/smpte170m), 576x1024 [SAR 1:1 DAR 9:16], 608 kb/s, 29.90 fps, 
30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
At least one output file must be specified



$ ffmpeg -i broken_video.mp4 -f null -
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared 
--enable-pthreads --enable-version3 --enable-avresample --cc=clang 
--host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl 
--enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus 
--enable-librubberband --enable-libsnappy --enable-libtesseract 
--enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r 
--enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-librtmp --enable-libspeex 

[FFmpeg-user] Input Buffer ovverun with Decklink 8K Pro and Nvenc

2020-08-05 Thread jroch via ffmpeg-user
Hi

I'm trying to encode a live 8K footage from a decklink 8k p ro card using
nvenc hevc codec but i get  Decklink input buffer overrun! always. I have
tested outputting to -f null /dev/null but i get the same
I tried with the -thread_queue_size option too without luck.
My 2 pci ports are 16X each on a 32 lines pci express 3.0 mother board. 

My test command :

ffmpeg -thread_queue_size 5096 -f decklink -r 3/1001 -rtbufsize 200M -i
'SDI1' -vsync 1 -c:a aac -b:a 128k -c:v hevc_nvenc -b:v 50M -preset fast
-profile main -level auto -f null /dev/null

Any ideas on how to troubleshoot this ?



--
Sent from: http://www.ffmpeg-archive.org/
___
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] How can I get a duration and fps of any video that corresponds with the number of frames that can be read?

2020-08-05 Thread Tom Burrows via ffmpeg-user
I'm a developer of the Python MoviePy package and I'm trying to rework how we 
import file information to be more robust.

I need to get the duration of any video file such that when multiplied with the 
media's fps value (in this case, either ’tbr’ or ‘fps'), it equals the number 
of frames in the video.

I've found 3 solutions:

(1) ffmpeg -i broken_video.mp4
(2) ffmpeg -i broken_video.mp4 -f null -
(3) ffmpeg -i broken_video.mp4 -codec copy -f null -
(Full outputs at the end)

FFmpeg reports that the video has 29.90 fps, 30 tbr, and contains 305 frames.

They all list Duration: 00:00:10.26 near the top. I believe that this is 
derived from the metadata and has proved to be unreliable, so I'd rather avoid 
using this. In this case, 10.26x30=307.8

(2) has time=00:00:10.21 near the bottom. 10.21x30=306.3. Also, this one is a 
lot slower since it is re-encoding the entire file.

(3) has time=00:00:10.19 10.19x30=305.7. This is the closest to 305, although 
it still rounds incorrectly.

I've also considered simply taking the fps and the number of frames and 
generating the duration from this (in this case, 30x305= 10.16667), but I’m 
assuming that sometimes the fps is wrong? (occasionally the tbr is something 
crazy like 10k and that would surely create an incorrect duration. Maybe this 
behaviour wouldn’t happen with ‘fps’?).

Is there a better solution to this problem?

—

$ ffmpeg -i broken_video.mp4
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared 
--enable-pthreads --enable-version3 --enable-avresample --cc=clang 
--host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl 
--enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus 
--enable-librubberband --enable-libsnappy --enable-libtesseract 
--enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r 
--enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr 
--enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat58. 29.100 / 58. 29.100
  libavdevice58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'broken_video.mp4':
  Metadata:
minor_version   : 512
major_brand : isom
compatible_brands: isomiso2avc1mp41
information : {"com.bytedance.info": "{}"}
comment : vid:v0200f97brb4glubn5v3g13q5db0
encoder : Lavf58.20.100
  Duration: 00:00:10.26, start: 0.00, bitrate: 743 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
smpte170m/bt470bg/smpte170m), 576x1024 [SAR 1:1 DAR 9:16], 608 kb/s, 29.90 fps, 
30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
  handler_name: VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 127 kb/s (default)
Metadata:
  handler_name: SoundHandler
At least one output file must be specified



$ ffmpeg -i broken_video.mp4 -f null -
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared 
--enable-pthreads --enable-version3 --enable-avresample --cc=clang 
--host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl 
--enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus 
--enable-librubberband --enable-libsnappy --enable-libtesseract 
--enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r 
--enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr 
--enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat58. 29.100 / 58. 29.100
  libavdevice58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'broken_video.mp4':
  Metadata:
minor_version   : 512
major_brand : isom
compatible_brands: 

Re: [FFmpeg-user] install on centos fail

2020-08-05 Thread Reindl Harald


Am 05.08.20 um 15:16 schrieb Nicolas George:
> Reindl Harald (12020-08-05):
>> whenever you do "make install" on a destinaton machine you are doing it
>> wrong - without any exceptions!
> 
> What certainty.

yes, 12 years of expirience, 23 dist-upgrades without reinstall and
still clean machines as if they would have been installed from scratch
prove me right

>> * you don't need compilers/devel-packages on the target
>> * you should not install comoilers at all on the target
>> * you can easily downgrade and upgrade
>> * you get proper dependency checks
> 
> * you can make security updates impossible to install

lol - the instalaltion target of /usr is not set in stone! you can still
have the outcome of your package into your hoemdir and copy it by hand

but when you can't make security updates you are anyways not someone who
should install software - admins really love funny guys throwing
binaries here and there which never face any update unless they break

>> "the advice to build a package is bad" is one of the dumbest things i
>> heard for a long time
> 
> You should really stop your incessant insults

that was as friendly as possible, when i want to insult you you will
recognize it

installing devel-packages and compilers on production machines is simply
dumb
___
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] install on centos fail

2020-08-05 Thread Nicolas George
Reindl Harald (12020-08-05):
> whenever you do "make install" on a destinaton machine you are doing it
> wrong - without any exceptions!

What certainty.

> * you don't need compilers/devel-packages on the target
> * you should not install comoilers at all on the target
> * you can easily downgrade and upgrade
> * you get proper dependency checks

* you can make security updates impossible to install

> "the advice to build a package is bad" is one of the dumbest things i
> heard for a long time

You should really stop your incessant insults.

-- 
  Nicolas George


signature.asc
Description: PGP signature
___
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] install on centos fail

2020-08-05 Thread Reindl Harald


Am 05.08.20 um 12:20 schrieb Nicolas George:
> jacky renaux (12020-08-05):
>> hI ? as you might know due to the coronavirus, universities are closed and
>> in France it is vacation period . I am not a system engineer just a ffmpeg
>> user . I cannot get system eng support at a present time and do prepar the
>> september time where we will need visio conférences. I am a old retired guy
>> "working " in a non profit organisation tight to an university. I do not
>> have the background you have this is why I tried to compile in $HOME just to
>> not kill what as been done by "professionnal"
> 
> I do not see why your status as an old retired guy prevents you from
> learning. Quite the opposite, you probably have more time and less
> external pressure.
> 
> But do not about this particular issue: the advice to build a package is
> bad. Installing in $HOME is perfectly fine.

WTF

whenever you do "make install" on a destinaton machine you are doing it
wrong - without any exceptions!

* you don't need compilers/devel-packages on the target
* you should not install comoilers at all on the target
* you can easily downgrade and upgrade
* you get proper dependency checks

"the advice to build a package is bad" is one of the dumbest things i
heard for a long time

there is no law that a package needs to spit any file into /usr/bin at all

when it comes to dependencies and a random idiot removes a system
package which seems not to be required by anything your holy binary in
$HOME is broken

won't happen with a self built package and technically tehre is not much
difference in writing a random script or a spec file besides that error
in context of rpmbuild become visible
___
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] install on centos fail

2020-08-05 Thread Nicolas George
jacky renaux (12020-08-05):
> hI ? as you might know due to the coronavirus, universities are closed and
> in France it is vacation period . I am not a system engineer just a ffmpeg
> user . I cannot get system eng support at a present time and do prepar the
> september time where we will need visio conférences. I am a old retired guy
> "working " in a non profit organisation tight to an university. I do not
> have the background you have this is why I tried to compile in $HOME just to
> not kill what as been done by "professionnal"

I do not see why your status as an old retired guy prevents you from
learning. Quite the opposite, you probably have more time and less
external pressure.

But do not about this particular issue: the advice to build a package is
bad. Installing in $HOME is perfectly fine.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature
___
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] install on centos fail

2020-08-05 Thread Reindl Harald


Am 05.08.20 um 11:08 schrieb jacky renaux:
> hI ? as you might know due to the coronavirus, universities are closed
> and in France it is vacation period . 

and?

> I am not a system engineer just a ffmpeg user 

and?

> I cannot get system eng support at a present time and do
> prepar the september time where we will need visio conférences. I am a
> old retired guy "working " in a non profit organisation tight to an
> university. I do not have the background you have this is why I tried to
> compile in $HOME just to not kill what as been done by "professionnal"

* my background is learning by doing
* my /usr/local/bin/ffmpeg don't collide with the distri

> (who are not available to provide support at a present time) . When a
> correct install will be done and tested I was planned to redo it in a
> normal way.
> Presently ffmpeg is running fine and up to date but only the x264 and
> ACC are installed and tried to add libvpx and opus as webm seems more
> easy to record a streaming live.

which should be no problem, rpmfusion and epel should have all build
dependencies for CentOS7 and there should be no need to build dozens of
them in the userhome

> I was expected unix install less complicated then I will wait until
> system eng will be back from vacation.
> You all are doing a great job to support us, but you might undestand
> which nobody is fluent in every domains (in my case domains have a lot
> of ending sss)

i call https://trac.ffmpeg.org/wiki/CompilationGuide/Centos bullshit

nasm: base repo
yasm: epel repo
x264-devel: rpmfusion repo
x265-devel: rpmfusion repo
libfdk_aac: ffmpeg supports faac native
lame-devel: epel repo
opus-devel: base repo
libvpx-devel: base repo

so what is all that bullshit compiling dependencies left and right in
the userhome on that page about?

> again thanks for support and you can close this ticket

this is a mailing list
___
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] Impossible to get the bit depth value of an audio-file with ffprobe

2020-08-05 Thread Paul Blakeman via ffmpeg-user


Input #0, wav, from 'Lee.wav':
  Metadata:
encoded_by  : Pro Tools
originator_reference: 7iGQ3S9p7mlaaaGk
date: 2020-07-23
creation_time   : 14:05:55
time_reference  : 158865370
  Duration: 00:04:15.83, bitrate: 1422 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 
channels, s16, 1411 kb/s
bits_per_sample=16
bits_per_raw_sample=N/A


When I try on an audio file created with ProTools 

ffprobe -show_streams -show_format Lee.wav | grep bits

On an audio file “bits_per_sample” is what you are after


> On 5 Aug 2020, at 08:41, Paul B Mahol  wrote:
> 
> On 8/5/20, scrutinizer  wrote:
>> The file is AIFF, 24bit/96kHz. I want to get the “24bit” part (or simply
>> “24").
> 
> See bits per raw sample field.
> 
>> 
>>> On 5 Aug 2020, at 03:39, Carl Eugen Hoyos  wrote:
>>> 
>>> 
>>> 
 Am 04.08.2020 um 16:56 schrieb scrutinizer :
 
 is it possible to retrieve the bit depth value of an audio-file
>>> 
>>> Depends on the file.
>>> 
>>> Carl Eugen
>>> ___
>>> 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".
> ___
> 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] install on centos fail

2020-08-05 Thread jacky renaux



Le 04/08/2020 à 20:00, Reindl Harald a écrit :

[root@buildserver:~]$ cat /rpmbuild/SPECS/ffmpeg-latest.spec
#
# command 'rpmbuild -bb ffmpeg-latest.spec --with production' will tune
for current hardware while default stays compatible #
#

%global ffmpeg_snapshot 20200714
%global x264_snapshot   20200311
%global x264_version0.158.
%global pgo_build   1

%if %{?_with_production:1}%{!?_with_production:0}
  %global rpmsuffix native
  %global build_native_release 1
  %global optflags $(sed "s/sandybridge/native/g" <<< "%{optflags}")
%else
  %global rpmsuffix %{mtune2}
  %global build_native_release 0
  %global optflags $(sed "s/sandybridge/%{mtune2}/g" <<< "%{optflags}")
%endif

Summary:   Hyper fast Audio and Video encoder (static build)
Name:  ffmpeg-latest
Version:   4.3.1
Release:
1.%{build_native_release}%{?dist}.x264.%{x264_version}.%{rpmsuffix}
License:   GPLv3+
URL:http://ffmpeg.org/
Source0:   ffmpeg-%{ffmpeg_snapshot}.tar.xz
Source1:   x264-%{x264_snapshot}.tar.xz
Source2:   ffmpeg-snapshot-latest.sh
Source3:   x264-snapshot-latest.sh
Source4:   720x400.yuv
BuildRequires: bzip2-devel
BuildRequires: imlib2-devel
BuildRequires: lame-devel
BuildRequires: libtheora-devel
BuildRequires: libvpx-devel
BuildRequires: openssl-devel
BuildRequires: x265-devel
BuildRequires: nasm
BuildRequires: yasm
BuildRequires: zlib-devel
Provides:  ffmpeg

%description
A complete, cross-platform solution to record, convert and stream audio
and video

%package   manpages
Summary:   Manpages for ffmpeg-latest
BuildArch: noarch
%description   manpages

%prep
%setup -q -n ffmpeg-%{ffmpeg_snapshot}

%build
# build x264-static with profile-guided-optimization for current
architecture
tar xJf %{SOURCE1}
pushd x264-%{x264_snapshot}
./configure \
  --prefix=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot} \
  --exec-prefix=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
  --bindir=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
  --libdir=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
  --includedir=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
  --extra-cflags="%{optflags} %{O3_flags} -w" \
  --extra-ldflags="-Wl,--as-needed -Wl,-z,now -Wl,-z,relro
-Wl,-z,noexecstack %{optflags} %{O3_flags} -w" \
  --enable-static \
  --enable-pic \
  --enable-strip \
  --disable-avs \
  --disable-cli \
  --disable-ffms \
  --disable-gpac \
  --disable-lavf \
  --disable-opencl \
  --disable-swscale
%if %pgo_build
  make fprofiled VIDS="%{SOURCE4}" %{?_smp_mflags}
%else
  make %{?_smp_mflags}
%endif
make install
strip --strip-unneeded --strip-debug
/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static/libx264.a
popd
# build ffmpeg-static and link with x264-static from previous build
mkdir generic
pushd generic
../configure \
  --prefix=%{_prefix}/local \
  --bindir=%{_prefix}/local/bin \
  --mandir=%{_prefix}/local/man \
  --extra-cflags="-I/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static
%{optflags} %{O3_flags} -flto=%(nproc) -ffat-lto-objects -fwhole-program
-w" \
  --extra-ldflags="-I/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static 
-L/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static -ldl -Wl,--as-needed -Wl,-z,now 
-Wl,-z,relro %{optflags} %{O3_flags} -flto=%(nproc) -ffat-lto-objects -fwhole-program 
-pie -fPIE -w" \
  --ar=gcc-ar \
  --ranlib=true \
  --enable-lto \
  --enable-gpl \
  --enable-libmp3lame \
  --enable-libtheora \
  --enable-libvpx \
  --enable-libx264 \
  --enable-libx265 \
  --enable-nonfree \
  --enable-openssl \
  --enable-pic \
  --enable-runtime-cpudetect \
  --enable-static \
  --enable-version3 \
  --disable-amf \
  --disable-appkit \
  --disable-autodetect \
  --disable-avdevice \
  --disable-avfoundation \
  --disable-coreimage \
  --disable-debug \
  --disable-devices \
  --disable-ffplay \
  --disable-ffprobe \
  --disable-htmlpages \
  --disable-hwaccels \
  --disable-iconv \
  --disable-libdc1394 \
  --disable-libfreetype \
  --disable-libgsm \
  --disable-libopencore-amrnb \
  --disable-libopencore-amrwb \
  --disable-libopencv \
  --disable-libopenjpeg \
  --disable-libopus \
  --disable-librtmp \
  --disable-libspeex \
  --disable-libvorbis \
  --disable-libxcb \
  --disable-libxcb-shape \
  --disable-libxcb-shm \
  --disable-libxcb-xfixes \
  --disable-libxvid \
  --disable-podpages \
  --disable-postproc \
  --disable-protocol=gopher \
  --disable-shared \
  --disable-txtpages \
  --disable-xlib
%{__make} %{?_smp_mflags}
make documentation
popd

%install
pushd generic
make install DESTDIR=%{buildroot}
popd
mkdir %{buildroot}%{_bindir}
ln -s 

Re: [FFmpeg-user] Impossible to get the bit depth value of an audio-file with ffprobe

2020-08-05 Thread Paul B Mahol
On 8/5/20, Paul Blakeman via ffmpeg-user  wrote:
> Off ffmpeg topic but a solution…
>
> For another project I use SoXI to achieve same desired result
> https://linux.die.net/man/1/soxi
>
> e.g. soxi -r audiofile.wav


That is non-solution.

>
> Hope that helps.
>
> Thanks,
> Paul
>
>
>> On 5 Aug 2020, at 03:20, scrutinizer  wrote:
>>
>> The file is AIFF, 24bit/96kHz. I want to get the “24bit” part (or simply
>> “24").
>>
>>> On 5 Aug 2020, at 03:39, Carl Eugen Hoyos  wrote:
>>>
>>>
>>>
 Am 04.08.2020 um 16:56 schrieb scrutinizer :

 is it possible to retrieve the bit depth value of an audio-file
>>>
>>> Depends on the file.
>>>
>>> Carl Eugen
>>> ___
>>> 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".
>
> ___
> 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] Impossible to get the bit depth value of an audio-file with ffprobe

2020-08-05 Thread Paul B Mahol
On 8/5/20, scrutinizer  wrote:
> The file is AIFF, 24bit/96kHz. I want to get the “24bit” part (or simply
> “24").

See bits per raw sample field.

>
>> On 5 Aug 2020, at 03:39, Carl Eugen Hoyos  wrote:
>>
>>
>>
>>> Am 04.08.2020 um 16:56 schrieb scrutinizer :
>>>
>>> is it possible to retrieve the bit depth value of an audio-file
>>
>> Depends on the file.
>>
>> Carl Eugen
>> ___
>> 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".
___
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] Impossible to get the bit depth value of an audio-file with ffprobe

2020-08-05 Thread Paul Blakeman via ffmpeg-user
Off ffmpeg topic but a solution…

For another project I use SoXI to achieve same desired result
https://linux.die.net/man/1/soxi

e.g. soxi -r audiofile.wav

Hope that helps.

Thanks,
Paul


> On 5 Aug 2020, at 03:20, scrutinizer  wrote:
> 
> The file is AIFF, 24bit/96kHz. I want to get the “24bit” part (or simply 
> “24").
> 
>> On 5 Aug 2020, at 03:39, Carl Eugen Hoyos  wrote:
>> 
>> 
>> 
>>> Am 04.08.2020 um 16:56 schrieb scrutinizer :
>>> 
>>> is it possible to retrieve the bit depth value of an audio-file
>> 
>> Depends on the file.
>> 
>> Carl Eugen
>> ___
>> 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".

___
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".