Re: [FFmpeg-user] av1_vaapi encoding testing

2023-10-11 Thread Patrick M.
On Wed, 11 Oct 2023 07:21:28 +
"Xiang, Haihao"  wrote:

> 
> > On Mon, 25 Sep 2023 04:39:53 +
> > "Xiang, Haihao"  wrote:
> > 
> > > On Vr, 2023-09-22 at 22:11 +0200, Patrick M. wrote:
> > > > On Fri, 22 Sep 2023 20:04:57 +0300
> > > > Dennis Mungai  wrote:
> > > > > 
> > > > > 
> > > > > That's good to hear. You may also want to ensure that the likes of
> > > > > OneVPL
> > > > > are up to date if you're using any of its encoder wrappers. It was
> > > > > formerly
> > > > > called (and implemented as) QuickSync (QSV).
> > > > > 
> > > > > > 
> > > > > ___
> > > > > 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".
> > > > > 
> > > > 
> > > > Well i think they are - av1_vaapi works now without issues so far.
> > > > oneVPL-intel-gpu 23.3.2 and
> > > > oneVPL 2023.3.1
> > > > 
> > > > With direct QSV i had no luck yet - see
> > > > https://community.intel.com/t5/Media-Intel-oneAPI-Video/ffmpeg-6-using-qsv-on-ARC380/m-p/1524165/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExNS0o5N1ZLMzlUMkRIfDE1MjQxNjV8U1VCU0NSSVBUSU9OU3xoSw
> > > 
> > > Could you double check whether /dev/dri/renderD129 is your Intel GPU ? 
> > Yes, sure:
> > 
> >  vainfo --display drm --device /dev/dri/renderD129
> > Trying display: drm
> > libva info: VA-API version 1.19.0
> > libva info: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
> > libva info: Found init function __vaDriverInit_1_19
> > libva info: va_openDriver() returns 0
> > vainfo: VA-API version: 1.19 (libva 2.18.2)
> > vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.3.2 
> > ()
> > vainfo: Supported profile and entrypoints
> > ...
> >   VAProfileAV1Profile0    : VAEntrypointVLD
> >   VAProfileAV1Profile0    : VAEntrypointEncSliceLP
> > 
> > 
> > l /dev/dri/by-path/
> > total 0
> > lrwxrwxrwx 1 root root  8 Sep 30  2023 pci-:2f:00.0-card -> ../card0
> > lrwxrwxrwx 1 root root 13 Sep 30  2023 pci-:2f:00.0-render ->
> > ../renderD128
> > lrwxrwxrwx 1 root root  8 Sep 30  2023 pci-:32:00.0-card -> ../card1
> > lrwxrwxrwx 1 root root 13 Sep 30  2023 pci-:32:00.0-render ->
> > ../renderD129
> > 
> > 
> > and from lspci 
> > 
> > 32:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A380] (rev 05)
> > (prog-if 00 [VGA controller])
> >     Subsystem: ASRock Incorporation DG2 [Arc A380]
> >     Flags: bus master, fast devsel, latency 0, IRQ 46, IOMMU group 2
> >     Memory at fa00 (64-bit, non-prefetchable) [size=16M]
> >     Memory at 7fc000 (64-bit, prefetchable) [size=256M]
> >     Expansion ROM at fb00 [disabled] [size=2M]
> >     Capabilities: [40] Vendor Specific Information: Len=0c 
> >     Capabilities: [70] Express Endpoint, MSI 00
> >     Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit+
> >     Capabilities: [d0] Power Management version 3
> >     Capabilities: [100] Alternative Routing-ID Interpretation (ARI)
> >     Capabilities: [420] Physical Resizable BAR
> >     Capabilities: [400] Latency Tolerance Reporting
> >     Kernel driver in use: i915
> > 
> 
> Thanks for the detailed info, could you try with
> https://github.com/intel-media-ci/ffmpeg/pull/682 ? 



Hi,

yes that update for libavutil enables proper session creation for me.

Without:
AVHWDeviceContext @ 0x563d94c1f080] libva: VA-API version 1.19.0
[AVHWDeviceContext @ 0x563d94c1f080] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x563d94c1f080] libva: Trying to open 
/usr/lib64/va/drivers/iHD_drv_video.so
[AVHWDeviceContext @ 0x563d94c1f080] libva: Found init function 
__vaDriverInit_1_19
[AVHWDeviceContext @ 0x563d94c1f080] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x563d94c1f080] Initialised VAAPI connection: version 1.19
[AVHWDeviceContext @ 0x563d94c1f080] VAAPI driver: Intel iHD driver for 
Intel(R) Gen Graphics - 23.3.2 ().
[AVHWDeviceContext @ 0x563d94c1f080] Driver not found in known nonstandard 
list, using standard behaviour.
[AVHWDeviceC

Re: [FFmpeg-user] av1_vaapi encoding testing

2023-09-30 Thread Patrick M.
On Mon, 25 Sep 2023 04:39:53 +
"Xiang, Haihao"  wrote:

> On Vr, 2023-09-22 at 22:11 +0200, Patrick M. wrote:
> > On Fri, 22 Sep 2023 20:04:57 +0300
> > Dennis Mungai  wrote:
> > > 
> > > 
> > > That's good to hear. You may also want to ensure that the likes of OneVPL
> > > are up to date if you're using any of its encoder wrappers. It was 
> > > formerly
> > > called (and implemented as) QuickSync (QSV).
> > > 
> > > > 
> > > ___
> > > 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".
> > > 
> > 
> > Well i think they are - av1_vaapi works now without issues so far.
> > oneVPL-intel-gpu 23.3.2 and
> > oneVPL 2023.3.1
> > 
> > With direct QSV i had no luck yet - see
> > https://community.intel.com/t5/Media-Intel-oneAPI-Video/ffmpeg-6-using-qsv-on-ARC380/m-p/1524165/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExNS0o5N1ZLMzlUMkRIfDE1MjQxNjV8U1VCU0NSSVBUSU9OU3xoSw
> 
> Could you double check whether /dev/dri/renderD129 is your Intel GPU ? 
Yes, sure:

 vainfo --display drm --device /dev/dri/renderD129
Trying display: drm
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_19
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.19 (libva 2.18.2)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.3.2 ()
vainfo: Supported profile and entrypoints
...
  VAProfileAV1Profile0: VAEntrypointVLD
  VAProfileAV1Profile0: VAEntrypointEncSliceLP


l /dev/dri/by-path/
total 0
lrwxrwxrwx 1 root root  8 Sep 30  2023 pci-:2f:00.0-card -> ../card0
lrwxrwxrwx 1 root root 13 Sep 30  2023 pci-:2f:00.0-render -> ../renderD128
lrwxrwxrwx 1 root root  8 Sep 30  2023 pci-:32:00.0-card -> ../card1
lrwxrwxrwx 1 root root 13 Sep 30  2023 pci-:32:00.0-render -> ../renderD129


and from lspci 

32:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A380] (rev 05) 
(prog-if 00 [VGA controller])
Subsystem: ASRock Incorporation DG2 [Arc A380]
Flags: bus master, fast devsel, latency 0, IRQ 46, IOMMU group 2
Memory at fa00 (64-bit, non-prefetchable) [size=16M]
Memory at 7fc000 (64-bit, prefetchable) [size=256M]
Expansion ROM at fb00 [disabled] [size=2M]
Capabilities: [40] Vendor Specific Information: Len=0c 
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit+
Capabilities: [d0] Power Management version 3
Capabilities: [100] Alternative Routing-ID Interpretation (ARI)
Capabilities: [420] Physical Resizable BAR
Capabilities: [400] Latency Tolerance Reporting
Kernel driver in use: i915


> 
> Thanks
> Haihao
> 
> 
> > 
> > Would there be a noticable difference to be expected between av1 using vaapi
> > vs direct qsv?
> 




-- 
Patrick M. 
___
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] av1_vaapi encoding testing

2023-09-22 Thread Patrick M.
On Fri, 22 Sep 2023 20:04:57 +0300
Dennis Mungai  wrote:
>
>
> That's good to hear. You may also want to ensure that the likes of OneVPL
> are up to date if you're using any of its encoder wrappers. It was formerly
> called (and implemented as) QuickSync (QSV).
>
> >
> ___
> 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".
>

Well i think they are - av1_vaapi works now without issues so far.
oneVPL-intel-gpu 23.3.2 and
oneVPL 2023.3.1

With direct QSV i had no luck yet - see 
https://community.intel.com/t5/Media-Intel-oneAPI-Video/ffmpeg-6-using-qsv-on-ARC380/m-p/1524165/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExNS0o5N1ZLMzlUMkRIfDE1MjQxNjV8U1VCU0NSSVBUSU9OU3xoSw

Would there be a noticable difference to be expected between av1 using vaapi vs 
direct qsv?


--
Patrick M. 
___
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] av1_vaapi encoding testing

2023-09-22 Thread Patrick M.
On Fri, 22 Sep 2023 16:12:14 +0300
Dennis Mungai  wrote:
>
>
> Is your Libva version up to date?
>
> >
> ___
> 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".

that was the issue it seems. Not sure why as I had 2.19.0 before but remerged 
it and ffmepg once more and now it shows
"VD av1_vaapi        AV1 (VAAPI) (codec av1)"

Thanks a lot



--
Patrick M. 
___
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] av1_vaapi encoding testing

2023-09-22 Thread Patrick Münch
Hi,

I wanted to test av1 vaapi encoding. If i am not mistaken this series should be 
in git and cover that
(https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=9672).

I have build from git yesterday and don't get av1_vaapi listed on encoders.
It was build with --enable-vaapi -enable-libdav1d--enable-librav1e and 
--enable-libsvtav1.
Would be great if one has a hint what i have overlooked or if this should be 
rather on the devel list?

Full details:
ffmpeg -encoders | grep vaap
ffmpeg version N-112136-g33b2646d61 Copyright (c) 2000-2023 the FFmpeg 
developers
  built with gcc 12 (Gentoo Hardened 12.3.1_p20230526 p2)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 
--docdir=/usr/share/doc/ffmpeg-/html --mandir=/usr/share/man 
--enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ 
--ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm 
--strip=x86_64-pc-linux-gnu-strip --ranlib=x86_64-pc-linux-gnu-ranlib 
--pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O2 -pipe 
-w' --disable-static --enable-avfilter --disable-stripping 
--disable-optimizations --disable-libcelt --enable-nonfree --enable-version3 
--disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss 
--disable-indev=jack --disable-indev=sndio --disable-outdev=oss 
--disable-outdev=sndio --enable-nonfree --enable-bzlib 
--disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls 
--disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv 
--disable-libxml2 --disable-lzma --enable-network --disable-opencl 
--enable-openssl --enable-postproc
--enable-libsmbclient --enable-ffplay --enable-sdl2 --enable-vaapi 
--enable-vdpau --enable-vulkan --enable-xlib --enable-libxcb 
--enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio 
--disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal 
--enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm 
--disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb 
--disable-libcodec2 --enable-libdav1d --enable-libfdk-aac --enable-libopenjpeg 
--disable-libjxl --disable-libbluray --disable-libgme --disable-libgsm 
--disable-libaribb24 --disable-mmal --disable-libmodplug --enable-libopus 
--enable-libvpl --disable-libilbc --disable-librtmp --disable-libssh 
--disable-libspeex --disable-libsrt --enable-librsvg --disable-ffnvcodec 
--enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit 
--disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite 
--disable-frei0r --disable-libvmaf --disable-libfribidi
--disable-fontconfig --disable-ladspa --enable-lcms2 --disable-libass 
--disable-libplacebo --disable-libtesseract --disable-lv2 --enable-libfreetype 
--disable-libvidstab --disable-librubberband --disable-libzmq --disable-libzimg 
--disable-libsoxr --enable-pthreads --disable-amf --disable-libvo-amrwbenc 
--disable-libkvazaar --enable-libaom --enable-libmp3lame --disable-libopenh264 
--enable-librav1e --disable-libsnappy --enable-libsvtav1 --enable-libtheora 
--disable-libtwolame --disable-libwebp --enable-libx264 --enable-libx265 
--enable-libxvid --disable-gnutls --enable-version3 --disable-armv5te 
--disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 
--disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu 
--disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow 
--disable-amd3dnowext --disable-fma4 --disable-xop --enable-pic --cpu=host 
--disable-doc --disable-htmlpages --enable-manpages libavutil  58. 25.100 / 
58. 25.100 libavcodec
60. 26.100 / 60. 26.100 libavformat60. 13.100 / 60. 13.100
  libavdevice60.  2.101 / 60.  2.101
  libavfilter 9. 11.100 /  9. 11.100
  libswscale  7.  3.100 /  7.  3.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc57.  2.100 / 57.  2.100
 VD h264_vaapi   H.264/AVC (VAAPI) (codec h264)
 VD hevc_vaapi   H.265/HEVC (VAAPI) (codec hevc)
 VD mjpeg_vaapi  MJPEG (VAAPI) (codec mjpeg)
 VD mpeg2_vaapi  MPEG-2 (VAAPI) (codec mpeg2video)
 VD vp8_vaapiVP8 (VAAPI) (codec vp8)
 VD vp9_vaapiVP9 (VAAPI) (codec vp9)

Hardware support should be there as well:
vainfo --display drm --device /dev/dri/renderD129 | grep -i av1
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_19
libva info: va_openDriver() returns 0
  VAProfileAV1Profile0: VAEntrypointVLD
  VAProfileAV1Profile0: VAEntrypointEncSliceLP

Thanks a lot
___
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] New user question - please

2023-02-04 Thread Patrick Cusack via ffmpeg-user
I would encourage people in this forum to be critical to the ends of building 
other people up. Iron sharpens iron, but sadly the Participants on this thread 
just care to tear people down. Good luck. This is the last time I’ll be around 
the ffmpeg mailing list. I’m seen too many of these threads. I have real life 
issues to focus on.  I won’t care to chime in again on any issue. And yes, 
asking someone to post their command is the first request everyone makes. 

Good luck guys,

Patrick

Sent from my iPhone

> On Feb 4, 2023, at 8:41 AM, Reindl Harald  wrote:
> 
> 
> 
>> Am 04.02.23 um 17:36 schrieb Phil Rhodes via ffmpeg-user:
>> A word of sanity.
>> If you're someone new to the ffmpeg-user list who's reading this thread and 
>> frowning with concern at Reindl's behaviour, believe me, you're not alone
> 
> well, it was "Dave Blanchard" starting with "I don't have time to familiarize 
> myself with the 6,282,928 special snowflake unique rule systems that every 
> special snowflake community"
> 
> in fact that was the point where this thread got really bad
> ___
> 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] New user question

2023-02-03 Thread Patrick Cusack via ffmpeg-user


> And how would that help this situation in any way? 

Do you have anything better to do than make snarky comments? The guy posted an 
open ended question without any context. And yes having the command makes a 
difference. I know eff all about HAP and perhaps had he included his command I 
would have had some more context. You could have ignored the thread, instead of 
cheapening the discourse.

Thanks,

Patrick
___
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] New user question

2023-01-31 Thread Patrick Cusack via ffmpeg-user


> This is my first time using FFMPEG. We are trying to use it to convert media 
> files to HAP. I loaded the latest version, but when we try to transcode a 
> file, it returns " Unknown encoder 'hap' ". How do I load the hap encoder to 
> the system?

Please include your command that you use for conversion as well as all the 
output.

Patrick
___
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] PhotoJPEG File doesn't playback properly on Quicktime 7

2022-02-25 Thread Patrick Cusack via ffmpeg-user
>> I wouldn’t know if this is an ffmpeg or Quicktime 7 issue, but I am 
>> encountering  playback stutter on Quicktime 7 when playing back photo-jpeg 
>> encoded files. I don’t encounter this issue in Quicktime X or with other 
>> players. I only bring this up so I can verify that I am not missing 
>> anything. I am using the following example:
>> 
>> ffmpeg -i moviefile.mov -c:v mjpeg -pix_fmt yuv420p output.mov
>> 
>> How would you recommend I further diagnose this issue?

> please post the complete/unedited command output to the list (see 
> https://ffmpeg.org/mailing-list-faq.html)

I have attached my command line. Again these files only stutter in Quicktime 7. 
Should this be a QT7 issue, then fine, but I would like to know any possibility 
that would cause this.

Thanks

User-MacBook-Pro-2:~ User$ ffmpeg -i 
/Users/User/Documents/Media/1/FF8_SMALL.mov -vf "scale=720x480" -c:v mjpeg 
-pix_fmt yuvj420p output.mov

ffmpeg version N-101101-gc0d0b1c4f6-tessus  https://evermeet.cx/ffmpeg/ 
  Copyright (c) 2000-2021 the FFmpeg developers
 built with Apple clang version 11.0.0 (clang-1100.0.33.17)
 configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus 
--enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom 
--enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype 
--enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 
--enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine 
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora 
--enable-libtwolame --enable-libvidstab --enable-libvmaf 
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid 
--enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 
--pkg-config-flags=--static --disable-ffplay
 libavutil  56. 65.100 / 56. 65.100
 libavcodec 58.123.100 / 58.123.100
 libavformat58. 67.100 / 58. 67.100
 libavdevice58. 12.100 / 58. 12.100
 libavfilter 7.106.100 /  7.106.100
 libswscale  5.  8.100 /  5.  8.100
 libswresample   3.  8.100 /  3.  8.100
 libpostproc55.  8.100 / 55.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 
'/Users/User/Documents/Media/1/FF8_SMALL.mov':
 Metadata:
   major_brand : qt  
   minor_version   : 512
   compatible_brands: qt  
   encoder : Lavf58.67.100
 Duration: 00:00:30.03, start: 0.00, bitrate: 36139 kb/s
 Stream #0:0(eng): Video: dnxhd (DNXHD) (AVdn / 0x6E645641), yuv422p(tv, 
bt709/unknown/unknown), 1920x1080, 36139 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 
23.98 tbr, 23976 tbn, 23976 tbc (default)
   Metadata:
 handler_name: Apple Video Media Handler
 vendor_id   : FFMP
 encoder : DNxHD  709
 timecode: 00:00:00:00
 Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s
   Metadata:
 handler_name: Apple Video Media Handler
 timecode: 00:00:00:00
File 'output.mov' already exists. Overwrite? [y/N] y
Stream mapping:
 Stream #0:0 -> #0:0 (dnxhd (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[swscaler @ 0x7fcb1f4d6000] deprecated pixel format used, make sure you did set 
range correctly
Output #0, mov, to 'output.mov':
 Metadata:
   major_brand : qt  
   minor_version   : 512
   compatible_brands: qt  
   encoder : Lavf58.67.100
 Stream #0:0(eng): Video: mjpeg (jpeg / 0x6765706A), yuvj420p(pc, 
bt709/unknown/unknown, progressive), 720x480 [SAR 32:27 DAR 16:9], q=2-31, 200 
kb/s, 0.04 fps, 11988 tbn (default)
   Metadata:
 handler_name: Apple Video Media Handler
 vendor_id   : FFMP
 timecode: 00:00:00:00
 encoder : Lavc58.123.100 mjpeg
   Side data:
 cpb: bitrate max/min/avg: 0/0/20 buffer size: 0 vbv_delay: N/A
frame=  720 fps=226 q=24.8 Lsize=7871kB time=00:00:29.98 
bitrate=2150.2kbits/s speed=9.43x
video:7867kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 0.055005%
___
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] PhotoJPEG File doesn't playback properly on Quicktime 7

2022-02-24 Thread Patrick Cusack via ffmpeg-user
I wouldn’t know if this is an ffmpeg or Quicktime 7 issue, but I am 
encountering  playback stutter on Quicktime 7 when playing back photo-jpeg 
encoded files. I don’t encounter this issue in Quicktime X or with other 
players. I only bring this up so I can verify that I am not missing anything. I 
am using the following example:

ffmpeg -i moviefile.mov -c:v mjpeg -pix_fmt yuv420p output.mov

How would you recommend I further diagnose this issue?

Patrick 
___
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] Converting from one video format to another

2021-10-27 Thread Patrick Mahan

On 10/27/21 3:43 PM, Micael Silva wrote:



On 27 Oct 2021, at 19:38, Patrick Mahan  wrote:

Greetings,

I am just getting started with some video processing, etc.  However, I have a 
need to run on a iOS device or Mac OS X.  I have VLC but I need to be able to 
use iOS apps to play these videos, but QuickTime barfs on them.

They seem to play okay if I media serve them out to the iOS device, but I do 
need to get them to play on QuickTime.

The original videos are MPEG-H Part 2/HEVC (H265).  Here is the output of ffprobe 
 -hide_banner:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Video1.mp4':
  Metadata:
major_brand : mp42
minor_version   : 0
compatible_brands: mp42mp41
creation_time   : 2021-10-24T23:18:14.00Z
  Duration: 00:07:24.31, start: 0.00, bitrate: 16553 kb/s
Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, 
bt709), 1920x1080 [SAR 1:1 DAR 16:9], 16357 kb/s, 60 fps, 60 tbr, 60k tbn, 60 
tbc (default)
Metadata:
  creation_time   : 2021-10-24T23:18:14.00Z
  handler_name: ?Mainconcept Video Media Handler
  encoder : HEVC Coding
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 189 kb/s (default)
Metadata:
  creation_time   : 2021-10-24T23:18:14.00Z
  handler_name: #Mainconcept MP4 Sound Media Handler

QT simply gives up and says it cannot play this video.  VLC has no problems.

I attempted to convert to H.264, thinking that might be the issue using the 
ffmpeg command:

ffmpeg -i Video1.mp4 -bsf:v h264_mp4toannexb -sn -map 0:0 -map 0:1 -vcodec 
libx264 Video1.ts

However, QuickTime, again, barfs while VLC works just fine.  When I look at the 
covered file using ffprobe I see -

Input #0, mpegts, from 'Video1.ts':
  Duration: 00:07:24.28, start: 1.423311, bitrate: 6129 kb/s
  Program 1
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
yuvj420p(pc, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 60 fps, 60 tbr, 90k 
tbn, 120 tbc
Stream #0:1[0x101](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, 
stereo, fltp, 384 kb/s

So I am unsure what needs to happen to get QuickTime to grok it (QuickTime is 
not saying why it won't open).  Is it the audio?  converting form aac to mp2?




Keep using H264 but make sure that the audio codec is AAC and the wrapper is 
MP4 not MPEGTS



Sorry, just to be clear when you say 'not MPEGTS' I should save it as 
Video1-converted.mp4, not Video1.ts?


I will RTFM to find the commands to preserve the AAC codec.  I just assumed that 
since the original was AAC then the converted would use it as well.


Thanks,

Patrick
___
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] Converting from one video format to another

2021-10-27 Thread Patrick Mahan

Greetings,

I am just getting started with some video processing, etc.  However, I have a 
need to run on a iOS device or Mac OS X.  I have VLC but I need to be able to use 
iOS apps to play these videos, but QuickTime barfs on them.


They seem to play okay if I media serve them out to the iOS device, but I do need 
to get them to play on QuickTime.


The original videos are MPEG-H Part 2/HEVC (H265).  Here is the output of ffprobe 
 -hide_banner:


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Video1.mp4':
  Metadata:
major_brand : mp42
minor_version   : 0
compatible_brands: mp42mp41
creation_time   : 2021-10-24T23:18:14.00Z
  Duration: 00:07:24.31, start: 0.00, bitrate: 16553 kb/s
Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, 
bt709), 1920x1080 [SAR 1:1 DAR 16:9], 16357 kb/s, 60 fps, 60 tbr, 60k tbn, 60 tbc 
(default)

Metadata:
  creation_time   : 2021-10-24T23:18:14.00Z
  handler_name: ?Mainconcept Video Media Handler
  encoder : HEVC Coding
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 189 kb/s (default)

Metadata:
  creation_time   : 2021-10-24T23:18:14.00Z
  handler_name: #Mainconcept MP4 Sound Media Handler

QT simply gives up and says it cannot play this video.  VLC has no problems.

I attempted to convert to H.264, thinking that might be the issue using the 
ffmpeg command:


ffmpeg -i Video1.mp4 -bsf:v h264_mp4toannexb -sn -map 0:0 -map 0:1 -vcodec 
libx264 Video1.ts


However, QuickTime, again, barfs while VLC works just fine.  When I look at the 
covered file using ffprobe I see -


Input #0, mpegts, from 'Video1.ts':
  Duration: 00:07:24.28, start: 1.423311, bitrate: 6129 kb/s
  Program 1
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
yuvj420p(pc, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 60 fps, 60 tbr, 90k tbn, 
120 tbc
Stream #0:1[0x101](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, 
stereo, fltp, 384 kb/s


So I am unsure what needs to happen to get QuickTime to grok it (QuickTime is not 
saying why it won't open).  Is it the audio?  converting form aac to mp2?


Any pointers you can give this noob would be appreciated.

Thanks,

Patrick
___
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] How to use ffmpeg to detect commercials

2021-09-30 Thread Patrick Cusack via ffmpeg-user
Can I suggest loudness? I know that commercials in the  states have a higher 
sustained volume than program. 

Patrick

Sent from my iPhone

> On Sep 30, 2021, at 3:19 PM, Carl Zwanzig  wrote:
> 
> On 9/30/2021 6:45 AM, Venkateswaran.S wrote:
>> You can easily detect the logo in image using opencv lib
> 
> Yes, but that doesn't indicate much (the logo is often called a "bug" in 
> broadcast).
> 
> 
> Detecting a "change of scene" is not too difficult, but here's the problem- 
> how do you (technically) define a commercial? Then, how do you generally tell 
> that apart from other programming?
> 
> Most network programming will have a bug, but not all the time.
> That bug may move around from stream/channel to stream/channel.
> Often commercials have louder audio (where "louder" is a bit vague), and are 
> more likely to be mono or 2.0 stereo instead of 3.1/5.1 stereo.
> Old programs, and lots of locally produced programs, usually have mono audio.
> etc etc
> 
> Once someone details the characteristics to separate "What I want to see" 
> (programs) from "What I don't want to see" (commercials), then we can then 
> discuss methods.
> 
> Later,
> 
> z!
> 
> ___
> 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] Constant bitrate UDP streaming

2021-01-12 Thread Patrick, Alton (US) via ffmpeg-user
I know it's possible to explicitly set a constant bitrate for the UDP protocol 
output, e.g. like this:

ffmpeg -re -i input.ts -map 0 -c:v copy -f mpegts 
udp://127.0.0.1:12345?pkt_size=1316&bitrate=1

This requires me to figure out the bitrate of input.ts and explicitly pass that 
as part of the URI.

Is there anyway to tell ffmpeg to automatically use the bitrate of input.ts as 
the output bitrate for the UDP stream?

Thanks.
___
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] Transcoding mpeg2video in mpegts to h264 in mpegts has fast playback

2020-09-21 Thread Patrick Double

> On Sep 20, 2020, at 4:38 PM, Carl Eugen Hoyos  wrote:
> 
> Am So., 20. Sept. 2020 um 03:13 Uhr schrieb Patrick Double 
> :
>> 
>>> On Sep 18, 2020, at 1:37 PM, Carl Eugen Hoyos  wrote:
>>> 
>>>> Am 18.09.2020 um 18:51 schrieb Pat Double :
>>>> 
>>>> Here is my sample:
>>>> 
>>>> https://www.dropbox.com/s/7s7itvj1uy2nov7/RobotMaker-short.ts
>>> 
>>> Please provide an input sample, never provide output files unless 
>>> specifically requested.
>> 
>> This is an input sample.
> 
> The file claims to be written by FFmpeg.

First, thanks for your time and insight.

Plex DVR reads the ATSC stream from the TV tuner via Linux DVB and uses ffmpeg 
to assemble the mpegts file.

> You cannot put ass into mpegts.

Understood. I’m only using ass when transcoding to mkv. The closed captions so 
far have been preserved in the h264/mpegts transcode.

> Your input file is NOT interlaced, it is telecined, use an inverse
> telecine filter. Every deinterlacer permanently damages your video, in
> theory an inverse telecine filter creates perfect output.
> Both pullup and fieldmatch seem to work ok for your sample.

That is interesting. Looks like some of the recorded files are interlaced and 
some are progressive. I’m not sure if this is the broadcast or if Plex is doing 
it. Which ever it is I don’t have influence on it.

> The following works and keeps the Closed Captions, it may not
> work correctly with the inverse telecine filter though:
> $ ffmpeg -i input -acodec copy -vcodec lib264 out.ts

That command is producing the same results.

However, I tried playing with QuickTime Player (provided with Mac OS X) and the 
speed is correct. So the fault appears to be with MPlayer OS X Extended. Sorry 
that I didn’t try multiple players before posting.

Thanks again.
___
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] Transcoding mpeg2video in mpegts to h264 in mpegts has fast playback

2020-09-21 Thread Patrick Double

> On Sep 20, 2020, at 11:23 AM, Zak Fallows  wrote:
> 
> Hello Pat,
> 
> Please don't take this the wrong way, I am a very curious person and your 
> emails confused me. The first one caught my attention because the subject 
> isn't a question, it is a statement, it says it "has fast playback", so I was 
> wondering "is this a question, or is this person sharing a tip or trick?"

Sorry for the confusion, it’s a statement of something I don’t like :) Namely, 
the transcode plays faster than it should. I should’ve been more clear.

> With that disclaimer out of the way...
> 
> Is your name really Pat B. Double, or is the surname "Double" to imply that 
> this is a second identity?

This is my real name. I’ve had the spelling and pronunciation questioned, but 
never the legitimacy. No worries ;)

> 
> Is the BibleThumper app for PalmOS a joke? I looked at the PDF manual, it 
> looks like a joke. But it claims to be from 2010 and I never had a Palm 
> Pilot. I feel like it might be a joke because your name is Pat B. Double and 
> the files were .PBD files, which could be "PalmOS Binary Data" or something, 
> but that's also just your initials if Pat B. Double is your name.

It’s no joke. It was popular at the time but with the release of the iPhone I 
would have had to re-write it to keep it going and I didn’t have the time. .PBD 
is the required extension for PalmOS Binary Database.

> I have never seen any portion of "The Six Million Dollar Man", it looks 
> interesting. How old are you? I'm 33, it may have been before my time, but 
> maybe I could watch it with my father to appease him.

I’m 44. If you don’t mind cheesy effects I think it’s a pretty good show for 
the genre.

> 
> You also talked about a Plex DVR - is that software, like Plex itself, or a 
> hardware device? I'm looking for a project to do with my father, and we don't 
> have Plex, and the network-accessible-storage drive has tons of permissions 
> problems and "discoverability" problems. I hear good things about Plex.
> 

Plex DVR is a software solution. It’s part of the Plex install, not a separate 
item. You need a compatible TV tuner in your computer.

___
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] Transcoding mpeg2video in mpegts to h264 in mpegts has fast playback

2020-09-19 Thread Patrick Double
> On Sep 18, 2020, at 1:37 PM, Carl Eugen Hoyos  wrote:
> 
> 
> 
>> Am 18.09.2020 um 18:51 schrieb Pat Double :
>> 
>> Here is my sample:
>> 
>> https://www.dropbox.com/s/7s7itvj1uy2nov7/RobotMaker-short.ts
> 
> Please provide an input sample, never provide output files unless 
> specifically requested.

This is an input sample. If you’ll look at the video stream you’ll see it’s 
mpeg2video which is what I’ve stated is the input. The output I desire is h264.

> And please remove -hide_banner from your command line when asking questions 
> here.

My first command output includes the banner. I didn’t think it was necessary to 
include multiple copies of the banner but in the future I will remove 
-hide_banner from all commands.


___
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] Detailed list of supported codecs in FFMPEG

2020-06-01 Thread Patrick Cusack via ffmpeg-user
If you are running the ffmpeg binary, you can run ffmpeg -decoders or -encoders 
to get a list of all formats supported.

> On Jun 1, 2020, at 5:03 AM, rohit khali  wrote:
> 
> Hi All,
> 
> 
> 
> I am doing feasibility analysis to integrate FFMPEG libraries into my
> decoder application hence looking for a detailed list of supported audio
> video codecs including corresponding profile and level support.
> 
> Is there any official page where I can find all this information?
> 
> 
> 
> Thanks,
> 
> Rohit Khali
> ___
> 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] Resizing result with nearest neighbour is highly compressed

2020-05-22 Thread Patrick Cusack via ffmpeg-user
Nearest neighbor will make it blocky. Maybe you want bilinear?


> On May 22, 2020, at 5:15 AM, Moritz Barsnick  wrote:
> 
> On Fri, May 22, 2020 at 13:52:40 +0200, Nick wrote:
>> I'm trying to resize a .mp4 video with FFmpeg but the result is artifacted
>> to hell and back, how can I fix it?
> 
> To be honest, I see the same artifacts in the original.
> (I dumped single frames losslessly to PNG and viewed them full-screen.
> Note that that last step of full-screen scaling obviously also uses
> some algorithm. But regardless of smoothing or not, I see artifacts.)
> 
>>> ffmpeg -i C:\Users\Asus\Desktop\0001-0024.mp4 -vf
>>> scale=1120:1120:flags=neighbor C:\Users\Asus\Desktop\out.mp4 -aac_tns
> 
> We usually appreciate the complete, uncut console output, which also
> saves us from actually reproducing, just to see e.g. that you are
> scaling *up*).
> 
> And that "-aac_tns" in your command line surely is a mistake. ;-)
> 
> Moritz
> ___
> 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] How to escape a URL passed to the underlying dash muxer via tee

2019-11-13 Thread Patrick Kirchner via ffmpeg-user
 

On Tuesday, November 12, 2019, 8:31:09 PM CST, Dennis Mungai 
 wrote:  
 On Mon, 11 Nov 2019 at 15:14, Moritz Barsnick  wrote:
>
> On Mon, Nov 11, 2019 at 11:46:16 +0300, Dennis Mungai wrote:
> > How should one escape a URL passed to the underlying DASH muxer via tee?
> >
> > Here's the string I use from within a BASH script setting the muxer options:
> >
> > DASHOPTS='use_fifo=1:fifo_options=attempt_recovery=1:f=dash:seg_duration=6:window_size=6:utc_timing_url="https://time.akamai.com/?iso";'
> >
> > Doing so results in this:
> >
> > [tee @ 0x55746a001640] No option found near "//time.akamai.com/?iso"
>
> This indicates that the ':' in the URL was recognized as an option
> delimiter.
>
> You could try adding a backslash before that colon. Or possibly this
> will work:
> DASHOPTS="use_fifo=1:fifo_options=attempt_recovery=1:f=dash:seg_duration=6:window_size=6:utc_timing_url='https://time.akamai.com/?iso'"
> (i.e. using single quotes within the option string that ffmpeg actually
> receives).
>
> Cheers,
> Moritz

Hmm, no dice. Both options result in the same error as before.

Try this:
'https\\://time.akamai.com\\?iso'



___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] streaming mp3 to Icecast server: av_interleaved_write_frame(): Broken pipe

2019-06-13 Thread PATRICK KEROULAS
I provided a network trace to the provider and it turned out they had
a config issue on their end. It's working now.

Thank you all,

PK

On Wed, Jun 12, 2019 at 11:26 AM Carl Zwanzig  wrote:

> On 6/11/2019 2:18 PM, PATRICK KEROULAS wrote:
> > ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
>
> Have you considered using a modern version of ffmpeg?  That version is
> considered ancient.
>
> z!
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
>
> https://clicktime.symantec.com/3Hck559CraEjtTeUosQGW9U7Vc?u=https%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Fffmpeg-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] streaming mp3 to Icecast server: av_interleaved_write_frame(): Broken pipe

2019-06-11 Thread PATRICK KEROULAS
Hello,

Our CDN provides icecast endpoints for mp3 streaming. As they recommended,
I used '-legacy_icecast 1' to be compatible with old Icecast version
which uses the SOURCE method instead of PUT.

Transcoding to a file works fine but there is something wrong with
the endpoint at the http/authentication level. From the error
'av_interleaved_write_frame(): Broken pipe', I'm not able to determine
whether the client or the server is responsible for that.
Can anyone help? Thanks.

Regards,

Patrick

$ ffmpeg -loglevel debug -i udp://239.255.165.121:4001 -codec:a libmp3lame
 -legacy_icecast 1 -vn -f mp3 icecast://[user]:[pwd]@
mp3push.ord.llnw.net:79/stream/cbcmp3_mp3live
ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28)
  configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
--libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro '
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libvo-amrwbenc --enable-version3 --enable-bzlib
--disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass
--enable-libcdio --enable-libdc1394 --disable-indev=jack
--enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal
--enable-libopenjpeg --enable-libopus --enable-libpulse
--enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264
--enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter
--enable-avresample --enable-postproc --enable-pthreads --disable-static
--enable-shared --enable-gpl --disable-debug --disable-stripping
--shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil  54. 31.100 / 54. 31.100
  libavcodec 56. 60.100 / 56. 60.100
  libavformat56. 40.101 / 56. 40.101
  libavdevice56.  4.100 / 56.  4.100
  libavfilter 5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale  3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc53.  3.100 / 53.  3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'udp://
239.255.165.121:4001'.
Reading option '-codec:a' ... matched as option 'codec' (codec name) with
argument 'libmp3lame'.
Reading option '-legacy_icecast' ... matched as AVOption 'legacy_icecast'
with argument '1'.
Reading option '-vn' ... matched as option 'vn' (disable video) with
argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'mp3'.
Reading option 'icecast://[user]:[pwd]@
mp3push.ord.llnw.net:79/stream/cbcmp3_mp3live' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url udp://239.255.165.121:4001.
Successfully parsed a group of options.
Opening an input file: udp://239.255.165.121:4001.
[udp @ 0x24ce420] end receive buffer size reported is 131072
[mpegts @ 0x24cdc00] Format mpegts probed with size=2048 and score=100
[mpegts @ 0x24cdc00] stream=0 stream_type=11 pid=702 prog_reg_desc=
[mpegts @ 0x24cdc00] Before avformat_find_stream_info() pos: 0 bytes
read:35532 seeks:0
[mpegts @ 0x24cdc00] parser not found for codec none, packets or times may
be invalid.
[mpegts @ 0x24cdc00] probing stream 0 pp:2500
[mpegts @ 0x24cdc00] Probe with size=1871, packets=1 detected loas with
score=51
[mpegts @ 0x24cdc00] probed stream 0
[aac_latm @ 0x24f2640] initializing latmctx
[mpegts @ 0x24cdc00] max_analyze_duration 500 reached at 501
microseconds st:0
[mpegts @ 0x24cdc00] After avformat_find_stream_info() pos: 656872 bytes
read:658000 seeks:0 frames:241
Input #0, mpegts, from 'udp://239.255.165.121:4001':
  Duration: N/A, start: 31155.983311, bitrate: N/A
  Program 1792
Metadata:
  service_name: 7EMCT0
  service_provider: CBC / RADIO-CANADA
Stream #0:0[0x702](FRE), 241, 1/9: Audio: aac_latm (LC)
([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp
Successfully opened the file.
Parsing a group of options: output url icecast://[user]:[pwd]@
mp3push.ord.llnw.net:79/stream/cbcmp3_mp3live.
Applying option codec:a (codec name) with argument libmp3lame.
Applying option vn (disable video) with argument 1.
Applying option f (force format) with argument mp3.
Successfully parsed a group of options.
Opening an ou

Re: [FFmpeg-user] Samsung HanWha QNV-7010RN Security Camera Stream - No Sound with ffplay

2019-06-08 Thread Patrick Kirchner via ffmpeg-user
   On Saturday, June 8, 2019, 3:34:27 PM CDT, Moritz Barsnick 
 wrote:  
 On Sat, Jun 08, 2019 at 15:50:35 +, Patrick Kirchner via ffmpeg-user wrote:
> I have no luck with ffplay using "-af aresample=32000" and when I try to 
> change it to "-ac 2" I get this type of complaint:
> [g726le @ 0x7f7070006600] Decoding more than one channel is not implemented. 
> Update your FFmpeg version to the newest one from Git. If the problem still 
> occurs, it means that your file has a feature which has not been implemented.

"-ac 2" probably forces ffprobe to assume that the *input* has two
channels, which apparently isn't supported.

Did you read Carl Eugen's suggestion to try "-af aresample=ocl=stereo"?

> With MPlayer, there are audio output options to chose either sdl or
> alsa seperately, but it seems that ffplay can only use alsa along
> with sdl.

I believe it's SDL which has the ALSA implementation, ffplay only uses
the SDL API. (I may be wrong though.)

ffplay is sort of minimalistic feature-wise. Do you definitely need
ffplay? Do you have access to mpv?

Moritz
---
Thanks Moritz!    Using "-af aresample=ocl=stereo" resolved my issue and now 
the sound works great.  Sorry, somehow I totally missed Carl Eugen's suggestion 
to try it.  I searched through all the replies to my thread and I still can't 
find it but regardless it was the answer, so thank you very much for pointing 
it out and a big thanks to Carl Eugen for the correct answer to my problem.
I've been hoping to use ffplay because of its quick startup time and low 
footprint.  I had been using MPlayer since 2000 but wasn't aware of the MPV 
fork.  I'll have to check it out, but for now I'm quite pleased that ffplay is 
working.
Many thanks again to you and Carl for the assistance.  :)

Patrick.
  
___
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] Samsung HanWha QNV-7010RN Security Camera Stream - No Sound with ffplay

2019-06-08 Thread Patrick Kirchner via ffmpeg-user
 

On Monday, June 3, 2019, 10:56:24 PM CDT, Patrick Kirchner 
 wrote:  
 
 On Monday, June 3, 2019, 10:28:43 AM CDT, Moritz Barsnick  
wrote:  
 
 On Mon, Jun 03, 2019 at 01:44:58 +, Patrick Kirchner via ffmpeg-user wrote:
> SDL_OpenAudio (1 channels, 8000 Hz): ALSA: Couldn't set audio channels
> No more combinations to try, audio open failed

This means that ffplay's SDL audio implementation can't play to the
available audio device. Perhaps ffplay doesn't automatically try to
convert to a suitable format - assuming ALSA might accept 44.1 or 48
kHz. You could try to insert an audio filter into ffplay to change the
sample rate (probably "-af aresample=48000").

mplayer most likely uses some other mechanism for playing audio,
perhaps OSS, and therefore succeeds by default.

Cheers,
Moritz
___
Thanks Moritz.  I tried a few rates but they all failed and looked like this:
ffplay -fs -af aresample=48000 
rtsp://nope:notmyrealpassword@192.168.1.20:554/profile3/media.smp
ffplay version 4.1.3 Copyright (c) 2003-2019 the FFmpeg developers
  built with gcc 8.3.0 (Gentoo 8.3.0-r1 p1.1)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 
--docdir=/usr/share/doc/ffmpeg-4.1.3/html --mandir=/usr/share/man 
--enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ 
--ar=x86_64-pc-linux-gnu-ar --optflags='-march=core-avx2 -O2 -pipe' 
--disable-static --enable-avfilter --enable-avresample --disable-stripping 
--disable-optimizations --disable-libcelt --disable-indev=oss 
--disable-indev=jack --disable-outdev=oss --enable-nonfree --enable-bzlib 
--disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls 
--disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv 
--disable-libtls --disable-libxml2 --disable-lzma --enable-network 
--disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient 
--enable-ffplay --enable-sdl2 --disable-vaapi --enable-vdpau --enable-xlib 
--enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib 
--disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca 
--disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse 
--disable-libdrm --disable-libjack --disable-libopencore-amrwb 
--disable-libopencore-amrnb --disable-libcodec2 --enable-libfdk-aac 
--disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm 
--disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc 
--disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt 
--enable-librsvg --enable-ffnvcodec --enable-libvorbis --disable-libvpx 
--disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint 
--disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig 
--disable-ladspa --disable-libass --disable-lv2 --enable-libfreetype 
--disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr 
--enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame 
--disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy 
--disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxvid --disable-armv5te 
--disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 
--disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu 
--disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 
--disable-xop --cpu=core-avx2 --disable-doc --disable-htmlpages 
--enable-manpages
  libavutil  56. 22.100 / 56. 22.100
  libavcodec 58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter 7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, rtsp, from 
'rtsp://nope:notmyrealpassword@192.168.1.20:554/profile3/media.smp':
  Metadata:
    title   : Media Presentation
    comment : samsung
  Duration: N/A, start: -0.225000, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 2592x1520, 7.92 tbr, 90k tbn, 
90k tbc
    Stream #0:1: Audio: adpcm_g726le, 8000 Hz, mono, s16, 32 kb/s
    Stream #0:2: Data: none
SDL_OpenAudio (1 channels, 48000 Hz): ALSA: Couldn't set audio channels
SDL_OpenAudio (1 channels, 44100 Hz): ALSA: Couldn't set audio channels
No more combinations to try, audio open failed
[rtsp @ 0x7f2ba4000b80] max delay reached. need to consume packet
[rtsp @ 0x7f2ba4000b80] RTP: missed 11 packets
^C 0.93 M-V: -0.001 fd=   0 aq=    0KB vq=  491KB sq=    0B f=0/0
When I play it with mplayer I have to actually use "mplayer -ao alsa" in order 
for it to work, so I think it's should be possible with ffp

Re: [FFmpeg-user] Samsung HanWha QNV-7010RN Security Camera Stream - No Sound with ffplay

2019-06-03 Thread Patrick Kirchner via ffmpeg-user
On Monday, June 3, 2019, 10:28:43 AM CDT, Moritz Barsnick  
wrote:  
 
 On Mon, Jun 03, 2019 at 01:44:58 +, Patrick Kirchner via ffmpeg-user wrote:
> SDL_OpenAudio (1 channels, 8000 Hz): ALSA: Couldn't set audio channels
> No more combinations to try, audio open failed

This means that ffplay's SDL audio implementation can't play to the
available audio device. Perhaps ffplay doesn't automatically try to
convert to a suitable format - assuming ALSA might accept 44.1 or 48
kHz. You could try to insert an audio filter into ffplay to change the
sample rate (probably "-af aresample=48000").

mplayer most likely uses some other mechanism for playing audio,
perhaps OSS, and therefore succeeds by default.

Cheers,
Moritz
___
Thanks Moritz.  I tried a few rates but they all failed and looked like this:
ffplay -fs -af aresample=48000 
rtsp://nope:notmyrealpassword@192.168.1.20:554/profile3/media.smp
ffplay version 4.1.3 Copyright (c) 2003-2019 the FFmpeg developers
  built with gcc 8.3.0 (Gentoo 8.3.0-r1 p1.1)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 
--docdir=/usr/share/doc/ffmpeg-4.1.3/html --mandir=/usr/share/man 
--enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ 
--ar=x86_64-pc-linux-gnu-ar --optflags='-march=core-avx2 -O2 -pipe' 
--disable-static --enable-avfilter --enable-avresample --disable-stripping 
--disable-optimizations --disable-libcelt --disable-indev=oss 
--disable-indev=jack --disable-outdev=oss --enable-nonfree --enable-bzlib 
--disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls 
--disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv 
--disable-libtls --disable-libxml2 --disable-lzma --enable-network 
--disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient 
--enable-ffplay --enable-sdl2 --disable-vaapi --enable-vdpau --enable-xlib 
--enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib 
--disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca 
--disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse 
--disable-libdrm --disable-libjack --disable-libopencore-amrwb 
--disable-libopencore-amrnb --disable-libcodec2 --enable-libfdk-aac 
--disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm 
--disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc 
--disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt 
--enable-librsvg --enable-ffnvcodec --enable-libvorbis --disable-libvpx 
--disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint 
--disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig 
--disable-ladspa --disable-libass --disable-lv2 --enable-libfreetype 
--disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr 
--enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame 
--disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy 
--disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxvid --disable-armv5te 
--disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 
--disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu 
--disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 
--disable-xop --cpu=core-avx2 --disable-doc --disable-htmlpages 
--enable-manpages
  libavutil  56. 22.100 / 56. 22.100
  libavcodec 58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter 7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, rtsp, from 
'rtsp://nope:notmyrealpassword@192.168.1.20:554/profile3/media.smp':
  Metadata:
    title   : Media Presentation
    comment : samsung
  Duration: N/A, start: -0.225000, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 2592x1520, 7.92 tbr, 90k tbn, 
90k tbc
    Stream #0:1: Audio: adpcm_g726le, 8000 Hz, mono, s16, 32 kb/s
    Stream #0:2: Data: none
SDL_OpenAudio (1 channels, 48000 Hz): ALSA: Couldn't set audio channels
SDL_OpenAudio (1 channels, 44100 Hz): ALSA: Couldn't set audio channels
No more combinations to try, audio open failed
[rtsp @ 0x7f2ba4000b80] max delay reached. need to consume packet
[rtsp @ 0x7f2ba4000b80] RTP: missed 11 packets
^C 0.93 M-V: -0.001 fd=   0 aq=    0KB vq=  491KB sq=    0B f=0/0
When I play it with mplayer I have to actually use "mplayer -ao alsa" in order 
for it to work, so I think it's should be possible with ffplay and alsa as well.
Looks like mplayer is bumping it up to 32000 and 2 channels:
 =

Re: [FFmpeg-user] Samsung HanWha QNV-7010RN Security Camera Stream - No Sound with ffplay

2019-06-02 Thread Patrick Kirchner via ffmpeg-user
 

On Sunday, June 2, 2019, 8:24:57 PM CDT, Carl Zwanzig  
wrote:  
 
 On 6/2/2019 6:20 PM, Patrick Kirchner via ffmpeg-user wrote:
> Any assistance would be greatly appreciated.

Please post the full command output, and if you're using any version older 
than maybe 3 months, try the current one.

Later,

z!

___

 I'm on Gentoo, kernel 5.1.6.  Here's the full command and output:
/usr/bin/ffplay -fs 
rtsp://nope:notmypassword@192.168.1.20:554/profile3/media.smp

ffplay version 4.1.3 Copyright (c) 2003-2019 the FFmpeg developers
  built with gcc 8.3.0 (Gentoo 8.3.0-r1 p1.1)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 
--docdir=/usr/share/doc/ffmpeg-4.1.3/html --mandir=/usr/share/man 
--enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ 
--ar=x86_64-pc-linux-gnu-ar --optflags='-march=core-avx2 -O2 -pipe' 
--disable-static --enable-avfilter --enable-avresample --disable-stripping 
--disable-optimizations --disable-libcelt --disable-indev=oss 
--disable-indev=jack --disable-outdev=oss --enable-nonfree --enable-bzlib 
--disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls 
--disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv 
--disable-libtls --disable-libxml2 --disable-lzma --enable-network 
--disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient 
--enable-ffplay --enable-sdl2 --disable-vaapi --enable-vdpau --enable-xlib 
--enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib 
--disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca 
--disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse 
--disable-libdrm --disable-libjack --disable-libopencore-amrwb 
--disable-libopencore-amrnb --disable-libcodec2 --enable-libfdk-aac 
--disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm 
--disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc 
--disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt 
--enable-librsvg --enable-ffnvcodec --enable-libvorbis --disable-libvpx 
--disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint 
--disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig 
--disable-ladspa --disable-libass --disable-lv2 --enable-libfreetype 
--disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr 
--enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame 
--disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy 
--disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxvid --disable-armv5te 
--disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 
--disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu 
--disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 
--disable-xop --cpu=core-avx2 --disable-doc --disable-htmlpages 
--enable-manpages
  libavutil  56. 22.100 / 56. 22.100
  libavcodec 58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter 7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, rtsp, from 
'rtsp://nope:notmypassword@192.168.1.20:554/profile3/media.smp':
  Metadata:
    title   : Media Presentation
    comment : samsung
  Duration: N/A, start: -0.184000, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 2592x1520, 19.92 tbr, 90k 
tbn, 90k tbc
    Stream #0:1: Audio: adpcm_g726le, 8000 Hz, mono, s16, 32 kb/s
    Stream #0:2: Data: none
SDL_OpenAudio (1 channels, 8000 Hz): ALSA: Couldn't set audio channels
No more combinations to try, audio open failed
^C 1.19 M-V: -0.013 fd=   0 aq=    0KB vq=  271KB sq=    0B f=0/0
Thanks,PK

  
___
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] Samsung HanWha QNV-7010RN Security Camera Stream - No Sound with ffplay

2019-06-02 Thread Patrick Kirchner via ffmpeg-user
Hi - I'm trying to play the rtp stream from my Samsung HanWha security camera 
with ffplay but I can't get sound to work.

The audio stream looks to be identified, but fails to play with:
   Duration: N/A, start: -0.184000, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 2592x1520, 19.92 tbr, 90k 
tbn, 90k tbc
    Stream #0:1: Audio: adpcm_g726le, 8000 Hz, mono, s16, 32 kb/s
    Stream #0:2: Data: none
SDL_OpenAudio (1 channels, 8000 Hz): ALSA: Couldn't set audio channels
No more combinations to try, audio open failed
Oddly, mplayer will play the audio stream, but chokes on the video, it 
identifies the audio with "Selected audio codec: [ffg726le] afm: ffmpeg (FFmpeg 
G.726 little endian Audio)"

I'm trying to play it via an nVidia video card with HDMI out that carries the 
sound to my Yamaha a/v 7.1 receiver.  Maybe it's just a problem with mapping it 
to the HDMI and audio channel up convert but I can't seem to figure out how to 
make it work.
Any assistance would be greatly appreciated.
Thanks,Patrick.


___
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 error in Kdenlive

2019-05-07 Thread Patrick Malolepszy
Hello all,

*Goal:*
I want to use my GPU as much as possible in Kdenlive. For proxy clip
rendering, timeline preview, and final project renders.

*Problem:*
When trying to create a proxy clip using nvenc, I receive the following
error:

/home/patrick/bin/ffmpeg: error while loading shared libraries:
libsndio.so.6.1: cannot open shared object file: No such file or directory

*ffmpeg installation:*
I followed the guide here:
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
I followed all details in the guide. I opted to enable all optional
configurations, with the one exception of libaom

*kdenlive configuration:*
Editing profile for proxy clips set to x264-nvenc with settings. I believe
these are the defaults.

-hwaccel cuvid -c:v %nvcodec -i -filter:v scale_cuda=720:-2 -vcodec
h264_nvenc -g 1 -bf 0 -vb 0 -acodec copy


*System Details: *Further information available on request.
uname -a: Linux nuzleaf 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13
10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Nvidia Driver: 430.09 - GeForce GTX 1060
Kdenlive: 19.04.0

Thank you for any help/direction you can provide.

Cheers,
Patrick.
___
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] select default lang with fallback

2017-07-14 Thread Patrick
Hello


I know how to select an language by language name:

-map 0:m:language:fra

like

ffmpeg -i input.ts -map 0:v -map 0:m:language:fra  -codec copy output.mp4

i know to avoid an error if the language don't exist.

ffmpeg -i input.ts -map 0:v -map 0:m:language:fra?  -codec copy output.mp4

This leads to no audio if the language is missing.

But very cool would be to have an fallback language or fallback to the
default behavior (auto select language).


Is it possible or need we a patch?


regards

Patrick



___
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] Streaming audio on demaind

2017-05-25 Thread Patrick Shirkey
Hi,

I am looking at options for on demand audio file streaming (no video).

Currently my audio files are encoded as .m4a aac_he 64k. This format works
but there is a noticeable lag while the file is downloaded before playback
starts and I see inconsistent results on mobile devices.

Is the correct approach for streaming audio files to use hls to separate
the file into chunks with an m3u8 playlist or is there a
better/alternate/more appropriate method?


ex.

https://www.ffmpeg.org/ffmpeg-formats.html#hls
https://www.ffmpeg.org/ffmpeg-formats.html#segment



-- 
Patrick Shirkey
Boost Hardware Ltd

___
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] broken mp4 file from upd stream

2017-02-03 Thread Patrick
Hello

i'm using ffmpeg to record a tv stream from an udp multicast (mpeg-ts).

output is an codec copy mpeg-ts file and a html5 conform mp4 file
(faststart, h264, aac, ...)

most of the time it works very well but sometimes(1 of 10) the mp4 file
is broken.

it seems that the moov atom header will not be written or something else.

Does anyone have an idea?





ffmpeg -hide_banner -loglevel info -timeout 3000 -i
'udp://238.1.1.3:1234&timeout=2000' -codec copy -y
2017-02-01_19-55-38.ts -vcodec libx264 -preset ultrafast -profile:v
baseline -flags +cgop -bf 0 -crf 24 -pix_fmt yuv420p -g 25 -acodec aac
-strict experimental -ac 2 -ab 128k -ar 44100 -movflags +faststart -vb
2000k -y lores_2017-02-01_19-55-38.ts.mp4

ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (SUSE Linux)
  configuration: --prefix=/home/build/ffmpeg-static/target
--pkg-config-flags=--static
--extra-cflags='-I/home/build/ffmpeg-static/target/include -static'
--extra-ldflags='-L/home/build/ffmpeg-static/target/lib -static'
--bindir=/home/build/ffmpeg-static/bin --disable-ffplay
--disable-ffserver --enable-gpl --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libvpx --enable-libx264
--enable-nonfree
  libavutil  55. 34.100 / 55. 34.100
  libavcodec 57. 64.101 / 57. 64.101
  libavformat57. 56.100 / 57. 56.100
  libavdevice57.  1.100 / 57.  1.100
  libavfilter 6. 65.100 /  6. 65.100
  libswscale  4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc54.  1.100 / 54.  1.100

[mpeg2video @ 0x25e9300] Invalid frame dimensions 0x0.
Input #0, mpegts, from 'udp://238.1.1.3:1234&timeout=2000':
  Duration: N/A, start: 63424.941422, bitrate: 3692 kb/s
  Program 10067
Metadata:
  service_name: Bloomberg Europe TV
  service_provider: Bloomberg TV
Stream #0:0[0x528](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000
Hz, stereo, s16p, 192 kb/s
Stream #0:1[0x550]: Video: mpeg2video (Main) ([2][0][0][0] /
0x0002), yuv420p(tv, top first), 544x576 [SAR 32:17 DAR 16:9], 3500
kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
  Program 10030
Metadata:
  service_name: CNBC Europe
  service_provider: CNBC
  Program 10050
Metadata:
  service_name: BBC World
  service_provider: BBC
  Program 10099
Metadata:
  service_name: Data System
  service_provider: SES ASTRA
  Program 10079
Metadata:
  service_name: RMC Decouverte HD
  service_provider: SES ASTRA
  Program 10081
Metadata:
  service_name: RMC Decouverte HD
  service_provider: SES ASTRA
  Program 10080
Metadata:
  service_name: Sonlife Broadcasting Network
  service_provider: SES ASTRA
  Program 10082
Metadata:
  service_name: Algerie 3
  service_provider: TDA
  Program 10083
Metadata:
  service_name: Canal Algerie
  service_provider: TDA
Output #0, mpegts, to '2017-02-01_19-55-38.ts':
  Metadata:
encoder : Lavf57.56.100
Stream #0:0: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, top first), 544x576 [SAR 32:17 DAR 16:9], q=2-31, 3500 kb/s,
25 fps, 25 tbr, 90k tbn, 90k tbc
Stream #0:1(eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, 192 kb/s
[libx264 @ 0x25e2560] using SAR=1/1
[libx264 @ 0x25e2560] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x25e2560] profile Constrained Baseline, level 3.0
[libx264 @ 0x25e2560] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft
2003-2016 - http://www.videolan.org/x264.html - options: cabac=0 ref=1
deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00
mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0
deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=11
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25
keyint_min=2 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=24.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
Output #1, mp4, to 'lores_2017-02-01_19-55-38.ts.mp4':
  Metadata:
encoder : Lavf57.56.100
Stream #1:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021),
yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 25 fps, 12800
tbn, 25 tbc
Metadata:
  encoder : Lavc57.64.101 libx264
Side data:
  cpb: bitrate max/min/avg: 0/0/200 buffer size: 0 vbv_delay: -1
Stream #1:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100
Hz, stereo, fltp, 128 kb/s
Metadata:
  encoder : Lavc57.64.101 aac
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
  Stream #0:1 -> #1:0 (mpeg2video (native) -> h264 (libx264))
  Stream #0:0 -> #1:1 (mp2 (native) -> aac (native))
Press [q] to stop, [?] for help
frame=  203 fps= 66 q=-1.0 q=18.0 size=3848kB time=00:00:08.55
bitrate=3685.3kbits/s dup=16 drop=0 speed=2.78x
frame=  283 fps= 45 q=-1.0 q=19.0 size=5274kB time=00:0

Re: [FFmpeg-user] Convert files on the fly...does it work?

2015-07-06 Thread Patrick Roelli
Hello.

Have you tried it?

2015-07-06 1:03 GMT+02:00 Dani A :

> I want to convert  files where the source and destination files are have
> the same name and on the same folder.
>
> Can FFMPEG allow that?
> The command below and as you can see, I am using the same file name in
> both the source and destination.
>
> ffmpeg -i video.mp4 -c:a copy -c:v copy -movflags faststart video.mp4
>
>  I do not want to create a new file and then delete the old file and then
> rename the new file to the old file name.
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] how to detect corrupted/wrong video file

2015-06-25 Thread Patrick Roelli
You can try this

-err_detect explode



ref:
http://superuser.com/questions/588147/can-i-make-ffmpeg-stop-if-integrity-check-encounters-an-error

2015-06-25 11:22 GMT+02:00 qw :

> Hi,
>
>
> Some video files can't be played by player, because those file are wrong
> or corrupted.
>
>
> I want to know whether ffmpeg have the function of detecting the corrupted
> video file quickly that can't be played correctly by player
>
>
> Thanks!
>
>
> Andrew
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] how to detect wrong video file

2015-06-25 Thread Patrick Roelli
Could you rewrite your question, I'm actually not sure what you are looking
for.

2015-06-25 11:04 GMT+02:00 qw :

> Hi,
>
>
> How to detect wrong video file using ffmpeg efficiently?
>
>
> Thanks!
>
>
> B.R.
>
>
> Andrew
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Non-monotonous DTS in output stream in concat

2015-06-21 Thread Patrick Roelli
Hello,

I have encoutered the same issue lately. One thing you could try is to
change the container of the videos of "mylist.txt". No need for encoding,
just rebuild the container as mp4.

2015-06-21 21:14 GMT+02:00 Dani A :

> I am concatenating two files and I am getting the below errors. both files
> are mp4s an
>
> ffmpeg -f concat -i mylist.txt -c copy output.mp4
>
>
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332800, current: 306700; changing to 332801. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332801, current: 307724; changing to 332802. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332802, current: 308748; changing to 332803. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332803, current: 309772; changing to 332804. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332804, current: 310796; changing to 332805. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332805, current: 311820; changing to 332806. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332806, current: 312844; changing to 332807. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332807, current: 313867; changing to 332808. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332808, current: 314891; changing to 332809. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332809, current: 315915; changing to 332810. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332810, current: 316939; changing to 332811. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332811, current: 317963; changing to 332812. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332812, current: 318987; changing to 332813. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332813, current: 320011; changing to 332814. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332814, current: 321035; changing to 332815. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332815, current: 322059; changing to 332816. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332816, current: 323083; changing to 332817. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332817, current: 324107; changing to 332818. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332818, current: 325131; changing to 332819. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332819, current: 326155; changing to 332820. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332820, current: 327179; changing to 332821. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332821, current: 328202; changing to 332822. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332822, current: 329226; changing to 332823. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332823, current: 330250; changing to 332824. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332824, current: 331274; changing to 332825. This may result in incorrect
> timestamps in the output file.
> [mp4 @ 0xbc48a40] Non-monotonous DTS in output stream 0:1; previous:
> 332825, current: 332298; changing to 332826. This m

Re: [FFmpeg-user] Build script for Tizen

2015-05-27 Thread Patrick Shirkey

On Wed, May 27, 2015 3:36 pm, Md. Rokanuzzaman Sikder wrote:
> Dear Concern,
> I am trying to build FFMPEG for Tizen (ARM). But failed..
> Could you please send me the build script or particular help regarding
> this?
>


Are you cross compiling with the appropriate toolchain?

ex.

./configure --arch=arm --cpu=cortex-a8 --target-os=linux
--enable-cross-compile
--cross-prefix=/path/to/tizen/gcc/linux-x86/arm/arm-linux-an
droideabi-4.7/bin/arm-linux-androideabi-
--sysroot=/path/to/tizen/ndk/current/platforms/android-18/arch-arm
--enable-gpl --enable-libx264 --
enable-ffplay --extra-cflags='-fno-builtin-sin -fno-builtin-sinf
-I/path/to//x264' --extra-ldflags='-L/path/to/x264'



Can you send us the error messages please?



--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] autodetect framerate for burn in timestamp with drawtext filter

2014-10-09 Thread Patrick Fischer

Hello

I'm using the drawtext filter to burn in the timestamp.
drawtext=fontfile=FreeMono.ttf:shadowcolor=white:shadowx=2:shadowy=2:x=10:y=19:timecode='12\:49\:18\:00': 
rate=*25*:fontsize=22:text=\'7.10.2014 \'


But with this filter i can only handle videos with framerate=25
Who can i use the filter with autodetect rate.
I must handle 50 fps likewise 25fps

whole command:

ffmpeg -i 
"udp://238.1.1.1:1234?fifo_size=200&overrun_nonfatal=1&timeout=2000" 
-vcodec libx264 -preset ultrafast -profile baseline -crf 24 -pix_fmt 
yuv420p -g 25 -acodec aac -strict experimental -ac 2 -ab 128k -ar 44100 
-movflags +faststart -vb 2000k -y -vf 
"[in]drawtext=fontfile=FreeMono.ttf:shadowcolor=white:shadowx=2:shadowy=2:x=10:y=2:fontsize=22:text=\'Test\'[in2]; 
[in2]drawtext=fontfile=FreeMono.ttf:shadowcolor=white:shadowx=2:shadowy=2:x=10:y=19:timecode='12\:49\:18\:00': 
rate=25:fontsize=22:text=\'07.10.2014 \'[in3];[in3]scale=640:-1[out]" 
test.mp4



Output:
ffmpeg version N-53613-g4d2825a Copyright (c) 2000-2013 the FFmpeg 
developers

  built on May 29 2013 05:12:05 with gcc 4.6 (Debian 4.6.3-1)
  configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 
--extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' 
--extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' 
--extra-libs='-lxml2 -lexpat -lfreetype' --enable-static 
--disable-shared --disable-ffserver --disable-doc --enable-bzlib 
--enable-zlib --enable-postproc --enable-runtime-cpudetect 
--enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis 
--enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype 
--enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc 
--enable-libvo-amrwbenc --enable-version3 --enable-libvpx

  libavutil  52. 34.100 / 52. 34.100
  libavcodec 55. 12.102 / 55. 12.102
  libavformat55.  7.100 / 55.  7.100
  libavdevice55.  1.101 / 55.  1.101
  libavfilter 3. 72.100 /  3. 72.100
  libswscale  2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc52.  3.100 / 52.  3.100
[mpegts @ 0x975f4a0] Unable to seek back to the start
[h264 @ 0x977e280] non-existing PPS referenced
[h264 @ 0x977e280] non-existing PPS 0 referenced
[h264 @ 0x977e280] decode_slice_header error
[h264 @ 0x977e280] no frame!
.
[h264 @ 0x977e280] non-existing PPS referenced
[h264 @ 0x977e280] non-existing PPS 0 referenced
[h264 @ 0x977e280] decode_slice_header error
[h264 @ 0x977e280] no frame!
[mpegts @ 0x975f4a0] Stream #0: not enough frames to estimate rate; 
consider increasing probesize
[mpegts @ 0x975f4a0] Stream #5: not enough frames to estimate rate; 
consider increasing probesize
[mpegts @ 0x975f4a0] Stream #8: not enough frames to estimate rate; 
consider increasing probesize
[mpegts @ 0x975f4a0] Stream #9: not enough frames to estimate rate; 
consider increasing probesize
[mpegts @ 0x975f4a0] Could not find codec parameters for stream 0 
(Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' 
options
Input #0, mpegts, from 
'udp://238.1.1.1:1234?fifo_size=200&overrun_nonfatal=1&timeout=2000':

  Duration: N/A, start: 94707.794833, bitrate: 1024 kb/s
  Program 10302
Metadata:
  service_name: arte HD
  service_provider: ARD
Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 
Hz, stereo, s16p, 192 kb/s
Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 
Hz, stereo, s16p, 192 kb/s
Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 
0x0006)
Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 
0x0006) (hearing impaired)
Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 
Hz, 5.1(side), fltp, 448 kb/s
Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 
Hz, stereo, s16p, 192 kb/s
Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 
0x0006)
Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 
0x0006)

  Program 10301
Metadata:
  service_name: Das Erste HD
  service_provider: ARD
  Program 10303
Metadata:
  service_name: SWR BW HD
  service_provider: ARD
  Program 10304
Metadata:
  service_name: SWR RP HD
  service_provider: ARD
Please use -profile:a or -profile:v, -profile is ambiguous
[libx264 @ 0x9967440] using SAR=1/1
[libx264 @ 0x9967440] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x9967440] profile Constrained Baseline, level 3.1
[libx264 @ 0x9967440] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC 
codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - 
options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 
psy_rd=1.0

Re: [FFmpeg-user] libx264 vs android 4.4

2014-07-16 Thread Patrick Shirkey

On Wed, July 16, 2014 11:33 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> Output #0, h264, to 'http://localhost:8090/feed1.ffm':
>
>> av_interleaved_write_frame(): Connection reset by peer
>
> It appears that whatever you setup to receive your
> stream does not like the h264 format.
> (Maybe the receiving end expected ffm?)
>

Thanks for your help with this.

If I use the following commandline I get a different error but the stream
still stops after 58 frames:

ffmpeg -f fbdev -r 1 -i /dev/graphics/fb0 -vcodec libx264 -f h264
-preset:v slow -pix_fmt yuv420p http://localhost:8090/live.h264

[fbdev @ 0x2038d40] w:800 h:480 bpp:32 pixfmt:bgra fps:1/1 bit_rate:12288000
Input #0, fbdev, from '/dev/graphics/fb0':
  Duration: N/A, start: 1405524527.617801, bitrate: 12288 kb/s
Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 800x480, 12288
kb/s, 1 fps, 1 tbr, 1000k tbn, 1 tbc
[libx264 @ 0x203b260] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x203b260] profile High, level 2.2
[h264 @ 0x203a460] Using AVStream.codec.time_base as a timebase hint to
the muxer is deprecated. Set AVStream.time_base instead.
Output #0, h264, to 'http://localhost:8090/l.h264':
  Metadata:
encoder : Lavf55.45.100
Stream #0:0: Video: h264 (libx264), yuv420p, 800x480, q=-1--1, 1 fps,
1 tbn, 1 tbc
Metadata:
  encoder : Lavc55.69.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
av_interleaved_write_frame(): Broken pipe time=00:00:00.00 bitrate=N/A
frame=   58 fps=0.8 q=-1.0 Lsize=  20kB time=00:00:-1.00 bitrate=N/A
video:20kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.00%


--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] libx264 vs android 4.4

2014-07-16 Thread Patrick Shirkey

On Wed, July 16, 2014 10:56 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> ffmpeg -f fbdev -r 1 -i /dev/graphics/fb0 -vcodec libx264
>> -f h264 -preset:v slow -pix_fmt yuv420p
>> http://localhost:8090/feed1.ffm
>
> I don't know your use case but I wonder if a faster
> preset with a higher frame rate wouldn't be more
> useful.
>

faster presets and higher frame rates give me less time to play with.

ex. With "veryfast" the number of frames that are streamed is 18 compared
to 58 with "slow"


> (I haven't used ffm for a long time but are you sure
> that -f h286 feed.ffm works? Maybe you meant -f h264
> feed.h264? Which makes the -f h264 superfluous.)
>

Using :8090/feed.ffm works fine if I don't use libx264

If I remove the -f h264 the stream won't run (see previous messages for
the full out put)

Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height



>>   configuration: --arch=arm --target-os=linux --enable-cross-compile
>> --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/
>> arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
>> --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
>> --enable-gpl --enable-avresample --enable-libx264 --enable-ffplay
>> --extra-cflags='-fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264'
>> --extra-ldflags=-L/4.4/external/x264
>
> As said --enable-ffplay has no effect (and it does not
> tell you if it didn't work), so please remove it.
>
> I don't think you want to use --enable-avresample.
>
> You wrote in an earlier email:
>> [--cpu] doesn't appear to have any affect for
>> this build.
>
> Do you mean the output is bitexact with and without
> the --cpu option? Or that you did some performance
> tests and couldn't reproduce a difference?
> It cannot make a difference for the usecase above
> (that only depends on libx264 compilation / speed)
> but generally, I thought the --cpu option is useful
> for arm.
>

I have recompiled with --cpu=cortex-a8 and dropped --enable-avresample

It doesn't appear to make any obvious difference. The stream still stops
after 58 frames using preset "slow" and cpuload is the same.

The main issue for me is identifying the cause of the stoppage. It is
always 58 frames.





--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] libx264 vs android 4.4

2014-07-16 Thread Patrick Shirkey

On Fri, July 11, 2014 9:33 pm, Patrick Shirkey wrote:
>
> On Fri, July 11, 2014 8:37 pm, Carl Eugen Hoyos wrote:
>> Patrick Shirkey  boosthardware.com> writes:
>>
>>> On Fri, July 11, 2014 4:55 pm, Carl Eugen Hoyos wrote:
>>> > Patrick Shirkey  boosthardware.com> writes:
>>> >
>>> >> ffmpeg -f rawvideo -i /dev/graphics/fb0
>>> >
>>> > This looks plain wrong.
>>
>>> The commandline works if I do not use libx264 for
>>> the stream codec.
>>
>> http://ffmpeg.org/ffmpeg-devices.html#fbdev
>> indicates that ffmpeg -f fbdev -i /dev/graphics/fb0
>> should be used but I unfortunately cannot test here.
>>
>> Concerning that x264 doesn't work at all, please test:
>> $ ffmpeg -f lavfi -i testsrc -pix_fmt yuv420p out.mov
>> If this doesn't work, we have to find out why.
>>
>> If it works, please replace "-f lavfi -i testsrc" with
>> the framebuffer input.
>>

I have been able to get a working commandline with libx264 encodiing.

On a dual core allwinner a20 chipset with mali GPU I see about between 5 -
10% additonal cpuload. The stream runs for 58 frames at -r 1.

- I'm using this command line:

ffmpeg -f fbdev -r 1 -i /dev/graphics/fb0 -vcodec libx264 -f h264 
-preset:v slow -pix_fmt yuv420p http://localhost:8090/feed1.ffm

If I use -f h264 the cpuload jumps up to 80%

- I run ffserver like this:

ffserver   -f /data/ffserver.conf

ffserver.conf

Port 8090
RTSPPort 7654
BindAddress 0.0.0.0
RTSPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -

   File /data/feed1.ffm
   ACL allow 127.0.0.1



  Format rtp
  Feed feed1.ffm
  VideoCodec libx264
  VideoFrameRate 1
  VideoBitRate 100
  VideoSize 480x800
#  AVPresetVideo default
#  AVPresetVideo baseline
  NoAudio
  AVOptionVideo flags +global_header



ffmpeg output:

ffmpeg version N-64597-g4576eff Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 11 2014 10:59:49 with gcc 4.7 (GCC)
  configuration: --arch=arm --target-os=linux --enable-cross-compile
--cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
--enable-gpl --enable-avresample --enable-libx264 --enable-ffplay
--extra-cflags='-fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264'
--extra-ldflags=-L/4.4/external/x264
  libavutil  52. 92.100 / 52. 92.100
  libavcodec 55. 69.100 / 55. 69.100
  libavformat55. 45.100 / 55. 45.100
  libavdevice55. 13.102 / 55. 13.102
  libavfilter 4. 10.100 /  4. 10.100
  libavresample   1.  3.  0 /  1.  3.  0
  libswscale  2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc52.  3.100 / 52.  3.100
[fbdev @ 0x1c42d40] w:800 h:480 bpp:32 pixfmt:bgra fps:1/1 bit_rate:12288000
Input #0, fbdev, from '/dev/graphics/fb0':
  Duration: N/A, start: 1405514019.655622, bitrate: 12288 kb/s
Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 800x480, 12288
kb/s, 1 fps, 1 tbr, 1000k tbn, 1 tbc
[libx264 @ 0x1c45260] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x1c45260] profile High, level 2.2
[h264 @ 0x1c44460] Using AVStream.codec.time_base as a timebase hint to
the muxer is deprecated. Set AVStream.time_base instead.
Output #0, h264, to 'http://localhost:8090/feed1.ffm':
  Metadata:
encoder : Lavf55.45.100
Stream #0:0: Video: h264 (libx264), yuv420p, 800x480, q=-1--1, 1 fps,
1 tbn, 1 tbc
Metadata:
  encoder : Lavc55.69.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
av_interleaved_write_frame(): Connection reset by peer0.00 bitrate=N/A
frame=   58 fps=0.9 q=-1.0 Lsize=  69kB time=00:00:-1.00 bitrate=N/A
video:69kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.00%
[libx264 @ 0x1c45260] frame I:1 Avg QP: 6.88  size: 70966
[libx264 @ 0x1c45260] frame P:15Avg QP:12.18  size:   200
[libx264 @ 0x1c45260] frame B:42Avg QP:18.33  size:47
[libx264 @ 0x1c45260] consecutive B-frames:  3.4%  0.0%  0.0% 96.6%
[libx264 @ 0x1c45260] mb I  I16..4: 42.3% 27.5% 30.3%
[libx264 @ 0x1c45260] mb P  I16..4:  0.1%  0.0%  0.0%  P16..4:  1.8%  0.0%
 0.2%  0.0%  0.0%skip:98.0%
[libx264 @ 0x1c45260] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  2.0%  0.0%
 0.0%  direct: 0.0%  skip:98.0%  L0:24.4% L1:75.6% BI: 0.0%
[libx264 @ 0x1c45260] 8x8 transform intra:27.3% inter:84.0%
[libx264 @ 0x1c45260] direct mvs  spatial:95.2% temporal:4.8%
[libx264 @ 0x1c45260] coded y,uvDC,uvAC intra: 82.0% 32.0% 29.6% inter:
0.2% 0.1% 0.0%
[libx264 @ 0x1c45260] i16 v,h,dc,p: 77%  8% 14%  0%
[libx264 @ 0x1c45260] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 13% 40%  2%  1% 
1%  3%  1%  4%
[libx264 @ 0x1c45260] i4 

Re: [FFmpeg-user] audio and video out of sync

2014-07-11 Thread Patrick Fischer
Hello Merat,

I think the problem is the ffmpeg mpegts decoder or demuxer.

How did you save the RAW File to disk?

You could use netcat (nc) to receive RAW.

nc 192.168.1.1 1234 > mpegts_raw.ts

You need to know that a valid TS File should start with an 0x47 byte and an GOP 
Header.
So if you try to play the file with VLC, VLC will detect garbage at the 
beginning.
but with a saved file it is much easier to analyze the problem.

The TS file includes timing information(PCR, PTS, DTS) for audio and video.
So if some audio or video frames are missing, a good player (like VLC) will 
detect that frames are missing and the player will fill the missing frames.
(some will double the last or the next frame to adjust the sync)

If i understand the ffmpeg right, the async=1 flag will only sync the start 
point of the file.
If in the middle some frames are missing, the audio/video sync will drift away.

So now you should have a mpegts_raw.ts which maybe have some missing frames.
If you play the TS file with a good player, all looks fine.

If you convert this file to mp4 the fill will be async at some point.

It is hard to get a good example for that. Any maybe i'm wrong.

I think ffmpeg will not handle missing audio/video frames in the middle right.

Best regards
Patrick 



Von: ffmpeg-user-boun...@ffmpeg.org  im Auftrag 
von Murat Maman 
Gesendet: Freitag, 11. Juli 2014 07:34
An: FFmpeg user questions
Betreff: [FFmpeg-user] audio and video out of sync

Hi Carl,

Do you have any idea about source of the problem, i did not get any
comment from you.

Could you make any comment.


regards,


Murat


Hi Carl,

Yesterday out of sync problem again occurred and i saved file where to my
disk, i saw that there is no out of sync problem. What does it mean, what
is the source of problem, am i have internet problem, why frame drop during
the broadcasting, is it rtmp problem.

Our internet speed approximately 150 mbps.

regards,

Murat


On Fri, Jul 4, 2014 at 3:32 PM, Eugene Gekhter http://ffmpeg.org/mailman/listinfo/ffmpeg-user>> wrote:

>* Carl,
*>>* Can you explain why sudo ffmpeg is a bad idea?
*>>* Thx.
*>>* Sent from my iPhone
*>>* > On Jul 4, 2014, at 4:07 AM, Carl Eugen Hoyos http://ffmpeg.org/mailman/listinfo/ffmpeg-user>> wrote:
*>* >
*>* >> On Thursday 03 July 2014 10:10:39 am Murat Maman wrote:
*>* >>
*>* >> sudo ffmpeg -y -f mpegts -i 'udp://@ 
*>* >
*>* > Unrelated: I believe that everybody on this list agrees
*>* > that "sudo ffmpeg" is a very bad idea.
*>* >
*>* >> 00.00.00.00:?fifo_size=100&overrun_nonfatal=1
<http://00.00.00.00:?fifo_size=100&overrun_nonfatal=1> \
*>* >> -maxrate 2M -bufsize 2M \
*>* >> -af volume=1.1 \
*>* >> -strict experimental \
*>* >> -c:a libfaac -ar 22050 -ac 2 -b:a 64k \
*>* >> -vsync 1 -c:v libx264 -r 25 -vf yadif,scale=640:480 -aspect:v 16:9 -b:v
*>* >> 900k \
*>* >> -preset superfast -tune zerolatency -threads 8 -crf 25 \
*>* >> -map 0:0 -map 0:1 \
*>* >> -f flv 'rtmp://testt:testt@00.00.00.00:/live/
'
*>* >
*>* > (Complete, uncut console output missing.)
*>* >
*>* > Why are you using -vsync 1?
*>* > Did you try -async 1?
*>* >
*>* > Am I correct that the problem is reproducible with file output
*>* > instead of network output?
*>* >
*>* > Is the problem reproducible if you save the udp stream to a file
*>* > (including the reception problems) and transcode the file with
*>* > FFmpeg?
*>* >
*>* > Carl Eugen
*>* > ___
*>* > ffmpeg-user mailing list
*>* > ffmpeg-user at ffmpeg.org <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
*>* > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
<http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
*>* ___
*>* ffmpeg-user mailing list
*>* ffmpeg-user at ffmpeg.org <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
*>* http://ffmpeg.org/mailman/listinfo/ffmpeg-user
<http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
*>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] libx264 vs android 4.4

2014-07-11 Thread Patrick Shirkey

On Fri, July 11, 2014 8:37 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> On Fri, July 11, 2014 4:55 pm, Carl Eugen Hoyos wrote:
>> > Patrick Shirkey  boosthardware.com> writes:
>> >
>> >> ffmpeg -f rawvideo -i /dev/graphics/fb0
>> >
>> > This looks plain wrong.
>
>> The commandline works if I do not use libx264 for
>> the stream codec.
>
> http://ffmpeg.org/ffmpeg-devices.html#fbdev
> indicates that ffmpeg -f fbdev -i /dev/graphics/fb0
> should be used but I unfortunately cannot test here.
>
> Concerning that x264 doesn't work at all, please test:
> $ ffmpeg -f lavfi -i testsrc -pix_fmt yuv420p out.mov
> If this doesn't work, we have to find out why.
>
> If it works, please replace "-f lavfi -i testsrc" with
> the framebuffer input.
>

Both of these commands work:
++
$ ffmpeg -f lavfi -i testsrc -pix_fmt yuv420p out.mov

Input #0, lavfi, from 'testsrc':
  Duration: N/A, start: 0.00, bitrate: N/A
Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240
[SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
File 'out.mov' already exists. Overwrite ? [y/N] y
[libx264 @ 0x2ca35b0] using SAR=1/1
[libx264 @ 0x2ca35b0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x2ca35b0] profile High, level 1.3
[libx264 @ 0x2ca35b0] 264 - core 142 r2431 a5831aa - H.264/MPEG-4 AVC
codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mov @ 0x2ca27f0] Using AVStream.codec.time_base as a timebase hint to the
muxer is deprecated. Set AVStream.time_base instead.
Output #0, mov, to 'out.mov':
  Metadata:
encoder : Lavf55.45.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
320x240 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:
  encoder : Lavc55.69.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help

++

$ ffmpeg -f fbdev -i /dev/graphics/fb0 -pix_fmt yuv420p out.mov

[fbdev @ 0x2f7aeb0] w:800 h:480 bpp:32 pixfmt:bgra fps:25/1
bit_rate:30720
Input #0, fbdev, from '/dev/graphics/fb0':
  Duration: N/A, start: 1405078097.050518, bitrate: 307200 kb/s
Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 800x480,
307200 kb/s, 25 tbr, 1000k tbn, 25 tbc
File 'out.mov' already exists. Overwrite ? [y/N] y
[libx264 @ 0x2f7d250] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x2f7d250] profile High, level 3.0
[libx264 @ 0x2f7d250] 264 - core 142 r2431 a5831aa - H.264/MPEG-4 AVC
codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mov @ 0x2f7c370] Using AVStream.codec.time_base as a timebase hint to the
muxer is deprecated. Set AVStream.time_base instead.
Output #0, mov, to 'out.mov':
  Metadata:
encoder : Lavf55.45.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
800x480, q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:
  encoder : Lavc55.69.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
++

- Theoretically, this one should work but it still gives me the same error:
++
$ ffmpeg -f fbdev -i /dev/graphics/fb0 -pix_fmt yuv420p -preset:v fast
http://localhost:8090/feed1.ffm


[fbdev @ 0x2118ee0] w:800 h:480 bpp:32 pixfmt:bgra fps:25/1
bit_rate:30720
Input #0, fbdev, from '/dev/graphics/fb0':
  Duration: N/A, start: 1405077717.339715, bitrate: 307200 kb/s
Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 800x480,
307200 kb/s, 25 tbr, 1000k tbn, 25 tbc
Codec AVOption preset (Set the encoding preset (cf. x264 --fullhelp))
specified for output file #0 (http://localhost:8090/feed1.ffm) has not
been used for any stream. The most like

Re: [FFmpeg-user] libx264 vs android 4.4

2014-07-11 Thread Patrick Shirkey

On Fri, July 11, 2014 4:55 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> ffmpeg -f rawvideo -i /dev/graphics/fb0
>
> This looks plain wrong.
> ffmpeg cannot warn about this, it cannot know
> that /dev/... is a device (and not a file).
>

I was starting from this post:

http://ffmpeg.gusari.org/viewtopic.php?f=12&t=604#p676

The commandline works if I do not use libx264 for the stream codec.


> Careful with your other input options, I haven't used
> the FFmpeg framebuffer input device but the
> documentation indicates that you should neither set
> codec nor pix_fmt.
> I am surprised that you should set the input frame
> rate, this may indicate a bug.
>

I have removed those commands and tried the following:

/system/bin/ffmpeg  -f rawvideo  -s 10x10 -i /dev/graphics/fb0 -preset:v
fast http://localhost:8090/feed1.ffm

/system/bin/ffmpeg  -f rawvideo  -s 10x10 -i /dev/graphics/fb0 -preset:v
fast  -r 1 -s 480x800 -b 100 http://localhost:8090/feed1.ffm


>> Codec AVOption preset (Set the encoding preset (cf.
>> x264 --fullhelp)) specified for output file #0
>> (http://localhost:8090/feed1.ffm) has not been used
>> for any stream. The most likely reason is either
>> wrong type (e.g. a video option with no video
>> streams) or that it is a private option of some
>> encoder which was not actually used for any stream.
>
> This would indicate that something is wrong with your
> command line.
> It works fine here, what version of x264 did you
> compile?
>

I checked out the most recent git:

 # x264 --version
x264 0.142.2431 a5831aa
built on Jul  9 2014, gcc: 4.7
configuration: --bit-depth=8 --chroma-format=all
x264 license: GPL version 2 or later


>> No pixel format specified, yuv444p for H.264
>> encoding chosen. Use -pix_fmt yuv420p for
>> compatibility with outdated media players.
>
> This is no problem for FFmpeg but I suspect you want
> to read this carefully (and test with your desktop
> computer).
>

I tried using that flag too with the same result.

ffmpeg version N-64597-g4576eff Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 10 2014 21:10:33 with gcc 4.7 (GCC)
  configuration: --arch=arm --target-os=linux --enable-cross-compile
--cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
--enable-gpl --enable-avresample --enable-libx264 --enable-ffplay
--extra-cflags='-fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264'
--extra-ldflags=-L/4.4/external/x264
  libavutil  52. 92.100 / 52. 92.100
  libavcodec 55. 69.100 / 55. 69.100
  libavformat55. 45.100 / 55. 45.100
  libavdevice55. 13.102 / 55. 13.102
  libavfilter 4. 10.100 /  4. 10.100
  libavresample   1.  3.  0 /  1.  3.  0
  libswscale  2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc52.  3.100 / 52.  3.100
Input #0, rawvideo, from '/dev/graphics/fb0':
  Duration: N/A, start: 0.00, bitrate: 30 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 10x10, 30
kb/s, 25 tbr, 25 tbn, 25 tbc
Codec AVOption preset (Set the encoding preset (cf. x264 --fullhelp))
specified for output file #0 (http://localhost:8090/feed1.ffm) has not
been used for any stream. The most likely reason is either wrong type
(e.g. a video option with no video streams) or that it is a private option
of some encoder which was not actually used for any stream.
[libx264 @ 0x196c1b0] broken ffmpeg default settings detected
[libx264 @ 0x196c1b0] use an encoding preset (e.g. -vpre medium)
[libx264 @ 0x196c1b0] preset usage: -vpre  -vpre 
[libx264 @ 0x196c1b0] speed presets are listed in x264 --help
[libx264 @ 0x196c1b0] profile is optional; x264 defaults to high
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
  Metadata:
creation_time   : now
Stream #0:0: Video: h264, 480x800, q=2-31, 100 kb/s, 25 fps, 1000k
tbn, 1 tbc
Metadata:
  encoder : Lavc55.69.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height



--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Issue Crossbuilding ffplay with openembedded

2014-07-11 Thread Patrick Shirkey

On Fri, July 11, 2014 5:02 pm, Carl Eugen Hoyos wrote:
> Rickoo  hotmail.fr> writes:
>
>> SRC_URI = "https://www.ffmpeg.org/releases/ffmpeg-2.1.1.tar.gz";
>
> This is horribly outdated, why are you using it?
>
>> DEPENDS = "yasm-native libsdl libx11 zlib libtheora
>> libogg libass libtool"
>
> You don't use libass, why did you add it to depend?
> Not sure about libx11...
>
>> EXTRA_OECONF = "--arch=arm --enable-cross-compile
>> --cross-prefix=${CROSS_COMPILE} --target-os=linux
>
>> --enable-gpl
>
> Unrelated: None of your external libraries need
> --enable-gpl why are you using it?
>
>> --enable-libtheora --enable-libvorbis
>
>> --extra-libs="-ldl"
>
> Why is this necessary?
> Is there a bug that (is reproducible with current git head
> and that) we should fix?
>
>> --enable-ffplay
>
> This is useless, it is the default (and as you found
> out, configure does not warn about it).
> Please remove it.
>
> Please post the content of config.log starting with
> "check_pkg_config sdl" until "check_header linux" or
> "check_header sys".
>


FWIW I have the same result building for android-4.4:


check_header linux/fb.h
check_cpp
BEGIN /tmp/ffconf.DYzvreA6.c
1   #include 
2   int x;
END /tmp/ffconf.DYzvreA6.c
/h4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
--sysroot=/home/patrick/antenna/android/Iris2/4.4/android-4.4-b1/prebuilts/ndk/current/platforms/android-18/arch-arm
-isysroot
/4.4/android-4.4-b1/prebuilts/ndk/current/platforms/android-18/arch-arm
-D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-Dstrtod=avpriv_strtod -DPIC -fno-builtin-sin -fno-builtin-sinf
-I/4.4/android-4.4-b1/external/x264 -march=armv5te -std=c99
-fomit-frame-pointer -fPIC -marm -pthread -E -o /tmp/ffconf.z0SyolNn.o
/tmp/ffconf.DYzvreA6.c
check_header linux/videodev.h
check_cpp
BEGIN /tmp/ffconf.DYzvreA6.c
1   #include 
2   int x;
END /tmp/ffconf.DYzvreA6.c
/home/patrick/antenna/android/Iris2/4.4/android-4.4-b1/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
-isysroot /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
-D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-Dstrtod=avpriv_strtod -DPIC -fno-builtin-sin -fno-builtin-sinf
-I/4.4/external/x264 -march=armv5te -std=c99 -fomit-frame-pointer -fPIC
-marm -pthread -E -o /tmp/ffconf.z0SyolNn.o /tmp/ffconf.DYzvreA6.c
check_header linux/videodev2.h
check_cpp
BEGIN /tmp/ffconf.DYzvreA6.c
1   #include 
2   int x;
END /tmp/ffconf.DYzvreA6.c
/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
-isysroot /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
-D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-Dstrtod=avpriv_strtod -DPIC -fno-builtin-sin -fno-builtin-sinf
-I/4.4/external/x264 -march=armv5te -std=c99 -fomit-frame-pointer -fPIC
-marm -pthread -E -o /tmp/ffconf.z0SyolNn.o /tmp/ffconf.DYzvreA6.c
check_code cc linux/videodev2.h struct v4l2_frmsizeenum vfse;
vfse.discrete.width = 0;
check_cc
BEGIN /tmp/ffconf.DYzvreA6.c
1   #include 
2   int main(void) { struct v4l2_frmsizeenum vfse; vfse.discrete.width =
0;; return 0; }
END /tmp/ffconf.DYzvreA6.c
/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
-isysroot /4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
-D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-Dstrtod=avpriv_strtod -DPIC -fno-builtin-sin -fno-builtin-sinf
-I/4.4/external/x264 -march=armv5te -std=c99 -fomit-frame-pointer -fPIC
-marm -pthread -c -o /tmp/ffconf.z0SyolNn.o /tmp/ffconf.DYzvreA6.c
In file included from /tmp/ffconf.DYzvreA6.c:1:0:
/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/include/linux/videodev2.h:270:17:
error: field 'timestamp' has incomplete type
/tmp/ffconf.DYzvreA6.c: In function 'main':
/tmp/ffconf.DYzvreA6.c:2:42: error: storage size of 'vfse' isn't known
check_header sys/videoio.h
--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] libx264 vs android 4.4

2014-07-10 Thread Patrick Shirkey
Hi,

I'm seeing the following output when trying to use ffmpeg/libx264 with
ffserver on android 4.4. I'm not sure why the preset value is not being
picked up and also how to get around the final message. I have tried
adding flags for bitrate, size, rate.

- I have tested that ffserver is working with "videoCodec flv" on another
stream.

- I'm using the following config for the x264 stream:


  Format rtp
  Feed feed1.ffm
  VideoCodec libx264
  VideoFrameRate 1
  VideoBitRate 100
  VideoSize 480x800
  NoAudio
  AVOptionVideo flags +global_header


- This is the commandline for ffmpeg:

ffmpeg -r 30 -vcodec rawvideo -f rawvideo -pix_fmt rgb565  -s 800X640 -i
/dev/graphics/fb0 -preset:v fast  http://localhost:8090/feed1.ffm

ffmpeg version N-64597-g4576eff Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 10 2014 21:10:33 with gcc 4.7 (GCC)
  configuration: --arch=arm --target-os=linux --enable-cross-compile
--cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
--enable-gpl --enable-avresample --enable-libx264 --enable-ffplay
--extra-cflags='-fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264'
--extra-ldflags=-L/4.4/external/x264
  libavutil  52. 92.100 / 52. 92.100
  libavcodec 55. 69.100 / 55. 69.100
  libavformat55. 45.100 / 55. 45.100
  libavdevice55. 13.102 / 55. 13.102
  libavfilter 4. 10.100 /  4. 10.100
  libavresample   1.  3.  0 /  1.  3.  0
  libswscale  2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc52.  3.100 / 52.  3.100
Input #0, rawvideo, from '/dev/graphics/fb0':
  Duration: N/A, start: 0.00, bitrate: 245760 kb/s
Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le,
800x640, 245760 kb/s, 30 tbr, 30 tbn, 30 tbc
Codec AVOption preset (Set the encoding preset (cf. x264 --fullhelp))
specified for output file #0 (http://localhost:8090/feed1.ffm) has not
been used for any stream. The most likely reason is either wrong type
(e.g. a video option with no video streams) or that it is a private option
of some encoder which was not actually used for any stream.
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x1f370d0] broken ffmpeg default settings detected
[libx264 @ 0x1f370d0] use an encoding preset (e.g. -vpre medium)
[libx264 @ 0x1f370d0] preset usage: -vpre  -vpre 
[libx264 @ 0x1f370d0] speed presets are listed in x264 --help
[libx264 @ 0x1f370d0] profile is optional; x264 defaults to high
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
  Metadata:
creation_time   : now
Stream #0:0: Video: h264, 480x800, q=2-31, 128 kb/s, 30 fps, 1000k
tbn, 1 tbc
Metadata:
  encoder : Lavc55.69.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height


--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] compiling for android

2014-07-10 Thread Patrick Shirkey

On Thu, July 10, 2014 11:30 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> ./configure --arch=arm --target-os=linux
>
> I (still) wonder if the --cpu option is useful or not.
> (I cannot test.)
>

I have tried with/without and it doesn't appear to have any affect for
this build.

>>  --enable-cross-compile \
>
> If I read the source correctly, you can remove
> --enable-cross-compile if you are using --cross-prefix.
>
>> --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/
>> arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \
>> --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \
>> --enable-gpl --enable-avresample --enable-libx264 \
>
>> --extra-cflags='-fno-builtin-sin -fno-builtin-sinf' \
>> --extra-ldflags='-L/4.4/external/x264'
>
> Strictly speaking, this is missing the include path to
> the x264 headers matching the library in 4.4/external/x264.
> I suspect you are now using the native (system, x86) x264
> headers for your Android compilation which may be no
> problem but is still not a good idea.
>

You are likely correct on the requirement for -I but I removed x264
packages from my host system a couple of days ago just to be on the safe
side.

I did make some tweaks that will affect this specific issue.

- In the process of trying to get things to build I copied the headers
into 2 seperate locations.

/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/include/
/4.4/external/ffmpeg/libavcodec/

- I also modified the include in libxs64.c

from

#include 

to

#include "x264.h"

- For future reference of anyone else trying to do this build, It's
possible that the correct command without making any changes to
libavcodec/libx264.c is the following:

./configure --arch=arm --target-os=linux \
--cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
\
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \
--enable-gpl --enable-avresample --enable-libx264 \
--extra-cflags='-fno-builtin-sin -fno-builtin-sinf -I/4.4/external/x264'' \
--extra-ldflags='-L/4.4/external/x264'

--cpu=  may also be useful in some cases.

ex. --cpu=cortex-a8



--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] compiling for android

2014-07-10 Thread Patrick Shirkey

On Thu, July 10, 2014 6:18 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> --extra-cflags='-fno-builtin-sin -fno-builtin-cos' \
>
> Please try instead:
> --extra-cflags='-fno-builtin-sin -fno-builtin-sinf'
>
> -fno-builtin-sin is definitely not enough for aacps.o.
>

BULLS EYE!

Thanks very much for your assistance.

I have been able to build with libx264 for android 4.4 with the following
configure line:

./configure --arch=arm --target-os=linux  --enable-cross-compile \
--cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
\
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \
--enable-gpl --enable-avresample --enable-libx264 \
--extra-cflags='-fno-builtin-sin -fno-builtin-sinf' \
--extra-ldflags='-L/4.4/external/x264'


:/ # ffmpeg
ffmpeg version git-2014-06-20-f4ed41d Copyright (c) 2000-2014 the FFmpeg
developers
  built on Jul 10 2014 12:14:20 with gcc 4.7 (GCC)

:/ # ffmpeg -codecs
 DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
(encoders: libx264 libx264rgb )

:/ # ffserver -f /data/ffserver.conf
ffserver version git-2014-06-20-f4ed41d Copyright (c) 2000-2014 the FFmpeg
developers
  built on Jul 10 2014 12:14:20 with gcc 4.7 (GCC)

:/ # ffprobe
ffprobe version git-2014-06-20-f4ed41d Copyright (c) 2007-2014 the FFmpeg
developers
  built on Jul 10 2014 13:05:10 with gcc 4.7 (GCC)

--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] compiling for android

2014-07-10 Thread Patrick Shirkey

On Thu, July 10, 2014 5:23 pm, Carl Eugen Hoyos wrote:
> Nicolas George  nsup.org> writes:
>
>> Le primidi 21 messidor, an CCXXII, Patrick Shirkey a écrit :
>> > Unfortunately all these flags not working for me.
>> > Does that suggest a problem (in this case) with the
>> > compiler or ffmpeg?
>>
>> You can try to compile the following simple code:
>
> Thank you for the more useful test case!
>
>> #include 
>>
>> double test(double x)
>> {
>> return cos(x) + sin(x);
>> }
>>
>> If the compiler from the Android NDK issues code
>> using sincos, then it is broken, since the platform
>> does not provide it.
>
> Which appears not to be unusual on Android.
>
> The complete test case:
> $ cat test.c
> #define _GNU_SOURCE
> #include 
>
> double sc(double a)
> {
> return sin(a) + cos(a);
> }
> $ gcc test.c -c && nm test.o
>  U cos
>  T sc
>  U sin
> $ gcc test.c -c -O1 && nm test.o
>  T sc
>  U sincos
> $ gcc test.c -c -O1 -fno-builtin-sin && nm test.o
>  U cos
>  T sc
>  U sin
> $ gcc test.c -c -O1 -fno-builtin-cos && nm test.o
>  U cos
>  T sc
>  U sin
>
> I believe the toolchain is broken if it produces a
> sincos symbol although you compiled with -fno-builtin.
>
> (-fno-builtin-sincos has NO effect.)
>
> The define is not needed but maybe it makes the
> compiler believe that sincos() is available?
>

Here is the output:

ffmpeg-HEAD-7558e55.android$
/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
 --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
../testlm2.c -c && nm testlm2.o
 t $a
 U __aeabi_dadd
 U cos
 T sc
 U sin

ffmpeg-HEAD-7558e55.android$
/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
 --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
../testlm2.c -c -O1 && nm testlm2.o
 t $a
 U __aeabi_dadd
 T sc
 U sincos

ffmpeg-HEAD-7558e55.android$
/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
 --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
../testlm2.c -c -O1 -fno-builtin-sin && nm testlm2.o
 t $a
 U __aeabi_dadd
 U cos
 T sc
 U sin

ffmpeg-HEAD-7558e55.android$
/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
 --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
../testlm2.c -c -O1 -fno-builtin-cos && nm testlm2.o
 t $a
 U __aeabi_dadd
 U cos
 T sc
 U sin

ffmpeg-HEAD-7558e55.android$
/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
 --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm
../testlm2.c -c -O1 -fno-builtin-sincos && nm testlm2.o
 t $a
 U __aeabi_dadd
 T sc
 U sincos




--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] compiling for android

2014-07-09 Thread Patrick Shirkey

On Thu, July 10, 2014 12:44 am, Nicolas George wrote:
> Le primidi 21 messidor, an CCXXII, Patrick Shirkey a écrit :
>> Unfortunately all these flags not working for me. Does that suggest a
>> problem (in this case) with the compiler or ffmpeg?
>
> You can try to compile the following simple code:
>
> #include 
>
> double test(double x)
> {
> return cos(x) + sin(x);
> }
>
> If the compiler from the Android NDK issues code using sincos, then it is
> broken, since the platform does not provide it.
>

I found that I can compile without errors if I use the following commandline:

/4.4prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
 --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm -lm 
testlm.c

testlm.c is the following:

#include 
int main(void)
{
 double a, b, c;
 return cos(a) + sin(a);
}

- However if I use Carl's test for sincos I see the following:

#define _GNU_SOURCE 1
#include 
int main(void)
{
 double a, b, c;
 sincos(a, &b, &c);
 return b*c;
}

/tmp/ccIGXQay.o:testlm.c:function main: error: undefined reference to
'sincos'
collect2: error: ld returned 1 exit status

/4.4prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
 --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm -lm 
testlm.c

I have also tried with these combinations with the same error:

-fno-builtin-sincos
-fno-builtin-sin  -fno-builtin-cos
-fno-builtin-sin  -fno-builtin-cos -fno-builtin-sincos



--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] compiling for android

2014-07-09 Thread Patrick Shirkey

On Wed, July 9, 2014 11:27 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> I have tried with :
>> --extra-cflags='-fno-builtin-sin -fno-builtin-cos'
>> --extra-cflags='-fno-builtin-sin -fno-builtin-cos -fno-builtin-sincos'
>> --extra-cflags='-fno-builtin-sincos'
>> --extra-cflags='-fno-builtin-sincos -fno-builtin-sincosf'
>>
>> Unfortunately all these flags not working for me.
>
> Sorry, I am not a native speaker and I (probably) don't
> understand: Do you mean all above flags brake configure?
>
> What is the exact configure line that you tested and how
> did it fail?
>

I have tried with this configure line. I have replaced the --extra-cflags
with the various combinations listed above.

./configure --arch=arm --target-os=linux --cpu=cortex-a7
--enable-cross-compile \
--cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
\
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \
--enable-gpl --enable-avresample --enable-libx264 \
--extra-cflags='-fno-builtin-sin -fno-builtin-cos' \
--extra-ldflags='-Wl,-L/home/patrick/antenna/android/Iris2/4.4/android-4.4-b1/external/x264'


The build errors are the following:

--extra-cflags='-fno-builtin-sin -fno-builtin-cos -fno-builtin-sincos
-fno-builtin-sincosf'

libavcodec/aacps_tablegen.h:156: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:157: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'


 --extra-cflags='-fno-builtin-sincos -fno-builtin-sincosf'

libavcodec/imc.c:206: error: undefined reference to 'sincos'
libavcodec/imc.c:209: error: undefined reference to 'sincos'
libavcodec/mdct_template.c:83: error: undefined reference to 'sincos'
libavcodec/qdm2.c:1589: error: undefined reference to 'sincos'
libavcodec/aacps_tablegen.h:156: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:157: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'


--extra-cflags='-fno-builtin-sin -fno-builtin-cos'

libavcodec/aacps_tablegen.h:156: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:157: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'


--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] compiling for android

2014-07-09 Thread Patrick Shirkey

On Wed, July 9, 2014 10:25 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> However I don't know why -fno-builtin-sincos does not
>> kick in during the build. Is there a location in
>> configure where I can force it?
>
> (Yes, --extra-cflags)
>
> Because - iirc - you are the first to report here that
> it may be needed.
>
> Does it fix the issue for you if you add it to extra-cflags?
>

I have tried with :
--extra-cflags='-fno-builtin-sin -fno-builtin-cos'
--extra-cflags='-fno-builtin-sin -fno-builtin-cos -fno-builtin-sincos'
--extra-cflags='-fno-builtin-sincos'
--extra-cflags='-fno-builtin-sincos -fno-builtin-sincosf'


Unfortunately all these flags not working for me. Does that suggest a
problem (in this case) with the compiler or ffmpeg?




--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] compiling for android

2014-07-09 Thread Patrick Shirkey

On Wed, July 9, 2014 8:38 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> -DCNU_SOURCE is an ifdef in math.h included in the NDK.
>> #ifdef _GNU_SOURCE
>
> Now please remove it from your configure line, as said
> it is not just wrong but also unneeded: If it turns out
> that it is needed, it would be a serious bug in FFmpeg,
> please report it (in that case)!
>
>> > The following compiles fine here (no cross-compiling) with
>> > gcc -lm. If it doesn't work for your cross-compiler, I
>> > suspect you have to fix it before you can compile FFmpeg.
>> >

IIUC, the error comes about because the compiler tries to optimise when
sin and cos are used within one line of each other.

If it is the compiler that is making the decision to use the sincos
functions I would have to recompile the compiler to support
-fno-builtin-sincos in order to turn it off.

However I don't know why -fno-builtin-sincos does not kick in during the
build. Is there a location in  configure where I can force it?



>> > #define _GNU_SOURCE
>> > #include 
>> > int main(void)
>> > {
>> > double a, b, c;
>> > sincos(a, &b, &c);
>> > return b*c;
>> > }
>
>> - I have tried several options for trying to bypass
>> the problem
>
> Did you try to compile the code I posted?
> Without any options?
> With -fno-builtin-sincos?
>

I might have screwed up the command but both with and without 
-fno-builtin-sincos  return the following:

/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
\
-I/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/include \
-L/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm/usr/lib
../testlm.c

../testlm.c: In function 'main':
../testlm.c:6:2: warning: incompatible implicit declaration of built-in
function 'sincos' [enabled by default]
/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld:
error: cannot open crtbegin_dynamic.o: No such file or directory
/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld:
error: cannot open crtend_android.o: No such file or directory
/tmp/ccsomEJz.o:testlm.c:function main: error: undefined reference to
'sincos'
collect2: error: ld returned 1 exit status






--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] compiling for android

2014-07-09 Thread Patrick Shirkey

On Wed, July 9, 2014 7:37 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> It utilises ./configure too but has additional code
>> which modifies various config files before building
>
> This is one of the reasons why you definitely shouldn't
> use this script.
>
> [...]
>
>> > Why are --extra-cflags needed?
>>
>> No specific reason. They worked for the script above
>> without x264 so I was starting from there.
>
>>  ./configure --arch=arm --target-os=linux --cpu=cortex-a8
>> --enable-cross-compile \
>> --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/
>> arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \
>> --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \
>> --enable-gpl --enable-avresample --enable-libx264 \
>> --extra-cflags='-DGNU_SOURCE -fno-builtin-sin -fno-builtin-cos' \
>> --extra-ldflags='-Wl,--fix-cortex-a8,-L/.4.4/external/x264'
>
> Sorry if this is obvious to you (it isn't to me), why
> are you using --extra-cflags?
> I believe -DGNU_SOURCE is both wrong and unneeded.
> And why --fix-cortex-a8?
>

 I have tried with --extra-cfags and without.

-DCNU_SOURCE is an ifdef in math.h included in the NDK.

/* BIONIC: GLibc compatibility - required by the ARM toolchain */
#ifdef _GNU_SOURCE
void  sincos(double x, double *sin, double *cos);
void  sincosf(float x, float *sin, float *cos);
void  sincosl(long double x, long double *sin, long double *cos);
#endif

> The main reason I ask this is that there may be something
> missing in our configure script (that wasn't reported yet
> or - even worse - the report was missed). In this case it
> would make sense to fix it for all users.
>

I don't think anything is missing from the configure script. The issue
appears to be a lack of ability to tell if sincos/sincof/sincol is
available. IIUC, that is usually handled by the compiler with
--extra-cflags but it seems in this case the compiler is not able to deal
with them.

--extra-cflags='-DGNU_SOURCE -fno-builtin-sin -fno-builtin-cos'

I don't know if that is because of ffmpeg configuration or because the
compiler is lacking that logic. I have observed that the ffmpeg4android
script is somehow able to bypass the error but running the previous code
snippet manually does not do anything so there seems to be some other
magic going on.

> [...]
>
>> libavfilter/avf_showcqt.c:332: error: undefined reference to 'sincos'
>
> Doesn't this mean that your headers (or toolchain) do
> not match your math library?
>
> The following compiles fine here (no cross-compiling) with
> gcc -lm. If it doesn't work for your cross-compiler, I
> suspect you have to fix it before you can compile FFmpeg.
>
> #define _GNU_SOURCE
> #include 
> int main(void)
> {
> double a, b, c;
> sincos(a, &b, &c);
> return b*c;
> }
>


The sincos/sincosf/sincol functions are not available in the 4.4 android
NDK libm.a. There are various suggestions for ways to get around it during
the build. One person wrote a patch for an older version of the ffmpeg
configure scripts that was deemed unnecessary to include in ffmpeg based
on the same reason you have above.

http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2012-September/130664.html

However, it is not possible to build the complete ffmpeg with x264 enabled
on android 4.4 without getting around the lack of sincos/sincosf/sincosl
in the NDK math.h/libm.a

- I have tried several options for trying to bypass the problem but none
of them are working for me. At this point my options are to figure out how
to rebuild libm.a from the NDK with the functions enabled, figure out the
correct way to build with the bionic libm.a or add the workarounds
directly to ffmpeg.

- I have tried building against bionic libm.a and math.h but that screws
things up with the libraries built against the NDK includes.

- This is code that needs to be dealt with. I don't know why the compiler
wants to use sincos if it is not available in libm.a. It is not being
called by ffmpeg.  I don't know why the cflags don't work to disable it
either.

bionic/libm/sincos.c

void sincos(double x, double* p_sin, double* p_cos) {
  *p_sin = sin(x);
  *p_cos = cos(x);
}

void sincosf(float x, float* p_sinf, float* p_cosf) {
  *p_sinf = sinf(x);
  *p_cosf = cosf(x);
}

void sincosl(long double x, long double* p_sinl, long double* p_cosl) {
  *p_sinl = sinl(x);
  *p_cosl = cosl(x);
}








--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] compiling for android

2014-07-09 Thread Patrick Shirkey

On Wed, July 9, 2014 4:48 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> >> I have successfully compiled  and run ffmpeg and
>> >> ffserver on my android-4.4 device
>> >> using the ffmpeg4android scripts here:
>> >
>> > External build scripts are not supported here.
>
> I forgot to add that the script in question is known
> to contains severe deficiencies, so it really shouldn't
> be used.
>

FWIW, it worked well for me without x264 and limited knowledge of the
ffmpeg arm/android build process at the time. I was able to quickly build
an almost complete set of binaries and have them included in the fw image
automatically. When I have the build with x264 working I would still like
to utilise parts of the script to include ffmpeg in the /external tree. It
utilises ./configure too but has additional code which modifies various
config files before building which appears to fix the sincos/sincosf issue
while running the script. I am not sure why it works as running the script
manually doesn't help with the default built process.

 i.e.

cat config.h | \
sed 's/\#define av_restrict /\#ifdef av_restrict\n\#undef
av_restrict\n\#endif\n\#define av_restrict /g' | \
sed 's/\#define ARCH_ARM /\#ifdef ARCH_ARM\n\#undef
ARCH_ARM\n\#endif\n\#define ARCH_ARM /g' | \
sed 's/\#define ARCH_MIPS /\#ifdef ARCH_MIPS\n\#undef
ARCH_MIPS\n\#endif\n\#define ARCH_MIPS /g' | \
sed 's/\#define ARCH_X86 /\#ifdef ARCH_X86\n\#undef
ARCH_X86\n\#endif\n\#define ARCH_X86 /g' | \
sed 's/\#define HAVE_PTHREADS/\#ifdef HAVE_PTHREADS\n\#undef
HAVE_PTHREADS\n\#endif\n\#define HAVE_PTHREADS/g' | \
sed 's/\#define HAVE_MALLOC_H/\#ifdef HAVE_MALLOC_H\n\#undef
HAVE_MALLOC_H\n\#endif\n\#define HAVE_MALLOC_H/g' | \
sed 's/\#define HAVE_STRERROR_R 1/\#define HAVE_STRERROR_R
0/g' | \
sed 's/\#define HAVE_SYSCTL 1/\#define HAVE_SYSCTL 0/g' | \
cat > config.h.tmp; \
mv config.h config.h.bak; \
mv config.h.tmp config.h; \
\
cat config.mak | \
sed 's/HAVE_STRERROR_R=yes/!HAVE_STRERROR_R=yes/g' | \
sed 's/HAVE_SYSCTL=yes/!HAVE_SYSCTL=yes/g' | \
cat > config.mak.tmp; \
mv config.mak config.mak.bak; \
mv config.mak.tmp config.mak;


Finally it installs everything (without x264 enabled) into the correct
location in the /out/... folders.

I haven't seen any other attempts with the last step anywhere else.


> If something is wrong with our configure script,
> *please* report it.
>
> [...]
>
>> Here's the full configure :
>>
>> ./configure --arch=arm --target-os=linux --enable-cross-compile \
>> --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/
>> arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \
>> --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \
>> --disable-shared --enable-static --enable-gpl  --enable-avresample
>> --enable-libx264 --enable-encoder=libx264 \
>> --extra-cflags='-mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon
>> -D_GNU_SOURCE -fno-builtin-sin -fno-builtin-cos -std=c99' \
>> --extra-ldflags='-Wl,--fix-cortex-a8' \
>> --extra-libs="/4.4/external/x264/libx264.a";
>
> --disable-shared --enable-static --enable-encoder=libx264
> are the default, please remove them.
>
> The --extra-libs option looks wrong / superfluous, please
> remove it.
> If your libx264 library is in /4.4/external/x264, you have to
> tell configure with --extra-ldflags=-L/4.4/external/x264
>

I tried several variations on that based on the details on this page on
stackoverflow which comes up near the top of the search results for me.

http://stackoverflow.com/questions/8812827/build-ffmpeg-with-x264-for-android

Strangely with your suggestion of just -L and no -I it finds the library.
My previous attempts were not able to find it for some reason which is why
I resorted to --extra-libs and dropped -L / -I completely

> Why are --extra-cflags needed?
>

No specific reason. They worked for the script above without x264 so I was
starting from there.

> arm compilations often use --cpu (in your case: --cpu=cortex-a8)
>
> What is failing when using above configure line?
>

With the following configure the build is much cleaner but it still bails
out on the same location.

"undefined reference to sincos/sincosf"

- I tried with/without  --extra-cflags
- I run make clean between builds
- I left the warnings in this time but I don't think they are relevant. I
get the same warnings when building x264.


 ./configure --arch=arm --target-os=linux --c

Re: [FFmpeg-user] compiling for android

2014-07-08 Thread Patrick Shirkey

On Wed, July 9, 2014 5:39 am, Carl Eugen Hoyos wrote:
> Patrick Shirkey  boosthardware.com> writes:
>
>> I have successfully compiled  and run ffmpeg and
>> ffserver on my android-4.4 device
>> using the ffmpeg4android scripts here:
>
> External build scripts are not supported here.
>

Understood.  I was hoping someone might know where to put the libx264.a
file so that the linker can find it.

FYI, for android FW developers this script is the most powerful of the
bunch as it allows building ffmpeg directly into the /external tree as a
default application.  It also builds ffserver and several other tools
(except ffplay) in both shared and static binaries. IMO this script should
be well understood by FFMPEG developers as it enables a nearly complete
ffmpeg solution to be bundled with the default android codebase.

All the other options I have found only do partial static builds. Also the
script works perfectly if I do not try to include x264 so all round it is
quite an accomplishment.


>> 2:  Using the standard build method
>>
>> ./configure;make
>>
>> I cannot get past the error for sincos/sincosf which
>> is not accessible in the default NDK libm.a.
>
> Please elaborate.
> (configure line etc.)
>

Here's the full configure :

./configure --arch=arm --target-os=linux --enable-cross-compile \
--cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
\
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \
--disable-shared --enable-static --enable-gpl  --enable-avresample
--enable-libx264 --enable-encoder=libx264 \
--extra-cflags='-mcpu=cortex-a7 -mfloat-abi=softfp -mfpu=neon
-D_GNU_SOURCE -fno-builtin-sin -fno-builtin-cos -std=c99' \
--extra-ldflags='-Wl,--fix-cortex-a8' \
--extra-libs="/4.4/external/x264/libx264.a";


- I also tried -DGNU_SOURCE

- I am working with the complete android 4.4 tree not the stand alone NDK.
math.h has ifdef _GNU_SOURCE for sincos/sincof/sincosl

- however nm shows that they are not available so they were not enabled at
compile.

 nm /4.4/prebuilts/ndk/9/platforms/android-18/arch-arm/usr/lib/libm.a |
grep sin
isinf.o:
 T __isinf
 T __isinff
 T __isinfl
 U sin
e_asin.o:
 T asin
e_asinf.o:
 T asinf
 U sin
 U sinf
 U sin
 U sinf
 U sin
 U __kernel_sin
 t sin_pi
 U __kernel_sindf
 t sin_pif
e_sinh.o:
 T sinh
e_sinhf.o:
 T sinhf
k_sin.o:
 T __kernel_sin
k_sinf.o:
 T __kernel_sindf
s_asinh.o:
 T asinh
s_asinhf.o:
 T asinhf
 U __kernel_sin
s_sin.o:
 U __kernel_sin
 T sin
s_sinf.o:
 T sinf

- I have looked at rebuilding libm.a with GNU_SOURCE enabled but I can't
find a method for that either. That is probably outside the scope of this
thread though.


--
Patrick Shirkey
Boost Hardware Ltd
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user