[Libav-user] decoding/encoding example passes c-priv_data to av_opt_set; shouldn't it just pass c?

2014-12-11 Thread Michael Bradshaw
: av_opt_set_int(ist-dec_ctx, refcounted_frames, 1, 0); Is the encoding/decoding example flawed? Should it be passing c instead of c-priv_data to av_opt_set()? Thanks, Michael Bradshaw [1]: https://www.ffmpeg.org/doxygen/trunk/decoding_encoding_8c-example.html

Re: [Libav-user] Detecting image orientation in pictures from a camera?

2012-11-17 Thread Michael Bradshaw
On Sat, Nov 17, 2012 at 3:41 AM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Michael Bradshaw mjbshaw@... writes: I've got a series of images taken with a camera that I need to process with libav*. Is there any way to check the EXIF data to determine rotation/orientation for the image (so

Re: [Libav-user] Need help for decoding AAC with ffmpeg and separated AVCodecContex

2012-10-31 Thread Michael Bradshaw
On Tue, Oct 30, 2012 at 8:10 PM, lingshan kong konglings...@duoku.com wrote: hi I need some help with decoding AAC stream of audio. What version of FFmpeg libraries are you using? There are some old functions you're using (like avcodec_open()). Also, try following the Audio Decoding (starts at

[Libav-user] Seeking causes the demuxer to skip some packets (after the seek)... why? Bug?

2012-10-25 Thread Michael Bradshaw
I have a weird issue that I'm trying to figure out, and I'm not sure if I'm doing something wrong or if it's a bug in FFmpeg's code, and I'm hoping someone can help me determine which. If I demux a file by simply repeatedly calling av_read_frame(), I get the same output packets as ffprobe

[Libav-user] Is it possible to dynamically reconfigure a filter graph?

2012-10-23 Thread Michael Bradshaw
I'm using avfilter to rescale video (and convert it to the right pixel format) and convert audio (to the right sample format, sample rate, and channel_layout) (I'm also buffering audio using asetnsamples to fill frames with a consistent number of samples). While reading the source video and source

Re: [Libav-user] Is it possible to dynamically reconfigure a filter graph?

2012-10-23 Thread Michael Bradshaw
On Tue, Oct 23, 2012 at 2:38 PM, Stefano Sabatini stefa...@gmail.com wrote: On date Tuesday 2012-10-23 13:03:27 -0600, Michael Bradshaw encoded: I'm using avfilter to rescale video (and convert it to the right pixel format) and convert audio (to the right sample format, sample rate

Re: [Libav-user] reading video with multiple video streams

2012-10-21 Thread Michael Bradshaw
On Sun, Oct 21, 2012 at 2:24 AM, Svetlana Olonetsky svetlana.olonet...@gmail.com wrote: Hi, I am reading video files using ffmpeg in C++. I have some videos from users with multiple video streams. For example, running ffmpeg directly gives stream info: Stream #0:0: Video: mjpeg, yuvj420p,

[Libav-user] How do I properly use swr_set_compensation() in swresample?

2012-10-19 Thread Michael Bradshaw
I'm just wondering more about what swr_set_compensation() does. I'm not fully understanding the docs about it and the ffplay code isn't incredibly clear to me. Can I use it to skip the first few samples of input audio (that is, say my source has samples 0-100, and my output wants samples 20-120,

Re: [Libav-user] How do I seek to the very beginning of a file?

2012-10-18 Thread Michael Bradshaw
On Tue, Oct 16, 2012 at 9:33 PM, Don Moir donm...@comcast.net wrote: Also just don't use AV_SEEK_BYTE because you will end up with logic that is worse. Most things like this lend themselves to timestamps anyway. But agree there were several cases in the past that a seek returned 0 instead of -1

Re: [Libav-user] [libav-user] Memory leak in Mac OS X Lion

2012-10-16 Thread Michael Bradshaw
On Oct 16, 2012 2:11 AM, Quy Pham Sy phamsyqu...@gmail.com wrote: Hi, I made a simple console test base on Dranger 's tutorial code by replace deprecated function by the new versions. here the full source code: https://github.com/phamquy/FFmpeg-tutorial-samples/blob/master/tutorial01.c

Re: [Libav-user] decoding_encoding.c and theora

2012-10-16 Thread Michael Bradshaw
On Tue, Oct 16, 2012 at 12:56 PM, Denis i...@denisgottardello.it wrote: In data lunedì 15 ottobre 2012 16:00:02, Stefano Sabatini ha scritto: decoding_encoding.c only works with stream-based formats, and is only meant to show encoding/decoding API rather than muxing, so in general it won't

[Libav-user] How do I seek to the very beginning of a file?

2012-10-16 Thread Michael Bradshaw
I'm trying to reliably seek to the very start of a file. Seeing as avformat_seek_file is still in beta and isn't finished, I'd rather not rely on it, so I'm using av_seek_frame (plus I've been advised to stay away from avformat_seek_file until it's properly implemented). However, I can't figure

Re: [Libav-user] [lav-user] Memory leaks in Mac OSX Lion

2012-10-16 Thread Michael Bradshaw
On Tue, Oct 16, 2012 at 6:06 PM, Quy Pham Sy phamsyqu...@gmail.com wrote: Hi, [...] What is wrong with these code that might cause the leak? Thanks, Jack Is this an accidental repost? ___ Libav-user mailing list Libav-user@ffmpeg.org

Re: [Libav-user] avcodec_open2 is changing the channels and channel_layout... why?

2012-10-11 Thread Michael Bradshaw
On Thu, Oct 11, 2012 at 4:06 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Michael Bradshaw mbradshaw@... writes: I've just been hunting down a bug in one of our programs, and I tracked it down to the number of channels reported by ffmpeg. When I first open the AVFormatContext and do

Re: [Libav-user] FFmpeg License Violation - What Are My Remedies?

2012-10-10 Thread Michael Bradshaw
On Wed, Oct 10, 2012 at 11:34 AM, Matthew Lawrence matthew.c.lawre...@gmail.com wrote: [...] What steps can I take (other than hiring a lawyer) to assert my rights? Pretty much nothing. You can ask for it all you want, and they can say no all they want. IANAL, so I've no clue who's in the

Re: [Libav-user] FFmpeg License Violation - What Are My Remedies?

2012-10-10 Thread Michael Bradshaw
On Wed, Oct 10, 2012 at 5:33 PM, Michael Bradshaw mbrads...@sorensonmedia.com wrote: On Wed, Oct 10, 2012 at 11:34 AM, Matthew Lawrence matthew.c.lawre...@gmail.com wrote: [...] What steps can I take (other than hiring a lawyer) to assert my rights? Pretty much nothing. You can ask

Re: [Libav-user] Decoded frame upside down

2012-09-06 Thread Michael Bradshaw
On Thu, Sep 6, 2012 at 3:31 PM, Rafael do Nascimento Pereira r...@25ghz.net wrote: [...] The BMP image is shown correctly. I really don't know if i made some mistake in this proccess, or this is the way the ffmpeg library actually works. It's the way BMP files work. They're stored upside

Re: [Libav-user] AVFrame necessary fields to create correctly raw Frame

2012-08-16 Thread Michael Bradshaw
On Thu, Aug 16, 2012 at 1:26 PM, Jorge Fonseca jcbfons...@gmail.com wrote: Hi All, I have a C program using FFmpeg API that: - load bmp files and create a video file. Its works correctly. - Now, i need to create the same video from a RAW data (char array). I allocating a

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

2012-08-05 Thread Michael Bradshaw
On Sun, Aug 5, 2012 at 5:51 AM, Don Moir donm...@comcast.net wrote: I see this has been reported as ticket #1575 but why this is reported as an enhancement and not a bug, god only knows. This should not be a documentation issue and in my way of thinking, its a bug. We don't need gray areas

Re: [Libav-user] Speedup FFmpeg h264 Decoding on Android-Devices

2012-08-04 Thread Michael Bradshaw
On Aug 4, 2012 6:11 AM, Christian Brümmer christian.bruem...@gmx.de wrote: Hi, i am using FFmpeg for H264 Decoding on an Android Device. Out of curiosity, is there a reason you aren't using Android's native decoder? It may be more optimized for the device than FFmpeg too. Sorry I don't know

Re: [Libav-user] generating timecode in a quicktime movie

2012-08-02 Thread Michael Bradshaw
On Thu, Aug 2, 2012 at 9:33 AM, gilles pouliquen gil...@solidanim.comwrote: But yeah I would definitly love to see the ffmbc anyway fork but I can't find the source code :( ... You mean you can't find the FFmbc source? http://code.google.com/p/ffmbc/ --Michael

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

2012-08-02 Thread Michael Bradshaw
On Thu, Aug 2, 2012 at 12:10 PM, Roger Pack rogerdpa...@gmail.com wrote: 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:

Re: [Libav-user] black frame from nothing

2012-08-01 Thread Michael Bradshaw
On Wed, Aug 1, 2012 at 9:27 AM, aviad rozenhek avia...@gmail.com wrote: here's a command line to create a TS file with black frames from nothing in ffmpeg ffmpeg -f lavfi -i color=black:320x240:25 out.ts how do I do the same with avconv? Wrong mailing list? This is the FFmpeg mailing list.

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

2012-07-23 Thread Michael Bradshaw
On Thu, Jul 19, 2012 at 2:01 PM, Michael Bradshaw mbrads...@sorensonmedia.com wrote: [...] I guess we should define what would be considered erroneous seeking to make sure I'm on the same page as everyone, as it's possible I'm not. Would these be considered problematic: 1) Seek is performed

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

2012-07-23 Thread Michael Bradshaw
On Mon, Jul 23, 2012 at 11:12 AM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Michael Bradshaw mbradshaw@... writes: Anyone have any answers on these two things? If the answer to the above would be yes can anyone else verify that ffmpeg -dump -loglevel debug -ss 38 -i 704x480-m2v-ac3.mpg

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

2012-07-23 Thread Michael Bradshaw
On Mon, Jul 23, 2012 at 12:50 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: [...] You are probably right, I assumed that from a users' perspective, the only relevant question is if above command line returns a gray frame or the next keyframe. Ah, I see. I think that's where the confusion is

Re: [Libav-user] ffmpeg programming job

2012-07-22 Thread Michael Bradshaw
On Sat, Jul 21, 2012 at 11:14 AM, max slomoff maxslom...@gmail.com wrote: hello, i would like to offer a job: i am looking for a programmer with skills in ffmpeg and sdi video signals i have 5k to get started got some free time this summer? please respond with a little about your background.

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

2012-07-19 Thread Michael Bradshaw
On Thu, Jul 19, 2012 at 12:18 AM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Michael Bradshaw mbradshaw@... writes: But when I seek, the first packet returned out of the demuxer is not a keyframe packet, and I have to read several (~45ish) packets until I encounter a keyframe. Could you

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

2012-07-19 Thread Michael Bradshaw
On Thu, Jul 19, 2012 at 12:42 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: [...] Afair, Reimar believes the seek function should not try hard to find a keyframe because seeking faster is more important. I think the current functionality is OK, provided it's documented well. Though to be honest

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

2012-07-19 Thread Michael Bradshaw
On Thu, Jul 19, 2012 at 1:54 PM, Hendrik Leppkes h.lepp...@gmail.com wrote: [...] If you want to do accurate seeks with only avformat, you have to add a lot of boilerplate on top of it right now - or if you want to do accurate seeks even with ffmpeg. Sure, if you tell it to seek, it'll output

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-16 Thread Michael Bradshaw
On Mon, Jul 16, 2012 at 10:15 AM, Alexandre Millette amill...@matrox.com wrote: On a somewhat related note, can the sws_scale behavior that I was seeing be considered a bug? Yes. It's either a bug in your code or in sws_scale. The fact that ffmpeg doesn't reproduce it makes me lean towards it

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-27 Thread Michael Bradshaw
On Tue, Jun 26, 2012 at 1:11 PM, Simon Daniels simondaniel...@gmail.com wrote: Hi Michael -- after reading into things a bit more, I agree that it's risky what I'm doing. However, I only need about 3 frames per second so maybe waiting for a key frame isn't the end of the world... Is there a

Re: [Libav-user] Crash/access violation when flushing when encoding audio

2012-06-27 Thread Michael Bradshaw
On Wed, Jun 27, 2012 at 3:37 AM, Michael Niedermayer michae...@gmx.at wrote: On Tue, Jun 26, 2012 at 03:38:47PM -0600, Michael Bradshaw wrote: On Tue, Jun 26, 2012 at 2:16 PM, Michael Bradshaw mbrads...@sorensonmedia.com wrote: Hi, I'm encoding an AMR-NB stream, and I see that the libopen

Re: [Libav-user] Segfault on corrupted video

2012-06-27 Thread Michael Bradshaw
On Wed, Jun 27, 2012 at 5:58 PM, Tim Pitman tapitma...@gmail.com wrote: Alrighty, I was relying on the return value from avcodec_decode_video2. Basically I assumed that if it was 0 then the picture was valid. However, I was curious about what got_picture was for so if changed: if (ret 0)

Re: [Libav-user] Segfault on corrupted video

2012-06-27 Thread Michael Bradshaw
On Wed, Jun 27, 2012 at 6:26 PM, Tim Pitman tapitma...@gmail.com wrote: Interesting. However, I'm using x264 with --intra-refresh and --tune zerolatency (no b frames). Sorry, I missed that part. ___ Libav-user mailing list Libav-user@ffmpeg.org

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-26 Thread Michael Bradshaw
On Tue, Jun 26, 2012 at 12:34 PM, Simon Daniels simondaniel...@gmail.com wrote: // Is this a packet from the video stream? if (packet.stream_index == videoStreamIndex frameLocation++ % frameSkip == 0) { // Decode video frame avcodec_decode_video2(pCodecCtx, pFrameYUV, isFrameFinished,

Re: [Libav-user] Crash/access violation when flushing when encoding audio

2012-06-26 Thread Michael Bradshaw
On Tue, Jun 26, 2012 at 2:16 PM, Michael Bradshaw mbrads...@sorensonmedia.com wrote: Hi, I'm encoding an AMR-NB stream, and I see that the libopen-core-amrnb encoder has the CODEC_CAP_DELAY capability set. If I call avcodec_encode_audio2() with a NULL frame (like the docs say to when

Re: [Libav-user] Decoding a H.264 stream from TCP

2012-06-22 Thread Michael Bradshaw
On Fri, Jun 22, 2012 at 2:02 PM, Jeremy Graham jgra...@cs.unc.edu wrote: In either case, I was actually interested in decoding frames as they appear in the network socket so that I can get the images from the camera to do some real-time processing.  With that in mind, would you happen to have

Re: [Libav-user] How to know if lavf guessed the duration from the bitrate or not?

2012-06-13 Thread Michael Bradshaw
On Tue, Jun 12, 2012 at 8:12 PM, Michael Niedermayer michae...@gmx.at wrote: On Tue, Jun 12, 2012 at 11:44:03AM -0600, Michael Bradshaw wrote: avformat_find_stream_info() attempts to find the file's and streams' durations, but it will guess them based on the bitrate if it can't determine

Re: [Libav-user] Asking for using FFMPEG in trade software

2012-05-28 Thread Michael Bradshaw
As long as you comply with the LGPL, you can sell your program. See the License page on ffmpeg.org for more information. You should be aware, however, that depending on how you configure ffmpeg, you may have to use the GPL. Be sure to not --enable-gpl when configuring ffmpeg. Also be aware that

Re: [Libav-user] Why is HTTP streaming so slow?

2012-05-25 Thread Michael Bradshaw
On Thu, May 24, 2012 at 10:21 PM, Kalileo kali...@universalx.net wrote: On May 25, 2012, at 04:35 , Michael Bradshaw wrote: On Thu, May 24, 2012 at 2:05 PM, Andrey Utkin andrey.krieger.ut...@gmail.com wrote: Is there a particular reason FFmpeg streams so slowly? Coz while you decode, you

[Libav-user] Why is HTTP streaming so slow?

2012-05-24 Thread Michael Bradshaw
I've written a plugin for a program that uses FFmpeg to read and decode a video file, and then passes the decoded frames to an encoder (not FFmpeg) that consumes them. A big motivation for this plugin is FFmpeg's ability to stream videos over HTTP. However, I've found this to be incredibly slow,

Re: [Libav-user] Why is HTTP streaming so slow?

2012-05-24 Thread Michael Bradshaw
On Thu, May 24, 2012 at 2:05 PM, Andrey Utkin andrey.krieger.ut...@gmail.com wrote: Is there a particular reason FFmpeg streams so slowly? Coz while you decode, you don't fetch, and while you fetch, you don't decode. That's what switching overhead and lack of parallelism in your app result

Re: [Libav-user] Retrieve 10bit video frames

2012-05-18 Thread Michael Bradshaw
On Thu, May 17, 2012 at 5:43 AM, Dnegel X. dnegel...@gmail.com wrote: However, the decoded frameYUV-data is of type uint8_t, and I would expect to get something able to store 10bit values like a uint16_t. So, what is returned in this 8bit array in this case? How can I proceed to get the

Re: [Libav-user] Compiling for Mac with libx264

2012-05-18 Thread Michael Bradshaw
On May 16, 2012, at 11:44 , Wagner Patriota wrote: I can't compile the last version of FFMPEG with libx264... it says: ERROR: libx264 version must be = 0.118. I have the latest version from the libx264 website... Make sure you've built and installed libx264 correctly. I don't think the

Re: [Libav-user] How to redirect FFMPEG output to a socket

2012-05-03 Thread Michael Bradshaw
On Thu, May 3, 2012 at 1:39 PM, Wagner Patriota wagner.patri...@gmail.com wrote: Hey guys, sorry... but it's VERY VERY simple... I did it in about 10 or 15 minutes after I figured out how URLProtocol works... I just rewrote the URLProtocol... that's it... I created a new one, based on file.c

Re: [Libav-user] Why is av_seek_frame() inaccurate in some cases ?

2012-04-14 Thread Michael Bradshaw
On Sat, Apr 14, 2012 at 10:40 AM, Lucas Soltic soltic.lu...@gmail.comwrote: So I don't think I did anything fancy, but I still can't find out why the video seeking is inaccurate. I would be really grateful if someone had ideas about this issue. There's two reasons I can see why you would be

[Libav-user] Seeking and Frame Timestamps

2012-03-30 Thread Michael Bradshaw
I have a couple questions regarding seeking and timestamps. 1) If seeking in a video is a possible, will avformat_seek_file(formatContext, -1, 0, timestamp, timestamp, 0) ever fail? If this does fail and seeking is still possible, what can be done to seek? 2) If I call