[FFmpeg-user] ffmpeg AAC with no global headers is currently not supported.

2018-07-11 Thread Mohammed Sha
Hi ALL,

While streaming test aac audio using ffmpeg, Not able to get audio at the
client side, while checking this may be because " AAC with no global
headers is currently not supported." as per the link given below.

https://ffmpeg.org/pipermail/ffmpeg-devel/2008-March/050846.html

Tried with the fix as explained in the link then also same issue.

 ./ffmpeg -re -i ~/Downloads/test_audio.aac -acodec copy -vn -ac 2 -ar
44100 -flags +global_header -f rtsp rtsp://
shafi:shafi@192.168.1.135:1935/live/myStream
ffmpeg version 4.0.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
  configuration: --pkg-config-flags=--static --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libx265 --enable-nonfree --enable-openssl
  libavutil  56. 14.100 / 56. 14.100
  libavcodec 58. 18.100 / 58. 18.100
  libavformat58. 12.100 / 58. 12.100
  libavdevice58.  3.100 / 58.  3.100
  libavfilter 7. 16.100 /  7. 16.100
  libswscale  5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc55.  1.100 / 55.  1.100
[aac @ 0x2192980] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from '/home/vkchlt0199/Downloads/test_audio.aac':
  Duration: 00:08:47.25, bitrate: 81 kb/s
Stream #0:0: Audio: aac (LC), 16000 Hz, mono, fltp, 81 kb/s
*[rtsp @ 0x7ffd4ffe7a90] AAC with no global headers is currently not
supported.*
Output #0, rtsp, to 'rtsp://shafi:shafi@192.168.1.135:1935/live/myStream':
  Metadata:
encoder : Lavf58.12.100
Stream #0:0: Audio: aac (LC), 16000 Hz, mono, fltp, 81 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=N/A time=00:00:08.25 bitrate=N/A speed=1.02x
video:0kB audio:83kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown

Couldsomeone guide me on this
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] How to compile ffmpeg on Android

2018-07-11 Thread Rafael Lima
Are you jealous? did you at least tried to build?

it is not outdated and not broken... as I've made it few weeks ago using
the latest version from every lib i needed for my project...

if you dont need all of them it's good you can simple remove from config
file... a work that seams to hard for you to do

On Wed, Jul 11, 2018 at 7:13 PM, Carl Eugen Hoyos 
wrote:

> 2018-07-12 0:01 GMT+02:00, Rafael Lima :
> > https://github.com/bolds07/ffmpeg-for-android-for-dummies
>
> Yes, apart from being outdated and broken (as every other script
> I have seen so far), this one has the great advantage that it
> produces binaries that you cannot legally distribute - that must
> help many users...
>
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>



-- 
--
Rafael Lima
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] How to compile ffmpeg on Android

2018-07-11 Thread Carl Eugen Hoyos
2018-07-12 0:01 GMT+02:00, Rafael Lima :
> https://github.com/bolds07/ffmpeg-for-android-for-dummies

Yes, apart from being outdated and broken (as every other script
I have seen so far), this one has the great advantage that it
produces binaries that you cannot legally distribute - that must
help many users...

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] How to compile ffmpeg on Android

2018-07-11 Thread Rafael Lima
https://github.com/bolds07/ffmpeg-for-android-for-dummies

On Wed, Jul 11, 2018 at 6:43 PM, Carl Eugen Hoyos 
wrote:

> 2018-07-11 4:47 GMT+02:00, Mohammed Bey Ahmed Khernache <
> mohbeyi...@gmail.com>:
> > Till now, i always get the error:
> > C compiler test failed
>
> The following configure line works fine here:
> $ ./configure --cross-prefix=../ndk-arm64-23/bin/aarch64-linux-android-
> --sysroot=../ndk-arm64-23/sysroot --arch=arm64 --target-os=android
>
> It looks as if I installed ndk version 23 for arm64 into .. some time ago.
>
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>



-- 
--
Rafael Lima
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] How to compile ffmpeg on Android

2018-07-11 Thread Carl Eugen Hoyos
2018-07-11 4:47 GMT+02:00, Mohammed Bey Ahmed Khernache :
> Till now, i always get the error:
> C compiler test failed

The following configure line works fine here:
$ ./configure --cross-prefix=../ndk-arm64-23/bin/aarch64-linux-android-
--sysroot=../ndk-arm64-23/sysroot --arch=arm64 --target-os=android

It looks as if I installed ndk version 23 for arm64 into .. some time ago.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] How to compile ffmpeg on Android

2018-07-11 Thread Mohammed Bey Ahmed Khernache
>  I think you need to do some research on how to build applications for
> android, this is not a good place to ask. Try building some other,
simpler,
> apps and then try ffmpeg.
Thank you or your reply. That makes me sure that the issue comes from the
compiler and from ffmpeg.


On Wed, Jul 11, 2018 at 5:08 AM Carl Zwanzig  wrote:

> On 7/10/2018 7:47 PM, Mohammed Bey Ahmed Khernache wrote:
> > Till now, i always get the error:
> > C compiler test failed
> > So I can not compile for Android.
> > I am using NDK-r17b.
>
> I think you need to do some research on how to build applications for
> android, this is not a good place to ask. Try building some other,
> simpler,
> apps and then try ffmpeg.
>
> You also need to stop top-posting, if you're not sure what that is, look
> it
> up in wikipedia.
>
> Later,
>
> z!
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] Invisible watermarking filter

2018-07-11 Thread Mark Burton
Is there or has there ever been any support for an invisible watermarking 
filter in ffmpeg? Or perhaps there is an external project that supports this?

This (now closed) job posting that someone listed a while ago, outlines what I 
would be looking for:
https://www.freelancer.co.uk/projects/c-programming-linux/ffmpeg-invisible-watermarking/
 

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

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

Re: [FFmpeg-user] How to compile ffmpeg on Android

2018-07-11 Thread Carl Eugen Hoyos
2018-07-11 4:47 GMT+02:00, Mohammed Bey Ahmed Khernache :
> Till now, i always get the error:

Always?
Or did you type something specific before you get the error?

> C compiler test failed

Is this the only thing printed?

Please do not top-post here, Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] how to build ffmpeg into one static program without any dependent dynamic library

2018-07-11 Thread Li, Zhong
> -Original Message-
> From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of
> Reindl Harald
> Sent: Thursday, July 5, 2018 6:35 PM
> To: ffmpeg-user@ffmpeg.org
> Subject: Re: [FFmpeg-user] how to build ffmpeg into one static program
> without any dependent dynamic library
> 
> 
> 
> Am 05.07.2018 um 11:55 schrieb qw:
> > yum install glibc-devel glibc-static zlib-static libstdc++-static Is
> > there any way to install install libva and libva-drm libraries?
> 
> static - no - redhat has strong policies to *remove* .a files for static 
> linking
> from packages because static linking is considered a bad practice
> 
> libva-devel x86_64 1.8.3-1.el7 base
> libdrm-devel x86_64  2.4.83-2.el7 base
> 
> only dynamic libraries - just don't do it - build proper rpm packages which
> contains automatic dependencies

Libva doesn't support static building. See 
https://github.com/intel/libva/issues/118#issuecomment-34533 
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Minimize CPU use with QuickSync?

2018-07-11 Thread Li, Zhong
> -Original Message-
> From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of
> Jason Coleman
> Sent: Friday, July 6, 2018 11:33 PM
> To: FFmpeg user questions 
> Subject: Re: [FFmpeg-user] Minimize CPU use with QuickSync?
> 
> I didn't have a specific reason to utilize the software decoder. I didn't 
> realize
> I still was. In retrospect, it makes sense that I would have to specify the
> decoder as well, I'd chalk it up to lack of familiarity with how ffmpeg 
> works. I
> made the changes you suggested, which really makes for a much simpler
> looking command, so that's nice. I had built my command based on
> information I scraped together doing a lot of reading of out-dated posts and
> a lot of searching online.
> 
> 
> In any event, I'm still seeing around 20% CPU usage, but I'm not sure from
> where, but I'm really pleased with the change because on the GPU end, I'm
> seeing around 75% utilization now, and in particular where my transcode was
> running around 4x before, it's running around 16x now, so that's fantastic.
> I'm not 100% sure that the CPU usage isn't just from more network overhead
> from everything running so much faster.

Glad to see it works. There are still some tasks are done by CPU
(e.g, video muxer, demuxer, audio copy, video frame header parser for qsv 
decoder, video frame header generated in qsv encoder and so on).

> 
> I've also run into the occasional file that fails to transcode because it 
> looks
> like something in the stream is breaking the QS decoder, actually. Some
> entries on the ffmpeg bug list suggest it's a problem in how QuickSync is
> handling some frame types? Anyway, different problem, but I'm keeping my
> original line around as well, so that for the files I have problems with, I 
> can
> switch back to the software decoder.

If you find any clips can't be decoded by QSV decoder, please file a bug on 
https://trac.ffmpeg.org/ 

> 
> Thank you, that was very helpful!
> 
> 
> 
> 
> 
> From: ffmpeg-user  on behalf of Li,
> Zhong 
> Sent: Thursday, July 5, 2018 10:16 AM
> To: FFmpeg user questions
> Subject: Re: [FFmpeg-user] Minimize CPU use with QuickSync?
> 
> > -Original Message-
> > From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf
> Of
> > Jason Coleman
> > Sent: Friday, June 29, 2018 4:49 AM
> > To: ffmpeg-user@ffmpeg.org
> > Subject: [FFmpeg-user] Minimize CPU use with QuickSync?
> >
> > Hello,
> >
> >
> > I recently picked up a computer with a Kaby Lake processesor, and I'm
> > trying to setup ffmpeg transcodes to minimize impact to the CPU and
> > maximize use of QuickSync during transcodes. I am going by indirect
> > indicators (CPU use and GPU use, as indicated in the Windows 10 task
> > manager) + what ffmpeg output says. I thought I had the entire
> > pipeline (decode/scale-resize/encode) being performed by Quicksync,
> > but I'm still getting a lot of CPU use, call it 70-90%.
> 
> This is not an "entire" Quciksync pipeline as your command line below.
> You are using a software decoder output to system memory, then upload as
> qsv surface and use qsv to do scaling and encoding.
> So high CPU usage is normal IMHO.
> 
> Maybe my expectations are out of line and I need to adjust those?
> > Am I missing anything that would cause operations to happen on the CPU
> > instead? I'm currently using a zeranoe 64 bit build, on Win10 home,
> > with the current Intel drivers. So this is an example encoding line, I
> > don't have an output from ffmpeg in front of me, apologies, I can put one
> up later:
> >
> >
> > C:\ffmpeg\ffmpeg.exe -hwaccel qsv -init_hw_device
> > qsv=qsv:MFX_IMPL_hw_any -filter_hw_device qsv -i "testvid.mp4" -vf
> > "format=nv12,hwupload=extra_hw_frames=100,scale_qsv=640:360" -b:v
> 800k
> > -c:v h264_qsv -c:a copy -y "testoutput.mp4"
> 
> Is there any reason to use software decoder? If no, you can try to add "-c:v
> h264_qsv" to specify qsv decoder (then "-init_hw_device
> qsv=qsv:MFX_IMPL_hw_any -filter_hw_device qsv" is not necessary, and
> also remove "hwupload"):
> C:\ffmpeg\ffmpeg.exe -hwaccel qsv -c:v h264_qsv -i "testvid.mp4" -vf
> "scale_qsv=640:360" -b:v 800k -c:v h264_qsv -c:a copy -y "testoutput.mp4"
> 
>  know>
> 
> >
> > Thank you!
> >
> > Jason
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fffmpe
> g.org%2Fmailman%2Flistinfo%2Fffmpeg-user=02%7C01%7C%7Cb58e
> 54fea58f40ec236d08d5e281e5b5%7C84df9e7fe9f640afb435
> %7C1%7C0%7C636663969882315767=vRxhXHOVaXgENTrMgvm80cB
> n9teXXtBwbHoSHM7HjLs%3D=0
> 
> To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org
> with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email