Re: [Libav-user] How to clear real-time buffer?

2020-03-30 Thread Roger Pack
>streams[i]; > AVCodecContext *cc = s->codec; > avcodec_flush_buffers(cc); > } > > > > http://lives-video.com > https://www.openhub.net/accounts/salsaman > > > On Fri, Mar 27, 2020 at 1:08 AM Roger Pack wrote: >> >> You'd probably have to dril

Re: [Libav-user] How to clear real-time buffer?

2020-03-26 Thread Roger Pack
You'd probably have to drill into dshow.c and maybe add a method to it? On Thu, Nov 29, 2018 at 6:16 AM DDD ZZZ wrote: > > Hi everybody! > Here's the part of c++ code that I'm using to access my webcam. > > ** >

Re: [Libav-user] Live Video Source Example

2017-04-19 Thread Roger Pack
https://trac.ffmpeg.org/wiki/DirectShow "how to programmatically..." unfortunately the built-in way isn't supported yet. On 4/19/17, Heiner Mueller wrote: > > > Am 18.04.2017 um 13:13 schrieb Marcelo Emmerich: >> Hi, this is not entirely doable with ffmpeg code only, as it

Re: [Libav-user] memory occupancy while recording screen(with audio record)

2016-05-28 Thread Roger Pack
The only way to know if there's a leak is to run some kind of memory profile/analyzer on it in my opinion :) On 5/17/16, 汤明辉 wrote: > using VS2010 in Win7 x64, ffmpeg 2.4.5, > i download a demo to record my screen(with audio record ). > i modified the program so that it can

Re: [Libav-user] how to generate fragmented mp4 files via ffmpeg library

2016-01-12 Thread Roger Pack
On 12/22/15, 方柏棟 wrote: > Dear All, > I have bunch of .h264 raw data, could any one tell me how to use ffmpeg > library to mux .h264 to fragmented mp4 files. > I only know how to generate fragmented mp4 file via ffmpeg.exe, like below, > > ffmpeg -i xx.h264 -vcodec copy -an

Re: [Libav-user] how to generate fragmented mp4 files via ffmpeg library

2016-01-12 Thread Roger Pack
On 1/12/16, Roger Pack <rogerdpa...@gmail.com> wrote: > On 12/22/15, 方柏棟 <berton1...@gmail.com> wrote: >> Dear All, >> I have bunch of .h264 raw data, could any one tell me how to use ffmpeg >> library to mux .h264 to fragmented mp4 files. >> I only know

Re: [Libav-user] Possible memory leak with avcodec_decode_video2

2016-01-12 Thread Roger Pack
On 1/11/16, David Tsulaia wrote: > On Mon, Jan 11, 2016 at 10:52 AM, David Tsulaia > wrote: > >> On Mon, Dec 28, 2015 at 3:26 AM, Carl Eugen Hoyos >> wrote: >> >>> David Tsulaia writes: >>> >>> > ffmpeg version

Re: [Libav-user] Dshow errors when trying to record desktop in Win 10

2015-12-16 Thread Roger Pack
e hard to use the tablet with it off. > > On Tue, Dec 15, 2015 at 7:22 PM, Roger Pack <rogerdpa...@gmail.com> wrote: > >> What version of ffmpeg are you using here? You should not have to >> specify video_size by default it should capture the whole thing. >> &g

Re: [Libav-user] Dshow errors when trying to record desktop in Win 10

2015-12-15 Thread Roger Pack
What version of ffmpeg are you using here? You should not have to specify video_size by default it should capture the whole thing. On 12/14/15, Casey Price wrote: > Hello, > > I'm currently trying to record the desktop of a surface pro 3 running > windows 10 using

Re: [Libav-user] SAP announcements with UDP multicast stream ?

2015-02-05 Thread Roger Pack
mpegts does its own announcing [of streams, anyway] but I'll admit I don't know much about it... On 2/5/15, Binna Gurry binnagu...@gmail.com wrote: Hi all libav / ffmpeg gurus I have been trying to get this working and crawling the forums but I just can't find the solution. What I want,

Re: [Libav-user] Question about avdevice_list_devices() using.

2015-01-15 Thread Roger Pack
AFAIK it's not tied in to dshow as of yet, is this a really big priority? On Wed, Aug 20, 2014 at 8:16 AM, Mike Charikov ch_m...@mail.ru wrote: Hi! I try to use avdevice_list_devices() for getting list of video devices, but don’t clearly understand, how to do that properly. How should I

Re: [Libav-user] [FFmpeg-user] ffmpeg burst traffic problem

2014-03-31 Thread Roger Pack
On 12/5/13, Andrey Utkin andrey.krieger.ut...@gmail.com wrote: ffmpeg lacks UDP output speed smoothing functionality. You can see in libavformat/udp.c in circular_buffer_task() that data is output as soon as it appears. To eliminate bursty output it is needed either to patch ffmpeg or to

Re: [Libav-user] Get the list of Capture device

2013-12-27 Thread Roger Pack
On 11/30/13, Jaafar hamza hamzaesp...@gmail.com wrote: Sorry for my bad English, I try to better explain my problem. I am trying to stream my web cam and audio from my computer to another. I succeeded to do that with ffmpeg command line but I need to do that with a Swing-based application.

Re: [Libav-user] Choppy dshow audio playback with ffplay

2013-04-01 Thread Roger Pack
what if you just record locally (no UDP) does it die? On 12/24/12, Taha Ansari mtaha.ans...@gmail.com wrote: Hi! I have a small test application that sends microphone audio over network. But the audio playback is sometimes very choppy/lossy, and also I initially need to 'seek' ffplay back to

Re: [Libav-user] vlc, latency

2012-11-12 Thread Roger Pack
On 11/8/12, Denis i...@denisgottardello.it wrote: Is there a way for get vlc streaming very quickly and fast in local network without latency? Wrong mailing list? ___ Libav-user mailing list Libav-user@ffmpeg.org

Re: [Libav-user] How can we make two NTP-sync computers appears the same while starting playing the same media file at the same time?

2012-11-12 Thread Roger Pack
mplayer has a udp sync option that may be useful to you. On 11/10/12, 吴立明 Joy Woo mis...@gmail.com wrote: Hi folks, I got a problem while synchronizing two computers’ playing. I have two computers of the same hardware and software, and both of them are sync with a NTP server in the

Re: [Libav-user] How can we use ffserver with Windows

2012-11-12 Thread Roger Pack
On 11/12/12, Wenpeng Zhou zhou.wenp...@rdnet.fi wrote: Hi, Can we use ffsever with windows? I download ffmpeg from http://ffmpeg.zeranoe.com/builds/ But there is no ffserver. So how can I get fferver for windows? build/run it under cygwin perhaps? There are other servers that may work in

Re: [Libav-user] How can we set frame size for live stream?

2012-11-05 Thread Roger Pack
On 10/31/12, Wenpeng Zhou zhou.wenp...@rdnet.fi wrote: Hi, I use the USB camera to capture live video. The default codec context is: Input #0, dshow, from 'video=Mercury USB2.0 Camera': Duration: N/A, start: 58890.453000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p, 1280x720, 30

Re: [Libav-user] soft telecine 29.97 fps

2012-10-30 Thread Roger Pack
When i use ffmpeg to encode an h264 input into mpeg2 video, I notice that even though my h264 file has some frames with pic_struct = 8 indicating frame doubling for soft telecined video, the mpeg2 output has the repeat_first_field set to 0 on all frames. Does the ffmpeg mpeg2 encoder

[Libav-user] getting started wiki page

2012-09-11 Thread Roger Pack
Ok in need of some getting started with libav* documentation, I recently made this page: http://ffmpeg.org/trac/ffmpeg/wiki/Using%20libav* suggestions welcome (also modifying it to improve it greatly welcome). Thanks! -roger- ___ Libav-user mailing list

Re: [Libav-user] swscale speed

2012-09-05 Thread Roger Pack
Maybe on your cpu RAM speed is the bottleneck (i.e. cpu is very fast) so it's able to keep up. Now compare it with lanczos... I have tried to write my own simple downscaler (really simple with no antialasing filtering etc.) and it's speed is fine, so I think that won't be a memory

Re: [Libav-user] swscale speed

2012-09-04 Thread Roger Pack
I have tried to write my own simple downscaler (really simple with no antialasing filtering etc.) and it's speed is fine, so I think that won't be a memory bottleneck gprof perhaps? Or maybe libswscale just needs a naive filter added? -r ___

Re: [Libav-user] swscale speed

2012-08-31 Thread Roger Pack
In the case of scaling I have also not found a big difference while using different interpolations (eg. SWS_BICUBIC vs SWS_POINT) and I think that nearest neighbour should be significantly faster. Is there any optimalization if only decimating (scaling with factor of 2^n) is performed? Maybe

Re: [Libav-user] Why does av_seek_frame() not seek to a keyframe?

2012-08-02 Thread Roger Pack
Could you provide a sample that does not seek to a keyframe with ffmpeg -ss x -i input out.png (I tested this yesterday on random mpeg2video samples and afaict, it did work.) With me, I get this: with this file: http://rogerdpack.t28.net/incoming/sintel.mpg $ ffmpeg -i sintel.mpg -vcodec

Re: [Libav-user] Why does av_seek_frame() not seek to a keyframe?

2012-08-02 Thread Roger Pack
$ ffmpeg -i sintel.mpg -vcodec copy -acodec copy -ss 90.0 starting_at_90.mpg then try and use it again: $ ffmpeg -i starting_at_90.mpg -vframes 1 -f image2 -an snap.jpg I get this warning message: [mpeg2video @ 01f09860] warning: first frame is no keyframe Anybody know if this is

Re: [Libav-user] Why does av_seek_frame() not seek to a keyframe?

2012-08-02 Thread Roger Pack
I believe that does no seeking there. Putting -ss after the input will cause ffmpeg to demux up to the requested timestamp, so it's not quite related to seeking (putting -ss before the input will seek the input file). Since -a/vcoded copy avoids re-encoding, it just copies the packets

Re: [Libav-user] GOP Editing?

2011-11-01 Thread Roger Pack
Is it possible to perform lossless editing of mpeg (or other files) at GOP boundaries with any of the libav* libraries? Are there functions to determine GOP boundaries? if flags AV_PKT_FLAG_KEY http://betterlogic.com/roger/2010/12/how-to-determine-iframes-with-ffprobe/ What do you mean

Re: [Libav-user] MPEGTS and pts/dts

2011-11-01 Thread Roger Pack
[mpegts @ 0x24e5c00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 475200 = -9223372036854775808 that value you maybe AV_NOPTS_VALUE ? (meaning not a timestamp) ? ___ Libav-user mailing list