Re: [Libav-user] Need help with transcoding to AAC example

2016-03-31 Thread Przemysław Sobala
W dniu 31.03.2016 o 12:18, Hendrik Leppkes pisze: On Thu, Mar 31, 2016 at 11:55 AM, Przemysław Sobala wrote: Hello I've altered doc/examples/transcoding.c to encode using aac codec: The transcoding example isn't all the powerful, its specifically designed to

Re: [Libav-user] Need help with transcoding to AAC example

2016-03-31 Thread Nicolas George
Le duodi 12 germinal, an CCXXIV, Przemysław Sobala a écrit : > - asetnsamples filter when I got to feed the encoder with specific frame > number If you need it at the output, better use av_buffersink_set_frame_size() directly. > - aresample filter to change audio sampling rate You can set the

Re: [Libav-user] Need help with transcoding to AAC example

2016-03-31 Thread Przemysław Sobala
W dniu 31.03.2016 o 14:34, Carl Eugen Hoyos pisze: Przemysław Sobala writes: if I want to change audio sample rate would I have to use some auto inserted resampler filter or libswrresample/ You can choose either the aresample filter or call the resampling library

[Libav-user] [mpegts on RTP] avformat_open_input returns with no stream

2016-03-31 Thread Charles Buysschaert
Hello all, I am trying to extract video frames from an mpeg2ts stream sent over RTP. My input packets are Mpeg2Ts packets sent on UDP with a RTP Header, RTP "payload_type" is properly set to 33 (mpeg2ts). When calling avformat_open_input with filename set to "udp://address:port" the

Re: [Libav-user] Need help with transcoding to AAC example

2016-03-31 Thread Hendrik Leppkes
On Thu, Mar 31, 2016 at 11:55 AM, Przemysław Sobala wrote: > Hello >I've altered doc/examples/transcoding.c to encode using aac codec: > The transcoding example isn't all the powerful, its specifically designed to transcode to the same format for demo purposes,

Re: [Libav-user] Need help with transcoding to AAC example

2016-03-31 Thread Carl Eugen Hoyos
Przemysław Sobala writes: > if I want to change audio sample rate would I have to > use some auto inserted resampler filter or > libswrresample/ You can choose either the aresample filter or call the resampling library explicitely. > libavresample This is not

[Libav-user] Need help with transcoding to AAC example

2016-03-31 Thread Przemysław Sobala
Hello I've altered doc/examples/transcoding.c to encode using aac codec: --- a/doc/examples/transcoding.c +++ b/doc/examples/transcoding.c @@ -114,7 +114,12 @@ if (dec_ctx->codec_type == AVMEDIA_TYPE_VIDEO || dec_ctx->codec_type == AVMEDIA_TYPE_AUDIO) {