[Libav-user] Example hw_decode.c runs with error on MacOS

2024-04-10 Thread Richard Hu
Hello, I'm trying to figure out how hardware video decoding works on MacOS, but I could not get the example program (doc/examples/hw_decode.c) to work. When I run it with any video file, it complains "Failed to get HW surface format". The full output is uploaded here: https://pastebin.com/Tz1VkYgq

Re: [Libav-user] AVFrame pts and av_usleep funciton.

2023-08-30 Thread Richard Hussong
ase ) where "video_timebase" is the timebase of the video PTS values and "us_timebase" is the microsecond timebase: num = 1, den = 100. - Richard Hussong > > In data lunedì 21 agosto 2023 11:15:06 CEST, Paul B Mahol ha scritto: > > > On Mon, Aug 21, 2023 at

Re: [Libav-user] Quicksync decoding problem when there are 2 video cards

2023-06-20 Thread Richard Lince
mpeg.org/mailman/listinfo/libav-user To unsubscribe, visit link above, or email libav-user-requ...@ffmpeg.org with subject "unsubscribe". Best Regards, Richard Lince, Founder & Managing Director bluebox.video <https://www.bluebox.video> +44(0)7841665146 logo__

Re: [Libav-user] Encoding Project Assistance (paid)

2022-08-22 Thread Richard Lince
*---source code attached* --Reynolds Best Regards, Richard Lince, Founder & Managing Director bluebox.video <https://www.bluebox.video> +44(0)7841665146 logo___ Libav-user mailing list Libav-user@ffmpeg.org https://ffmpeg.org/mailma

Re: [Libav-user] Encoding Project Assistance (paid)

2022-08-19 Thread richard . lince
Hi, is the AV out of sync by a constant or does it drift further over time?What information do you have on your timestamps?What format is the audio on the wire for you to have to decode it?On 19 Aug 2022 19:22, Reynolds Kosloskey wrote: Hello all! I am working on a hobby project that does

Re: [Libav-user] Output rawvideo to stdin

2022-03-23 Thread Richard Hussong
On Wed, Mar 23, 2022 at 2:53 AM Hillel Rosensweig via Libav-user < libav-user@ffmpeg.org> wrote: > Hello all, > > I am trying to output raw video (from file or device) > packets to stdin so that they can be picked up by > another program running on my system. > > Any suggestions on how to do this

Re: [Libav-user] H264 intra frame coding

2021-04-28 Thread Richard Hussong
ve_packet until you get an AVERROR_EOF return. That will return all the queued packets in the codec. -- > *Van:* Libav-user namens Richard Hussong < > rhuss...@westpond.com> > *Verzonden:* dinsdag 27 april 2021 18:47 > *Aan:* This list is about usi

Re: [Libav-user] H264 intra frame coding

2021-04-27 Thread Richard Hussong
On Sun, Apr 25, 2021 at 8:15 PM laddoe wrote: > Hello, > > I'm trying to use h264 with intra frame coding, but I can't seem to > understand why my code isn't fully working. I can see that the first 13 > frames aren't written to the file while all the other frames are. I have > 120 images that nee

Re: [Libav-user] Buffered encoded images not saved

2021-03-31 Thread Richard Hussong
need to call avcodec_send_frame once more with a NULL frame pointer to put the encoder in draining mode, then receive as usual. See the ffmpeg docs at https://ffmpeg.org/doxygen/4.0/group__lavc__encdec.html for further details. - Richard > ___ > L

Re: [Libav-user] FFMPEG decode video packet with avcodec_send_packet avcodec_receive_frame

2020-09-11 Thread Richard Hussong
. When encoding, it is the same, with avcodec_send_frame and avcodec_receive_packet. - Richard On Tue, Sep 8, 2020 at 6:09 AM Jérôme SALAYET wrote: > Hello, > > I recently want to use the last FFMPEG release version to decode video > packets. avcodec_decode_video2 is deprecated so I

Re: [Libav-user] [NEWSLETTER] help

2020-07-31 Thread Richard Hussong
The interrupt_callback is not an error callback; it is called periodically during length operations. You need to return 0 from your decode_interrupt() if you want to continue processing. Otherwise, you get the "immediate exit requested" error. - Richard On Fri, Jul 31, 2020 at 10:42

Re: [Libav-user] build FFMPEG ubuntu 16

2020-06-08 Thread Richard Hussong
On Mon, Jun 8, 2020 at 8:16 AM retep peter wrote: > Hello Richard, > How can I download ffmpeg 2.8.15 source for Ubuntu developers? > You can download the original source package and the Ubuntu patches from https://packages.ubuntu.com/source/xenial/ffmpeg (look near the bottom of

Re: [Libav-user] build FFMPEG ubuntu 16

2020-06-06 Thread Richard Hussong
e libraries will be installed somewhere, by default /usr/local/lib, I believe. I don't know for sure if libavutil.so.54 is compatible with libavutil-ffmpeg.so.54, though it is likely that it is. If so, you may be able to use LD_PRELOAD to load the libraries you need before running, but I do

Re: [Libav-user] Passing Range header in RTSP PLAY

2020-05-30 Thread Richard Lince
also allowed multiple PLAY commands to be sent without the PAUSE/PLAY as an optimization option. Cheers, Richard. On 28/05/2020 23:18, Demers, Sebastien wrote: Hi All, I'm using ffmpeg to stream from our video server live stream (Genetec Security Center 5.9.1). It is recording as well th

Re: [Libav-user] Output to memory instead of file

2020-05-20 Thread Richard Hussong
n_buf(&avContext->pb, &buffer); if (nbytes > 0) { // whatever } av_free(buffer); You need to do this little dance for each block of output data you want to process. - Richard > Kind regards > > Jesper > > ___ > Libav-user ma

Re: [Libav-user] MJPEG Quantization tables

2020-05-18 Thread Richard Hussong
Sorry, but I've never modified those values myself and I don't know how they work. I think you'll have to read the source code for the JPEG encoder to find out. - Richard On Mon, May 18, 2020 at 1:37 PM Виктор Мулин <17se...@gmail.com> wrote: > Thanks for the an

Re: [Libav-user] MJPEG Quantization tables

2020-05-18 Thread Richard Hussong
On Mon, May 18, 2020 at 7:38 AM Виктор Мулин <17se...@gmail.com> wrote: > Hello! When using the mjpeg codec to convert an image from bmp to jpg > format, a picture with one quantization table is created. I need two > standard tables described in the jpeg iso / iec 10918-1 T.81 standard in > Append

Re: [Libav-user] one question about movenc.c

2020-05-11 Thread Richard Hussong
On Sun, May 10, 2020 at 5:16 AM qw wrote: > Hi, > > I have one question about movenc.c: > > https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/movenc.h#L116 > > What does it mean, i.e. 'active picture (w/o VBI) height for D-10/IMX' ? > And, what is D-10/IMX? > VBI stands for "vertical blan

Re: [Libav-user] How to extract audio from an rtsp stream

2020-05-08 Thread Richard Hussong
"av_samples_alloc Error!!!"); > > else { > > Ret= swr_convert(pSwrContext, static_cast(&buffer), > pAVFrame->nb_samples, (const uint8_t**)pAVFrame->data, > pAVFrame->nb_samples); > > if (Ret< 0) emit UpdateLog("swr_convert Error!!!")

Re: [Libav-user] How to extract audio from an rtsp stream

2020-05-01 Thread Richard Hussong
On Thu, Apr 30, 2020 at 9:27 AM Denis Gottardello wrote: > > > Hi, I need to extract audio packets from an rtsp stream and to listen them > with a Qt program. > > The examples are based on avcodec_decode_audio4 function but it is > deprecated. > > Now I already have an audio packet. Now I have to

Re: [Libav-user] rtsp base64 encoded credentials

2020-04-14 Thread Richard Lince
Excellent Richard you're correct, Thought I must be missing something here. I've tested with multiple FFMPEG / Live555 rtsp server implementations with success. Cheers and keep well. On 13/04/2020 21:24, Richard Hussong wrote: On Mon, Apr 13, 2020 at 11:43 AM Paul B Mahol &

Re: [Libav-user] rtsp base64 encoded credentials

2020-04-13 Thread Richard Hussong
On Mon, Apr 13, 2020 at 11:43 AM Paul B Mahol wrote: > On 4/13/20, Richard Lince wrote: > > Hi all, > > > > I've done a little more digging with a bug which I believe must be quite > > common, string parsing at "av_url_split" for authentication

Re: [Libav-user] rtsp base64 encoded credentials

2020-04-13 Thread Richard Lince
55e7-07be-38b7-83a3-fec9072713de" last commit (however always perhaps broken) https://github.com/FFmpeg/FFmpeg/commit/554576b6cfe79a91d37e14d3617ca417562085db#diff-b45fad75a4dfb82ef50e978d38dc2649 Cheers. Rich. On 08/04/2020 16:42, Richard Lince wrote: Hi, I'm looking

[Libav-user] rtsp base64 encoded credentials

2020-04-08 Thread Richard Lince
Hi, I'm looking at a way to use a base64 digest string as input into the "avformat_open_input" call for the credentials portion. Sure that you would normally use: rtsp://user:pass@192.168.0.30/live/ch00_0 format as an example, however, this format does not account for invalid characters that ar

Re: [Libav-user] Sending AVpacket data over socket

2019-12-10 Thread Richard Hussong
On Mon, Dec 9, 2019 at 12:19 PM Philippe Noël < philippe_n...@college.harvard.edu> wrote: > Hi, > > What is the most efficient/fastest way to send AVpacket frame data (stored > in data) through a socket? > > I understand that since it is a byte array, I think I would need to > memcpy + serialize i

Re: [Libav-user] av_read_frame() hangup (no timeout)

2019-11-15 Thread Richard Hussong
give you specific help with timing out, but it isn't hard to construct a timeout for yourself. - Richard > > ___ > Libav-user mailing list > Libav-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/libav-user > > To unsub

Re: [Libav-user] Request for Help - Error - h264_v4l2m2m @ 0x114ac00] Could not find a valid device

2019-10-11 Thread Richard Hussong
bly just pick one of its presets and use that. The accepted answer to this old post shows how you can do that using av_dict_set(): https://stackoverflow.com/questions/19146587/how-do-you-enable-veryfast-libx264-preset-from-code-using-libavcodec - Richard On Tue, Oct 8, 2019 at 1:58 PM Adhuran Adhu

Re: [Libav-user] Request for Help - Error - h264_v4l2m2m @ 0x114ac00] Could not find a valid device

2019-10-08 Thread Richard Hussong
you what went wrong. - Richard On Tue, Oct 8, 2019 at 1:22 PM Adhuran Adhuran via Libav-user < libav-user@ffmpeg.org> wrote: > Dear All, > > I am trying to use ffmpeg source code top encode video streams in linux. I > used the code provided in this link > https://ffmpeg.org/do

Re: [Libav-user] swscaler bad src image pointers, can not figure out why.

2019-09-23 Thread Richard Hussong
On Sun, Sep 15, 2019 at 9:17 PM Dorian Green wrote: > hello, I am trying to become more adept at using the libav libraries and have > > practising them. The problem I am having is that swscale at the bottom of my > > code listed here always returns bad src image pointers. this below is the main >

Re: [Libav-user] Creating seekable video files without seekable IO

2019-09-19 Thread Richard Hussong
Ondrej - If you are in charge of the receiving client, it could receive the non-seekable stream and re-mux it into a seekable container using ffmpeg or the libraries. I don't know any other way to accomplish what you want, but I am not an ffmpeg expert. - Richard Hussong On Wed, Sep 18, 20

Re: [Libav-user] AV_PTS_WRAP_IGNORE

2019-05-29 Thread Richard Hussong
1, it will have the same value as AV_PTS_WRAP_ADD_OFFSET, and there will no longer be a proper enumeration. The code to handle PTS wrap is complicated - I wouldn't mess with it, myself. Since it is in the libavformat core, it could affect all muxers and demuxers. - Richard Hussong On Wed, May 29,

[Libav-user] How can AVFilter tell if input is CFR/VFR, and determine frame rate?

2017-09-30 Thread Richard Ling
Hello, How can an AVFilter determine whether its input is VFR or CFR? If the input is CFR, how can it get the frame rate in FPS? I would like to do this in advance of processing any frames, that is, in init() or config_input(). Please see the implementation below: static int is_vfr(AVFilterLink *

Re: [Libav-user] Problem with h264_videotoolbox and AV_PIX_FMT_YUV420P

2017-02-17 Thread Richard Kern
. No need, I see the issue. Attached is the original picture, and the results of supplying 1-byte aligned and 16-byte aligned YUV to avcodec_encode_video2(). On Feb 17, 2017, at 5:02 PM, Richard Kern wrote: On February 17, 2017 at 4:53:03 PM, Steve Green (steve.gr...@flosports.tv) wrote

Re: [Libav-user] Problem with h264_videotoolbox and AV_PIX_FMT_YUV420P

2017-02-17 Thread Richard Kern
On February 17, 2017 at 4:53:03 PM, Steve Green (steve.gr...@flosports.tv) wrote: This is the basic pipeline that I have: BGRA frames -> sws_scale() -> YUV frames -> avcodec_encode_video2() -> av_interleaved_write_frame() .. and this works perfectly with x264 and most of the time with h264_video

Re: [Libav-user] Problem with h264_videotoolbox and AV_PIX_FMT_VIDEOTOOLBOX

2017-02-17 Thread Richard Kern
On February 17, 2017 at 4:18:38 PM, Steve Green (steve.gr...@flosports.tv) wrote: While trying to debug a problem using YUV420P with h264_videotoolbox, I came across AV_PIX_FMT_VIDEOTOOLBOX in the encoder code. Depending on what I discover here, I might be back in another thread about a YUV issue.

Re: [Libav-user] Problems with H.264 encoding for MP4 files on macOS

2017-01-29 Thread Richard Kern
On January 29, 2017 at 2:25:25 PM, films (postsoup-at-yahoo@ffmpeg.org) wrote: Hi Folks. I am trying to write .mp4 files with H.264 and AAC from generated images and audio. My app is linked to libAVFormat, libAVCodec etc plus some necessary OSX frameworks If I let libAVFormat select the code

Re: [Libav-user] [Audacity-devel] Requesting help to port Audacity to recent FFmpeg

2014-05-23 Thread Richard Ash
found why it didn't work for me - I seem to have been running the wrong binary, not the one I was compiling. Richard ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

Re: [Libav-user] [Audacity-devel] Requesting help to port Audacity to recent FFmpeg

2014-05-20 Thread Richard Ash
dacity to use new gstreamer plug-ins, and every download of Audacity doesn't have to ship with every possible codec library. Richard ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

Re: [Libav-user] creating a new filter...

2013-03-27 Thread Richard Schilling
brary. And the examples provided in the code seem to suggest that i can use filters programmatically, as opposed to just on the command line. I guess I need a better guide on the ins and outs of doing that. Thanks. Richard On Mar 27, 2013, at 5:22 AM, Paul B Mahol wrote: > On 3/26/13, Richar

[Libav-user] error when calling avfilter_graph_create_filter

2013-03-27 Thread Richard Schilling
I think I'm passing all the right parameters to avfilter_graph_create_filter, but I still get a return value of -22, which seems to indicate a parameter problem. I'm missing some detail here…. Can anyone tell me what's wrong with the call to avfilter_graph_create_filter in the function below?

[Libav-user] creating a new filter...

2013-03-26 Thread Richard Schilling
inputs->name = av_strdup("out"); inputs->filter_ctx = buffersink_ctx; inputs->pad_idx = 0; inputs->next = NULL; Thank you in advance. Cheers, Richard Schilling___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

Re: [Libav-user] Passing DVD NAV packets to demuxer

2013-02-15 Thread Richard
re chock-full of metadata and can always be ignored by the caller if they're really not interested. I'd be very grateful for any information on this subject as it's incredibly difficult to pass these packets back via any other route and re-sync them with the other packets.

Re: [Libav-user] [libavcodec] requested bitrate is too low, when using VBR qscale

2012-07-24 Thread Richard H Lee
On 24/07/12 16:28, Nicolas George wrote: Multi-pass encoding is designed to achieve a certain average bitrate, and manage it over the whole file to give more bits to the parts that need more. The -q option sets the quantizer value (which, for any given frame, is directly related to the quality l

[Libav-user] [libavcodec] requested bitrate is too low, when using VBR qscale

2012-07-24 Thread Richard H Lee
? [This also occurs with divverent's encoding branch mplayer2. Additionally when I try to do 2-pass CBR encoding with ffmpeg, I get a segfault as pict_type is a huge number when it is meant to be 1<4 for the index of an array.] Richard == 1st pass stdout: ffmpeg version N-42847-gdc

[Libav-user] 2-pass bitrate problem

2012-06-11 Thread Richard H Lee
g on this bug. But first of all, I would like to know if anyone else has solved it or made progress on it? Richard ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user