Re: [Libav-user] Encoding with no compression with OpenH264

2016-03-08 Thread Stefano Sabatini
In date Tuesday 2016-03-08 08:48:44 -0800, Arthur Muller wrote: > > What is your problem? Please test current FFmpeg git head and > > provide the command line you tested together with the complete, > > uncut console output and explain what goes wrong. > > Carl, > > Fair request. > > I can't

Re: [Libav-user] Building with purchased libraries

2015-12-09 Thread Stefano Sabatini
In data Wednesday 2015-12-09 21:37:09 +1000, Yury Udovichenko ha scritto: > Does this mean we cannot use legally purchased binary library with FFMPEG > under LGPL license? According to ffmpeg docs, we must use this flag in > order to build it with h.264 transcoding capabilities. I think this is a

Re: [Libav-user] Video scaling

2014-12-22 Thread Stefano Sabatini
On date Monday 2014-12-22 15:11:56 +0100, Arnaud Bienner encoded: Hi, Looking at the examples provided with ffmpeg (2.5) there are two examples to scale an image if I'm right: scaling_video.c but also filtering_video.c, which filter is scale=78:24 so I assumed it is also doing some scaling.

Re: [Libav-user] Remuxing video file

2014-02-02 Thread Stefano Sabatini
In data Saturday 2014-02-01 23:47:38 +0200, Yuri Oleynikov (יורי אולייניקוב ha scritto: hello, i am new to libav. after reading documentation and examples for serveral weeks, i tried to write simple remuxing (e.g mp4-avi) w/o decoding/encoding, just like *ffmpeg -i inputfile.mp4 -f avi -c:v

Re: [Libav-user] Info regarding API clip_interval

2014-02-02 Thread Stefano Sabatini
In data Sunday 2014-02-02 12:02:03 +0530, anshul ha scritto: On 02/02/2014 11:52 AM, anshul wrote: Hi guys In file libavfilter/drawutils.c there is a function called clip_interval static void clip_interval(int wmax, int *x, int *w, int *dx) what does the parameter means over here, means

Re: [Libav-user] save video file over http

2014-01-21 Thread Stefano Sabatini
In data Friday 2014-01-17 13:06:03 +0530, ವಿನೋದ್ Vinod H I ha scritto: Hi, I have a requirement that I need to save the converted video file to a server. Now I am saving the output of ffmpeg to a local file first and transferring it to the server via http post request using a different

Re: [Libav-user] Simple demux and copy codec

2014-01-16 Thread Stefano Sabatini
it to doc/examples. /* * Copyright (c) 2013 Stefano Sabatini * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the Software), to deal * in the Software without restriction, including without limitation

Re: [Libav-user] swr_convert crashed when convert format S16P to FLTP

2014-01-10 Thread Stefano Sabatini
On date Thursday 2014-01-09 23:05:43 +0800, hemiao encoded: hi,everyone my audio source file's format is s16p. when i use swr_convert function to convert it to fltp or dblp, the function crashed, without return value or error message. but when i convert it to flt or dbl, it works fine. so

Re: [Libav-user] Muxing sample under 'docs' section compatibility with webm format

2014-01-09 Thread Stefano Sabatini
On date Thursday 2014-01-09 17:44:40 +0500, Taha Ansari encoded: [...] I compiled and ran muxing.c sample under windows; while it is working for some other common formats, for webm file, I get the video content, but dummy audio is not audible. Looking further, I discover that audio_pts values

Re: [Libav-user] decoding mp3

2013-11-25 Thread Stefano Sabatini
On date Monday 2013-11-25 22:39:36 +, Carl Eugen Hoyos nutted: Michael Winter mwinter@... writes: What is used for decoding mp3? The mp3 (or mpegaudio) decoder. (Sorry.) Does it comply with the --enable-nonfree compilation? This question makes no sense to me, I suspect nonfree

Re: [Libav-user] How to use libavfilter?

2013-11-18 Thread Stefano Sabatini
On date Saturday 2013-11-16 13:59:32 +, Stepan Bujnak nutted: Hi ffmpeg, I am trying to use FPS filter in my code but I wasn't able to find any manual or tutorial that would describe using libavfilter. Could anyone explain what steps need to be undertaken in order to successfully employ

Re: [Libav-user] linesizes

2013-10-04 Thread Stefano Sabatini
On date Friday 2013-10-04 20:43:39 +0200, MXWendler LibAV encoded: Hi All, i had a look at AVPicture, and it is a tiny structure typedef struct AVPicture { uint8_t *data[4]; int linesize[4]; /// number of bytes per line } AVPicture; For further image processing i need

Re: [Libav-user] decoding_encoding.c example

2013-07-19 Thread Stefano Sabatini
On date Wednesday 2013-07-17 11:57:54 +0200, Francesco Damato encoded: Hi, I am an engineering student and i am writing a C program to encode to mpeg2 video read from file, send it to a stream and then decode it. I saw the example decoding_encoding.c that generates a video from dummy

Re: [Libav-user] libavcodec documentation and usage

2013-07-16 Thread Stefano Sabatini
On date Tuesday 2013-07-16 09:11:53 -0700, James Board encoded: I'd like to write a C or C++ program which uses libavcodec to retrieve individual frames of an AVI file.  I can't find much documentation on the WWW.  But there are examples in the ffmpeg source distribution.  I tried to compile

Re: [Libav-user] libavcodec documentation and usage

2013-07-16 Thread Stefano Sabatini
On date Tuesday 2013-07-16 13:04:42 -0700, James Board encoded: On date Tuesday 2013-07-16 09:11:53 -0700, James Board encoded: I'd like to write a C or C++ program which uses libavcodec to retrieve individual frames of an AVI file.  I can't find much documentation on the WWW.  But there

[Libav-user] Remuxing from AAC to MP4, bitstream filtering and corrupted AAC Config

2013-07-03 Thread Stefano Sabatini
for inclusion once I spot the problem. /* * Copyright (c) 2013 Stefano Sabatini * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the Software), to deal * in the Software without restriction, including without

Re: [Libav-user] Slightly OT: playing DVDs

2013-07-03 Thread Stefano Sabatini
In data Wednesday 2013-07-03 12:51:52 -0300, Gonzalo Garramuno ha scritto: On 02/07/13 08:49, Carl Eugen Hoyos wrote: There is a patch that you could work on: http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/93750 Carl Eugen Carl, that set of patches is 3 years old and does not compile

Re: [Libav-user] Remuxing from AAC to MP4, bitstream filtering and corrupted AAC Config

2013-07-03 Thread Stefano Sabatini
In data Wednesday 2013-07-03 09:52:45 +0200, Stefano Sabatini ha scritto: Hi all, posting here in case someone can provide ideas. With the attached code I'm able to stream-copy and remux an AAC file to an MP4. $ remuxing in.AAC out.mp4 $ mp4info version 2.0.0 out.mp4

Re: [Libav-user] Audio conversion from planar to non-planar formats

2013-07-03 Thread Stefano Sabatini
In data Wednesday 2013-06-26 13:07:05 +0500, Taha Ansari ha scritto: Hi everyone! It should be exactly the same as FLTP to S16. I'm not willing to play guess games. Please provide source code you use for convert audio if you expect someone will help you. @Paul: My code is similar to

Re: [Libav-user] avpicture_free crashing when using with sws_scale()

2013-06-27 Thread Stefano Sabatini
In data Wednesday 2013-06-26 03:25:55 -0700, Pradeep Karosiya ha scritto: Hi Stefano, Thanks for your explanation. However I didn't get about your point on fill pic with data and destroying previously allocating data. I've buffer filled with image data and I want to create AVPicture object

Re: [Libav-user] avpicture_free crashing when using with sws_scale()

2013-06-25 Thread Stefano Sabatini
On date Tuesday 2013-06-25 03:52:41 -0700, Pradeep Karosiya encoded: Hi I'm trying to encode images into video. I'm following muxing.c and scaling.c examples. Though I'm able to encode a video, I'm not able to get rid of memory leaks. I tried many different things related related to

Re: [Libav-user] non-causal or two-pass filters

2013-04-26 Thread Stefano Sabatini
In data Friday 2013-04-26 21:21:04 +0300, Yaron Segalov ha scritto: Is it possible to create a non-causal filter, or even a two-pass filter? Non-causal?? An example filter: an audio filter which normalizes the audio gain based on the MAX gain throughout the entire movie. There are a few

Re: [Libav-user] Update filter settings at runtime

2013-04-08 Thread Stefano Sabatini
On date Monday 2013-04-08 13:23:11 +0800, Bjoern Drabeck encoded: Hi, I have recently played around with filters, and successfully integrated them into my test application, so I can apply video and audio filters, for example bass and treble filters when I play an audio file, or apply a video

Re: [Libav-user] Video and audio timing / syncing

2013-03-28 Thread Stefano Sabatini
On Thu, Mar 28, 2013 at 6:03 AM, Brad O'Hearne br...@bighillsoftware.com wrote: On Mar 27, 2013, at 9:25 PM, Clément Bœsch ubi...@gmail.com wrote: You realize FFmpeg 0.6 is 3 years old right? I know it very well -- but with FFmpeg documentation / examples, new doesn't necessarily mean more

Re: [Libav-user] undefined reference errors from linker

2013-01-21 Thread Stefano Sabatini
In data Monday 2013-01-21 15:29:07 +0530, Srinath M ha scritto: Hi I am using ffmpeg version 0.11.1 with Ubuntu 10.04 I get the following linker errors when i try to compile a program tld.c:(.text+0x1a7): undefined reference to `avformat_network_init' tld.c:(.text+0x1c9): undefined

Re: [Libav-user] Reset AVFilterContext* after seeking

2013-01-21 Thread Stefano Sabatini
In data Monday 2013-01-21 15:40:48 +0400, Pavel Sokolov ha scritto: Hi! I have filter: asetnsamples=n=320 I need to reset AVFilterContext* after seeking. Now i'm doing it like this: AVFilterBufferRef *ref = NULL; while (true){ int ret =

Re: [Libav-user] How to control ffmpeg's key-frame generation?

2013-01-02 Thread Stefano Sabatini
In data Wednesday 2013-01-02 15:30:39 +0900, Quy Pham Sy ha scritto: I'm making a segmenter that intervene ffmpeg's write_frame function and [...] Here is my questions: 1. is that true that ffmpeg generate keyframes at irregular intervals (and interval time can be up to few

Re: [Libav-user] How to create video using avcodec from OpenCV::Mat?

2012-12-04 Thread Stefano Sabatini
On date Friday 2012-11-30 23:41:15 +, Morduhaev, Igor (ig...@stats.com) encoded: I get colored jpeg images of OpenCV::Mat type and I create from them video using avcodec. The video that I get is upside-down, black white and each row of each frame is shifted and I got diagonal line. What

Re: [Libav-user] hello i need help in using swreample lib.

2012-11-30 Thread Stefano Sabatini
On date Friday 2012-11-30 21:51:18 +0200, Rafi Fisher encoded: hello i try to trancode audio frames decoded from mp2 file into wav file. so from what i understand my input buffer should be the:*uint8_t *data *field in the*AVFrame * structure my output buffer

Re: [Libav-user] open images (jpg/png/etc) with ffmpeg and getting an AVPicture

2012-11-27 Thread Stefano Sabatini
On date Tuesday 2012-11-27 17:26:47 -0200, Wagner Patriota encoded: Could somebody give me some direction? I am trying to use all the latest ffmpeg commands... should I open it the same way I open a video? or there's some shortcut? Check how I did it in

Re: [Libav-user] Memory allocation and avpicture_fill incorrect?

2012-11-22 Thread Stefano Sabatini
On date Wednesday 2012-11-21 17:12:31 +0530, Navin wrote: I was trying out the updated tutorial01 code of ffmpeg:https://github.com/mpenkov/ffmpeg-tutorial since the program crashed unexpectedly at sws_scale with an Access violation writing location error, I was trying to figure out what went

Re: [Libav-user] How can we save captured frames to AVI file

2012-11-13 Thread Stefano Sabatini
On date Monday 2012-11-12 15:00:22 +0200, Wenpeng Zhou wrote: Hi, I use a USB camera to capture streams. I hope to save streams to an AVI file. Check dshow/video4linux2 devices in libavdevice (doc/indevs.texi, or the ffmpeg manual). There is nothing special about an input device, you treat

Re: [Libav-user] filtering_audio.c example not working

2012-11-13 Thread Stefano Sabatini
On date Monday 2012-11-12 14:50:24 -0600, Ron Woods wrote: I am trying out the filtering_audio.c example provided with the ffmpeg libraries for Windows to extract the audio from a MP4 file, resample to 8 KHz and convert from stereo to mono. The example pipes the audio output via stdout to

Re: [Libav-user] filtering_audio.c example not working

2012-11-13 Thread Stefano Sabatini
On date Tuesday 2012-11-13 16:26:13 -0600, Ron Woods wrote: I have tried it on AVI or MOV input file as well -- same result; so, no, it doesn't seem to depend on input file. I am using same filter technique in another context to transcode audio from input movie to WAV output file, and it

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

2012-11-05 Thread Stefano Sabatini
In data Wednesday 2012-10-31 14:22:40 +0200, Wenpeng Zhou ha scritto: 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,

Re: [Libav-user] I need some C++ example how ffmpeg grabs frames from a usb camera

2012-10-23 Thread Stefano Sabatini
On date Monday 2012-10-22 15:43:06 +0300, Wenpeng Zhou encoded: Hi, I need some C++ example how ffmpeg grabs frames from a usb camera. In Linux you can use the video4linux and video4linux2 device, in Windows there is Vfw and dshow, you just read it as a normal input format (check also

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

2012-10-23 Thread Stefano Sabatini
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, and channel_layout) (I'm also buffering audio using asetnsamples to fill frames with a

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

2012-10-23 Thread Stefano Sabatini
On date Tuesday 2012-10-23 14:45:53 -0600, Michael Bradshaw encoded: 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

Re: [Libav-user] examples/demuxing.c not working properly

2012-10-17 Thread Stefano Sabatini
On date Monday 2012-10-15 19:43:30 +0530, Chandranath Bhattacharyya encoded: What's going wrong? AVStream::time_base.den = 12800; seems to be wrong data. Other than fixing some compilation errors, I did not modify anything else in examples/demuxing.c. - I downloaded the older version

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

2012-10-15 Thread Stefano Sabatini
On date Thursday 2012-10-11 22:12:10 +0200, Denis encoded: I have a problem with decoding_encoding.c and theora. The example produces correctly the file but I can watch it with vlc or mplayer. I assume it was I can *not*. call the function in this mode:

Re: [Libav-user] Challenge... create a black .TS file from NOTHING?

2012-05-17 Thread Stefano Sabatini
On date Wednesday 2012-05-16 06:17:37 +, Carl Eugen Hoyos encoded: Wagner Patriota wagner.patriota@... writes: Is there a way in ffmpeg for me to create a .TS video only with 1 stream of video H.264 with black frames? $ ffmpeg -f rawvideo -pix_fmt rgb24 -s 640x480 -i /dev/zero

Re: [Libav-user] AVFilter overlay change image

2012-02-09 Thread Stefano Sabatini
On date Thursday 2012-02-09 16:53:12 +1300, Kenneth Gibson encoded: Hi, I am using Libavfilter programmatically and I know its possible to overlay an image like a logo onto a video with a filterchain. Is it possible to change the image that I am overlaying part way through the video? You

Re: [Libav-user] libavfilter source nullsrc usage

2011-11-17 Thread Stefano Sabatini
On date Thursday 2011-11-17 13:28:32 +0200, Andrey Utkin encoded: How should i push AVFrame into nullsrc filtering source? You shouldn't, nullsrc is not meant to be used that way. Regarding buffer source, it is covered in examples: av_vsrc_buffer_add_frame() must be used. And what about

Re: [Libav-user] Documentation

2011-07-28 Thread Stefano Sabatini
On date Tuesday 2011-07-26 12:49:41 +0100, George Sharara encoded: Hi As far as open source projects go, I have to say FFMPEG is in the running for the worst documented project I have ever come across. FFmpeg is a volunteer based project, no one is payed for working on it, that said we try

[Libav-user] [ANNOUNCE] SOCIS - Request for students

2011-07-25 Thread Stefano Sabatini
On date Tuesday 2011-07-19 18:53:33 +0200, Stefano Sabatini encoded: We're glad to announce that FFmpeg/Libav application to SOCIS (Summer Of Code In Space) has been accepted and we've been allocated a slot for a student: http://sophia.estec.esa.int/socis2011/ The selected student

Re: [Libav-user] Duration of packet media content

2011-07-22 Thread Stefano Sabatini
On date Tuesday 2011-07-19 17:02:45 -0700, Argo Vela encoded: Thank you, Stefano! If I may follow-up... --- On Tue, 7/19/11, Stefano Sabatini stefano.sabatini-l...@poste.it wrote: On date Tuesday 2011-07-19 16:02:35 -0700, Argo Vela encoded: As one component of analyzing a media

Re: [Libav-user] Read data from webcam and save into jpeg images

2011-07-09 Thread Stefano Sabatini
On date Saturday 2011-07-09 05:22:23 +0700, KimNgoc encoded: Hi, I write a sample for reading data from my webcam then save it into jpeg pictures as my attchment file. But when run it, nothing was saved to disk, and there are messages on screen: [mjpeg @ 0x1ae87f0] bitrate tolerance

Re: [Libav-user] right syntax for ffmpeg Libavfilter filter

2011-07-06 Thread Stefano Sabatini
On date Wednesday 2011-07-06 08:02:34 -0700, bdfy encoded: I want to add watermark to movie and after scale movie. This string don't work: ffmpeg -y -i $infile -an -pass 1 -threads 2 -vf 'movie=test.png [logo]; [in][logo] overlay=0:0 [out]' -fv 'scale=100x100 ' $options $tmpfile

Re: [Libav-user] Recent ffmpeg version doesn't support v4l2

2011-07-04 Thread Stefano Sabatini
On date Monday 2011-07-04 11:07:12 -0300, Leandro Santiago encoded: Yes... It's very strange. After trying what you told me, I could open replacing the old code with this, using the new API: /* New API */ AVDictionary *dict = NULL; int dictRet = av_dict_set(dict,standard,ntsc,0); dictRet =

Re: [Libav-user] Recent ffmpeg version doesn't support v4l2

2011-07-02 Thread Stefano Sabatini
On date Friday 2011-07-01 15:23:58 -0300, Leandro Santiago encoded: Sorry for the delay (I was busy these days and couldn't answer). I continue having problems with ffmpeg from trunk. The last which worked with me is 0.7rc the pastebin is in: http://pastebin.com/rLL2jBUp and the error,

Re: [Libav-user] Minimal FFT build

2011-06-27 Thread Stefano Sabatini
On date Sunday 2011-06-26 10:05:53 +0100, Henry Gomersall encoded: I apologise if this should be obvious to me, but I can't seem to find the solution. I'd like to build a minimal subset of libav that includes the FFT functions. What is the best way to do this? FFT is included in libavcodec

Re: [Libav-user] yadif deinterlace how?

2011-06-18 Thread Stefano Sabatini
On date Saturday 2011-06-18 13:13:32 +0200, Robert Nagy encoded: An update, with less questions. struct deinterlacer::implementation { std::shared_ptrAVFilterGraph graph_; std::queuestd::shared_ptrAVFrame out_buffer_; implementation(size_t width, size_t height, PixelFormat pix_fmt) :

Re: [Libav-user] How can i extract Y plane from any frame in video

2011-06-17 Thread Stefano Sabatini
On date Thursday 2011-06-16 16:02:43 +1000, Amir Rouhi-Rmit encoded: I know that i can extract images of a video by ffmpeg as can be seen in below command: ffmpeg -i input.avi -r 1 -s WxH -f image2 Img-%03d.jpeg But what i want is a separated Y plane and cb and cr plane. can i i achieve this

Re: [Libav-user] yadif deinterlace how?

2011-06-17 Thread Stefano Sabatini
On date Friday 2011-06-17 23:23:22 +0200, Robert Nagy encoded: I would like to deinterlace my video from 50i to 50p using ffmpeg and yadif in my application. As far as I understood I have to do this through libavfilter, which I have not found any usage samples on. I'm pretty much stuck on

Re: [Libav-user] Convert from YUYV to YUV420P

2011-04-04 Thread Stefano Sabatini
On date Monday 2011-04-04 10:45:40 +0200, Jorge encoded: Hello: I am trying to convert from YUYV to YUV420P. I haven't seen any function so I decided to do on my own. But I have the problem that it doesn't seem to work. [...] Use libswscale. ___