Re: [libav-api] How to pack h264 RTSP stream into flv container?

2011-03-30 Thread Luca Barbato
venc for more information. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] Resolution Change

2011-04-24 Thread Luca Barbato
On 4/24/11 10:15 AM, Stefan Lederer wrote: Hello, Hi I'm developing adaptive dynamic http streaming over http (DASH) using VLC for my master thesis at university. In this scenario I receive segmented MP4 content which is downloaded via http . This content can have different bitrates (which w

Re: [libav-api] Resolution Change

2011-04-24 Thread Luca Barbato
On 4/24/11 2:24 PM, Stefan Lederer wrote: Hi Luca, thanks for your answer! Hi, could you please use the interleave posting style instead of top posting[1]? I'm sorry, my explanation was not very clear. VLC actually does not crash, it just does not decode the video correctly after the resol

Re: [libav-api] Resolution Change

2011-04-24 Thread Luca Barbato
On 4/24/11 3:31 PM, Stefan Lederer wrote: No, DASH (dynamic streaming over http) uses the first approach. In my case I've created an initialization segment and several video segments which are send to the demuxer like a uniform bitstream. See below. It should fall in the second case. One of the

Re: [libav-api] Win32 Binaries - Crash on start

2011-04-27 Thread Luca Barbato
On 4/27/11 10:26 AM, Stefan Lohmaier wrote: Hallo all, Hi I try to use libav 0.6.2 win32 binaries for a project of mine https://bitbucket.org/StefanLohmaier/gpx-2-video You might want to try newer snapshots. If I start the program linked to libavcodec static the program quits with return

Re: [libav-api] win32: Problem with RTSP-Streaming (build options??)

2011-04-27 Thread Luca Barbato
On 4/27/11 11:41 AM, Max Göttner - d.stream wrote: Hi people, I am new to this list and have mistakenly posted on libav-user first. Here is my problem: I have built the static libraries, using mingw / gcc under windows XP, with ./configure --enable-memalign-hack --disable-pthreads I have su

Re: [libav-api] Win32 Binaries - Crash on start

2011-04-28 Thread Luca Barbato
On 4/28/11 8:57 AM, Stefan Lohmaier wrote: Hi, I figured it out. A program exits with that return code if a dll can not be loaded on start. I just had to copy the dlls in the build folder. Then it worked with the most recent version from the libav automated build system. Your 0.6.2 binaries do

Re: [libav-api] question about non-blocking protocols

2011-05-01 Thread Luca Barbato
On 4/30/11 8:53 PM, aviad rozenhek wrote: thanks for your suggestion, I have found what I believe to be a cleaner approach, your feedback appreciated. const char* url = "udp://localhost?localport=1234"; // pre-allocate the AVFormatContext and set the non block flag AVFormatContext* ctx

Re: [libav-api] Getting started with libav, some problems and questions

2011-05-09 Thread Luca Barbato
On 5/9/11 3:45 PM, Vadim Gusev wrote: Hi everyone in this list. I'm trying to write a simple video split/merge program, that will be part of daemon. I've looked trough api-example.c and output-example.c and written simple program that almost works. For now i'm just trying to re-encode input file,

Re: [libav-api] "undefined reference to XXXXX" - how to reinstall libav completely?

2011-05-16 Thread Luca Barbato
On 5/15/11 1:43 PM, wecing wrote: Hi all, After installing libav v0.7b, I found the API really changed too much for me to get it, so I covered it with v0.6.9. The api should be more clear and straightforward now, please refer to libavformat/output-example.c and libavcodec/api-example.c Act

Re: [libav-api] av_open_input_file fails on certain Windows Machines-22 EINVAL (invalid argument).

2011-05-17 Thread Luca Barbato
On 5/16/11 11:48 PM, Alistair Boyd wrote: I have an application that successfully streams video using rtp. Since it is a network issue I'd check if you have some network access restriction in place (e.g. the windows "firewall") lu ___ libav-api mai

Re: [libav-api] problem with RTP and real time

2011-05-18 Thread Luca Barbato
On 5/18/11 11:07 AM, Irwin Lourtet wrote: Hello, I am developping a program which allows to send a mpeg-ts over rtp stream. I would like to know if libav has an option to send packet over rtp at the time it must be displayed. Because now I read packet and I send them when they are ready, for exa

Re: [libav-api] problem with RTP and real time

2011-05-19 Thread Luca Barbato
On 5/18/11 4:27 PM, i.lour...@gmail.com wrote: Hello, thank you lucas for your answer. On 5/18/11 11:07 AM, Irwin Lourtet wrote: Hello, I am developping a program which allows to send a mpeg-ts over rtp stream. I would like to know if libav has an option to send packet over rtp at the time it

Re: [libav-api] problem with RTP and real time

2011-05-19 Thread Luca Barbato
On 5/19/11 11:41 AM, Irwin Lourtet wrote: Hello, Thanks again luca for your help it was very usefull for me and so now I am able to stream a video in real time. However I have one problem left, it's concerned the resolution. There is no problem when I stream a video with a 320*240 resolution but

Re: [libav-api] Problem debugging ffmpeg.c in eclipse+ cygwin gdb

2011-05-28 Thread Luca Barbato
windows and deal with its quirks. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] RTSP/RTP streaming from camera

2011-05-31 Thread Luca Barbato
might better off using rtmp, if you still need rtsp the libavformat code should do that part for you: ffmpeg -i source -vcodec -f rtsp rtsp://path/to/server should work fine for your purpose. (in code what you have in libavformat/output-example.c should cover it. lu -- Luca Barbato

Re: [libav-api] problem handling aac/ac3 data...

2011-06-02 Thread Luca Barbato
On 6/1/11 3:56 PM, wecing wrote: Hi, Recently I'm trying to write a simple video player with libav. I tested my program with three video files; one encoded in mpeg4/mp2(64kbps), one in h264/aac(95kbps), and one in h264/ac3(384kbps). Playing of the first file is as perfect as I expected -- but th

Re: [libav-api] Problems transmitting video & data with MPEG-2 TS

2011-06-30 Thread Luca Barbato
On 6/29/11 7:02 AM, Luis Díaz Más wrote: I removed the av_find_stream_info call because of the app hanged itself at this point. Looks like you found a bug in av_find_stream_info or in the mpegts demuxer... lu ___ libav-api mailing list libav-api@li

Re: [libav-api] RTMP

2011-07-16 Thread Luca Barbato
On 7/15/11 9:39 AM, Mark Kenna wrote: I was just wondering if FFPlay/Probe can work with live RTMP streams without having to receive the entire file before playing/probing? It does. For example, I have a 50 second clip that I am streaming to FFPlay using Wowza Media Server, the file will only

Re: [libav-api] RTMP

2011-07-19 Thread Luca Barbato
On 7/19/11 4:59 PM, Mark Kenna wrote: On 16/07/2011 18:57, Luca Barbato wrote: On 7/15/11 9:39 AM, Mark Kenna wrote: I was just wondering if FFPlay/Probe can work with live RTMP streams without having to receive the entire file before playing/probing? It does. For example, I have a 50

Re: [libav-api] security camera app: bookmark+seek mp4 by wall-clock? low latency? visual timestamps?

2011-08-27 Thread Luca Barbato
On 8/26/11 9:06 AM, Camera Man wrote: > (a) is there a general way to bookmark frames while writing a file in such a way that I can seek to them directly when playing, without searching? pts is NOT the answer, as explained below. you can use a container format that supports chapters. (mkv and

Re: [libav-api] security camera app: bookmark+seek mp4 by wall-clock? low latency? visual timestamps?

2011-08-29 Thread Luca Barbato
On 8/29/11 3:34 AM, Camera Man wrote: Yes, they are very different - basically one of the requirements is "produces standard files playable by other programs or standalone dvd/blueray/mp4 player". Try to discuss about using mkv. mov and mpegts might be more annoying. lu ___

Re: [libav-api] Converting from Webcam/V4l2 capture data format (YUYV or UYVY)

2011-09-04 Thread Luca Barbato
On 9/3/11 1:31 AM, Ronald S. Bultje wrote: Hi, just FYI and for archive purposes: On Wed, Jun 22, 2011 at 1:15 PM, Eric Glaser wrote: Hi Sorry about the late response, since I have to malloc from a C++ file, av_malloc and av_free whose prototypes are not extern'ed with "C" for g++ fails due

Re: [libav-api] FFmpeg lib + UDP + Qt issues

2011-09-13 Thread Luca Barbato
On 9/13/11 12:35 PM, Isaac Wang wrote: I have a periodic timer that requests the latest frame from FFMpeg. If I set the timer to a low rate (20 FPS), I get the video played back but at a slow rate. If I set the timer to a high rate (60 FPS), I get the frames as soon as they are ready, but the v

Re: [libav-api] Packaging Raw H264/AAC frames into FLV/RTMP Stream

2011-10-02 Thread Luca Barbato
On 10/2/11 10:18 PM, Evgeny Yakimov wrote: I haven't been able to find any more information regarding what these errors mean, but I think it may have something to do with me not supplying the correct information in the headers. The problem is in the extradata formatting, h264 has different ways

Re: [libav-api] Packaging Raw H264/AAC frames into FLV/RTMP Stream

2011-10-03 Thread Luca Barbato
e entire program that I use to create my flv here (argv[1] > points to a source file of raw 422 frames which are converted to 420 prior > to being sent to x264) > http://pastebin.com/wMGe554k > (please ignore the audio for the time being) > > Any Idea on how avformat modifies these fra

Re: [libav-api] Packaging Raw H264/AAC frames into FLV/RTMP Stream

2011-10-04 Thread Luca Barbato
t it says. It is a bare and simple rtmp server that usually helps a lot to give you insights on what's wrong. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] Packaging Raw H264/AAC frames into FLV/RTMP Stream

2011-10-05 Thread Luca Barbato
On 10/5/11 8:01 PM, Evgeny Yakimov wrote: Hello Lu I've found the problem, I needed to manually copy the header info from both the x264 and faac libraries directly into the extradata of the codec context, as these are used by the flv encoding functions, and the flvenc does as you mentioned reins

Re: [libav-api] h.264 avcodec_decode_video2

2011-10-15 Thread Luca Barbato
On 10/13/11 10:19 AM, Ronald S. Bultje wrote: You can have a look at the applehttp demuxer which also deals with the applehttp uses mpegts iirc. moof atoms from adob f4v files (isom with a quite specific usage of moof and editlists) looks not fully supported. lu

Re: [libav-api] h.264 avcodec_decode_video2

2011-10-15 Thread Luca Barbato
On 10/15/11 7:08 AM, Stefan Lederer wrote: Hi, Sorry for my late reply. You can have a look at the applehttp demuxer which also deals with the applehttp uses mpegts iirc. Yes, Apple uses MPEG-TS for their dynamic straming. So it's not useful for my problem. moof atoms from adob f4v files

Re: [libav-api] Http live streaming

2011-10-16 Thread Luca Barbato
On 10/16/11 1:21 PM, Mark Kenna wrote: Hi guys Does the latest release of ffmpeg support apple http live streaming? I prepared a generic segmenter-muxer in libav you can use it to generate segments of mpegts, the playlist generation isn't there yet but if you want to give a try to it you are

Re: [libav-api] Http live streaming

2011-10-16 Thread Luca Barbato
On 10/16/11 6:53 PM, Michael Niedermayer wrote: On Sun, Oct 16, 2011 at 04:58:05PM -0700, Luca Barbato wrote: On 10/16/11 1:21 PM, Mark Kenna wrote: Hi guys Does the latest release of ffmpeg support apple http live streaming? I prepared a generic segmenter-muxer in libav you can use it to

Re: [libav-api] Non-monotonic DTS after libx264 encoding in my app

2011-10-17 Thread Luca Barbato
On 10/17/11 9:07 AM, Andrey Utkin wrote: (I re-ask my question of october, 11. I haven't check it with updated git HEAD now.) When i link my transcoding program with libav (git HEAD), i encounter a problem that i dont meet with ffmpeg libs. I get "[mpegts @ 0x8ee26e0] Application provided invalid

Re: [libav-api] Non-monotonic DTS after libx264 encoding in my app

2011-10-19 Thread Luca Barbato
by dropping frames with "old" > non-monotonic pts. you might use av_write_frame() but yes we should fix the pts guessing code once for all. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list lib

Re: [libav-api] Http streaming

2011-10-25 Thread Luca Barbato
On 10/25/11 2:10 AM, Mark Kenna wrote: Understood - I am looking for a muxer, something along the lines of AirVideo's custom muxer. https://github.com/lu-zero/libav/tree/segment is a start, something will happen with it once I got more time. lu __

Re: [libav-api] Multiple calls to avformat_open_input

2011-10-25 Thread Luca Barbato
e and attach it here? I'd run it on valgrind to get some more insights. I have a number of projects opening and closing input and they do not show this issue. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-a

Re: [libav-api] Help getting started with Windows.

2011-10-31 Thread Luca Barbato
On 10/31/11 8:34 AM, Ronald S. Bultje wrote: Hi, On Mon, Oct 31, 2011 at 7:39 AM, Aaron San Filippo wrote: libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol [..] libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_analysis_wrote referenced in f

Re: [libav-api] Opening and Decoding UDP MpegTS

2011-11-01 Thread Luca Barbato
On 11/1/11 1:07 PM, Evgeny Yakimov wrote: Hello I'm trying to open a UDP mpegts stream, and decode it using libavcodec and ultimately encode it using my own application which uses x264/faac to encode it directly. I've managed to get this working by reading raw frames and the encoding part of my

Re: [libav-api] Opening and Decoding UDP MpegTS

2011-11-02 Thread Luca Barbato
On 11/2/11 2:39 AM, Evgeny Yakimov wrote: Try to run the code in valgrind. If it is memory corruption it will spot it quickly. Btw if you are using udp make sure you set the system buffers to be large enough. Hey Luca After a bit more looking around, I think I pinpointed the problem. Unf

Re: [libav-api] Where is HW acceleration ducoumentation?

2011-11-02 Thread Luca Barbato
On 11/2/11 12:13 AM, wl2776 wrote: wl2776 wrote: Hi all. AVCodecContext::hwaccel_context in avcodec.h Where is that "FFmpeg HW accelerator documentation"? Sources in doc directory don't contain anything, Google brings nothing, search through the FFmpeg sources also doesn't show obvious resul

Re: [libav-api] Where is HW acceleration ducoumentation?

2011-11-03 Thread Luca Barbato
On 11/3/11 1:13 AM, wl2776 wrote: I'm developing a player in windows, and I need hardware accelerated decoding of H264 video. I've found several AVHWAccels using dxva2, but it requires windows Vista or higher. If anyone is able to share CUDA or AMD hw accelerators, I would be grateful. I know v

Re: [libav-api] Streaming video over wifi network

2011-11-05 Thread Luca Barbato
On 11/2/11 3:48 AM, Hema A wrote: Hi, I am trying to encode and stream mpeg4 video using RTP to a vlc player. When tested on X86 platform, the streaming is successful over wired network (LAN). But when ported the same application on Android and tried to stream over wifi, i get the following erro

Re: [libav-api] Thread-safe: (avio_open avformat_open_input)

2011-11-08 Thread Luca Barbato
On 11/8/11 2:10 PM, Evgeny Yakimov wrote: Can you please advise which of these calls need to be protected with mutex locks? Could you check where helgrind complains? librtmp shouldn't have problems and libavformat in my experience has not as well. You surely need to use something like a lock

Re: [libav-api] Questions

2011-11-10 Thread Luca Barbato
On 11/10/11 3:07 AM, Oliveira - CTS wrote: Hello, I AM a System developer Brazilian Engineer. Now I am working as partner with an R&D Institute in Brazilia. Recently I received a request to develop a software able to connect to Internet Radio stations and save it audio. I´d like to receive

Re: [libav-api] Thread-safe: (avio_open avformat_open_input)

2011-11-12 Thread Luca Barbato
On 11/11/11 8:02 AM, Evgeny Yakimov wrote: Hey Lu I've managed to get the output bit working by setting a lock around: lock av_guess_format avformat_alloc_context av_new_stream avio_open avformat_write_header unlock However I have been unable to resolve issues regarding the foll

Re: [libav-api] Using AVPacket::side_data

2011-11-16 Thread Luca Barbato
On 11/16/11 12:30 PM, wl2776 wrote: This field has appeared in AVPacket some time ago. What is it used for? Since there is only one item AV_PKT_DATA_PALETTE in the enum AVPacketSideDataType currently, I can suppose its usage is not very wide. Is there any way to use it to communicate between cus

Re: [libav-api] Building Libav for mac OS

2011-11-20 Thread Luca Barbato
processor a working toolchain (Xcode provides almost everything) and optionally yasm. Once you have it the normal unix instructions works I build my version using gentoo-prefix[1] (emerge =libav- works nicely) lu [1] http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml --

Re: [libav-api] RTSP Auth

2011-11-23 Thread Luca Barbato
ide an url we could test? lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] avformat_open_input always returns "No such file or directory" (-2)

2011-11-24 Thread Luca Barbato
ext = NULL; avformat_open_input(&context, "some file or stream", NULL, NULL); Please help :) what happens if you strace your application? which file does it try to read? lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing

Re: [libav-api] avformat_open_input always returns "No such file or directory" (-2)

2011-11-25 Thread Luca Barbato
On 24/11/11 22:36, tas...@gmail.com wrote: On 11/24/2011 08:17 PM, Luca Barbato wrote: On 24/11/11 13:58, tas...@gmail.com wrote: Hello, I upgraded to v0.7.2 and now avformat_open_input always returns "No such file or directory" (-2). I tried it with files and http-mjpg streams bu

Re: [libav-api] RTSP Auth

2011-11-25 Thread Luca Barbato
On 25/11/11 14:08, Mark Kenna wrote: On 23/11/2011 14:57, Luca Barbato wrote: On 23/11/11 15:00, Mark Kenna wrote: Hi Guys Does LibAv current support RTSP authentication (digest/basic)? Yes it does, see http://git.libav.org/?p=libav.git;a=blob;f=libavformat/rtsp.c;h

Re: [libav-api] RTSP/RTP

2011-11-25 Thread Luca Barbato
register it. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] avformat_open_input always returns "No such file or directory" (-2)

2011-11-25 Thread Luca Barbato
On 25/11/11 11:05, tas...@gmail.com wrote: On 11/25/2011 09:46 AM, Luca Barbato wrote: On 24/11/11 22:36, tas...@gmail.com wrote: On 11/24/2011 08:17 PM, Luca Barbato wrote: On 24/11/11 13:58, tas...@gmail.com wrote: Hello, I upgraded to v0.7.2 and now avformat_open_input always returns &qu

Re: [libav-api] Some help with linking?

2011-12-01 Thread Luca Barbato
The project was abandoned in 2008, but I volunteered to try to revive it several weeks ago. The project home page is at http://avbin.github.com and the repository is at https://github.com/avbin/avbin I'm having a look, would be an option for you use a newer snapshot? lu -- Luca Barbato Ge

Re: [libav-api] RTSP Auth

2011-12-01 Thread Luca Barbato
On 11/28/11 10:07 AM, Mark Kenna wrote: On 25/11/2011 18:02, Luca Barbato wrote: On 25/11/11 14:08, Mark Kenna wrote: On 23/11/2011 14:57, Luca Barbato wrote: On 23/11/11 15:00, Mark Kenna wrote: Hi Guys Does LibAv current support RTSP authentication (digest/basic)? Yes it does, see

Re: [libav-api] YUV Frame Splicing

2011-12-09 Thread Luca Barbato
ut? I think I would have to loop over the first two frames, join them line by line, do the same for the last two images and then splice it together? Does that sound about right? Sounds proper, if you have some cycles to throw over it, you might use avfilter. lu -- Luca Barbato Gentoo/linux

Re: [libav-api] YUV Frame Splicing

2011-12-09 Thread Luca Barbato
On 09/12/11 16:41, Mark Kenna wrote: On 09/12/2011 14:26, Luca Barbato wrote: On 09/12/11 13:33, Mark Kenna wrote: Hi Guys I'm encoding YUV420p frames to H264 at a fixed size of say 640x480. Say I had another frame of YUV420p which was only 160x120, is there any way that I would be ab

Re: [libav-api] YUV Frame Splicing

2011-12-11 Thread Luca Barbato
right dimension for each plane copy line by line from the 4 images done. -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] Overlays and the overlay AVFilter

2011-12-11 Thread Luca Barbato
, hopefully something more the avfilter.h beside using it the same way avconv or avplay does use it there isn't documentation =\ I might try to bake something up soon but not sooner ^^; lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu

Re: [libav-api] How to use VDA with H.264 on Mac OS X?

2011-12-14 Thread Luca Barbato
might expose the vda context manipulation fuction (so put them in the av_ namespace) Possibly I'll move your doc to a texi soon. Thank you =) lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav

Re: [libav-api] Encoding video with non-fixed FPS

2011-12-29 Thread Luca Barbato
ing it the previous frame for the number of frames I knew I dropped, but I'm curious if the encoder does that automatically if it notices a gap in the pts. The encoder does not care about pts, the muxer will and depending on it you might have to use such tricks. lu -- Luca Barbato Gent

Re: [libav-api] Encoding video with non-fixed FPS

2011-12-29 Thread Luca Barbato
, best results could be achieved using a non-interleaving write_frame() though. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] Encoding video with non-fixed FPS

2011-12-29 Thread Luca Barbato
frames then? All depends on the container format =) lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] Encoding video with non-fixed FPS

2011-12-29 Thread Luca Barbato
I need to manually feed the encoder the previous frame for all the dropped frames, or does the encoder know how to handle this case if there's a gap in the pts value? the encoder does not care about timing. It process frames as they go. lu -- Luca Barbato Gentoo/linux ht

Re: [libav-api] Encoding video with non-fixed FPS

2011-12-29 Thread Luca Barbato
mat =) I'm calling av_guess_format() with ".avi". Use flv, mkv or nut, they are way better for your purposes. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] Re-encoding a time interval in existing video

2012-02-13 Thread Luca Barbato
On 2/13/12 3:06 AM, Andrey Utkin wrote: I've solved my issue. Shortly: I remuxed MP4 file to Annex B format with -bsf h264_mp4toannexb. Then, concatenating pieces of original (Annex B) file, and pieces filtered/transcoded by ffmpeg succeeds. As i have guess, Annex B format does not depend on on g

Re: [libav-api] Problem decoding 4:2:2 MPEG2 video

2012-03-24 Thread Luca Barbato
ue something being not clearly documented? We'd like to make sure nobody has such issues. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] FLV Resolution Change Mid Stream

2012-04-05 Thread Luca Barbato
. - make sure the flv muxer adds the updated onMetaData. It shouldn't take much if you force it to be single threaded. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists

Re: [libav-api] FLV Resolution Change Mid Stream

2012-04-09 Thread Luca Barbato
uation. > I can > just restart the stream at a different resolution I guess - bit more > overhead but it's "safer". The main difference is that you have some more latency piling up, but in concept isn't different. lu -

Re: [libav-api] compile for iOS with assembler

2012-04-11 Thread Luca Barbato
On 11/04/12 08:35, Andrey Utkin wrote: > --enable-yasm \ yasm isn't something you need for arm (yet), I wonder why that is happening though. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list l

Re: [libav-api] FLV Resolution Change Mid Stream

2012-04-11 Thread Luca Barbato
On 10/04/12 01:21, Mark Kenna wrote: > On 09/04/2012 21:49, Luca Barbato wrote: >> On 07/04/12 08:20, Mark Kenna wrote: >> >>>> - make sure the libx264 wrapper supports dimension change. >> x264 can do that so it is mostly add an >> >> if (

Re: [libav-api] Encoding Video/Audio and synchronizing using PTS values ?

2012-04-15 Thread Luca Barbato
or aggregation (audio) and in the end you write in the packets you are going to write in the container format the time information you get from the encoders. You can refer to avcodec_encode_audio2 and encode_video2, avconv2 might be a not so simple example but should help you. lu

Re: [libav-api] Writing webm

2012-04-22 Thread Luca Barbato
On 4/21/12 6:30 PM, Jake Alley wrote: I downloaded the latest win32 build and tried to write to a webm file with this example: http://libav.org/doxygen/master/libavformat_2output-example_8c-example.html It fails when trying to open the audio codec static void open_audio(AVFormatContext *oc, A

Re: [libav-api] Writing webm

2012-04-22 Thread Luca Barbato
ult codec per format. > > Has anybody tried output-example.c lately? I did, I'll try again soon. Exactly what are you doing with it? > I'm wondering if it has issues with it. The next thing I'll try is stepping > through avconv, but I was hoping that maybe I could use somet

Re: [libav-api] Encoding Audio+Video : Assigning PTS value for Audio Frame ?

2012-04-22 Thread Luca Barbato
to the libav example and the libav documentation. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] MPEG4 Streaming

2012-06-06 Thread Luca Barbato
ov, thanks to Martin the muxer supports framentation http://libav.org/avconv.html#MOV_002fMP4_002fISMV I hope it answers your question =) lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org h

Re: [libav-api] mov demuxer: avformat_seek_file with AVSEEK_FLAG_BYTE

2012-06-06 Thread Luca Barbato
ov.c does not support > byte- > wise seeking. > Having a look into the mov.c confirms my impression. > > It there a possibility that this feature > will be > added to > the mov demuxer any time soon? Looks like it is missing a read_seek2 implementation and it

Re: [libav-api] MPEG4 Streaming

2012-06-07 Thread Luca Barbato
> > Actually I was going to encode to mp4 Should work even in that mode I think. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] Concatenate m4a (AAC) without reencoding...

2012-06-12 Thread Luca Barbato
On 06/11/2012 09:15 PM, Wagner Patriota wrote: > is there a way to do it? > > I need to concatenate M4A files as fast as possible, so without > reencoding... is it possible? > > ONLY AUDIO FILES AAC. No video > Try abusing mpegts it should work for your purposes.

Re: [libav-api] Cross Compiling

2012-06-26 Thread Luca Barbato
s and builds all the > additional libs (if there is such a thing)? I use Gentoo crossdev for that (beside for x264, I should fix it), for autotools packages you need to just pass the target and make sure you install them in the sysroot. I hope it helps. lu -- Luca Barbato Gentoo/linux http://

Re: [libav-api] RTSP Blocking Functions

2012-06-27 Thread Luca Barbato
On 06/27/2012 01:15 PM, Mark Kenna wrote: > Furthermore, I've found that the interrupt_callback works for > rtsp_transport UDP but not HTTP or TCP (which are the ones I am > interested in). Do you have a code snippet? avconv does work in those situations? lu -- Luca Barbato Gen

Re: [libav-api] FLV Encoding Latency

2012-07-04 Thread Luca Barbato
;"real" frame - still has a delay on playback (somehow) 3. flush packets as they are available, the first frame is an I frame so it must be available as soon the encoder is done. 4. Artificially rise the frame rate adding empty packets (if you are referring to flv)

Re: [libav-api] [libav-devel] Using libav without command line?

2012-07-23 Thread Luca Barbato
On 7/16/12 10:19 AM, Phiến Khuất Văn wrote: Hi everyone! Hi, I suggest you to read the purpose of each mailing list, cross posting will cause most people to ignore your email since such behaviour triggers their spam filter. Could anyone tell me how to solve this problem? I have google many

Re: [libav-api] Mux h.264 to mp4 container

2012-07-23 Thread Luca Barbato
On 7/11/12 1:16 PM, Eberhard, Holger wrote: Hi all, I am looking for an libav API example how to mux H.264 video frames into MP4 container. In our application we are get H.264 frames from a buffer not from a file. Best regards Holger check the output-example.c bare muxing is sort of simple.

Re: [libav-api] Problems with RTSP Feed from Ethernet Webcam

2012-07-27 Thread Luca Barbato
> Would anyone be able to advise me in this issue? > > Thank you for your time. > add -threads 1 to avplay and -analyzeduration 0 and either force the udp buffer to be incredibly large or use tcp. I hope it helps =) lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero ___ libav-api mailing list libav-api@libav.org https://lists.libav.org/mailman/listinfo/libav-api

Re: [libav-api] Interrupt network wait in av_read_frame() to seek

2012-08-28 Thread Luca Barbato
On 08/28/2012 08:47 PM, Andrey Utkin wrote: > 2. Fire the interrupt using avio callback, and then proceed working on > opened stream. It is an abuse of interrupt callback concept and should > not work theoretically. > 3. Non-blocking demuxing (*_FLAG_NONBLOCK). Seems under construction. > Don't see

Re: [libav-api] Interrupt network wait in av_read_frame() to seek

2012-08-29 Thread Luca Barbato
On 8/29/12 5:44 AM, Andrey Utkin wrote: 2012/8/28 Luca Barbato : check how retry_transfer_wrapper works, you will have to manage eagain but nonblocking should work just fine. I think this means _demuxer_ has to manage eagain return from avio_reads, but currently demuxers hls, mpegts seem to

Re: [libav-api] Excluding image codecs

2012-09-24 Thread Luca Barbato
On 09/24/2012 03:53 PM, Ulrich von Zadow wrote: > But that is obviously not very maintainable. It also fails for jpegs - these > have > CODEC_ID_MJPEG and thus are indistinguishable from mjpeg files. Images so far (but might change with webp) are images because of the container, so you should ch

Re: [libav-api] Is there a list of container/codec combinations that work or not?

2012-10-18 Thread Luca Barbato
On 10/16/2012 09:16 PM, Ray Swartz wrote: > I've incorporated libavcodec into a tool we use, and the project manager > has this idea that we should allow the user to select any combination of > container/codec they want (allow by default, instead of having a restricted > list). Does the libavcodec

Re: [libav-api] Libav api example

2012-10-25 Thread Luca Barbato
On 10/25/2012 10:09 AM, Arash Shafiei wrote: > Hi, > > I'm a junior software developer in multimedia. Since 2011 I've been > involved in projects where we used a lot of ffmpeg APIs. > > Usually my reference is "http://dranger.com"; but with all the changes in > ffmpeg and Libav it's not usable an

Re: [libav-api] Testing encoding quality

2012-11-07 Thread Luca Barbato
On 11/06/2012 10:05 PM, Viacheslav Dukalskiy wrote: > Hello, > > I am now developing a system, that performs a lot of Libav transcoding. I > would like to have some kind of automated test, that checks if audio or > video file has been properly transcoded from one format into another. I > don't nee

Re: [libav-api] avprobe in json format

2012-11-27 Thread Luca Barbato
On 11/27/12 3:46 PM, Viacheslav Dukalskiy wrote: > For me it prints nothing. > > This is what I am using: > $ avprobe -version > avprobe version 0.8.3-6:0.8.3-1~bpo60+1abc1, Copyright (c) 2007-2012 the > Libav developers > built on Jun 21 2012 15:54:53 with gcc 4.4.5 > avprobe 0.8.3-6:0.8.3-1~bp

Re: [libav-api] avprobe in json format

2012-11-27 Thread Luca Barbato
On 11/27/2012 04:34 PM, Viacheslav Dukalskiy wrote: > E.g. avprobe -v 0 -show_format -show_streams -of json > big_buck_bunny_480p_h264.mov prints nothing > > avprobe -v 0 -show_format -show_streams big_buck_bunny_480p_h264.mov prints > output is some weird "ini" format Use a libav 9 beta or a rec

Re: [libav-api] avprobe in json format

2012-11-27 Thread Luca Barbato
On 11/27/12 8:44 PM, Viacheslav Dukalskiy wrote: > Thanks for reply. > BTW, any insights when libav 9 is going to be released? Currently we are mostly making sure most of the applications are updated so distributions can use libav 9 as it is released. Help in working with downstreams in this proc

Re: [libav-api] Strange XVID/Lavc AVI file

2013-01-10 Thread Luca Barbato
On 02/10/12 20:38, Jordon Hofer wrote: > I work on a project that uses AVI files, primarily XVID. > I have written a library that parses the AVI files to make > sure that they are intact and use a supported codec. > If the FourCC is "XVID", it parses into the stream to get the XVID bitstream > ver

Re: [libav-api] Accessing HTTP/MJPEG Stream from Axis Encoder

2013-02-05 Thread Luca Barbato
On 04/02/13 23:16, Michael Rice wrote: > Hello - > > I am using an Axis Q7404 encoder to convert analog video to digital and > stream it on my network. I am writing an application using libav to display > the video streams. The Axis will output either H.264 over RTSP or MJPEG > over HTTP. I can vi

Re: [libav-api] Accessing HTTP/MJPEG Stream from Axis Encoder

2013-02-05 Thread Luca Barbato
On 05/02/13 16:20, Michael Rice wrote: > I am currently using "10_alpha1", at least that's what version.h says. The > tarball that I downloaded is "libav-HEAD-e034cc6.tar.gz" on 16 Jan 2013 (I > used the git snapshot URL link). > > I just got the latest nightly snapshot and it has the same results

Re: [libav-api] Accessing HTTP/MJPEG Stream from Axis Encoder

2013-02-07 Thread Luca Barbato
On 06/02/13 16:20, Michael Rice wrote: > The resulting file is a collection of jpeg images separated by a MIME > boundary, such as the following snapshot (dumped using hexdump). After the > 12544 bytes in the first image, there is another MIME boundary. > Please open a bug and provide a sample fi

Re: [libav-api] High CPU load of the avcodec_decode_video2() function

2013-03-16 Thread Luca Barbato
On 14/03/13 23:15, Ondřej Perutka wrote: > And thats it! I made a test which confirmed my guess. The problem is > really in transitions between SSE and AVX. I modified the loop_filter() > function from libavcodec/h264.c so there is __asm__("vzeroall") before and > after all calls to the ff_h264_fil

Re: [libav-api] Understanding and working with sws_scale

2013-03-19 Thread Luca Barbato
On 19/03/13 01:54, Eric Urban wrote: > I have reverse engineered what appears to be a proprietary protocol used by > many Chinese designed and manufactured security DVRs. I'm able to extract > h.264 frames from a TCP Data Stream. Initially I was able just writing all > the frames one after another

  1   2   3   >