Re: [Libav-user] -itoffset issue

2012-04-10 Thread Craig Murray
Ok this works to concatenate the files, but doesnt seem to allow me anyway
to set an arbitrary offset.

What I'm looking to do is create an .avi file that has some arbitrary mp3's
playing at specific times.  I'm creating the avi from an image sequence,
but I'm not sure how to get the audio to show up at specific offsets.

Is there a way to use -itsoffset in conjunction with concat:  ?





On Tue, Apr 10, 2012 at 5:16 PM, Carl Eugen Hoyos  wrote:

> Craig Murray  writes:
>
> > given two one-second sounds I'm trying to concatenate them
> > using several approaches.
>
> You have to use the concat-protocol to concatenate files,
> it does not work without.
>
> Carl Eugen
>
> ___
> Libav-user mailing list
> Libav-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] -itoffset issue

2012-04-10 Thread Carl Eugen Hoyos
Craig Murray  writes:

> given two one-second sounds I'm trying to concatenate them 
> using several approaches.

You have to use the concat-protocol to concatenate files, 
it does not work without.

Carl Eugen

___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] jpg quality using image2

2012-04-10 Thread Carl Eugen Hoyos
Craig Murray  writes:

> From the command line are there are flags to set the jpeg quality

-qscale
(Note that this is in no way image2-related, you can use the 
mjpeg-encoder in other containers, and there are many codecs 
usable in image2 that do not support qscale.)

Carl Eugen

___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


[Libav-user] jpg quality using image2

2012-04-10 Thread Craig Murray
>From the command line are there are flags to set the jpeg quality when
doing an -image2 conversion?  I couldn't find anything in the documentation.
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Linking ffmpeg libraries on Windows

2012-04-10 Thread Gustav González
2012/4/5 Alex Cohn :
>
> Do you use any av_* functions that the linker does not complain about?
>
> I think you have the linking syntax wrong. -L normally points to a
> directory, not a file. Also, zeranoe provides the import libraries in
> /lib directory. Thus, you probably need something like:
>
> -L C:/QtSDK/Desktop/ffmpeg/lib -lavformat-53.dll -lavutil-51.dll

Now it works! In my case:

-L C:/QtSDK/Desktop/ffmpeg/lib -lavformat -lavutil

Thanks Alex!

-- 

  Gustav Gonzalez
  xting...@gmail.com

___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] -itoffset issue

2012-04-10 Thread Craig Murray
I should add that if I -map 0:0 -map 1:0 it seems to merge them, but still
no -itsoffset on the 2nd one.
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


[Libav-user] -itoffset issue

2012-04-10 Thread Craig Murray
Sorry for all the newbie questions, I'm doing my best and spending lots of
time working at it before I mail the list.  :)

given two one-second sounds I'm trying to concatenate them using several
approaches.  None of them seem to be working:


Using -itsoffset

>*ffmpeg -i beep-1.mp3 -itsoffset 00:00:02 -i beep-2.mp3 output.mp3*

ffmpeg version N-38292-ga4c22e3 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Feb 27 2012 14:50:39 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype
--enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libxavs --enable-libxvid --enable-zlib
  libavutil  51. 41.100 / 51. 41.100
  libavcodec 54.  4.100 / 54.  4.100
  libavformat54.  1.100 / 54.  1.100
  libavdevice53.  4.100 / 53.  4.100
  libavfilter 2. 62.101 /  2. 62.101
  libswscale  2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc52.  0.100 / 52.  0.100
[mp3 @ 01CE9AA0] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'beep-1.mp3':
  Metadata:
artist  : SoundJay.com Sound Effects
  Duration: 00:00:00.39, start: 0.00, bitrate: 128 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, mono, s16, 128 kb/s
[mp3 @ 01DB5D20] Estimating duration from bitrate, this may be inaccurate
Input #1, mp3, from 'beep-2.mp3':
  Metadata:
artist  : SoundJay.com Sound Effects
  Duration: 00:00:00.55, start: 0.00, bitrate: 128 kb/s
Stream #1:0: Audio: mp3, 44100 Hz, mono, s16, 128 kb/s
Output #0, mp3, to 'output.mp3':
  Metadata:
TPE1: SoundJay.com Sound Effects
TSSE: Lavf54.1.100
Stream #0:0: Audio: mp3, 44100 Hz, mono, s16
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 -> libmp3lame)
Press [q] to stop, [?] for help
size=   3kB time=00:00:00.41 bitrate=  68.4kbits/s
video:0kB audio:3kB global headers:0kB muxing overhead 6.820221%


Result is only the first mp3 in the output.  Do I need to be using -map?  I
suspect I'm just being stupid and missing something obvious.


Craig
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Compiling ffmpeg libraries on Windows 64-bit with x264 decoding support

2012-04-10 Thread Andrey Utkin
2012/4/10 William Kreamer :
> Hello,
>
> I'm trying to compile ffmpeg developer libraries with support for decoding
> with the x264 decoder. I found the instructions below. Before I try them
> out, has anyone successfully used the instructions below? Is there any other
> tutorial you could point me toward?

To _decode_ h264, you don't need x264 library support.

-- 
Andrey Utkin
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] H.264 nal decode

2012-04-10 Thread srikanta mondal
Thanks all for reply. However I have got the H.264 compression using
libX264 from *
http://stackoverflow.com/questions/2940671/how-to-encode-series-of-images-into-h264-using-x264-api-c-c
* and it is working fine for making video.

@NITIN GOYAL I have found in each nal frame contain the starting code 0 0 0
1. But still it is not working.

@Alex Cohn   I have omitted first 4 bytes and reduce the size. But still
avcodec_decode_video2() cann't decode the encoded array.

@Kalileo  Sorry I have not try H.264 compression with ffmpeg library and if
possible please give me some suggestion how can I do with ffmpeg library.
I have use avcodec_decode_video2( m_pContext, picture, &gotpicture,
pkt);
where AVCodecContext* m_pContext;
 AVPacket *pkt = new AVPacket();
 av_init_packet(pkt);
 
 ..
 pkt->data = (heders[0].p_payload+4);
 pkt->size = i_frame_size - 4;
 int gotpicture;
 AVFrame* picture = avcodec_alloc_frame();

I have fill up the parameters with these values and pass it to
avcodec_decode_video2()


Thanks and regards
Srikanta Mondal



On Tue, Apr 10, 2012 at 12:37 PM, Kalileo  wrote:

>
> On Apr 10, 2012, at 13:19 , srikanta mondal wrote:
>
> > Thank you for reply.
> > @kalileo   I have simply got the UDP socket and get the byte array from
> it.
>
> you could also use the ffmpeg libraries to do that.
>
> > Now that byte array is basically the x264_nal_t*(p_payload[0]) from
> sender side.
>
> Is it? or is it in a container, such as mpegts? Then you should demux
> first.
>
> > That encoded byte array come to client side. Now I want to decode that
> array with its corresponding parameter values. I think it can be done by
> using avcodec_decode_video2().
>
> How are you passing that byte array to avcodec_decode_video2()?
>
>
>
> ___
> Libav-user mailing list
> Libav-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


[Libav-user] ffmpeg support for GTP and IPSEc????

2012-04-10 Thread NITIN GOYAL
Do ffmpeg supports stream with IPsec and GPRS tunneling (GTP)?

I have not found any reference of any of them?

I have a RTP stream which is GTP and protected by IPSec so, will i able to
decode or depacketize the content using ffmpeg?

Any idea on this.

If someone have idea about any other tool for the same, do let me know.

Thanks
Nitin
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


[Libav-user] How to get current pts after 'av_seek_frame' without calling 'av_read_frame'?

2012-04-10 Thread Pavel Sokolov

Hi All!

How to get current pts after 'av_seek_frame' without calling 
'av_read_frame'?


--

With best regards, Pavel A. Sokolov
mobile: +7(921)419-1819
skype: pavel_a_sokolov

___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] avcodec_open seg fault?

2012-04-10 Thread Andrey Utkin
2012/4/10 Jeremy Graham :
> Actually, I will go ahead and try to post what I think is the relevant
> code.  This comes almost directly from the api_example found at this URL:
> http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/api-example_8c-source.html

That seem to be quite old revision of api usage example. First of all
ensure you have installed recent ffmpeg (from git, or last release
(0.10.2 afaik)), and start with these examples:
http://git.videolan.org/?p=ffmpeg.git;a=tree;f=doc/examples;hb=HEAD
If these examples are hard for you to work on, you may ask here in
another post, describing the exact scenario you need, and we'll show
you ways to do that, and maybe other api usage examples closer to what
you need.

-- 
Andrey Utkin
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] H.264 nal decode

2012-04-10 Thread Kalileo

On Apr 10, 2012, at 13:19 , srikanta mondal wrote:

> Thank you for reply. 
> @kalileo   I have simply got the UDP socket and get the byte array from it.

you could also use the ffmpeg libraries to do that.

> Now that byte array is basically the x264_nal_t*(p_payload[0]) from sender 
> side.

Is it? or is it in a container, such as mpegts? Then you should demux first.

> That encoded byte array come to client side. Now I want to decode that array 
> with its corresponding parameter values. I think it can be done by using 
> avcodec_decode_video2(). 

How are you passing that byte array to avcodec_decode_video2()?


 
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] H.264 nal decode

2012-04-10 Thread Alex Cohn
On Tue, Apr 10, 2012 at 09:19, srikanta mondal  wrote:
[...]
>x264_param_t param;
[...]
>x264_param_default(¶m);
[...]
>//For streaming:
>param.b_repeat_headers =1;
>param.b_annexb = 1;//1
[...]
>  i_frame_size = x264_encoder_encode( encoder, &headers, &i_nal, 
> &pic_in, &pic_out );
>  decoding(heders[0].p_payload, i_frame_size);
[...]
> void decoding(uint8_t *data, int size)
> {
> AVPacket *pkt;
> pkt = new AVPacket();
> int gotpicture;
>
> av_init_packet(pkt);
> avcodec_get_frame_defaults(picture);
>
> pkt->data = data;
> pkt->size = size;
> int outSize = avcodec_decode_video2(m_pContext, picture, &gotpicture,
> pkt);
> }
>
> I get the error of segmentation fault by gdb debugger.
>
> Thanks and regards
> Srikanta Mondal

You asked for annexb format of payload. To avcodec_decode_video2() you
must pass the stripped data. Try to simply replace the call
 decoding(heders[0].p_payload, i_frame_size)
with
  decoding(heders[0].p_payload+4, i_frame_size-4);

BR,
Alex
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] H.264 nal decode

2012-04-10 Thread NITIN GOYAL
Hey

do all ur raw payload u r sending to the decoding function are in NAL
format like 0001xRawpayload format??

I have done the same thing with the RTP packets. Removed RTP headers
inserted NAL start prefix headers i.e. 0001 before each NAL and then
entered the data to decoding functions.

And if the output is greater than zero, you will get the decoded output in
YUV format in the output buffer.



On Tue, Apr 10, 2012 at 11:49 AM, srikanta mondal wrote:

> Thank you for reply.
> @kalileo   I have simply got the UDP socket and get the byte array from
> it. Now that byte array is basically the x264_nal_t*(p_payload[0]) from
> sender side. That encoded byte array come to client side. Now I want to
> decode that array with its corresponding parameter values. I think it can
> be done by using avcodec_decode_video2(). But unfortunately the encoded
> array may be not appropriate for the decoding. There may some addition of
> bytes with the array. Please help.
>
> @Alex I get the error of segmentation fault by gdb debugger.
>
>
> Thanks and regards
> Srikanta Mondal
>
>
>
> On Tue, Apr 10, 2012 at 11:09 AM, Alex Cohn wrote:
>
>> On Mon, Apr 9, 2012 at 15:02, srikanta mondal 
>> wrote:
>> > Thank you for your reply.
>> >
>> > @Alex  I have used also the following
>> >  sizeDelay = x264_encoder_delayed_frames(encoder);
>> > But all are in vein.
>> >
>> > Thanks all of You
>> > Srikanta Mondal
>>
>> It's not clear what kind of failure you see.
>>
>> Alex
>> ___
>> Libav-user mailing list
>> Libav-user@ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>
>
> ___
> Libav-user mailing list
> Libav-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user