Re: [FFmpeg-user] error in make test

2019-10-03 Thread Carl Eugen Hoyos


> Am 04.10.2019 um 02:31 schrieb S Andreason :
> 
> extra-ldflags=-L/usr/lib/i386-linux-gnu

The test is inherently broken on i386 (it tests for identical float behaviour 
which is not guaranteed), you can wait until it gets fixed or test 
--extra-cflags=-msse2
(There is a setting that changes float behaviour on i386, not sure if this is 
the right one but it doesn’t matter: The test is definitely broken.)

Sorry for not understanding this issue earlier, Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] error in make test

2019-10-03 Thread S Andreason

Carl Eugen Hoyos wrote:

Am Sa., 28. Sept. 2019 um 21:01 Uhr schrieb S Andreason :


TESTlavf-gray.fits
--- ./tests/ref/lavf/gray.fits2019-06-30 20:40:14.0 -0700
+++ tests/data/fate/lavf-gray.fits2019-09-28 10:42:08.360464015 -0700
@@ -1,3 +1,3 @@
   d76b46a5a336b56f73451817cdf3897c *tests/data/lavf/lavf.gray.fits
   2664000 tests/data/lavf/lavf.gray.fits
-tests/data/lavf/lavf.gray.fits CRC=0x7aa0122f
+tests/data/lavf/lavf.gray.fits CRC=0xcea576a0
Test lavf-gray.fits failed. Look at tests/data/fate/lavf-gray.fits.err
for details.
tests/Makefile:240: recipe for target 'fate-lavf-gray.fits' failed
make: *** [fate-lavf-gray.fits] Error 1

Should be fixed, please test again.


After figuring out the first make SAMPLES command is a prerequisite, or 
move fate-suite/ to the current build directory, I have re-run the test...


TEST    lavf-pgmpipe
TEST    lavf-ppmpipe
TEST    lavf-apng
TEST    lavf-apng.png
TEST    lavf-gray.fits
--- ./tests/ref/lavf/gray.fits    2019-06-30 20:40:14.0 -0700
+++ tests/data/fate/lavf-gray.fits    2019-10-03 17:27:03.989005117 -0700
@@ -1,3 +1,3 @@
 d76b46a5a336b56f73451817cdf3897c *tests/data/lavf/lavf.gray.fits
 2664000 tests/data/lavf/lavf.gray.fits
-tests/data/lavf/lavf.gray.fits CRC=0x7aa0122f
+tests/data/lavf/lavf.gray.fits CRC=0xcea576a0
Test lavf-gray.fits failed. Look at tests/data/fate/lavf-gray.fits.err 
for details.

tests/Makefile:240: recipe for target 'fate-lavf-gray.fits' failed
make: *** [fate-lavf-gray.fits] Error 1

$ cat tests/data/fate/lavf-gray.fits.err
ffmpeg version N-95213-g379e5d29d5 Copyright (c) 2000-2019 the FFmpeg 
developers

  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --prefix=/usr/local --enable-gpl --enable-libmp3lame 
--enable-libvorbis --enable-libx264 --enable-libopenjpeg 
--enable-libfreetype --disable-doc --disable-htmlpages 
--disable-podpages --enable-shared --enable-libvpx 
--extra-cflags=-I/usr/include --extra-ldflags=-L/usr/lib/i386-linux-gnu 
--enable-libass --enable-libtesseract

  libavutil  56. 35.100 / 56. 35.100
  libavcodec 58. 59.101 / 58. 59.101
  libavformat    58. 33.100 / 58. 33.100
  libavdevice    58.  9.100 / 58.  9.100
  libavfilter 7. 61.100 /  7. 59.100
  libswscale  5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Input #0, image2, from 
'/usr/share/audvid/src-git/ffmpeg-build-20191003/tests/vsynth1/%02d.pgm':

  Duration: 00:00:02.00, start: 0.00, bitrate: N/A
    Stream #0:0: Video: pgmyuv, yuv420p, 352x288, 25 fps, 25 tbr, 25 
tbn, 25 tbc

Please use -q:a or -q:v, -qscale is ambiguous
Stream mapping:
  Stream #0:0 -> #0:0 (pgmyuv (native) -> fits (native))
Output #0, fits, to 
'/usr/share/audvid/src-git/ffmpeg-build-20191003/tests/data/lavf/lavf.gray.fits':

  Metadata:
    title   : lavftest
    Stream #0:0: Video: fits, gray, 352x288, q=2-31, 200 kb/s, 25 fps, 
25 tbn, 25 tbc

    Metadata:
  encoder : Lavc fits
frame=   25 fps=0.0 q=-0.0 Lsize=    2602kB time=00:00:01.00 
bitrate=21312.0kbits/s speed=  32x
video:2531kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 2.78%
ffmpeg version N-95213-g379e5d29d5 Copyright (c) 2000-2019 the FFmpeg 
developers

  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --prefix=/usr/local --enable-gpl --enable-libmp3lame 
--enable-libvorbis --enable-libx264 --enable-libopenjpeg 
--enable-libfreetype --disable-doc --disable-htmlpages 
--disable-podpages --enable-shared --enable-libvpx 
--extra-cflags=-I/usr/include --extra-ldflags=-L/usr/lib/i386-linux-gnu 
--enable-libass --enable-libtesseract

  libavutil  56. 35.100 / 56. 35.100
  libavcodec 58. 59.101 / 58. 59.101
  libavformat    58. 33.100 / 58. 33.100
  libavdevice    58.  9.100 / 58.  9.100
  libavfilter 7. 61.100 /  7. 59.100
  libswscale  5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Input #0, fits, from 
'/usr/share/audvid/src-git/ffmpeg-build-20191003/tests/data/lavf/lavf.gray.fits':

  Duration: N/A, start: 0.00, bitrate: N/A
    Stream #0:0: Video: fits, gray, 352x288, 1 fps, 1 tbr, 1 tbn, 1 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (fits (native) -> rawvideo (native))
Output #0, crc, to 
'/usr/share/audvid/src-git/ffmpeg-build-20191003/tests/data/lavf-gray.fits.lavf.crc':

  Metadata:
    encoder : Lavf58.33.100
    Stream #0:0: Video: rawvideo (Y800 / 0x30303859), gray, 352x288, 
q=2-31, 811 kb/s, 1 fps, 1 tbn, 1 tbc

    Metadata:
  encoder : Lavc58.59.101 rawvideo
frame=   25 fps=0.0 q=-0.0 Lsize=   0kB time=00:00:25.00 bitrate=   
0.0kbits/s speed= 369x
video:2475kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: unknown



Stewart
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo

Re: [FFmpeg-user] MP4 -> ADTS Headers

2019-10-03 Thread samuel . widmer
Sehr geehrte Damen und Herren

Besten Dank für Ihr Mail. Ich bin vom 3. Oktober bis 9. Oktober 2019 abwesend.

Die Mails werden in dieser Zeit nur sporadisch beantwortet.

In dringenden Fällen nehmen Sie bitte mit supp...@bluecall.ch Kontakt auf.


Herzlichen Dank für Ihr Verständnis und eine gute Zeit

Samuel Widmer



___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] MP4 -> ADTS Headers

2019-10-03 Thread Ronak Patel via ffmpeg-user


> On Oct 3, 2019, at 5:27 PM, Carl Eugen Hoyos  wrote:
> 
> Am Do., 3. Okt. 2019 um 06:49 Uhr schrieb Ronak via ffmpeg-user
> :
>> I’m writing a C++ program to validate the integrity of a Fragmented MP4 file 
>> containing AAC audio.
> 
> Note that when using the library, the libav-user mailing list is more 
> suitable:
> https://ffmpeg.org/contact.html#MailingLists

Ok I also emailed there. Do you have any ideas what to do here? From what I 
read in your code; the extra data seems like should have a fully formed adts 
header supplied.

If that’s true then why does the muxer even exist? I’m wondering if I’m missing 
some options on the input format context.

> 
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] MP4 -> ADTS Headers

2019-10-03 Thread Ronak via ffmpeg-user

> On Oct 3, 2019, at 12:48 AM, Ronak via ffmpeg-user  
> wrote:
> 
> Hi,
> 
> I’m writing a C++ program to validate the integrity of a Fragmented MP4 file 
> containing AAC audio.
> This program would parse the FMP4 file, read each audio packet, attachment 
> ADTS headers, and then try to decode the AAC using libfdk_aac.
> 
> I am using libavformat, and I am able to parse the MP4 atoms correctly, 
> however I’m having issues figuring out the best way to attach the ADTS 
> headers.
> 
> The best sample I was able to find was:
> 
> https://patchwork.ffmpeg.org/patch/3184/ 
> 
> 
> Is there a better example for me to use?
> 


Hi,

So I managed to figure out how to do this, and I’m up to the part of figuring 
out what I need to write in the extradata field of the AVCodecParameters here:

// create another context used to append ADTS headers to the parsed segments, 
if we need them
bool isBufferWritable = true;
avformat_alloc_output_context2(>adtsMuxerContext, NULL, "adts", NULL);
this->adtsMuxerWriterContext = avio_alloc_context(this->adtsPacketBuffer, 
this->adtsPacketBufferSize, isBufferWritable, this, NULL, 
AudioAssetReader::writeADTSPacket, NULL);
this->adtsMuxerContext->pb = this->adtsMuxerWriterContext;

// initialize an ADTS stream
AVCodecID aacCodec = AVCodecID::AV_CODEC_ID_AAC;
AVCodec *codec = avcodec_find_encoder(aacCodec);
AVStream *stream = avformat_new_stream(this->adtsMuxerContext, codec);
stream->id = this->adtsMuxerContext->nb_streams - 1;
stream->time_base.den = input.getSampleRateHz();
stream->time_base.num = 1;

// configure the stream with the details of the AAC packets
AVCodecParameters *codecParameters = stream->codecpar;
codecParameters->codec_id = aacCodec;
codecParameters->bit_rate = input.getBitrateBps();
codecParameters->profile = this->getAACProfileForCodec(input.getCodec());
codecParameters->sample_rate = input.getSampleRateHz();
codecParameters->channels = input.getChannelCount();
codecParameters->codec_type = AVMEDIA_TYPE_AUDIO;
codecParameters->channel_layout = 
av_get_default_channel_layout(input.getChannelCount());
codecParameters->extradata = new uint8_t[AV_INPUT_BUFFER_PADDING_SIZE + 2];
codecParameters->extradata_size = 2;
memset(codecParameters->extradata, 2, AV_INPUT_BUFFER_PADDING_SIZE + 2);

But this is still not working with errors about: [adts @ 0x7f87c4803a00] MPEG-4 
AOT 0 is not allowed in ADTS


Reading the code in FFmpeg, it looks like I need to send in a full fledged ADTS 
header into extradata is that correct?

> Ronak
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] FFMpeg and WebRTC

2019-10-03 Thread Simon Brown
Hi,
I would like to take an H264+AAC transport stream and send it to a web
page.  The easiest way to do this is as WebRTC.  Can FFmpeg convert an
H264+AAC transport stream into WebRTC?  It seems to be able to convert to
most things, eg MP4, RTMP, etc.  But I can't find a webrtc option.

Regards,
Simon
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] IRC #ffmpeg on freenode

2019-10-03 Thread Goran Obal
Yes, thank you, this is it.

On Thu, Oct 3, 2019 at 3:24 PM tth  wrote:

> On 10/03/19 15:04:25, Goran Obal wrote:
> > Hi.
> >
> > Does anyone else have problems sending messages to IRC channel
> > #ffmpeg on
> > freenode? I always get "Cannot send to nick/channel" when I try to say
> > something.
>
> May be you have to be authentified :
> https://freenode.net/kb/answer/registration
>
>
>
> --
> ---( https://framasphere.org/tags/tetalab )-
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] IRC #ffmpeg on freenode

2019-10-03 Thread tth

On 10/03/19 15:04:25, Goran Obal wrote:

Hi.

Does anyone else have problems sending messages to IRC channel  
#ffmpeg on

freenode? I always get "Cannot send to nick/channel" when I try to say
something.


   May be you have to be authentified :
   https://freenode.net/kb/answer/registration



--
---( https://framasphere.org/tags/tetalab )-
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] IRC #ffmpeg on freenode

2019-10-03 Thread Goran Obal
Hi.

Does anyone else have problems sending messages to IRC channel #ffmpeg on
freenode? I always get "Cannot send to nick/channel" when I try to say
something.

Br.
Goran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Stereoscopic hwaccel

2019-10-03 Thread JackDesBwa
2019-10-03 01:23, Mark Thompson :
> On 17/09/2019 17:33, JackDesBwa wrote:
> > Hi,
> >
> > I do stereoscopic (3d) photography for a few years and I just start to
> > experiment on stereoscopic videos.
> > The filter_complex argument of ffmpeg allows me to do the editing I have in
> > mind more precisely and less painfully than I was able to do with regular
> > non-linear editors before.
> > Now that the basic editing tools seem to be right for my video projects, I
> > want to accelerate rendering with hardware, and here starts my question.
> >
> > *How to have frame-packing information in h264 streams when generated with
> > hardware acceleration?*
> >
> > ...
> > Accelerating with vaapi:
> > ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi
> > -hwaccel_output_format vaapi -i aligned/l_01.mp4 -i aligned/r_01.mp4
> > -filter_complex '[0][1]framepack=sbs,format=nv12|vaapi,hwupload' -c:v
> > h264_vaapi -qp 22 -profile:v high out_vaapi.mp4
>
> Try this with 
> .

Wow, thanks to have worked on it.
Sure I can try the patch to confirm it works, but you might have to help me.

1. This patch seems to be in a series. Should I apply the whole series
or only this patch would suffice?
2. On which base should I apply it/them? Only master seems to be
recent, but it does not have your patches yet.
3. In this patch, you do not use av_frame_get_side_data(frame,
AV_FRAME_DATA_STEREO3D) as in libx264.c codec, but I see you added a
frame_packing. Does it mean I have to add an option in the command
line?

JackDesBwa
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".