chris brisendine | 30 Jun 02:53 2015
Picon

picamera h264 Discarding initial frame(s) with no timestamp.

I am having trouble on my little project the reason on the FIFO is I
want to record full time on the highres.h264 locally but if I want to
stream on demand I would like to use the lowres.h264 which is the FIFO
to ustream via FLV rtmp and the scripts are launched via PHP. I have
had 0 success I don't really care about more than 2 frames a second
streaming and my upload maxes out about 300kbps. I have tried
different solutions like avconv and get errors like
"Failed to update header with correct duration.e=0.40 bitrate=1884.7kbits/s
[flv  <at>  0x59b8e0] Failed to update header with correct filesize.
" "Discarding initial frame(s) with no timestamp.=10000000000.00
bitrate= 0.0kbits/s
[fps  <at>  0x1c3a500] Discarding initial frame(s) with no timestamp.
  Last message repeated 3 times
Discarding initial frame(s) with no timestamp.=10000000000.00 bitrate=
  0.0kbits/s
[fps  <at>  0x1d1b9e0] Discarding initial frame(s) with no timestamp. There
is no audio just raw h264
the picamera code is
"

If anyone could please help It would be really appreciated!
issued command when I want to stream
avconv -async -1 -i foo.h264 -r 30 -bt 256k -f flv rtmp://serverhere

picamera code:
import picamera

with picamera.PiCamera() as camera:
    camera.resolution = (640, 480)
    camera.start_recording('foo.h264')
(Continue reading)

Nicolas George | 28 Jun 00:02 2015

Re: License Compliance Checklist

Le nonidi 9 messidor, an CCXXIII, Robin Stevens a écrit :
> If you give them the right to distribute your software, you should limit it
> redistribution of an unmodified copy, which would avoid this (and other)
> problem(s).

Definitely not. Restricting redistribution to unmodified copies is contrary
to all that Libre Software stands for.

To make it clear that re-distribution of modified copies is done under the
responsibility of the person doing it, a standard disclaimer should be
enough.

Regards,

--

-- 
  Nicolas George
Axel Holzinger | 27 Jun 22:17 2015
Picon
Picon

Re: License Compliance Checklist

On Saturday, June 27, 2015, Robin Stevens wrote:

> On Saturday, June 27, 2015, Info || Non-Lethal Applications <info <at> non-
> lethal-applications.com> wrote:
> Hi,
> 
> > if I read http://ffmpeg.org/legal.html there is #18 which says "Make sure
> > your program is not using any GPL libraries (notably libx264)."
> >
> > Could anybody please elaborate on this. How can a caller know if it opens a
> > file and tries to decode it, if Ffmpeg uses LGPL or GPL code?
> >
> > I know that Ffmpeg can be built without --enable-gpl resp. --enable-
> nonfree,
> > but what if the user replaces LGPLed shared Ffmpeg libraries with GPLed
> > shared Ffmpeg libraries? Now it could happen that an application - without
> > wanting to do so - is using GPL code inside Ffmpeg libraries and thus
> > infringing GPL.
> >
> > What can an application do (mean which Ffmpeg functions can be called) to
> > prevent this?
> 
> I personally wouldn’t consider the improbable cause where a user exchanges
> a shared lib because this is - honestly - not my problem.
> If you are really concerned about this (but I really think you shouldn’t), you
> can put some special notice in your license agreement.
> 
> I don’t know which platforms you’re targeting but on the Mac, I’d just put
> the libs inside my app bundle and make sure that they are loaded from
> there.
(Continue reading)

Axel Holzinger | 27 Jun 20:03 2015
Picon
Picon

License Compliance Checklist

Hello,

if I read http://ffmpeg.org/legal.html there is #18 which says "Make sure
your program is not using any GPL libraries (notably libx264)."

Could anybody please elaborate on this. How can a caller know if it opens a
file and tries to decode it, if Ffmpeg uses LGPL or GPL code?

I know that Ffmpeg can be built without --enable-gpl resp. --enable-nonfree,
but what if the user replaces LGPLed shared Ffmpeg libraries with GPLed
shared Ffmpeg libraries? Now it could happen that an application - without
wanting to do so - is using GPL code inside Ffmpeg libraries and thus
infringing GPL.

What can an application do (mean which Ffmpeg functions can be called) to
prevent this?

Thank you
Axel

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus

_______________________________________________
Libav-user mailing list
Libav-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
Mohamed Moanis | 27 Jun 11:33 2015

Custom IO strange behavior.

<!-- .hmmessage P { margin:0px; padding:0px } body.hmmessage { font-size: 12pt; font-family:Calibri } -->
I am implementing a custom IO to read data packets then transcode them.
The problem I have is memory leakage, which I guess is coming from the custom IO buffer I allocate to read the data.
I am referring to the avio example. I have exactly the same callback function.
struct buffer_data {
size_t size; ///< size left in the buffer
};
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
{
struct buffer_data *bd = (struct buffer_data *)opaque;
buf_size = FFMIN(buf_size, bd->size);
printf("ptr:%p size:%zu\n", bd->ptr, bd->size);
/* copy internal buffer data to buf */
memcpy(buf, bd->ptr, buf_size);
bd->ptr += buf_size;
bd->size -= buf_size;
return buf_size;
}

When I debug my code, the function is called even after the data was all read. It is called more than a time with the buffer size is zero and later on the ptr itself is null. My question here is why does that happen?

The second question, is how to free the buffer allocated. In my application I require reading a JPEG frame from a camera that is considerable in size. What I do, is  that I free the AVIOContext and it's buffer just after I call avformat_open_input. But I can see the memory usage increasing by an estimate of the frame size each run.

Regards.



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

One AVFormatContext per track vs. one AVFormatContext for all tracks

I’m currently considering to restructure part of my file reading code and I was wondering if using
AVFormatContext for each video/audio track will significantly decrease performance compared to one
AVFormatContext reading and decoding all video/audio tracks?

Thanks!

_______________________________________________
Libav-user mailing list
Libav-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
Mauricio Lisboa Perez | 24 Jun 18:26 2015
Picon

Motion Vectors extraction with HEVC Videos

Hello all,

I am trying to use the extract_mvs example from doc/examples with HEVC videos, but unfortunately no motion vector information is present in the output. With H264 it is working fine.
I have observed this is due to the fact that no side_data is returned for the extracted frames.

Could it be that this feature is still not available to HEVC codec?
Or I should retrieve this information by other means, such as directly extracting a HEVCFrame? If so, how could I do this?

I am using FFMPEG 2.7 and I have installed and enabled libx265:

 $ ffmpeg -buildconf
ffmpeg version 2.7 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --prefix=/home/mperez/dev/ffmpeg-2.7/build --enable-libx265 --enable-gpl
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100

  configuration:
    --prefix=/home/mperez/dev/ffmpeg-2.7/build
    --enable-libx265
    --enable-gpl

Thanks in advance.

[ ]'s,
Mauricio Lisboa Perez
_______________________________________________
Libav-user mailing list
Libav-user@...
http://ffmpeg.org/mailman/listinfo/libav-user
Georg Stein | 22 Jun 19:06 2015
Picon

LIBAV rtmp params

Hello,
i'm a little bit confused how to set for an rtmp stream params like or
swfveryfication. When its compiled with rtmpdump lib suport this works
with by example
ffmpeg -i "rtmp://aloha.cdnvideo.ru:443/aloha/ziktv
swfUrl=http://www.aloha.cdnvideo.ru/aloha/slon/SlonPlayer_stable.swf
live=1" -c copy "../zik.flv"

but libav is giving me here only this:
Detected librtmp style URL parameters, these aren't supported by the
libavformat internal RTMP handler currently enabled. See the
documentation for the correct way to pass parameters.

i could not find in the docu how i have to hand over this.

could only find this in the protcoll sources:

{"live", "live stream", 0, AV_OPT_TYPE_CONST, {-1}, 0, 0, DEC, "rtmp_live"},
      {"recorded", "recorded stream", 0, AV_OPT_TYPE_CONST, {0}, 0, 0,
DEC, "rtmp_live"},
      {"rtmp_pageurl", "URL of the web page in which the media was
embedded. By default no value will be sent.", OFFSET(pageurl),
AV_OPT_TYPE_STRING, {.str = NULL }, 0, 0, DEC},
     {"rtmp_swfurl", "URL of the SWF player. By default no value will be
sent", OFFSET(swfurl), AV_OPT_TYPE_STRING, {.str = NULL }, 0, 0, DEC|ENC},
     {"rtmp_swfverify", "URL to player swf file, compute hash/size
automatically.", OFFSET(swfverify), AV_OPT_TYPE_STRING, {.str = NULL },
0, 0, DEC},
     {"rtmp_tcurl", "URL of the target stream. Defaults to
proto://host[:port]/app.", OFFSET(tcurl), AV_OPT_TYPE_STRING, {.str =
NULL }, 0, 0, DEC|ENC},
      {"rtmp_playpath", "Stream identifier to play or to publish",
OFFSET(playpath), AV_OPT_TYPE_STRING, {.str = NULL }, 0, 0, DEC|ENC},

so perhaps somebody can help me here

Georg
Mohamed Moanis | 21 Jun 12:57 2015

avformat_open_input error with custom IO

I am trying to implement a custom IO read, where I have some jpeg frames coming as byte array and I have to decode them for later processing.
For now my function just read the first two successive frames, then the call to 

avformat_open_input return -1094995529



uint8_t* buffer = NULL, * avioCxt_buffer = NULL;
buffer_data bd;
int ret = 0;

bd.ptr = (uint8_t *) pJPEGFrame;
bd.size = len;

// allocate the context data structure
if ( (*outputFormatCxt = avformat_alloc_context() ) == NULL)
{
fprintf(stderr, "convert_JPEG_Frame_TO_AVFrame <at> line(%d) - failed to allocate memory for context", __LINE__);
return -1;
}

if ( (avioCxt_buffer = (uint8_t *) av_malloc(len)) == NULL)
{
fprintf(stderr, "convert_JPEG_Frame_TO_AVFrame <at> line(%d) - failed to allocate memory", __LINE__);
avformat_close_input(outputFormatCxt);
return -1;
}

if ( (*pAvIOCxt = avio_alloc_context(avioCxt_buffer, len, 0, &bd, read_packet, NULL, NULL)) == NULL)
{
fprintf(stderr, "convert_JPEG_Frame_TO_AVFrame <at> line(%d) - failed to allocate memory", __LINE__);
return -1;
}

(*outputFormatCxt)->pb = *pAvIOCxt;
if ( (ret = avformat_open_input(outputFormatCxt, NULL, NULL, NULL)) < 0)
{
fprintf(stderr, "convert_JPEG_Frame_TO_AVFrame <at> line(%d) - failed to allocate memory", __LINE__);
return -1;
}

I am following the avio_read example using the same read callback function for the avio context.

Thanks in advance.
_______________________________________________
Libav-user mailing list
Libav-user@...
http://ffmpeg.org/mailman/listinfo/libav-user
Ali Siddique | 21 Jun 00:48 2015
Picon

r2538 and libx264

Hello.

I am new to FFMPEG. Please tell me the differences between x264 encoder r2538 and libx264. Does r2538 perform better than FFMPEG encoder?

Thanks,
Ali
_______________________________________________
Libav-user mailing list
Libav-user@...
http://ffmpeg.org/mailman/listinfo/libav-user
budy | 20 Jun 16:33 2015
Picon

Decoding support for G.729

Hello everybody.

Normally, Libavcodec can decode sample encoded with g.729 codec (I have
already succeeded to do this with old version of libav).

But I have just tried to decode g.729 with the version of libav available
with Debian Jessie : and it doens't work. The decoder doens't seems to be
there , and when i ask avcodec with the -codecs option, g.729 is in the
list, but tells it doens't support decoding ...

When i look to the ffmpeg doxygen, older versions had a file name g729dec.c
in libavcodec, why it is not here anymore ?

Thank you .

--
View this message in context: http://libav-users.943685.n4.nabble.com/Decoding-support-for-G-729-tp4661236.html
Sent from the libav-users mailing list archive at Nabble.com.

Gmane