Re: [FFmpeg-user] Slide show with transition

2020-11-18 Thread Carl Zwanzig

On 11/18/2020 10:30 PM, RAPPAZ Francois via ffmpeg-user wrote:


No, it is a very bad idea.
You are certainly a supporter of that software and bad software practice in 
general.
This can be coded with ease to be done with FFmpeg either via shell or 
programming.


Please be careful with quoting- Paul B Mahol wrote those words, not me (I 
commented on them).



Yes, can you give an example with FFmpeg ?


A question for Paul.

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] Slide show with transition

2020-11-18 Thread RAPPAZ Francois via ffmpeg-user
>On Wed, Nov 18, 2020 at 6:10 PM Carl Zwanzig  wrote:
>> On 11/18/2020 7:55 AM, Michael Koch wrote:
>> >> Size is the size in pixels or in bytes ?
>> >
>> > width and height
>> (pixels/resolution) The byte count will vary with the image compression.
>>
>> Using Irfanview to process all the images into a common format is a 
>> good idea.

>No, it is a very bad idea.
>You are certainly a supporter of that software and bad software practice in 
>general.
>This can be coded with ease to be done with FFmpeg either via shell or 
>programming.
> z!

Yes, can you give an example with FFmpeg ?
Thanks
François

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] Fix .mp4 file with error: channel element 1.0 is not allocated

2020-11-18 Thread Tom Worster

On 11/18/2020 6:59:38 PM, "Tom Worster"  wrote:


How can I repair a file with an error like this?

[aac @ 0x5d738c0] channel element 1.0 is not allocated

Instead of what you see below, the file should have, i think

Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp,

% ~/ffmpeg-git-20201020-amd64-static/ffprobe -i WOWD-20201116T21Z.m4a
ffprobe version N-54690-g682990a849-static https://johnvansickle.com/ffmpeg/  
Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug 
--disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc 
--enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp 
--enable-libgme --enable-gray --enable-libaom --enable-libfribidi 
--enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt 
--enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab 
--enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 
--enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid 
--enable-libzvbi --enable-libzimg
  libavutil  56. 60.100 / 56. 60.100
  libavcodec 58.111.101 / 58.111.101
  libavformat58. 62.100 / 58. 62.100
  libavdevice58. 11.102 / 58. 11.102
  libavfilter 7. 88.100 /  7. 88.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
[aac @ 0x5d738c0] channel element 1.0 is not allocated
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'WOWD-20201116T21Z.m4a':
  Metadata:
major_brand : M4A
minor_version   : 512
compatible_brands: M4A isomiso2
encoder : Lavf58.45.100
  Duration: 00:04:59.45, start: 38994.477007, bitrate: 126 kb/s
Stream #0:0(und): Audio: aac (LTP) (mp4a / 0x6134706D), 7350 Hz, 5.0, fltp, 
125 kb/s (default)
Metadata:
  handler_name: SoundHandler

I've had no luck so far reproducing the error that created files like these. If 
that's important, lemmy know I'll keep trying.



I may have found a fix.

ffmpeg -i broken.m4a -af "channelmap=0|1:stereo" better.m4a

The channelmap spec was a guess but the file plays and the ffprobe looks 
reasonable so I guess that's enough.


Tom

___
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] Fix .mp4 file with error: channel element 1.0 is not allocated

2020-11-18 Thread Tom Worster

How can I repair a file with an error like this?

[aac @ 0x5d738c0] channel element 1.0 is not allocated

Instead of what you see below, the file should have, i think

Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, 
stereo, fltp,


% ~/ffmpeg-git-20201020-amd64-static/ffprobe -i 
WOWD-20201116T21Z.m4a
ffprobe version N-54690-g682990a849-static 
https://johnvansickle.com/ffmpeg/  Copyright (c) 2007-2020 the FFmpeg 
developers

  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-debug --disable-ffplay --disable-indev=sndio 
--disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r 
--enable-gnutls --enable-gmp --enable-libgme --enable-gray 
--enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf 
--enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband 
--enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis 
--enable-libopus --enable-libtheora --enable-libvidstab 
--enable-libvo-amrwbenc --enable-libvpx --enable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d 
--enable-libxvid --enable-libzvbi --enable-libzimg

  libavutil  56. 60.100 / 56. 60.100
  libavcodec 58.111.101 / 58.111.101
  libavformat58. 62.100 / 58. 62.100
  libavdevice58. 11.102 / 58. 11.102
  libavfilter 7. 88.100 /  7. 88.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
[aac @ 0x5d738c0] channel element 1.0 is not allocated
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'WOWD-20201116T21Z.m4a':
  Metadata:
major_brand : M4A
minor_version   : 512
compatible_brands: M4A isomiso2
encoder : Lavf58.45.100
  Duration: 00:04:59.45, start: 38994.477007, bitrate: 126 kb/s
Stream #0:0(und): Audio: aac (LTP) (mp4a / 0x6134706D), 7350 Hz, 
5.0, fltp, 125 kb/s (default)

Metadata:
  handler_name: SoundHandler

I've had no luck so far reproducing the error that created files like 
these. If that's important, lemmy know I'll keep trying.


thanks
Tom
___
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] Channel manipulation and audio filter equivalencies

2020-11-18 Thread adam smith via ffmpeg-user


> On 18 Nov 2020, at 23:29, Chris Angelico  wrote:
> 
> Appreciate the help. Still not sure how all the different filters behave.

No worries, 
I have not read any of the code so I do not really know what manipulations are 
occurring under the hood.

As far as I can tell, the channel split is pulling the individual channels from 
the source audio stream and the amerge is combining them into a new stereo 
stream basically unchanged other than any codec transformations.

Using the pan filter would allow you to manipulate the actual audio content as 
it allows for each channel pan level and attenuation; this could affect audio 
quality perhaps.

As I say, this is not based on reading one reading any code so I may be wrong.
I will be interested to know your results.

Thanks
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] Channel manipulation and audio filter equivalencies

2020-11-18 Thread Chris Angelico
On Thu, Nov 19, 2020 at 10:08 AM adam smith via ffmpeg-user
 wrote:
>
> Apologies, I said LF|RF but it should be
> 'channelsplit' with args 'channel_layout=7.1:channels=FL|FR’
>
>  "7.1"   =>["FL","FR","FC","LFE","BL","BR","SL","SR"],
>  "7.1(wide)" =>["FL","FR","FC","LFE","BL","BR","FLC","FRC"],
>  "7.1(wide-side)"=>["FL","FR","FC","LFE","FLC","FRC","SL","SR"],
>

Ahh, thank you!

That does at least work, so now I'm going to let that do some work for
a while and then listen to the results :)

Appreciate the help. Still not sure how all the different filters behave.

ChrisA
___
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] Channel manipulation and audio filter equivalencies

2020-11-18 Thread adam smith via ffmpeg-user
Apologies, I said LF|RF but it should be 
'channelsplit' with args 'channel_layout=7.1:channels=FL|FR’ 

 "7.1"   =>["FL","FR","FC","LFE","BL","BR","SL","SR"],
 "7.1(wide)" =>["FL","FR","FC","LFE","BL","BR","FLC","FRC"],
 "7.1(wide-side)"=>["FL","FR","FC","LFE","FLC","FRC","SL","SR"],

> On 18 Nov 2020, at 22:47, Chris Angelico  wrote:
> 
> 'channelsplit' with args 'channel_layout=7.1:channels=LF|RF'

___
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] Channel manipulation and audio filter equivalencies

2020-11-18 Thread Chris Angelico
On Thu, Nov 19, 2020 at 9:21 AM adam smith via ffmpeg-user
 wrote:
>
>
> > On 18 Nov 2020, at 21:55, Chris Angelico  wrote:
> >
> > But when I tried things along these lines, I got complaints that some
> > of the outputs weren't connected to anything.
>
> I didn’t add the input stream as I am not sure what stream it is on your 
> source.
> If could be something like…
>
> ffmpeg -stats -y -i Original.mkv -filter_complex
> "[0:1]channelsplit=channel_layout=7.1:channels=LF|RF[lf][rf];[lf][rf]amerge=inputs=2[aout]"
> -map 0:v -map "aout" -map 0:s channel_split.mkv
>

Regardless of the input mapping, it's still complaining about that
channelsplit configuration.

Is there any way to figure out what the actual error is? Even with
loglevel debug, all I get is this:

Successfully opened the file.
[Parsed_channelsplit_0 @ 0x55f0a8d38780] Setting 'channel_layout' to value '7.1'
[Parsed_channelsplit_0 @ 0x55f0a8d38780] Setting 'channels' to value 'LF|RF'
[AVFilterGraph @ 0x55f0a8cea280] Error initializing filter
'channelsplit' with args 'channel_layout=7.1:channels=LF|RF'
Error initializing complex filters.
Invalid argument

ChrisA
___
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] Channel manipulation and audio filter equivalencies

2020-11-18 Thread adam smith via ffmpeg-user

> On 18 Nov 2020, at 21:55, Chris Angelico  wrote:
> 
> But when I tried things along these lines, I got complaints that some
> of the outputs weren't connected to anything.

I didn’t add the input stream as I am not sure what stream it is on your source.
If could be something like…

ffmpeg -stats -y -i Original.mkv -filter_complex
"[0:1]channelsplit=channel_layout=7.1:channels=LF|RF[lf][rf];[lf][rf]amerge=inputs=2[aout]"
-map 0:v -map "aout" -map 0:s channel_split.mkv


___
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] Bitstream filter h264 metadata crop

2020-11-18 Thread ROBINSON Stuart

I am testing cropping video using the bitstream filter shown in the following 
command:

C:\ffmpeg-2020-11-18-git-e3081d6f4f-full_build\bin>ffplay.exe "Input.mp4" 
-codec:v copy -an -bsf:v h264_metadata=crop_top=128 "output_cropped.mp4"
ffplay version 2020-11-18-git-e3081d6f4f-full_build-www.gyan.dev Copyright (c) 
2003-2020 the FFmpeg developers
  built with gcc 10.2.0 (Rev3, Built by MSYS2 project)

  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv 
--enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy 
--enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth 
--enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d 
--enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom 
--enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r 
--enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf 
--enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid 
--enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va 
--enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan 
--enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug 
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame 
--enable-libshine --enable-libtheora --enable-libtwolame 
--enable-libvo-amrwbenc --enable-libilbc --enable-libgsm 
--enable-libopencore-amrnb --enable-libopus --enable-libspeex 
--enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite 
--enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil  56. 60.100 / 56. 60.100
  libavcodec 58.112.103 / 58.112.103
  libavformat58. 64.100 / 58. 64.100
  libavdevice58. 11.102 / 58. 11.102
  libavfilter 7. 90.100 /  7. 90.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
Failed to set value 'h264_metadata=crop_top=128' for option 'bsf:v': Option not 
found

 Very grateful to anyone who can point out where I am going wrong here, it 
looks simple enough.

 Thanks, Stuart
___

ffplay.exe


Sorry, obviously one of those days.





--

Thanks,

Stuart Robinson,

AV Technician,

Sound Lab,

School of Scottish Studies,

University of Edinburgh,

29 George Square,

Edinburgh,

EH8 9LD



0131 651 5001





The University of Edinburgh is a charitable body, registered in

Scotland, with registration number SC005336.

___
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] u nvcc fatal : Unsupported gpu architecture 'compute_30' when installing on RTX 3080 system

2020-11-18 Thread Hannes Zietsman
Im having an issue installing on an RTX 3080 system.

0


Im follwing this guide
https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/
to
install ffmpeg on Ubunut "Ubuntu 16.04.7 LTS"

with NVIDIA-SMI 455.38

I'm using Image: nvidia/cuda:11.1-devel-ubuntu16.04 and it has cuda-toolkit
installed.

running ./configure --enable-nonfree --enable-cuda-nvcc --enable-libnpp
--extra-cflags=-I/usr/local/cuda/include
--extra-ldflags=-L/usr/local/cuda/lib64

generates this

ERROR: failed checking for nvcc.

log file shows this

nvcc -gencode arch=compute_30,code=sm_30 -O2 -m64 -ptx -c -o
/tmp/ffconf.WzHPgzvz/test.o /tmp/ffconf.WzHPgzvz/test.cu nvcc fatal :
Unsupported gpu architecture 'compute_30' ERROR: failed checking for nvcc.

http://paste.ubuntu.com/p/CgRhCZ9T29/



https://superuser.com/questions/1603246/u-nvcc-fatal-unsupported-gpu-architecture-compute-30-when-installing-on-rtx


Hannes Zietsman 
Cell +27 84 407 1414
___
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] Channel manipulation and audio filter equivalencies

2020-11-18 Thread Chris Angelico
On Thu, Nov 19, 2020 at 8:48 AM adam smith via ffmpeg-user
 wrote:
>
>
> > On 12 Nov 2020, at 06:10, Chris Angelico  wrote:
> >
> > Anyone have recommendations on these options, or any other preferred
> > way to remap channels at maximum quality?
>
> You could try using the channelsplit and selecting the specific channels you 
> want and then merging them into a single stream. 
> channelsplit=channel_layout=7.1:channels=LF|RF[lf][rf];[lf][rf]amerge=inputs=2[aout]
>

Hmm, I must be missing something here, because I get this error:

$ ffmpeg -stats -y -i Original.mkv -filter_complex
'channelsplit=channel_layout=7.1:channels=LF|RF[lf][rf];[lf][rf]amerge=inputs=2[aout]'
-map 0:v -map 0:s channel_split.mkv
[AVFilterGraph @ 0x559f11cf7f80] Error initializing filter
'channelsplit' with args 'channel_layout=7.1:channels=LF|RF'
Error initializing complex filters.
Invalid argument

But when I tried things along these lines, I got complaints that some
of the outputs weren't connected to anything.

ChrisA
___
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] Channel manipulation and audio filter equivalencies

2020-11-18 Thread adam smith via ffmpeg-user

> On 12 Nov 2020, at 06:10, Chris Angelico  wrote:
> 
> Anyone have recommendations on these options, or any other preferred
> way to remap channels at maximum quality?

You could try using the channelsplit and selecting the specific channels you 
want and then merging them into a single stream. 
channelsplit=channel_layout=7.1:channels=LF|RF[lf][rf];[lf][rf]amerge=inputs=2[aout]

Thanks
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] Bitstream filter h264 metadata crop

2020-11-18 Thread Gyan Doshi



On 18-11-2020 11:58 pm, ROBINSON Stuart wrote:

  I am testing cropping video using the bitstream filter shown in the following 
command:

C:\ffmpeg-2020-11-18-git-e3081d6f4f-full_build\bin>ffplay.exe "Input.mp4" -codec:v copy 
-an -bsf:v h264_metadata=crop_top=128 "output_cropped.mp4"
ffplay version 2020-11-18-git-e3081d6f4f-full_build-www.gyan.dev Copyright (c) 
2003-2020 the FFmpeg developers
   built with gcc 10.2.0 (Rev3, Built by MSYS2 project)

   configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv 
--enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy 
--enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth 
--enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d 
--enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom 
--enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r 
--enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf 
--enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid 
--enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va 
--enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan 
--enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug 
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame 
--enable-libshine --enable-libtheora --enable-libtwolame 
--enable-libvo-amrwbenc --enable-libilbc --enable-libgsm 
--enable-libopencore-amrnb --enable-libopus --enable-libspeex 
--enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite 
--enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
   libavutil  56. 60.100 / 56. 60.100
   libavcodec 58.112.103 / 58.112.103
   libavformat58. 64.100 / 58. 64.100
   libavdevice58. 11.102 / 58. 11.102
   libavfilter 7. 90.100 /  7. 90.100
   libswscale  5.  8.100 /  5.  8.100
   libswresample   3.  8.100 /  3.  8.100
   libpostproc55.  8.100 / 55.  8.100
Failed to set value 'h264_metadata=crop_top=128' for option 'bsf:v': Option not 
found

  Very grateful to anyone who can point out where I am going wrong here, it 
looks simple enough.


You're invoking ffplay, not ffmpeg.

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] Bitstream filter h264 metadata crop

2020-11-18 Thread ROBINSON Stuart
 I am testing cropping video using the bitstream filter shown in the following 
command:

C:\ffmpeg-2020-11-18-git-e3081d6f4f-full_build\bin>ffplay.exe "Input.mp4" 
-codec:v copy -an -bsf:v h264_metadata=crop_top=128 "output_cropped.mp4"
ffplay version 2020-11-18-git-e3081d6f4f-full_build-www.gyan.dev Copyright (c) 
2003-2020 the FFmpeg developers
  built with gcc 10.2.0 (Rev3, Built by MSYS2 project)

  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv 
--enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy 
--enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth 
--enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d 
--enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom 
--enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r 
--enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf 
--enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid 
--enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va 
--enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan 
--enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug 
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame 
--enable-libshine --enable-libtheora --enable-libtwolame 
--enable-libvo-amrwbenc --enable-libilbc --enable-libgsm 
--enable-libopencore-amrnb --enable-libopus --enable-libspeex 
--enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite 
--enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil  56. 60.100 / 56. 60.100
  libavcodec 58.112.103 / 58.112.103
  libavformat58. 64.100 / 58. 64.100
  libavdevice58. 11.102 / 58. 11.102
  libavfilter 7. 90.100 /  7. 90.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
Failed to set value 'h264_metadata=crop_top=128' for option 'bsf:v': Option not 
found

 Very grateful to anyone who can point out where I am going wrong here, it 
looks simple enough.

 Thanks, Stuart


--

Thanks,

Stuart Robinson,

AV Technician,

Sound Lab,

School of Scottish Studies,

University of Edinburgh,

29 George Square,

Edinburgh,

EH8 9LD



0131 651 5001





The University of Edinburgh is a charitable body, registered in

Scotland, with registration number SC005336.

___
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] Output a sequence of images with known timings

2020-11-18 Thread adam smith via ffmpeg-user
Hi,

I am trying to extract an image at set intervals from a video source. Later I 
will select one of images and will use the interval time and image number to 
determine the time in the video it came from.

If anybody has a better idea how to do this, feel free to stop me and push me 
in the right direction.

My issue is that the first image time varies depending on the output fps.
Eg fps=1/1 will output the first image from the 1st second of source; and so on.
Fps=1/5 will output the first image from the 3rd second of the source.
Fps=1/11 will output the first image from the 6th second of the source.
It keeps getting further away from the start while remaining approx halfway to 
the point I expected.

Any ideas how I force the first image to either be the first frame of the 
source, or the same value as the frequency?

Maybe I would be better off getting it to seek to each spot; but that would get 
pretty long pretty quick.

Full Command: ffmpeg -y -i 
/data/temporary/localised_20201118-961-d41yxx/2minclock.m4v  -filter_complex 
\"[0:0]fifo[vout];[vout]fps=fps=1/11[vout1]\" -map \"[vout1]\" -s 283x159 
-frames:v 60 -pix_fmt yuvj420p -c:v mjpeg  
/data/temporary/transcode_20201118-961-1qrmsyq/2minclocktest_%03d.jpeg"}

Console output:
/usr/src/app # ffmpeg -y -i 
/data/temporary/localised_20201118-961-d41yxx/2minclock.m4v  -filter_complex 
"[0:0]fifo[vout];[vout]fps=fps=1/11[vout1]" -map "[vout1]" -s 283x159 -frames:v 
60 -pix_fmt yuvj420p -c:v mjpeg /data/temporary/tra
nscode_20201118-961-1qrmsyq/2minclocktest_%03d.jpeg
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.3.0 (Alpine 9.3.0)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared 
--enable-avresample --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 --enable-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 --extra-cflags=-I/opt/ffmpeg/include 
--extra-ldflags=-L/opt/ffmpeg/lib
  libavutil  56. 51.100 / 56. 51.100
  libavcodec 58. 91.100 / 58. 91.100
  libavformat58. 45.100 / 58. 45.100
  libavdevice58. 10.100 / 58. 10.100
  libavfilter 7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc55.  7.100 / 55.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 
'/data/temporary/localised_20201118-961-d41yxx/2minclock.m4v':
  Metadata:
major_brand : M4V 
minor_version   : 1
compatible_brands: M4V M4A isommp42
creation_time   : 2020-11-18T12:36:47.00Z
encoder : Keynote 10.3.5 (7029.5.5)
  Duration: 00:02:01.20, start: 0.00, bitrate: 1420 kb/s
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 
1920x1080 [SAR 1:1 DAR 16:9], 1415 kb/s, 50 fps, 50 tbr, 50 tbn, 100 tbc 
(default)
Metadata:
  creation_time   : 2020-11-18T12:36:47.00Z
  handler_name: Core Media Video
Stream mapping:
  Stream #0:0 (h264) -> fifo
  fps -> Stream #0:0 (mjpeg)
Press [q] to stop, [?] for help
[swscaler @ 0x55efa99b2d80] deprecated pixel format used, make sure you did set 
range correctly
Output #0, image2, to 
'/data/temporary/transcode_20201118-961-1qrmsyq/2minclocktest_%03d.jpeg':
  Metadata:
major_brand : M4V 
minor_version   : 1
compatible_brands: M4V M4A isommp42
encoder : Lavf58.45.100
Stream #0:0: Video: mjpeg, yuvj420p(pc), 283x159 [SAR 848:849 DAR 16:9], 
q=2-31, 200 kb/s, 0.09 fps, 0.09 tbn, 0.09 tbc (default)
Metadata:
  encoder : Lavc58.91.100 mjpeg
Side data:
  cpb: bitrate max/min/avg: 0/0/20 buffer size: 0 vbv_delay: N/A
frame=   11 fps=2.1 q=1.6 Lsize=N/A time=00:02:01.00 bitrate=N/A speed=22.9x
video:80kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: unknown

Thanks very much for any advice.
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] Slide show with transition

2020-11-18 Thread Carl Zwanzig

On 11/18/2020 9:13 AM, Paul B Mahol wrote:

No, it is a very bad idea.

Why? (explanation missing)


You are certainly a supporter of that software and bad software practice in
general.
I support things that work; IrfanView works well for a great many people and 
for the jobs it was designed to do; so do XNview, OBS, ImageMagick, VLC, and 
a raft of other packages.


Then explain why it's "bad practice" (and whether you're referring "to 
support that software" or "to run all the images through it" or something 
else?). Normalizing formats/resolutions/etc is a common practice when 
working with multiple sources.



This can be coded with ease to be done with FFmpeg either via shell or
programming.
Again, explanation missing. If it could be done "with ease" it should have 
been quick to provide an example, especially to a neophyte (the OP); I'd 
expect nothing less from someone with your experience. Take the opportunity 
to help someone learn instead of throwing barriers in their way.


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] Slide show with transition

2020-11-18 Thread Paul B Mahol
On Wed, Nov 18, 2020 at 6:10 PM Carl Zwanzig  wrote:

> On 11/18/2020 7:55 AM, Michael Koch wrote:
> >> Size is the size in pixels or in bytes ?
> >
> > width and height
> (pixels/resolution) The byte count will vary with the image compression.
>
> Using Irfanview to process all the images into a common format is a good
> idea.
>

No, it is a very bad idea.

You are certainly a supporter of that software and bad software practice in
general.

This can be coded with ease to be done with FFmpeg either via shell or
programming.


>
> 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".
___
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] Slide show with transition

2020-11-18 Thread Carl Zwanzig

On 11/18/2020 7:55 AM, Michael Koch wrote:

Size is the size in pixels or in bytes ?


width and height

(pixels/resolution) The byte count will vary with the image compression.

Using Irfanview to process all the images into a common format is a good idea.

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] Slide show with transition

2020-11-18 Thread Michael Koch

Am 18.11.2020 um 16:37 schrieb RAPPAZ Francois via ffmpeg-user:

The problem is that your images 3 and 4 have different size. As far as I know, FFmpeg 
can't combine images with different sizes to a slideshow (please correct me if I'm 
>wrong). By the way, all images must also have the same pixel format. I did't 
check that in your images. For example, if one image has yuv420 and another has 
yuv422, that >won't work.
Possible workaround: Use batch processing in IrfanView to bring all images to 
the same size.
Michael

Size is the size in pixels or in bytes ?


width and height

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] Slide show with transition

2020-11-18 Thread RAPPAZ Francois via ffmpeg-user

>The problem is that your images 3 and 4 have different size. As far as I know, 
>FFmpeg can't combine images with different sizes to a slideshow (please 
>correct me if I'm >wrong). By the way, all images must also have the same 
>pixel format. I did't check that in your images. For example, if one image has 
>yuv420 and another has yuv422, that >won't work.

>Possible workaround: Use batch processing in IrfanView to bring all images to 
>the same size.

>Michael

Size is the size in pixels or in bytes ?

F
___
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] Best place for despill filter?

2020-11-18 Thread Michael Koch

Am 18.11.2020 um 14:40 schrieb Moritz Barsnick:

On Mon, Nov 16, 2020 at 20:15:54 +0100, Michael Koch wrote:

Oh, what a pity. We need more filters with support for commands. Now
that I have found out how to send zmq commands from C# code, there are
so many nice things that could be done with FFmpeg in real time.
Especially when adjusting parameters that need visual feedback, for
example brightness, contrast, gamma, color corrections, colorkey
parameters, despill parameters and so on...

Paul has worked heavily over the last few months to add command support
to filters (and to properly document it). I guess it just isn't trivial
in many cases, as the filters sometimes have not been designed with
runtime reconfiguration in mind. (Any it may not be possible at all in
certain cases.)


Yes, I know that Paul has added command support to many filters and I 
really appreciate this work!

Paul, is it possible to add command support also for the despill filter?
I'm asking because I've written a C# tool for bluescreening in real 
time. The foreground video comes from a camera via HDMI to USB converter 
(these cheap chinese converters are great!). The background comes from a 
file and is played in an endless loop. I have attached a screenshot. The 
color bars are the built-in test image from the HDMI to USB converter. 
All parameters can be adjusted with the scrollbars in real time and are 
sent to the FFmpeg process as zmq messages. It's already running fine. 
The only problem is that the despill parameters can't be updated in real 
time. They become effective after stopping and re-starting FFmpeg (which 
takes about 2 seconds).


If you want to see how this was programmed, have a look at chapter 2.56 
of my book:

www.astro-electronic.de/FFmpeg_Book.pdf

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] Best place for despill filter?

2020-11-18 Thread Moritz Barsnick
On Mon, Nov 16, 2020 at 20:15:54 +0100, Michael Koch wrote:
> Oh, what a pity. We need more filters with support for commands. Now
> that I have found out how to send zmq commands from C# code, there are
> so many nice things that could be done with FFmpeg in real time.
> Especially when adjusting parameters that need visual feedback, for
> example brightness, contrast, gamma, color corrections, colorkey
> parameters, despill parameters and so on...

Paul has worked heavily over the last few months to add command support
to filters (and to properly document it). I guess it just isn't trivial
in many cases, as the filters sometimes have not been designed with
runtime reconfiguration in mind. (Any it may not be possible at all in
certain cases.)

Cheers,
Moritz
___
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] Slide show with transition

2020-11-18 Thread Michael Koch

Am 18.11.2020 um 09:50 schrieb RAPPAZ Francois via ffmpeg-user:

I have 15 JPEG file to be used for a slide (duration: 135 sec): Each image is 
display 9 seconds and without transition the mkv file is ok.
I tried this for a transition 1 second long

ffmpeg -y -framerate 1/9 -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^
-vf
zoompan=d=9:fps=1,framerate=fps=15:interp_start=0:interp_end=255:scene
=100 ^ -r 15 -vsync vfr -pix_fmt yuv420p output.mkv

The transition is ok for the first 3 image then the slide jump to image at 
position 10 and that picture remains blocked...
What am I doing wrong ?

this works for me:

rem  make 15 test images

ffmpeg -f lavfi -i testsrc2=size=vga:duration=15:rate=1 -y test%%2d.jpg
rem  make slideshow, each image is shown 9 sec + 1 sec crossfade

ffmpeg -i test%%02d.jpg -vf
zoompan=d=10:fps=1,framerate=fps=25:interp_start=0:interp_end=255:scene=100
out.mp4
Michael

My images files are 01.JPG, 02.JPG ... 10.JPG upto 15.JPG
I wonder if " -i %%02d.JPG " is realy working or is correct. I still have a 
jump to 10.JPG after 03.JPG
You can access my files here if you have the time
https://drive.switch.ch/index.php/s/DbAVwtai3mOT43j


The problem is that your images 3 and 4 have different size. As far as I 
know, FFmpeg can't combine images with different sizes to a slideshow 
(please correct me if I'm wrong). By the way, all images must also have 
the same pixel format. I did't check that in your images. For example, 
if one image has yuv420 and another has yuv422, that won't work.


Possible workaround: Use batch processing in IrfanView to bring all 
images to the same size.


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] Slide show with transition

2020-11-18 Thread RAPPAZ Francois via ffmpeg-user
>> I have 15 JPEG file to be used for a slide (duration: 135 sec): Each image 
>> is display 9 seconds and without transition the mkv file is ok.
>> I tried this for a transition 1 second long
>>
>> ffmpeg -y -framerate 1/9 -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^ 
>> -vf 
>> zoompan=d=9:fps=1,framerate=fps=15:interp_start=0:interp_end=255:scene
>> =100 ^ -r 15 -vsync vfr -pix_fmt yuv420p output.mkv
>>
>> The transition is ok for the first 3 image then the slide jump to image at 
>> position 10 and that picture remains blocked...
>> What am I doing wrong ?
>
>this works for me:
>
>rem  make 15 test images
>
>ffmpeg -f lavfi -i testsrc2=size=vga:duration=15:rate=1 -y test%%2d.jpg
>rem  make slideshow, each image is shown 9 sec + 1 sec crossfade
>
>ffmpeg -i test%%02d.jpg -vf
>zoompan=d=10:fps=1,framerate=fps=25:interp_start=0:interp_end=255:scene=100
>out.mp4
>Michael

My images files are 01.JPG, 02.JPG ... 10.JPG upto 15.JPG
I wonder if " -i %%02d.JPG " is realy working or is correct. I still have a 
jump to 10.JPG after 03.JPG
You can access my files here if you have the time
https://drive.switch.ch/index.php/s/DbAVwtai3mOT43j

Moreover I compared mp4 file made on Ubuntu and displayed ok with the default 
video viewer or with vlc, where on Windows there are jumps between images with 
the default viewer and no images at all with vlc.
Mkv output made on windows is displayed correctly on Windows with the default 
viewer but does not work on Linux.

François

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