[FFmpeg-user] Remove haze from a video.

2023-03-14 Thread Andreas Billmaier
___
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] encode five wav files to one Dolby Prologic II encoded file

2023-03-14 Thread Martin Thomas Schrott

Hi guys,


okay I realiced how to get five separate wav files into one stream:

ffmpeg -i $fl -i $fr -i $fc -i ${bl}_shift.wav -i ${br}_shift.wav 
-filter_complex "[0:0][1:0][2:0][3:0][4:0]amerge=inputs=5, 
aresample=matrix_encoding=dplii" out.wav



but I am still not getting correct dplii encoded channels.


Anyone an idea what I am doing wrong?


* how would I do the phaseshift correctly?

* does matrix_encoding=dplii do the mixing or do I have to add another 
command ... what does matrix_encoding=dplii do exactly?



thanks for any help

Martin



Am 05.03.2023 um 20:18 schrieb Martin Thomas Schrott:

Hey Guys,


after days of reading documentary, searching the net and all lists, 
trying and loosing, I hope someone here can help me to succeed.



I read, some say ffmpeg is not capable of encoding, others say ffmpeg 
can do it. Some say it misses the phaseshift of the surround channels, 
others and the docu tell, it can.


So after all I found, I would guess ffmpeg should be able to take five 
wav files as input and output one wav file in stereo, that is 
correctly dolby Prologic II encoded including the phaseshifts. But I 
cannot find how this has to be done to work correctly and there is not 
a single example anywhere to be found.



I tryed countless ways so I post one of them and hope you can guide me 
where to go or what to change to be successful. :-)



This one is with manual phaseshift of the default 0.0 that should be 
90 degrees for the two back channels, as nowhere is stated if the 
matrix_encoding does apply this automatically.


/Applications/ffmpeg -y -i bl.wav -af aphaseshift bl_phaseshift.wav

/Applications/ffmpeg -y -i br.wav -af aphaseshift br_phaseshift.wav



/Applications/ffmpeg -y -i fl.wav -i fc.wav -i fr.wav -i 
bl_phaseshift.wav -i br_phaseshift.wav -map 0 -map 1 -map 2 -map 3 
-map 4 -af aresample=matrix_encoding=dplii surround.wav



it gives an error, that a wav file exactly expects one stream. I 
thought the matrix_encoding would output the five wav files in one 
stereo stream?


If I change to .aac as output I would get a file, but this would not 
be a correctly encoded Dolby Prologic II file. This would have 
distroyed back channels.


Same if I do not apply the phaseshift manually.


So I am doing something wrong - anybody here who can help me to find 
the correct commands?


Would be so thankful. I also did not find a working solution without 
ffmpeg, so if someone has an alternative this also would be okay - 
even I would prefer the ffmpeg way :-)




best wishes,

Martin


___
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] why reducing the resolution a percentage doesn't reduce the video the same proportion?

2023-03-14 Thread Bouke / edit 'B

> On 14 Mar 2023, at 14:03, Natalia Molinero Mingorance 
>  wrote:
> 
> what do you mean by " Why is the output size important if you use -preset
> ultrafast?  “

That will mean quick and dirty encoding, at the cost of a higher bitrate.
-preset slow will make the file significant smaller, at the cost of more 
processing time / cpu use.
(And thus energy use, but if you stream too large files a gazillion times, you 
might want to invest in high quality encoding instead of quick ’n dirty.)
It’s a ‘would you like to be bitten by the cat or by the dog’ situation.

Bouke



___
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] why reducing the resolution a percentage doesn't reduce the video the same proportion?

2023-03-14 Thread Natalia Molinero Mingorance
what do you mean by " Why is the output size important if you use -preset
ultrafast?  "

El mar, 14 mar 2023 a las 13:48, Bouke / edit 'B ()
escribió:

> On 14 Mar 2023, at 13:07, Phil Rhodes via ffmpeg-user <
> ffmpeg-user@ffmpeg.org> wrote:
> >
> > Also, it depends what you mean by 50% of the resolution. If your
> original video is 100x100 pixels and you reduce it to 50x50, then you have
> half the resolution, but you only have one quarter the pixels.
>
> But, the image will still have a tree, a house and a dog.
> From what I have understood, the resolution in terms of pixels does not
> compute to output file size (Unless you work uncompressed of course.)
>
> > P
> >On Tuesday, 14 March 2023 at 09:37:36 GMT, Natalia Molinero
> Mingorance  eng.nataliamolin...@gmail.com>> wrote:
> >
> > I'm using this command:
> >
> > -y -r -i $inVideoUri -movflags faststart -c:v libx265 -s
> > $videoResolution -c:a copy -preset ultrafast  $outPutUri
>
> ///
> > some headers or metadata added during the process but I would like to
> know
> > how to estimate the final video size.
>
> Why is the output size important if you use -preset ultrafast?
>
> Bouke
>
>
> ___
> 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] why reducing the resolution a percentage doesn't reduce the video the same proportion?

2023-03-14 Thread Natalia Molinero Mingorance
yes, I removed the "-r", sorry. but, by reducing the resolution, the size
is also reduced somehow proportionally.

El mar, 14 mar 2023 a las 13:31, Michael Koch ()
escribió:

> Am 14.03.2023 um 10:37 schrieb Natalia Molinero Mingorance:
> > I'm using this command:
> >
> > -y -r -i $inVideoUri -movflags faststart -c:v libx265 -s
> > $videoResolution -c:a copy -preset ultrafast  $outPutUri"
> >
> >
> > However, if "videoResolution" is a 50% of the original video resolution,
> > the resulting file size is not 50% of the original one. I assume there
> are
> > some headers or metadata added during the process but I would like to
> know
> > how to estimate the final video size.
>
> You can control the size of the output file by either using the -q:v
> option or by specifying the video bitrate with the -b:v option.
>
> By the way, I don't understand the purpose of the -r option in your
> command line. Shoudn't that give an error message if it's not folllowed
> by a value?
>
> Michael
>
> ___
> 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] why reducing the resolution a percentage doesn't reduce the video the same proportion?

2023-03-14 Thread Bouke / edit 'B
On 14 Mar 2023, at 13:07, Phil Rhodes via ffmpeg-user  
wrote:
> 
> Also, it depends what you mean by 50% of the resolution. If your original 
> video is 100x100 pixels and you reduce it to 50x50, then you have half the 
> resolution, but you only have one quarter the pixels.

But, the image will still have a tree, a house and a dog.
>From what I have understood, the resolution in terms of pixels does not 
>compute to output file size (Unless you work uncompressed of course.)

> P
>On Tuesday, 14 March 2023 at 09:37:36 GMT, Natalia Molinero Mingorance 
> mailto:eng.nataliamolin...@gmail.com>> wrote: 
>  
> 
> I'm using this command:
> 
> -y -r -i $inVideoUri -movflags faststart -c:v libx265 -s
> $videoResolution -c:a copy -preset ultrafast  $outPutUri

/// 
> some headers or metadata added during the process but I would like to know
> how to estimate the final video size.

Why is the output size important if you use -preset ultrafast?

Bouke


___
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] why reducing the resolution a percentage doesn't reduce the video the same proportion?

2023-03-14 Thread Michael Koch

Am 14.03.2023 um 10:37 schrieb Natalia Molinero Mingorance:

I'm using this command:

-y -r -i $inVideoUri -movflags faststart -c:v libx265 -s
$videoResolution -c:a copy -preset ultrafast  $outPutUri"


However, if "videoResolution" is a 50% of the original video resolution,
the resulting file size is not 50% of the original one. I assume there are
some headers or metadata added during the process but I would like to know
how to estimate the final video size.


You can control the size of the output file by either using the -q:v 
option or by specifying the video bitrate with the -b:v option.


By the way, I don't understand the purpose of the -r option in your 
command line. Shoudn't that give an error message if it's not folllowed 
by a value?


Michael

___
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] why reducing the resolution a percentage doesn't reduce the video the same proportion?

2023-03-14 Thread Reindl Harald




Am 14.03.23 um 10:37 schrieb Natalia Molinero Mingorance:

but I would like to know
how to estimate the final video size


you simply can't when it comes to modern multimedia codecs - you 
underestimate the complexity of H265 trying to optimize quality and size 
by thousands of variables

___
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] why reducing the resolution a percentage doesn't reduce the video the same proportion?

2023-03-14 Thread Phil Rhodes via ffmpeg-user
 Hi Natalia
This gets complicated, but in general it depends on the compression settings. 
"libx265" is capable of doing many different things. It's probably best if you 
look up some examples of how that works because it's too much to explain here, 
and examples will help.
Also, it depends what you mean by 50% of the resolution. If your original video 
is 100x100 pixels and you reduce it to 50x50, then you have half the 
resolution, but you only have one quarter the pixels.
P
On Tuesday, 14 March 2023 at 09:37:36 GMT, Natalia Molinero Mingorance 
 wrote:  
 
 I'm using this command:

-y -r -i $inVideoUri -movflags faststart -c:v libx265 -s
$videoResolution -c:a copy -preset ultrafast  $outPutUri"


However, if "videoResolution" is a 50% of the original video resolution,
the resulting file size is not 50% of the original one. I assume there are
some headers or metadata added during the process but I would like to know
how to estimate the final video size.
___
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] why reducing the resolution a percentage doesn't reduce the video the same proportion?

2023-03-14 Thread Natalia Molinero Mingorance
I'm using this command:

-y -r -i $inVideoUri -movflags faststart -c:v libx265 -s
$videoResolution -c:a copy -preset ultrafast  $outPutUri"


However, if "videoResolution" is a 50% of the original video resolution,
the resulting file size is not 50% of the original one. I assume there are
some headers or metadata added during the process but I would like to know
how to estimate the final video size.
___
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".