Re: [FFmpeg-user] vaapi crop and video size filters

2021-01-19 Thread Xu, Guangxin
Sorry, I can't access the link.
Could you help file a issue at 

http://trac.ffmpeg.org/query?status=new=open=reopened=id=summary=status=type=component=version=time=changetime=priority=1
And attach your comandline?

thanks

> -Original Message-
> From: ffmpeg-user  On Behalf Of owen s
> Sent: Wednesday, January 20, 2021 11:06 AM
> To: FFmpeg user questions 
> Subject: [FFmpeg-user] vaapi crop and video size filters
> 
> with software libx264 using crop filter
> crop=width:heigh:x:y, i could crop around a specific point. using h264_vaapi
> and -vf crop=width:height doesn't control the crop location.
> 
> also with libx264 -video_size=widthxheight worked, but with h264_vaapi, the
> video resolution comes out to be the max size of the video framebuffer
> 65535x65535 in my case.
> 
> Can I set where the h264_vaapi crop x,y position and how do I control the
> resolution after using h264_vaapi?
> 
> log file: http://0x0.st/-ifF.txt
> ___
> 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] [FFmpeg-devel] make: *** [ffbuild/common.mak:67: libavfilter/vf_nnedi.o] Error 1

2021-01-19 Thread Hongyi Zhao
On Wed, Jan 20, 2021 at 11:32 AM James Almer  wrote:
>
> On 1/20/2021 12:29 AM, Hongyi Zhao wrote:
> > On Wed, Jan 20, 2021 at 10:52 AM James Almer  wrote:
> >>
> >> On 1/19/2021 11:24 PM, Hongyi Zhao wrote:
> >>> On Wed, Jan 20, 2021 at 12:19 AM Derek Buitenhuis
> >>>  wrote:
> 
>  On 19/01/2021 09:21, Hongyi Zhao wrote:
> > libavfilter/vf_nnedi.c: At top level:
> > libavfilter/vf_nnedi.c:819:13: error: conflicting types for ‘read’
> > 819 | static void read(float *dst, size_t n, const float **data)
> 
>  I thought this might happen when I saw it go in.
> 
>  We shouldn't be naming functions things that clash with standard POSIX
>  or stdlib functions like 'read'.
> >>>
> >>> I didn't make any changes to the source code, so how to fix the problem?
> >>>
> >>> Best,
> >>
> >> It was already fixed in f3f5ba0bf8, so simply pull the latest changes.
> >
> > But I still meet the following problem:
> >
> > make: *** [ffbuild/common.mak:67: libavutil/hwcontext_vulkan.o] Error 1
> >
> > Best regards,
>
> That line alone is not very descriptive of the compilation issue you're
> experiencing.
>
> This is in any case not the correct list to report this kind of problem.
> Either ask in ffmpeg-user, or open a ticket in https://trac.ffmpeg.org/
> with a more detailed explanation of the problem.

I cont'd with this issue and cc'ed it to ffmpeg-user as shown below:

$ make
[...]
libavutil/hwcontext_vulkan.c:3273:11: note: in expansion of macro ‘CHECK_CU’
 3273 | ret =
CHECK_CU(cu->cuWaitExternalSemaphoresAsync(dst_int->cu_sem, s_w_par,
  |   ^~~~
libavutil/cuda_check.h:32:39: note: expected ‘void *’ but argument is
of type ‘CUresult (*)(CUresult,  const char **)’ {aka ‘enum
cudaError_enum (*)(enum cudaError_enum,  const char **)’}
   32 | void *cuGetErrorName_fn, void
*cuGetErrorString_fn,
  | ~~^
libavutil/cuda_check.h:64:93: warning: ISO C forbids passing argument
3 of ‘ff_cuda_check’ between function pointer and ‘void *’
[-Wpedantic]
   64 | A_CHECK_DL(avclass, cudl, x) ff_cuda_check(avclass,
cudl->cuGetErrorName, cudl->cuGetErrorString, (x), #x)

libavutil/hwcontext_vulkan.c:41:21: note: in expansion of macro
‘FF_CUDA_CHECK_DL’
   41 | #define CHECK_CU(x) FF_CUDA_CHECK_DL(cuda_cu, cu, x)
  | ^~~~
libavutil/hwcontext_vulkan.c:3273:11: note: in expansion of macro ‘CHECK_CU’
 3273 | ret =
CHECK_CU(cu->cuWaitExternalSemaphoresAsync(dst_int->cu_sem, s_w_par,
  |   ^~~~
libavutil/cuda_check.h:32:64: note: expected ‘void *’ but argument is
of type ‘CUresult (*)(CUresult,  const char **)’ {aka ‘enum
cudaError_enum (*)(enum cudaError_enum,  const char **)’}
   32 | void *cuGetErrorName_fn, void
*cuGetErrorString_fn,
  |
~~^~~
libavutil/cuda_check.h:64:71: warning: ISO C forbids passing argument
2 of ‘ff_cuda_check’ between function pointer and ‘void *’
[-Wpedantic]
   64 | #define FF_CUDA_CHECK_DL(avclass, cudl, x)
ff_cuda_check(avclass, cudl->cuGetErrorName, cudl->cuGetErrorString,
(x), #x)
libavutil/hwcontext_vulkan.c:41:21: note: in expansion of macro
‘FF_CUDA_CHECK_DL’
   41 | #define CHECK_CU(x) FF_CUDA_CHECK_DL(cuda_cu, cu, x)
  | ^~~~
libavutil/hwcontext_vulkan.c:3297:15: note: in expansion of macro ‘CHECK_CU’
 3297 | ret = CHECK_CU(cu->cuMemcpy2DAsync(, cuda_dev->stream));
  |   ^~~~
libavutil/cuda_check.h:32:39: note: expected ‘void *’ but argument is
of type ‘CUresult (*)(CUresult,  const char **)’ {aka ‘enum
cudaError_enum (*)(enum cudaError_enum,  const char **)’}
   32 | void *cuGetErrorName_fn, void
*cuGetErrorString_fn,
  | ~~^
libavutil/cuda_check.h:64:93: warning: ISO C forbids passing argument
3 of ‘ff_cuda_check’ between function pointer and ‘void *’
[-Wpedantic]
   64 | A_CHECK_DL(avclass, cudl, x) ff_cuda_check(avclass,
cudl->cuGetErrorName, cudl->cuGetErrorString, (x), #x)

libavutil/hwcontext_vulkan.c:41:21: note: in expansion of macro
‘FF_CUDA_CHECK_DL’
   41 | #define CHECK_CU(x) FF_CUDA_CHECK_DL(cuda_cu, cu, x)
  | ^~~~
libavutil/hwcontext_vulkan.c:3297:15: note: in expansion of macro ‘CHECK_CU’
 3297 | ret = CHECK_CU(cu->cuMemcpy2DAsync(, cuda_dev->stream));
  |   ^~~~
libavutil/cuda_check.h:32:64: note: expected ‘void *’ but argument is
of type ‘CUresult (*)(CUresult,  const char **)’ {aka ‘enum
cudaError_enum (*)(enum cudaError_enum,  const char **)’}
   32 | void *cuGetErrorName_fn, void
*cuGetErrorString_fn,
  |
~~^~~
libavutil/cuda_check.h:64:71: warning: ISO C forbids passing argument
2 of ‘ff_cuda_check’ between function pointer and ‘void *’
[-Wpedantic]
   64 | 

[FFmpeg-user] vaapi crop and video size filters

2021-01-19 Thread owen s
with software libx264 using crop filter
crop=width:heigh:x:y, i could crop around a specific point. using
h264_vaapi and -vf crop=width:height
doesn't control the crop location.

also with libx264 -video_size=widthxheight worked, but with h264_vaapi, the
video resolution comes out to be the max size of the video framebuffer
65535x65535 in my case.

Can I set where the h264_vaapi crop x,y position and how do I control the
resolution after using h264_vaapi?

log file: http://0x0.st/-ifF.txt
___
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] Seeking smart decomb filter

2021-01-19 Thread Mark Filipak (ffmpeg)

Hello All,

I seek a decomb filter that operates on H/2 number of line pairs: lines i & i+1 (where i=0..H/2-1), 
by aligning edges in the two lines at x = delta-x(edge)/2 (i.e. the median). The ideal filter would 
differentiate overall motion due to panning versus local motion due to local object motion.


Pan-combing on the left & right edges is acceptable but it would be a great bonus if the filter 
performed blend on those edges with the blending radius equal to one-half the pan-comb.


Vertical, line-pair-to-line-pair processing is not needed or desired.

Frame-to-frame processing is not needed or desired.

I have been trying a great number of filters based on their names and what is in the documentation. 
The best I've found so far is pp=linblenddeint but it obviously doesn't align edges via the edge 
median and it obviously isn't aware of pan-combing versus object-motion-combing.


Any suggestions are very welcome. If I find this filter I will post a link to a 60FPS telecined 
video that will amaze everyone -- better than anything that Cuda can do.


-Mark.
___
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] convert audio files to serve them on website

2021-01-19 Thread David Froger
I'm also planning to use the `-progress` option, to display a progress
bar to the uploader client.

Quoting David Froger (2021-01-20 00:03:20)
> Hello,
> 
> I'm building a website that allow talks to be uploaded (HTTPS POST)
> and then be streamed (html5 audio element) or downloaded (HTTPS GET).
> I'm also thinking to make them available as podcast. As I have no
> experience with audio files, I'm looking for advices.
> 
> I would like the upload/download/stream to be as portable as possible:
> Currently, the talks may be recorded for example from a voice record, a
> smartphone, a tablet. It is then directly uploaded to the website. I've
> encountered these formats: (.mp3, .m4a, .3gp) but I would like to
> support as much formats as possible. It may then be streamed or
> downloaded from one of the major desktop (GNU/Linux, OSX, Windows) or
> mobile/tablet (Androïd, IOS) browsers.
> 
> So I would like to convert the uploaded file with ffmpeg before serving
> it (done by the webserver).
> 
> Some questions I have:
> - Would .mp3 be the most appropriate format?
> - Should I adapt the ffmpeg command according to the input file, or can I use
>   an "universal command", something like: ffmpeg -i file.{.m4a,3gp,...} -vn 
> file.mp3
> - Should I add "-acodec libmp3lame", or is it implicit from the output
>   file .mp3 extension?
> - Is there any benefit from adding other options? For example here
>   https://stackoverflow.com/a/12952172 I've seen "-ar 44100", but why
>   not just keep the input frequency? (same for "-ac 2" and "-b:a 192k",
>   why not just keep what is in the input, is it just to optimize the
>   size of the output file?) Any other useful option?
> 
> Thanks for reading!


___
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] convert audio files to serve them on website

2021-01-19 Thread David Froger
Hello,

I'm building a website that allow talks to be uploaded (HTTPS POST)
and then be streamed (html5 audio element) or downloaded (HTTPS GET).
I'm also thinking to make them available as podcast. As I have no
experience with audio files, I'm looking for advices.

I would like the upload/download/stream to be as portable as possible:
Currently, the talks may be recorded for example from a voice record, a
smartphone, a tablet. It is then directly uploaded to the website. I've
encountered these formats: (.mp3, .m4a, .3gp) but I would like to
support as much formats as possible. It may then be streamed or
downloaded from one of the major desktop (GNU/Linux, OSX, Windows) or
mobile/tablet (Androïd, IOS) browsers.

So I would like to convert the uploaded file with ffmpeg before serving
it (done by the webserver).

Some questions I have:
- Would .mp3 be the most appropriate format?
- Should I adapt the ffmpeg command according to the input file, or can I use
  an "universal command", something like: ffmpeg -i file.{.m4a,3gp,...} -vn 
file.mp3
- Should I add "-acodec libmp3lame", or is it implicit from the output
  file .mp3 extension?
- Is there any benefit from adding other options? For example here
  https://stackoverflow.com/a/12952172 I've seen "-ar 44100", but why
  not just keep the input frequency? (same for "-ac 2" and "-b:a 192k",
  why not just keep what is in the input, is it just to optimize the
  size of the output file?) Any other useful option?

Thanks for reading!


___
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 to compile for getting yadif_cuda ?

2021-01-19 Thread andrei ka
hi all,

i can't figure out  how to get yadif_cuda in my ffmpeg...

i compile more or less ok ffmpeg w/ cuda (ff 4.3.1 + cuda 11.2 on ubuntu
20.4), i've just dropped fontconfig in ffmpeg, cuz in my first try it
screwed up a few cuda's explected fontconfig's symbolds. so

i configured :

./configure \
--enable-libcaca \
--enable-libfontconfig \
--enable-libfreetype \
--enable-libfribidi  \
--enable-libopenjpeg \
--enable-ffnvcodec \
--enable-libsnappy \
--enable-libssh \
--enable-libzmq \
--disable-debug \
--disable-doc \
--disable-ffplay \
--enable-shared \
--enable-avresample \
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
--enable-gpl \
--enable-libass \
--enable-libvidstab \
--enable-libmp3lame \
--enable-libopus \
--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 \
--extra-libs=-ldl \
--prefix="${PREFIX}" \
--enable-libopenjpeg \
--enable-libkvazaar \
--disable-libaom \
--extra-libs=-lpthread \
--enable-nvenc \
--enable-nvdec \
--enable-cuda \
--enable-cuvid \
--enable-libvmaf \
--enable-libnpp \
--extra-cflags="-I${PREFIX}/include -I${PREFIX}/include/ffnvcodec
-I/usr/local/cuda/include/"  \
--extra-ldflags="-L${PREFIX}/lib -L/usr/local/cuda/lib64
-L/usr/local/cuda/lib32/"

and binary would report :

ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration:
--enable-libcaca
--enable-libfreetype
--enable-libfribidi
--enable-libopenjpeg
--enable-ffnvcodec
--enable-libsnappy
--enable-libssh
--enable-libzmq
--disable-debug
--disable-doc
--disable-ffplay
--enable-shared
--enable-avresample
--enable-libopencore-amrnb
--enable-libopencore-amrwb
--enable-gpl
--enable-libass
--enable-libvidstab
--enable-libmp3lame
 --enable-libopus
--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
--extra-libs=-ldl
--prefix=/opt/ffmpeg
--enable-libopenjpeg
--enable-libkvazaar
--disable-libaom
--extra-libs=-lpthread
--enable-nvenc
--enable-nvdec
 --enable-cuda
--enable-cuvid
--enable-libvmaf
--enable-libnpp
--extra-cflags='-I/opt/ffmpeg/include -I/opt/ffmpeg/include/ffnvcodec
-I/usr/local/cuda/include/' --extra-ldflags='-L/opt/ffmpeg/lib
-L/usr/local/cuda/lib64 -L/usr/local/cuda/lib32/

but yadif_cuda is not where... :

doing yadif in cpu works fine :
ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i
4k_30s_420p.mp4 -c:a copy -c:v h264_nvenc -vf
hwdownload,format=nv12,yadif=mode=1,hwupload_cuda  -pix_fmt cuda -rc:v
vbr_hq -cq:v 19 -profile:v high out1.mp4

and trying (on tesla t4, amazons ) :
 ffmpeg -init_hw_device cuda=0 -i interlaced.mp4 -vcodec h264_nvenc
-pix_fmt cuda -preset lossless -filter_hw_device 0 -vf
hwupload,yadif_cuda=1 -acodec copy -r 50 -f mp4 deinterlaced_yadif_cuda.mp4

would yell :
[AVFilterGraph @ 0x55bea5d7e280] No such filter: 'yadif_cuda'

so, obviously, i haven't compiled it ok... anyone could wise me up what's
missing ?

i did my runs on t4 :
CUDA Device Query (Driver API) statically linked version
Detected 1 CUDA Capable device(s)
Device 0: "Tesla T4"
CUDA Driver Version:   11.2
CUDA Capability Major/Minor version number:7.5
Total amount of global memory: 15110 MBytes (15843721216
bytes)
 (40) Multiprocessors, ( 64) CUDA Cores/MP: 2560 CUDA Cores
...

tnx
___
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] failed to export timecodes from the mp4 file

2021-01-19 Thread Vladimir Bogdanov via ffmpeg-user
On Jan 15, 2021, at 4:03 PM, Vladimir Bogdanov via ffmpeg-user 
 wrote:

Dear ffmpeg experts,
I have a very basic question about the timestamps of MP4 files. Forour 
biomedical research project we need so extract the timecode for every frameform 
several mp4 videos in order to synchronize them. Could you please kindlyhelp to 
find the right command?

I tried ffmpeg.exe -i video.mp4 -f null -vf showinfo - 2>otcome.txt, however 
instead of meaningful timecodes it gives lines like thefollowing: 

[Parsed_showinfo_0 @ 01ff420478c0] n:  2 pts:  3600 pts_time:0.04    pos:  
324285 fmt:yuvj420p sar:1/1 s:1280x720 i:Piskey:0 type:P checksum:414039D2 
plane_checksum:[F8D7F402 182C69AC 1D47DC06]mean:[106 126 137 ] stdev:[55.9 6.2 
12.9 ]

[Parsed_showinfo_0 @ 01ff420478c0]  side data - timecode - 00:00:00:00

[Parsed_showinfo_0 @ 01ff420478c0] color_range:pccolor_space:bt709 
color_primaries:bt709 color_trc:bt709

[Parsed_showinfo_0 @ 01ff420478c0] n:  3 pts:  5400 pts_time:0.06    pos:  
447916 fmt:yuvj420p sar:1/1 s:1280x720 i:Piskey:0 type:P checksum:39DF4A10 
plane_checksum:[BF1C0043 C7516C75 D2FDDD49]mean:[106 126 137 ] stdev:[55.9 6.2 
12.9 ]

[Parsed_showinfo_0 @ 01ff420478c0]  side data - timecode - 00:00:00:00

[Parsed_showinfo_0 @ 01ff420478c0]color_range:pc color_space:bt709 
color_primaries:bt709 color_trc:bt709

[Parsed_showinfo_0 @01ff420478c0] n:  4 pts:  7200 pts_time:0.08  pos:  
485527 fmt:yuvj420p sar:1/1 s:1280x720 i:P iskey:0type:P checksum:92670C5D 
plane_checksum:[91B6B2F5 2C68839D 5B6DD5AD] mean:[107126 137 ] stdev:[56.1 6.2 
12.9 ]

[Parsed_showinfo_0 @01ff420478c0]  side data -timecode - 00:00:00:00
etc...
The pts_time for all the videos starts from zero and the sequence is exactly 
identical in different cameras (with the same settings) and this does not help 
tosynchronize videos with different onsets.

Interestingly the first timecode, is available and correct:
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 
1280x720 [SAR 1:1 DAR 16:9], 30315 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 
tbc (default)    Metadata:      creation_time  : 2021-01-14T00:01:57.00Z    
  handler_name    :  GoPro AVC      vendor_id      : [0][0][0][0]      encoder  
      : GoPro AVC encoder      timecode        : 00:01:58:35
Excuse me for such a basic and naïve question, unfortunately mysearch did not 
yield any clear and available solution so far.
Thank you in advance for any help!
Sincerely yours,

Volodymyr

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user


Valadimir, if your starting time is good then what makes you think the video is 
going to go out of sync? I’m my experience with video production, once you get 
things aligned and I sync, they will mostly stay in sync over the duration of a 
recorded sequence. 

If the camera are stopped and started then you have a different issue. 

I se the time codes are 0 in some of the data you’ve supplied. 

Paul


Dear Paul,
Thank you for your reply!  Though the initial timecode is mostly correct, there 
is a varied delay of about 200-300 ms between the GoPro AVC encoder timecode 
and the real timecodes for the frames which I can not read. This results in 
asynchronicity of the videos recorded by two cameras which must be corrected 
manually and this I prefer to avoid.
Can there be a different ffmpeg command than what I use to be able to read the 
"side data - timecode". The fact that it is always 00:00:00:00 looks strange. 
Really appreciate any suggestions!

Sincerely yours,Volodymyr  
___
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] I am unable to get ffmpeg to calculate PSNR for any video files.

2021-01-19 Thread Reed Crowe
Gyan,
Wow, thank you for that. I had no idea what inf meant. I just assumed it
wasn't working!
I appreciate you taking the time to help me out.
Thank you.

On Tue, Jan 19, 2021 at 10:18 AM Gyan Doshi  wrote:

>
>
> On 19-01-2021 10:38 pm, Reed Crowe wrote:
> > Still does not work.
> > With this command:
> > ffmpeg -i /home/rcrowe/LVT/17647_20210118_195325.mp4 -i
> > /home/rcrowe/LVT/test.mp4 -enc_time_base -1 -filter_complex psnr -f null
> -
> > I get the same results:
> > ffmpeg version N-100671-gc48110a4a4 Copyright (c) 2000-2021 the FFmpeg
> > developers
> >built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
> >configuration:
> >libavutil  56. 63.101 / 56. 63.101
> >libavcodec 58.117.101 / 58.117.101
> >libavformat58. 65.101 / 58. 65.101
> >libavdevice58. 11.103 / 58. 11.103
> >libavfilter 7. 96.100 /  7. 96.100
> >libswscale  5.  8.100 /  5.  8.100
> >libswresample   3.  8.100 /  3.  8.100
> > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> > '/home/rcrowe/LVT/17647_20210118_195325.mp4':
> >Metadata:
> >  major_brand : isom
> >  minor_version   : 512
> >  compatible_brands: isomiso2avc1mp41
> >  title   : 'LVT17647'
> >  encoder : Lavf58.20.100
> >Duration: 00:00:59.87, start: 0.00, bitrate: 67 kb/s
> >  Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661),
> yuvj420p(pc,
> > bt470bg/bt470bg/bt709), 704x480, 66 kb/s, 15.03 fps, 15 tbr, 90k tbn,
> 180k
> > tbc (default)
> >  Metadata:
> >handler_name: VideoHandler
> >vendor_id   : [0][0][0][0]
> > Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/home/rcrowe/LVT/test.mp4':
> >Metadata:
> >  major_brand : isom
> >  minor_version   : 512
> >  compatible_brands: isomiso2avc1mp41
> >  title   : 'LVT17647'
> >  encoder : Lavf58.20.100
> >Duration: 00:00:59.87, start: 0.00, bitrate: 67 kb/s
> >  Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661),
> yuvj420p(pc,
> > bt470bg/bt470bg/bt709), 704x480, 66 kb/s, 15.03 fps, 15 tbr, 90k tbn,
> 180k
> > tbc (default)
> >  Metadata:
> >handler_name: VideoHandler
> >vendor_id   : [0][0][0][0]
> > Stream mapping:
> >Stream #0:0 (h264) -> psnr:main
> >Stream #1:0 (h264) -> psnr:reference
> >psnr -> Stream #0:0 (wrapped_avframe)
> > Press [q] to stop, [?] for help
> > [null @ 0x559c3fc0d6c0] Input stream data not available, using default
> time
> > base
> > Output #0, null, to 'pipe:':
> >Metadata:
> >  major_brand : isom
> >  minor_version   : 512
> >  compatible_brands: isomiso2avc1mp41
> >  title   : 'LVT17647'
> >  encoder : Lavf58.65.101
> >  Stream #0:0: Video: wrapped_avframe, yuvj420p(pc,
> > bt470bg/bt470bg/bt709, progressive), 704x480, q=2-31, 200 kb/s, 15 fps,
> 15
> > tbn (default)
> >  Metadata:
> >encoder : Lavc58.117.101 wrapped_avframe
> > *[null @ 0x559c3fc0d6c0] Application provided invalid, non monotonically
> > increasing dts to muxer in stream 0: 748 >= 748*
> > frame=  899 fps=0.0 q=-0.0 Lsize=N/A time=00:00:59.86 bitrate=N/A
> > speed=79.3x
> > video:471kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
> > muxing overhead: unknown
> > *[Parsed_psnr_0 @ 0x559c3fe87bc0] PSNR y:inf u:inf v:inf average:inf
> > min:inf max:inf*
>
> The results are right above, on the last line.  'inf' is infinity
> meaning the two inputs are identical.
>
> Regards,
> 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 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] I am unable to get ffmpeg to calculate PSNR for any video files.

2021-01-19 Thread Gyan Doshi



On 19-01-2021 10:38 pm, Reed Crowe wrote:

Still does not work.
With this command:
ffmpeg -i /home/rcrowe/LVT/17647_20210118_195325.mp4 -i
/home/rcrowe/LVT/test.mp4 -enc_time_base -1 -filter_complex psnr -f null -
I get the same results:
ffmpeg version N-100671-gc48110a4a4 Copyright (c) 2000-2021 the FFmpeg
developers
   built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
   configuration:
   libavutil  56. 63.101 / 56. 63.101
   libavcodec 58.117.101 / 58.117.101
   libavformat58. 65.101 / 58. 65.101
   libavdevice58. 11.103 / 58. 11.103
   libavfilter 7. 96.100 /  7. 96.100
   libswscale  5.  8.100 /  5.  8.100
   libswresample   3.  8.100 /  3.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/home/rcrowe/LVT/17647_20210118_195325.mp4':
   Metadata:
 major_brand : isom
 minor_version   : 512
 compatible_brands: isomiso2avc1mp41
 title   : 'LVT17647'
 encoder : Lavf58.20.100
   Duration: 00:00:59.87, start: 0.00, bitrate: 67 kb/s
 Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc,
bt470bg/bt470bg/bt709), 704x480, 66 kb/s, 15.03 fps, 15 tbr, 90k tbn, 180k
tbc (default)
 Metadata:
   handler_name: VideoHandler
   vendor_id   : [0][0][0][0]
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/home/rcrowe/LVT/test.mp4':
   Metadata:
 major_brand : isom
 minor_version   : 512
 compatible_brands: isomiso2avc1mp41
 title   : 'LVT17647'
 encoder : Lavf58.20.100
   Duration: 00:00:59.87, start: 0.00, bitrate: 67 kb/s
 Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc,
bt470bg/bt470bg/bt709), 704x480, 66 kb/s, 15.03 fps, 15 tbr, 90k tbn, 180k
tbc (default)
 Metadata:
   handler_name: VideoHandler
   vendor_id   : [0][0][0][0]
Stream mapping:
   Stream #0:0 (h264) -> psnr:main
   Stream #1:0 (h264) -> psnr:reference
   psnr -> Stream #0:0 (wrapped_avframe)
Press [q] to stop, [?] for help
[null @ 0x559c3fc0d6c0] Input stream data not available, using default time
base
Output #0, null, to 'pipe:':
   Metadata:
 major_brand : isom
 minor_version   : 512
 compatible_brands: isomiso2avc1mp41
 title   : 'LVT17647'
 encoder : Lavf58.65.101
 Stream #0:0: Video: wrapped_avframe, yuvj420p(pc,
bt470bg/bt470bg/bt709, progressive), 704x480, q=2-31, 200 kb/s, 15 fps, 15
tbn (default)
 Metadata:
   encoder : Lavc58.117.101 wrapped_avframe
*[null @ 0x559c3fc0d6c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 748 >= 748*
frame=  899 fps=0.0 q=-0.0 Lsize=N/A time=00:00:59.86 bitrate=N/A
speed=79.3x
video:471kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
*[Parsed_psnr_0 @ 0x559c3fe87bc0] PSNR y:inf u:inf v:inf average:inf
min:inf max:inf*


The results are right above, on the last line.  'inf' is infinity 
meaning the two inputs are identical.


Regards,
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".

Re: [FFmpeg-user] I am unable to get ffmpeg to calculate PSNR for any video files.

2021-01-19 Thread Reed Crowe
Still does not work.
With this command:
ffmpeg -i /home/rcrowe/LVT/17647_20210118_195325.mp4 -i
/home/rcrowe/LVT/test.mp4 -enc_time_base -1 -filter_complex psnr -f null -
I get the same results:
ffmpeg version N-100671-gc48110a4a4 Copyright (c) 2000-2021 the FFmpeg
developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration:
  libavutil  56. 63.101 / 56. 63.101
  libavcodec 58.117.101 / 58.117.101
  libavformat58. 65.101 / 58. 65.101
  libavdevice58. 11.103 / 58. 11.103
  libavfilter 7. 96.100 /  7. 96.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/home/rcrowe/LVT/17647_20210118_195325.mp4':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
title   : 'LVT17647'
encoder : Lavf58.20.100
  Duration: 00:00:59.87, start: 0.00, bitrate: 67 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc,
bt470bg/bt470bg/bt709), 704x480, 66 kb/s, 15.03 fps, 15 tbr, 90k tbn, 180k
tbc (default)
Metadata:
  handler_name: VideoHandler
  vendor_id   : [0][0][0][0]
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/home/rcrowe/LVT/test.mp4':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
title   : 'LVT17647'
encoder : Lavf58.20.100
  Duration: 00:00:59.87, start: 0.00, bitrate: 67 kb/s
Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc,
bt470bg/bt470bg/bt709), 704x480, 66 kb/s, 15.03 fps, 15 tbr, 90k tbn, 180k
tbc (default)
Metadata:
  handler_name: VideoHandler
  vendor_id   : [0][0][0][0]
Stream mapping:
  Stream #0:0 (h264) -> psnr:main
  Stream #1:0 (h264) -> psnr:reference
  psnr -> Stream #0:0 (wrapped_avframe)
Press [q] to stop, [?] for help
[null @ 0x559c3fc0d6c0] Input stream data not available, using default time
base
Output #0, null, to 'pipe:':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
title   : 'LVT17647'
encoder : Lavf58.65.101
Stream #0:0: Video: wrapped_avframe, yuvj420p(pc,
bt470bg/bt470bg/bt709, progressive), 704x480, q=2-31, 200 kb/s, 15 fps, 15
tbn (default)
Metadata:
  encoder : Lavc58.117.101 wrapped_avframe
*[null @ 0x559c3fc0d6c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 748 >= 748*
frame=  899 fps=0.0 q=-0.0 Lsize=N/A time=00:00:59.86 bitrate=N/A
speed=79.3x
video:471kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
*[Parsed_psnr_0 @ 0x559c3fe87bc0] PSNR y:inf u:inf v:inf average:inf
min:inf max:inf*

When I try a different file, (different camera) I get a slightly different
output, but still no PSNR numbers. I don't see an error, but no results
either.

ffmpeg -i /home/rcrowe/LVT/17651_20210119_162814.mp4 -i
/home/rcrowe/LVT/test2.mp4 -enc_time_base -1 -filter_complex psnr -f null -
output:
ffmpeg version N-100671-gc48110a4a4 Copyright (c) 2000-2021 the FFmpeg
developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration:
  libavutil  56. 63.101 / 56. 63.101
  libavcodec 58.117.101 / 58.117.101
  libavformat58. 65.101 / 58. 65.101
  libavdevice58. 11.103 / 58. 11.103
  libavfilter 7. 96.100 /  7. 96.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/home/rcrowe/LVT/17651_20210119_162814.mp4':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
title   : 'LVT17651'
encoder : Lavf58.20.100
  Duration: 00:00:59.96, start: 0.00, bitrate: 18 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc,
bt709), 384x288, 17 kb/s, 15.01 fps, 25 tbr, 90k tbn, 180k tbc (default)
Metadata:
  handler_name: VideoHandler
  vendor_id   : [0][0][0][0]
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/home/rcrowe/LVT/test2.mp4':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
title   : 'LVT17651'
encoder : Lavf58.20.100
  Duration: 00:00:59.96, start: 0.00, bitrate: 18 kb/s
Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc,
bt709), 384x288, 17 kb/s, 15.01 fps, 25 tbr, 90k tbn, 180k tbc (default)
Metadata:
  handler_name: VideoHandler
  vendor_id   : [0][0][0][0]
Stream mapping:
  Stream #0:0 (h264) -> psnr:main
  Stream #1:0 (h264) -> psnr:reference
  psnr -> Stream #0:0 (wrapped_avframe)
Press [q] to stop, [?] for help
*[null @ 0x55d3627a59c0] Input stream data not available, using default
time base*
Output #0, null, to 'pipe:':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41

Re: [FFmpeg-user] Error while playing record audio from webcam

2021-01-19 Thread Carl Zwanzig

On 1/19/2021 4:18 AM, Vijay Rakesh Munganda wrote:

How to solve above issue?


You start by posting the complete command output so we can see what what's 
going on.


(and please don't top-post on this list)

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] vaapi_h264 encoding very low bitrate

2021-01-19 Thread owen s
I am running this command with
ffmpeg -y -loglevel debug \
-vaapi_device /dev/dri/renderD128 \
-loop 1 -r 1 -i ./image.jpg -pix_fmt vaapi_vld \
-b:v 18000k -minrate 18000k \
-vf 'format=nv12|vaapi,hwupload,scale_vaapi=w=1280:h=720' \
-rc_mode 3 \
-r 30 -g 60 \
-c:v h264_vaapi -f flv /dev/null

I am getting high encoding speed of greater than 3x but the bitrate is
terrible 350Kbits/s

Why is that when I can get better encoding speeds using cpu? log file
http://0x0.st/-i2j.txt
___
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] Converting H.264 High L5.0 to H.264 High L5.1

2021-01-19 Thread alfonso santimone
Hi all,
how can i convert a H.264 High L5.0 .mov video to a H.264 High L5.1 or L4.0
.mov video without loosing to much quality?
I've tried...

ffmpeg -i input.mov -c:v libx264 -profile:v high -level:v 4.0 -c:a copy
output.mov

but from a 02:46 (mm:ss) movie 1.8Gb big i get a 90Mb movie.
So I guess a lot of quality is lost.
How can I improve it?
As you can probably guess i'm a video codec newbie so excuse me if it seems
a stupid question.
thanks and bests

a.



www.elgallorojorecords.bandcamp.com/

soundcloud.com/alfonsosantimone
www.facebook.com/alfonsosantimone
___
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] Use of -hls_flags iframes_only results in incorrect EXT-X-VERSION value

2021-01-19 Thread Bruce Roberts
Many thanks zhilizhao!

On Tue, Jan 19, 2021 at 12:12 PM "zhilizhao(赵志立)" 
wrote:

>
>
> > On Jan 19, 2021, at 6:57 PM, Bruce Roberts  wrote:
> >
> > Hello,
> >
> > I'm trying to generate Apple mediastreamvalidator compliant HLS using
> > ffmpeg and have very nearly achieved that.
> >
> > The only remaining problem is that use of " -hls_flags iframes_only"
> > correctly adds the #EXT-X-I-FRAMES-ONLY tag to my trickplay m3u8 but it
> > doesn't increment the #EXT-X-VERSION value from 3 to 4.
>
> Current implementation of I-FRAMES-ONLY is very limited.
> http://ffmpeg.org/pipermail/ffmpeg-devel/2021-January/274698.html
>
> >
> > The validator then complains as follows:
> >
> >
> 
> >
> > MUST fix issues
> >
> >
> 
> >
> >
> >
> > Error: incorrect version number for feature
> >
> > --> Detail:  Line: (null)
> >
> > --> Source:  output_TrickPlay_Video_8bit.m3u8
> >
> > If I manually edit the file and change the version value to 4, validation
> > is successful.
> >
> > I have upgraded ffmpeg to the latest version but the problem remains.
> >
> > Is there a way for me to force #EXT-X-VERSION:4 ?
> >
> > Here is my command and the console output:
> >
> > ffmpeg \
> > -ss 00:00:00.000 -t 00:00:30.000 -i input_23.98fps.mxf \
> > -filter_complex \
> > "[0:v:0]format=pix_fmts=yuv420p[vconcat420p8bit]; \
> > [vconcat420p8bit]split=3[vconcat1][vconcat2][vconcat3]; \
> > [vconcat3]fps=1.001000[vconcat1fps]; \
> > [0:a:0][0:a:1]join=inputs=2:channel_layout=stereo[stereo]" \
> > -map "[vconcat1]" -f hls -hls_list_size 0 -hls_time 6.006
> > -hls_playlist_type vod -an -vcodec libx264 -flags +cgop -g 48 -b:v 2500k
> > -maxrate 2500k -bufsize 2500k -x264opts
> > nal-hrd=cbr:bframes=0:keyint=48:min-keyint=48:scenecut=-1 \
> > output_T0_Video_8bit.m3u8 \
> > -map "[vconcat2]" -f hls -hls_list_size 0 -hls_time 6.006
> > -hls_playlist_type vod -an -vcodec libx264 -flags +cgop -g 48 -b:v 250k
> > -maxrate 250k -bufsize 250k -x264opts
> > nal-hrd=cbr:bframes=0:keyint=48:min-keyint=48:scenecut=-1 \
> > output_T1_Video_8bit.m3u8 \
> > -map "[stereo]" -f hls -hls_list_size 0 -hls_time 6.006
> -hls_playlist_type
> > vod -vn -acodec libfdk_aac -b:a 120k -ar 48000 NEW_output_T1_Audio.m3u8 \
> > -map "[vconcat1fps]" -f hls -hls_list_size 0 -hls_time 6.006
> > -hls_playlist_type vod -hls_flags iframes_only -an -vcodec libx264 -intra
> > -b:v 250k -maxrate 250k -bufsize 250k \
> > output_TrickPlay_Video_8bit.m3u8 \
> >
> > ffmpeg version git-2021-01-13-f6477ac9 Copyright (c) 2000-2021 the FFmpeg
> > developers
> >  built with Apple clang version 12.0.0 (clang-1200.0.32.28)
> >  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-f6477ac_6
> > --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl
> > --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus
> > --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx
> > --enable-libx264 --enable-libx265 --enable-libfontconfig
> > --enable-libfreetype --enable-frei0r --enable-libass
> --enable-demuxer=dash
> > --disable-libjack --disable-indev=jack --enable-opencl
> > --enable-videotoolbox --disable-htmlpages --enable-libfdk-aac
> > --enable-nonfree
> >  libavutil  56. 63.101 / 56. 63.101
> >  libavcodec 58.117.100 / 58.117.100
> >  libavformat58. 65.101 / 58. 65.101
> >  libavdevice58. 11.103 / 58. 11.103
> >  libavfilter 7. 95.100 /  7. 95.100
> >  libswscale  5.  8.100 /  5.  8.100
> >  libswresample   3.  8.100 /  3.  8.100
> >  libpostproc55.  8.100 / 55.  8.100
> > Guessed Channel Layout for Input Stream #0.2 : mono
> > Guessed Channel Layout for Input Stream #0.3 : mono
> > Input #0, mxf, from 'input_23.98fps.mxf':
> >  Metadata:
> >operational_pattern_ul: 060e2b34.04010101.0d010201.01010900
> >uid : ec3f5416-a722-1dcc-8f60-d4f34e4a603d
> >generation_uid  : 296bd6eb-2ca9-1321-bbef-5f5f4cfc10ec
> >company_name: Telestream Inc.
> >product_name: Telestream Media Framework - Release TXGP
> >product_version : 2016.30.183822
> >modification_date: 2020-12-15T15:24:55.00Z
> >product_uid : 11350ec5-148a-1010-aaca-d2c1000f040a
> >material_package_umid:
> > 0x060A2B340101010501010F1213296BD6EB2CA90321BB1F5F9F4CFC10ECBED4ED
> >timecode: 00:58:30:00
> >  Duration: 00:45:07.12, start: 0.00, bitrate: 93297 kb/s
> >Stream #0:0: Data: none
> >Metadata:
> >  file_package_umid:
> > 0x060A2B340101010501010F12135106454D99258E516513059C33EC3F5416A722
> >  data_type   : vbi_vanc_smpte_436M
> >Stream #0:1: Video: h264 (High 4:2:2 Intra), yuv422p10le(pc, bt709,
> > progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 23.98
> > tbn, 47.95 tbc
> >Metadata:
> >  file_package_umid:
> > 0x060A2B340101010501010F12135106454D99258E516513059C33EC3F5416A722
> >

Re: [FFmpeg-user] Error while playing record audio from webcam

2021-01-19 Thread Vijay Rakesh Munganda
Hi,

I just tried to record only audio by running below command. 
ffmpeg -f alsa -channels 1 -i hw:1 -c:a aac -ar 48k -t 0:10 sample.aac 
When play sample.aac file using ffplay it started to play which I have recorded 
then after it continued to play with silent output. How to solve above issue? 

Thanks & Regards,
Vijay Rakesh

> On 19-Jan-2021, at 10:27, Vijay Rakesh Munganda 
>  wrote:
> 
> 
> Hi All, 
> 
> I’m using below command to create video and audio files for real time 
> streaming to the cloud.
> 
> ffmpeg -f alsa -channels 1 -thread_queue_size 1024 -i hw:1 -f video4linux2 -i 
> /dev/video0 -c:a aac -ar 48k -t 0:10 -segment_time 00:00.08 -f stream_segment 
> sample-%003d.aac -c:v h264 -force_key_frames "expr:gte(t,n_forced*0.08)" 
> -pix_fmt yuv420p -s:v 640x480 -t 0:10 -r 25 -g 1 -segment_time 00:00.08 -f 
> stream_segment frame-%003d.h264
> 
> When I use ffplay on video clips it is playing, but when I run audio clips I 
> get different errors for different segmented output as follows, and some 
> clips play for more than 13s when segment given as 80ms. 
> 
> Error:
> Error: sample-000.aac: Invalid data found when processing input 0B f=0/0
> 
> [mpegts @ 0x7f6f3b80] Format mpegts detected only with low score of 2, 
> misdetection possible! 
> 
> [mpegts @ 0x7f6f3b80] Could not detect TS packet size, defaulting to 
> non-FEC/DVHS sample-001.aac: could not find codec parameters
> 
> Did I miss anything in the command? 
> 
> Thanks & Regards,
> Vijay Rakesh
> 
> 
> Thanks & Regards,
> Vijay Rakesh
___
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] Use of -hls_flags iframes_only results in incorrect EXT-X-VERSION value

2021-01-19 Thread zhilizhao(赵志立)


> On Jan 19, 2021, at 6:57 PM, Bruce Roberts  wrote:
> 
> Hello,
> 
> I'm trying to generate Apple mediastreamvalidator compliant HLS using
> ffmpeg and have very nearly achieved that.
> 
> The only remaining problem is that use of " -hls_flags iframes_only"
> correctly adds the #EXT-X-I-FRAMES-ONLY tag to my trickplay m3u8 but it
> doesn't increment the #EXT-X-VERSION value from 3 to 4.

Current implementation of I-FRAMES-ONLY is very limited.
http://ffmpeg.org/pipermail/ffmpeg-devel/2021-January/274698.html

> 
> The validator then complains as follows:
> 
> 
> 
> MUST fix issues
> 
> 
> 
> 
> 
> Error: incorrect version number for feature
> 
> --> Detail:  Line: (null)
> 
> --> Source:  output_TrickPlay_Video_8bit.m3u8
> 
> If I manually edit the file and change the version value to 4, validation
> is successful.
> 
> I have upgraded ffmpeg to the latest version but the problem remains.
> 
> Is there a way for me to force #EXT-X-VERSION:4 ?
> 
> Here is my command and the console output:
> 
> ffmpeg \
> -ss 00:00:00.000 -t 00:00:30.000 -i input_23.98fps.mxf \
> -filter_complex \
> "[0:v:0]format=pix_fmts=yuv420p[vconcat420p8bit]; \
> [vconcat420p8bit]split=3[vconcat1][vconcat2][vconcat3]; \
> [vconcat3]fps=1.001000[vconcat1fps]; \
> [0:a:0][0:a:1]join=inputs=2:channel_layout=stereo[stereo]" \
> -map "[vconcat1]" -f hls -hls_list_size 0 -hls_time 6.006
> -hls_playlist_type vod -an -vcodec libx264 -flags +cgop -g 48 -b:v 2500k
> -maxrate 2500k -bufsize 2500k -x264opts
> nal-hrd=cbr:bframes=0:keyint=48:min-keyint=48:scenecut=-1 \
> output_T0_Video_8bit.m3u8 \
> -map "[vconcat2]" -f hls -hls_list_size 0 -hls_time 6.006
> -hls_playlist_type vod -an -vcodec libx264 -flags +cgop -g 48 -b:v 250k
> -maxrate 250k -bufsize 250k -x264opts
> nal-hrd=cbr:bframes=0:keyint=48:min-keyint=48:scenecut=-1 \
> output_T1_Video_8bit.m3u8 \
> -map "[stereo]" -f hls -hls_list_size 0 -hls_time 6.006 -hls_playlist_type
> vod -vn -acodec libfdk_aac -b:a 120k -ar 48000 NEW_output_T1_Audio.m3u8 \
> -map "[vconcat1fps]" -f hls -hls_list_size 0 -hls_time 6.006
> -hls_playlist_type vod -hls_flags iframes_only -an -vcodec libx264 -intra
> -b:v 250k -maxrate 250k -bufsize 250k \
> output_TrickPlay_Video_8bit.m3u8 \
> 
> ffmpeg version git-2021-01-13-f6477ac9 Copyright (c) 2000-2021 the FFmpeg
> developers
>  built with Apple clang version 12.0.0 (clang-1200.0.32.28)
>  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-f6477ac_6
> --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl
> --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus
> --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx
> --enable-libx264 --enable-libx265 --enable-libfontconfig
> --enable-libfreetype --enable-frei0r --enable-libass --enable-demuxer=dash
> --disable-libjack --disable-indev=jack --enable-opencl
> --enable-videotoolbox --disable-htmlpages --enable-libfdk-aac
> --enable-nonfree
>  libavutil  56. 63.101 / 56. 63.101
>  libavcodec 58.117.100 / 58.117.100
>  libavformat58. 65.101 / 58. 65.101
>  libavdevice58. 11.103 / 58. 11.103
>  libavfilter 7. 95.100 /  7. 95.100
>  libswscale  5.  8.100 /  5.  8.100
>  libswresample   3.  8.100 /  3.  8.100
>  libpostproc55.  8.100 / 55.  8.100
> Guessed Channel Layout for Input Stream #0.2 : mono
> Guessed Channel Layout for Input Stream #0.3 : mono
> Input #0, mxf, from 'input_23.98fps.mxf':
>  Metadata:
>operational_pattern_ul: 060e2b34.04010101.0d010201.01010900
>uid : ec3f5416-a722-1dcc-8f60-d4f34e4a603d
>generation_uid  : 296bd6eb-2ca9-1321-bbef-5f5f4cfc10ec
>company_name: Telestream Inc.
>product_name: Telestream Media Framework - Release TXGP
>product_version : 2016.30.183822
>modification_date: 2020-12-15T15:24:55.00Z
>product_uid : 11350ec5-148a-1010-aaca-d2c1000f040a
>material_package_umid:
> 0x060A2B340101010501010F1213296BD6EB2CA90321BB1F5F9F4CFC10ECBED4ED
>timecode: 00:58:30:00
>  Duration: 00:45:07.12, start: 0.00, bitrate: 93297 kb/s
>Stream #0:0: Data: none
>Metadata:
>  file_package_umid:
> 0x060A2B340101010501010F12135106454D99258E516513059C33EC3F5416A722
>  data_type   : vbi_vanc_smpte_436M
>Stream #0:1: Video: h264 (High 4:2:2 Intra), yuv422p10le(pc, bt709,
> progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 23.98
> tbn, 47.95 tbc
>Metadata:
>  file_package_umid:
> 0x060A2B340101010501010F12135106454D99258E516513059C33EC3F5416A722
>Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
>Metadata:
>  file_package_umid:
> 0x060A2B340101010501010F12135106454D99258E516513059C33EC3F5416A722
>Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
>Metadata:
>  file_package_umid:

[FFmpeg-user] Use of -hls_flags iframes_only results in incorrect EXT-X-VERSION value

2021-01-19 Thread Bruce Roberts
Hello,

I'm trying to generate Apple mediastreamvalidator compliant HLS using
ffmpeg and have very nearly achieved that.

The only remaining problem is that use of " -hls_flags iframes_only"
correctly adds the #EXT-X-I-FRAMES-ONLY tag to my trickplay m3u8 but it
doesn't increment the #EXT-X-VERSION value from 3 to 4.

The validator then complains as follows:



MUST fix issues





Error: incorrect version number for feature

--> Detail:  Line: (null)

--> Source:  output_TrickPlay_Video_8bit.m3u8

If I manually edit the file and change the version value to 4, validation
is successful.

I have upgraded ffmpeg to the latest version but the problem remains.

Is there a way for me to force #EXT-X-VERSION:4 ?

Here is my command and the console output:

ffmpeg \
-ss 00:00:00.000 -t 00:00:30.000 -i input_23.98fps.mxf \
-filter_complex \
"[0:v:0]format=pix_fmts=yuv420p[vconcat420p8bit]; \
[vconcat420p8bit]split=3[vconcat1][vconcat2][vconcat3]; \
[vconcat3]fps=1.001000[vconcat1fps]; \
[0:a:0][0:a:1]join=inputs=2:channel_layout=stereo[stereo]" \
-map "[vconcat1]" -f hls -hls_list_size 0 -hls_time 6.006
-hls_playlist_type vod -an -vcodec libx264 -flags +cgop -g 48 -b:v 2500k
-maxrate 2500k -bufsize 2500k -x264opts
nal-hrd=cbr:bframes=0:keyint=48:min-keyint=48:scenecut=-1 \
output_T0_Video_8bit.m3u8 \
-map "[vconcat2]" -f hls -hls_list_size 0 -hls_time 6.006
-hls_playlist_type vod -an -vcodec libx264 -flags +cgop -g 48 -b:v 250k
-maxrate 250k -bufsize 250k -x264opts
nal-hrd=cbr:bframes=0:keyint=48:min-keyint=48:scenecut=-1 \
output_T1_Video_8bit.m3u8 \
-map "[stereo]" -f hls -hls_list_size 0 -hls_time 6.006 -hls_playlist_type
vod -vn -acodec libfdk_aac -b:a 120k -ar 48000 NEW_output_T1_Audio.m3u8 \
-map "[vconcat1fps]" -f hls -hls_list_size 0 -hls_time 6.006
-hls_playlist_type vod -hls_flags iframes_only -an -vcodec libx264 -intra
-b:v 250k -maxrate 250k -bufsize 250k \
output_TrickPlay_Video_8bit.m3u8 \

ffmpeg version git-2021-01-13-f6477ac9 Copyright (c) 2000-2021 the FFmpeg
developers
  built with Apple clang version 12.0.0 (clang-1200.0.32.28)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-f6477ac_6
--enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl
--enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus
--enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-libfontconfig
--enable-libfreetype --enable-frei0r --enable-libass --enable-demuxer=dash
--disable-libjack --disable-indev=jack --enable-opencl
--enable-videotoolbox --disable-htmlpages --enable-libfdk-aac
--enable-nonfree
  libavutil  56. 63.101 / 56. 63.101
  libavcodec 58.117.100 / 58.117.100
  libavformat58. 65.101 / 58. 65.101
  libavdevice58. 11.103 / 58. 11.103
  libavfilter 7. 95.100 /  7. 95.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
Guessed Channel Layout for Input Stream #0.2 : mono
Guessed Channel Layout for Input Stream #0.3 : mono
Input #0, mxf, from 'input_23.98fps.mxf':
  Metadata:
operational_pattern_ul: 060e2b34.04010101.0d010201.01010900
uid : ec3f5416-a722-1dcc-8f60-d4f34e4a603d
generation_uid  : 296bd6eb-2ca9-1321-bbef-5f5f4cfc10ec
company_name: Telestream Inc.
product_name: Telestream Media Framework - Release TXGP
product_version : 2016.30.183822
modification_date: 2020-12-15T15:24:55.00Z
product_uid : 11350ec5-148a-1010-aaca-d2c1000f040a
material_package_umid:
0x060A2B340101010501010F1213296BD6EB2CA90321BB1F5F9F4CFC10ECBED4ED
timecode: 00:58:30:00
  Duration: 00:45:07.12, start: 0.00, bitrate: 93297 kb/s
Stream #0:0: Data: none
Metadata:
  file_package_umid:
0x060A2B340101010501010F12135106454D99258E516513059C33EC3F5416A722
  data_type   : vbi_vanc_smpte_436M
Stream #0:1: Video: h264 (High 4:2:2 Intra), yuv422p10le(pc, bt709,
progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 23.98
tbn, 47.95 tbc
Metadata:
  file_package_umid:
0x060A2B340101010501010F12135106454D99258E516513059C33EC3F5416A722
Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
Metadata:
  file_package_umid:
0x060A2B340101010501010F12135106454D99258E516513059C33EC3F5416A722
Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
Metadata:
  file_package_umid:
0x060A2B340101010501010F12135106454D99258E516513059C33EC3F5416A722
Stream mapping:
  Stream #0:1 (h264) -> format
  Stream #0:2 (pcm_s24le) -> join:input0
  Stream #0:3 (pcm_s24le) -> join:input1
  split:output0 -> Stream #0:0 (libx264)
  split:output1 -> Stream #1:0 (libx264)
  join -> Stream #2:0 (libfdk_aac)
  fps -> Stream #3:0 (libx264)
Press [q] to stop, [?] for 

Re: [FFmpeg-user] ffmpeg with vulkan and or opencl

2021-01-19 Thread owen s
Hi Carl

I built ffmpeg from git:
https://gist.github.com/teamblubee/21937f6b606c6577f8c2a40da76d64e5

here's the output from ffmpeg:
ffmpeg version N-100671-gc48110a4a4 Copyright (c) 2000-2021 the FFmpeg
developers
  built with gcc 10 (Ubuntu 10.2.0-13ubuntu1)
  configuration: --prefix=/home/bb/Dev/ffmpeg_build/build
--extra-cflags='-I/home/bb/Dev/ffmpeg_build/build/include -I/usr/include'
--extra-ldflags='-L/home/bb/Dev/ffmpeg_build/build/lib
-L/home/bb/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu
-Wl,-rpath=/home/bb/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu -ldrm
-L/usr/lib' --pkg-config-flags=--static --extra-libs='-lpthread -lm'
--bindir=/home/bb/Dev/ffmpeg_build/bin --arch=amd64 --disable-shared
--disable-ffprobe --disable-ffplay --disable-gnutls --enable-openssl
--enable-zlib --enable-librtmp --enable-static --enable-chromaprint
--enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-nonfree --enable-vdpau
--enable-ladspa --enable-libaom --enable-libbs2b --enable-libcaca
--enable-libcodec2 --enable-libdav1d --enable-libfontconfig
--enable-libfribidi --enable-libgme --enable-libopenjpeg --enable-librsvg
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh
--enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libwebp
--enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi
--enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl
--enable-sdl2 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm
--enable-libiec61883 --enable-libass --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-libmysofa --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-librabbitmq
--enable-libvorbis --enable-libvpx --enable-libflite --enable-chromaprint
--enable-frei0r
  libavutil  56. 63.101 / 56. 63.101
  libavcodec 58.117.101 / 58.117.101
  libavformat58. 65.101 / 58. 65.101
  libavdevice58. 11.103 / 58. 11.103
  libavfilter 7. 96.100 /  7. 96.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options]
outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


ffmpeg-git -hide_banner -hwaccels
Hardware acceleration methods:
vdpau
vaapi
drm
opencl

trying to run this command
ffmpeg-git -y \
-loglevel debug \
-hwaccel vaapi -hwaccel_device /dev/dri/renderD128 \
-loop 1 -r 4.8 -i ./image.jpg \
-stream_loop -1 -i ./audio.mp3 \
-c:v h264_vaapi -pix_fmt vaapi_vld \
-b:a 128k -ar 44100 -ac 2 -acodec aac \
-r 30 -g 60  \
-f flv /dev/null

I get this error: http://0x0.st/-i1t.txt

How can I actually use any of these hardware accelerated options?

On Mon, Jan 18, 2021 at 5:34 AM Carl Eugen Hoyos  wrote:

> Am Sa., 16. Jan. 2021 um 19:13 Uhr schrieb owen s :
> >
> > I have installed opencl and vulkan drivers on linux: Linux
> > 5.8.0-7630-generic #32~1609193707~20.10~781bb80-Ubuntu SMP Tue Jan 5
> > 21:29:56 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
> >
> > I am using ffmpeg version:
> > ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg
> developers
> > built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)
>
> Please test current FFmpeg git head before asking questions here.
>
> > I am running this ffmpeg command
> > ffmpeg -y -hwaccel any \
> > -loop 1 -framerate 30 -re \
> > -hwaccel dxva2 \
>
> I may misunderstand your question but there is no dxva2 on Linux.
>
> > -i ./1280x720.jpg \
> > -stream_loop -1 -re \
> > -i ./audio.mp3 \
> > -vcodec libx264 -pix_fmt yuv420p \
> > -b:v 2500k -maxrate 2500k -bufsize 1k \
> > -preset slow -tune stillimage \
> > -b:a 128k -ar 44100 -ac 2 -acodec aac \
> > -af "dynaudnorm=f=150:g=15" \
> > -g 60 \
> > -f flv tmp.flv
>
> 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] make: *** [ffbuild/common.mak:67: libavfilter/vf_nnedi.o] Error 1

2021-01-19 Thread Hongyi Zhao
On Ubuntu 20.10, I try to compile the latest git master version of
ffmpeg as below:

# In the needed prerequisites and execute the following command:
$ sudo apt-get build-dep ffmpeg
$ git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg.git
$ cd ffmpeg.git
$ ./configure  --enable-rpath--enable-gpl--enable-version3
--enable-nonfree--enable-shared--enable-small--enable-gray
   --enable-avresample--enable-avisynth--enable-chromaprint
--enable-frei0r--enable-gcrypt--enable-gmp--enable-ladspa
  --enable-libaom--enable-libaribb24--enable-libass
--enable-libbluray--enable-libbs2b--enable-libcaca
--enable-libcelt--enable-libcdio--enable-libcodec2
--enable-libdav1d--enable-libdc1394--enable-libfdk-aac
--enable-libflite--enable-libfontconfig--enable-libfreetype
--enable-libfribidi--enable-libgme--enable-libgsm
--enable-libiec61883--enable-libjack--enable-libklvanc
--enable-liblensfun--enable-libmodplug--enable-libmp3lame
--enable-libopencore-amrnb--enable-libopencore-amrwb
--enable-libopenh264--enable-libopenjpeg--enable-libopenmpt
--enable-libopus--enable-libpulse--enable-librabbitmq
--enable-librsvg--enable-librubberband--enable-librtmp
--enable-libshine--enable-libsnappy--enable-libsoxr
--enable-libspeex--enable-libsrt--enable-libssh
--enable-libtesseract--enable-libtheora--enable-libtwolame
--enable-libv4l2--enable-libvidstab--enable-libvmaf
--enable-libvo-amrwbenc--enable-libvorbis--enable-libvpx
--enable-libwebp--enable-libx264--enable-libx265
--enable-libxavs2--enable-libdavs2--enable-libxcb
--enable-libxcb-shm--enable-libxcb-xfixes--enable-libxcb-shape
   --enable-libxvid--enable-libxml2--enable-libzmq
--enable-libzvbi--enable-lv2--enable-libmysofa
--enable-openal--enable-opencl--enable-opengl
--enable-openssl--enable-pocketsphinx--enable-vulkan
--enable-libdrm--enable-libmfx--enable-pic--enable-thumb
 --enable-lto--enable-hardcoded-tables--enable-extra-warnings
  --enable-memory-poisoning--enable-ftrapv
--enable-neon-clobber-test--enable-xmm-clobber-test
--enable-random--enable-linux-perf --disable-avresample

$ make
[...]
libavfilter/vf_nnedi.c: At top level:
libavfilter/vf_nnedi.c:819:13: error: conflicting types for ‘read’
  819 | static void read(float *dst, size_t n, const float **data)
  | ^~~~
In file included from /usr/include/unistd.h:1183,
 from ./libavutil/timer.h:35,
 from ./libavutil/internal.h:42,
 from ./libavutil/common.h:532,
 from libavfilter/vf_nnedi.c:24:
/usr/include/x86_64-linux-gnu/bits/unistd.h:36:1: note: previous
definition of ‘read’ was here
   36 | read (int __fd, void *__buf, size_t __nbytes)
  | ^~~~
libavfilter/vf_nnedi.c: In function ‘subtract_mean_predictor’:
libavfilter/vf_nnedi.c:982:27: warning: comparison of integer
expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long
unsigned int’} [-Wsign-compare]
  982 | for (int k = 0; k < filter_size; k++)
  |   ^
libavfilter/vf_nnedi.c:986:23: warning: comparison of integer
expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long
unsigned int’} [-Wsign-compare]
  986 | for (int k = 0; k < filter_size; k++)
  |   ^
libavfilter/vf_nnedi.c:992:27: warning: comparison of integer
expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long
unsigned int’} [-Wsign-compare]
  992 | for (int k = 0; k < filter_size; k++) {
  |   ^
libavfilter/vf_nnedi.c:1006:27: warning: comparison of integer
expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long
unsigned int’} [-Wsign-compare]
 1006 | for (int k = 0; k < filter_size; k++) {
  |   ^
libavfilter/vf_nnedi.c:1011:23: warning: comparison of integer
expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long
unsigned int’} [-Wsign-compare]
 1011 | for (int k = 0; k < filter_size; k++)
  |   ^
libavfilter/vf_nnedi.c:1016:30: warning: comparison of integer
expressions of different signedness: ‘unsigned int’ and ‘int’
[-Wsign-compare]
 1016 | for (unsigned nn = 0; nn < nns; nn++) {
  |  ^
make: *** [ffbuild/common.mak:67: libavfilter/vf_nnedi.o] Error 1


Any hints for solving this problem are highly appreciated.

Regards,
--
Assoc. Prof. Hongyi Zhao 
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China
___
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