[Libav-user] statically linking x264 and x265 into ffmpeg

2016-09-06 Thread Peter Steinbach
Hi to all, for a project, I'd like to bundle ffmpeg statically. The project itself is cross-platform, which is proving to be a challenge. For this, I'd like to build ffmpeg statically and link in libx264 and libx265 so that I only have to link my library in turn to ffmpeg and be done with

Re: [Libav-user] statically linking x264 and x265 into ffmpeg

2016-09-06 Thread Peter Steinbach
On 09/06/2016 12:00 PM, Carl Eugen Hoyos wrote: 2016-09-06 10:14 GMT+02:00 Peter Steinbach : I then build ffmpeg with the following flags: $ ./configure --prefix=/tmp/master-x264-x265-minimal --enable-static --enable-pic --disable-everything --disable-programs

Re: [Libav-user] statically linking x264 and x265 into ffmpeg

2016-09-06 Thread Carl Eugen Hoyos
Hi! 2016-09-06 12:55 GMT+02:00 Peter Steinbach : > On 09/06/2016 12:00 PM, Carl Eugen Hoyos wrote: >> An alternative is using "/path/to/lib.a" on >> the linking line instead of "-L/path/to -llib". > > Alright, I'll look into doing that. So you mean that I should add > ```

Re: [Libav-user] statically linking x264 and x265 into ffmpeg

2016-09-06 Thread Peter Steinbach
Alright, so this ``` ./configure --prefix=/tmp/ffmpeg --disable-programs --enable-pic --enable-static --enable-libx264 --enable-libx265 --enable-gpl --extra-ldflags="/home/steinbac/software/x264/master-static/lib/libx264.a /home/steinbac/software/x265/master-static/lib/libx265.a" ```

Re: [Libav-user] Getting a Frame question

2016-09-06 Thread M N
Yes I need to call av_write_trailer, but I am getting an error with avformat_write_header which is: "Invalid data found when processing input" What causes that? 06.09.2016, 01:19, "Leandro Raffo" : > Dont you need to call av_write_trailer at the end? > > 2016-09-05 18:42

[Libav-user] Adjust fps

2016-09-06 Thread Leandro Raffo
I'm trying to remux a video changing its frame rate, but I'm a bit lost in how to do it. This is what I have in mind: Suppose I have a 20 fps video and I want to take it for example to 10 fps, should I drop every second frame (paket) and JUST multiply the dts and pts by 2. What if I want to go 3

Re: [Libav-user] Sampling parts of a video on packet level

2016-09-06 Thread Carl Eugen Hoyos
2016-09-06 19:21 GMT+02:00 Jesper Taxbøl : > I was therefore wondering if its possible to pickup data > frames before the video decoding Not generally (think of non-key frames) but you can use a lossless codec (ffv1) for encoding. Note that this will increase the bandwidth

[Libav-user] Sampling parts of a video on packet level

2016-09-06 Thread Jesper Taxbøl
Hi, I am working on a remote application that is using OpenCV to detect a ball in a video stream. I have a need to monitor how its doing from home, and therefore need access to source video and the detections found. The system is unfortunately behind limited bandwith connection so I am forced to

Re: [Libav-user] How to achieve 30 FPS using APIs?

2016-09-06 Thread Leandro Raffo
From where are you extracting frames? 2016-09-06 5:03 GMT-03:00 Amber Beriwal : > We have seen that using command line, ffmpeg is capable of extracting frames > at 30 fps. Even using Xuggler, we are able to extract frames at 30 fps. > > > > But when we use FFMPEG APIs

[Libav-user] failing decoding with certain wma files

2016-09-06 Thread Steve Myers
I'm trying to build a small universal audio decoding library that decodes the file a frame at a time (on Android platform). I've built a command line static ffmpeg that I can exec that works on every file format I have tested. Now I am trying to build a shared library version, so I can directly

[Libav-user] How to achieve 30 FPS using APIs?

2016-09-06 Thread Amber Beriwal
We have seen that using command line, ffmpeg is capable of extracting frames at 30 fps. Even using Xuggler, we are able to extract frames at 30 fps. But when we use FFMPEG APIs directly in our code, we are getting following results: - 720p video (1280 x 720) - 16 fps (approx. 60 ms/frame)

Re: [Libav-user] statically linking x264 and x265 into ffmpeg

2016-09-06 Thread Carl Eugen Hoyos
2016-09-06 14:18 GMT+02:00 Peter Steinbach : > ./configure --prefix=/tmp/ffmpeg --disable-programs --enable-pic > --enable-static --enable-libx264 --enable-libx265 --enable-gpl > --extra-ldflags="/home/steinbac/software/x264/master-static/lib/libx264.a >

Re: [Libav-user] statically linking x264 and x265 into ffmpeg

2016-09-06 Thread Carl Eugen Hoyos
2016-09-06 10:14 GMT+02:00 Peter Steinbach : > $ ./configure --prefix=/tmp/master-x264-x265-minimal --enable-static > --enable-pic --disable-everything --disable-programs --enable-libx264 > --enable-libx265 --enable-gpl > > When running "make V=1" and inspecting the gcc

Re: [Libav-user] statically linking x264 and x265 into ffmpeg

2016-09-06 Thread Carl Eugen Hoyos
2016-09-06 10:14 GMT+02:00 Peter Steinbach : > I then build ffmpeg with the following flags: > $ ./configure --prefix=/tmp/master-x264-x265-minimal --enable-static > --enable-pic --disable-everything --disable-programs --enable-libx264 > --enable-libx265 --enable-gpl