[FFmpeg-user] dshow and gdigrab formats missing NOSEEK flags?

2021-05-24 Thread Diederick C. Niehorster
Dear Sir, Madam, I am trying to figure out whether a format is seekable. It was suggested to me to check the context->iformat (AVInputFormat) flags and whether read_seek/read_seek2 are non-NULL. That however does not work correctly for the dshow and gdigrab avdevice input formats, as these do not

Re: [FFmpeg-user] help: I use av_err2str function in c++, it occurs " error: taking address of temporary array" when build.

2021-06-10 Thread Diederick C. Niehorster
That macro doesn't work in C++. use: char a[AV_ERROR_MAX_STRING_SIZE] = { 0 }; av_make_error_string(a, AV_ERROR_MAX_STRING_SIZE, errCode_); On Thu, Jun 10, 2021 at 12:40 PM 沈海煌 wrote: > > I use av_err2str function in c++, it occurs " error: taking address of > temporary array" when build. > >

Re: [FFmpeg-user] Bad dst image pointers

2021-07-12 Thread Diederick C. Niehorster
av_frame_alloc alone is not enough, you also need to allocate the memory for the image data, e.g. using av_image_alloc see e.g. https://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding_encoding_8c-example.html On Mon, Jul 12, 2021 at 1:09 PM 李罗 wrote: > > > I have already connected and opened c

Re: [FFmpeg-user] lavfi-preview

2022-03-30 Thread Diederick C. Niehorster
Hi Paul, On Wed, Mar 30, 2022 at 1:53 PM Paul B Mahol wrote: > > Hello, > > I would like to inform you about the new tool, located here: > > https://github.com/richardpl/lavfi-preview > > It is GUI filtergraph editor and foremost ffmpeg's libavfilter filtergraph > preview tool. > > It is in early

Re: [FFmpeg-user] Change device setting from CLI?

2022-04-11 Thread Diederick C. Niehorster
Hi Steve, On Mon, Apr 11, 2022, 11:47 Steve Russell wrote: > Ah, that's useful, thanks - I'll take a look at OBS Studio. > > I do, however, think there should be a way to do what I want with ffmpeg. > If the GUI tool can change the settings, it's hard to believe that there's > not a command line

Re: [FFmpeg-user] failed to compile with av_ts2timestr

2022-05-28 Thread Diederick C. Niehorster
On Sun, May 29, 2022 at 4:04 AM Bang He wrote: > > my application code will call some ffmpeg api. > > here is my code which call ffmpeg api: > printf("pts %s\n", av_ts2timestr(packet.pts, stream->time_base)); > > error when compiled: > ffmpeg/include/libavutil/timestamp.h:76:83: error: taking addr

Re: [FFmpeg-user] lavfi-preview

2022-10-31 Thread Diederick C. Niehorster
Hi Paul, On Mon, Oct 31, 2022 at 10:35 AM Paul B Mahol wrote: > > On 4/24/22, Bang He wrote: > > hwo to run it > > > > There are now binaries auto build for Windows and Linux and are ready > for download. > All for 64bit. This is super! Really nice to play with. I have trouble understanding one

Re: [FFmpeg-user] lavfi-preview

2022-10-31 Thread Diederick C. Niehorster
Hi Paul, On Mon, Oct 31, 2022 at 11:51 AM Paul B Mahol wrote: > > On 10/31/22, Diederick C. Niehorster wrote: > > So more generally, how to preview and then edit the filter graph? > > If it played out and video is gone, just press Ctrl+Enter again > and after that Shift + Q

Re: [FFmpeg-user] To make a PTS, FFmpeg is truncating *up*

2024-02-15 Thread Diederick C. Niehorster
Hi Mark, On Thu, Feb 15, 2024, 19:42 Mark Filipak wrote: > Here is my first finding. > Can someone who reads 'C' code locate the code and investigate? > As told to you many times now, you need to provide a complete command line, with accessible input files, so that others can reproduce. Else n

Re: [FFmpeg-user] can swscale handle AV_PIX_FMT_YUV444P input/output?

2024-09-04 Thread Diederick C. Niehorster
On Thu, Sep 5, 2024 at 8:19 AM Andrew Randrianasulu wrote: > > so, I used ffmpeg git up to d9f594209fb1a9c87017034f943dcb311a9d2896 > > make testprog (after ./configure) > > then I ran > > guest@slax:/dev/shm/ffmpeg/libswscale/tests$ ./swscale -dst yuv444p > > yuv444.log > cat yuv444.log | grep f

Re: [FFmpeg-user] -profile is ambiguous

2025-08-08 Thread Diederick C. Niehorster
Its not. Provide the command line that causes this and the full ffmpeg output, including the header showing the header and the eventual error On Fri, Aug 8, 2025, 20:47 Mark Filipak wrote: > On 08/08/2025 14.01, Reindl Harald wrote: > > Am 08.08.25 um 17:35 schrieb Mark Filipak: > >> FFmpeg is c

Re: [FFmpeg-user] -profile is ambiguous

2025-08-08 Thread Diederick C. Niehorster
You have the line: set _CODEv_=-map "[v]" -c:v mpeg2video -profile simple -level 3 On Fri, Aug 8, 2025, 23:44 Mark Filipak wrote: > On 08/08/2025 16.30, Diederick C. Niehorster wrote: > > Its not. Provide the command line that causes this and the full ffmpeg > > out