Re: [Libav-user] Handling of 24 bit audio in libav* and libswresample

2013-06-11 Thread Hendrik Schreiber
Note that dithering should be done when doing 32bit to 24bit case and source audio have 24bits used. Yes - definitely. Dithering is only necessary, when converting the data somewhere in between (e.g. changing the sample rate while it's in 32bit format), as the code in pcm.c (macro

Re: [Libav-user] Handling of 24 bit audio in libav* and libswresample

2013-06-11 Thread Carl Eugen Hoyos
Hendrik Schreiber hs@... writes: But, when writing the result to a file, I want to use AV_CODEC_ID_PCM_S24LE, i.e. the least significant byte is cut off. AV_CODEC_ID_PCM_S24LE encoder only accepts AV_SAMPLE_FMT_S32 as input. Carl Eugen ___

Re: [Libav-user] Handling of 24 bit audio in libav* and libswresample

2013-06-11 Thread Hendrik Schreiber
On Jun 11, 2013, at 11:31 AM, Carl Eugen Hoyos wrote: Hendrik Schreiber hs@... writes: But, when writing the result to a file, I want to use AV_CODEC_ID_PCM_S24LE, i.e. the least significant byte is cut off. AV_CODEC_ID_PCM_S24LE encoder only accepts AV_SAMPLE_FMT_S32 as input. The

Re: [Libav-user] Handling of 24 bit audio in libav* and libswresample

2013-06-11 Thread Paul B Mahol
On 6/11/13, Hendrik Schreiber h...@tagtraum.com wrote: Note that dithering should be done when doing 32bit to 24bit case and source audio have 24bits used. Yes - definitely. Dithering is only necessary, when converting the data somewhere in between (e.g. changing the sample rate while

[Libav-user] Video encoding at fractional fps

2013-06-11 Thread Taha Ansari
Hi all! I am trying to encode at fractional fps. Currently, I can encode video at 29 fps, or 30 fps, but cannot encode at fractional, like 29.97. I have a video mp4 file with me, probing it gives me the following: -- ffprobe version N-47062-g26c531c Copyright (c) 2007-2012

Re: [Libav-user] Video encoding at fractional fps

2013-06-11 Thread cyril apan
Never tested it, but you should try with those values:     c-time_base.den = 2997;     c-time_base.num = 100; Regards, Cyril APAN. De : Taha Ansari mtaha.ans...@gmail.com À : This list is about using libavcodec, libavformat, libavutil, libavdevice and

Re: [Libav-user] Video encoding at fractional fps

2013-06-11 Thread Hendrik Leppkes
On Tue, Jun 11, 2013 at 3:25 PM, cyril apan cyrila...@yahoo.fr wrote: Never tested it, but you should try with those values: c-time_base.den = 2997; c-time_base.num = 100; Regards, Cyril APAN. This should work. Note however that the 100% correct value for 29.97 is 3/1001,

Re: [Libav-user] generate encoded video file from .png files

2013-06-11 Thread Sergey Fedorov
Yes. I think you can use avformat_open_input_file() on png image to obtain a properly initialized AVCodecContext. It could simplify the decoding process. Best wishes, Sergey 2013/6/11 Ramu Chakravadhanula boys21cent...@gmail.com okay. 1. decode the png using ac_codec_id_png 2. give this

Re: [Libav-user] generate encoded video file from .png files

2013-06-11 Thread Ramu Chakravadhanula
okay. thanks a lot. I will give it a try and revert back if I have any troubles. Thanks and Regards, Boys21 On 11 June 2013 21:33, Sergey Fedorov night.rain.whis...@gmail.com wrote: Yes. I think you can use avformat_open_input_file() on png image to obtain a properly initialized

Re: [Libav-user] generate encoded video file from .png files

2013-06-11 Thread Sergey Fedorov
You may need to use avformat_find_stream_info() too. Best wishes, Sergey 2013/6/11 Ramu Chakravadhanula boys21cent...@gmail.com okay. thanks a lot. I will give it a try and revert back if I have any troubles. Thanks and Regards, Boys21 On 11 June 2013 21:33, Sergey Fedorov

Re: [Libav-user] Way to convert .wav file waveform into video .mjpeg file

2013-06-11 Thread Paul B Mahol
On 6/11/13, Olivier Daubry olivier.dau...@gmail.com wrote: Hello, I'm searching for a way to convert an array of values (44100 samples coded on 16bits each every second) into a series of plot (graph) images (24 per seconds), and then make a video out of it so that I could have a converter

Re: [Libav-user] Way to convert .wav file waveform into video .mjpeg file

2013-06-11 Thread Wagner Patriota
would it be something like this? http://stackoverflow.com/questions/16509906/ffmpeg-can-i-draw-an-audio-channel-as-an-image/16931776#16931776 On Tue, Jun 11, 2013 at 4:28 PM, Paul B Mahol one...@gmail.com wrote: On 6/11/13, Olivier Daubry olivier.dau...@gmail.com wrote: Hello, I'm

Re: [Libav-user] Video encoding at fractional fps

2013-06-11 Thread Taha Ansari
Hi guys! Thanks for you guidance, adopting your methods seems to have worked just fine! @Hendrik Leppkes Thanks for the insight; I will try to put it to effect as well (might have to think of a formula first). On Tue, Jun 11, 2013 at 6:31 PM, Hendrik Leppkes h.lepp...@gmail.comwrote: On Tue,