[FFmpeg-user] combining audio and video

2022-11-06 Thread owen s
Is it possible to have two urls, one streaming audio and one for video;
using ffmpeg to combine these streams and just playing them as one without
saving a file?
___
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] ffplay/ ffmpeg audio channels

2021-09-07 Thread owen s
I have an issue, I have basic asoundrc that looks like the one below.

When I play a 5.1 audio file in ffplay I see an error;
SDL_OpenAudio (6 Channels, 48000 Hz): ALSA: Couldn't open audio device: No
such file or directory
SDL_OpenAudio (4 Channels, 48000 Hz): ALSA: Couldn't open audio device: No
such file or directory

Then the audio is of course very low. I did a series of tests and the
hardware device 0,7 is the only one that will play audio.

Is there any way that I can force ffmpeg/ ffplay to use this device? Or any
other recommendations?

pcm.!default {
type plug
slave.pcm "mixer"
}

ctl.!default {
type hw
card 0
}

pcm.mixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,7"
period_size 1024
buffer_size 4096
rate 44800
format S32_LE
}
}
___
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] (no subject)

2021-01-27 Thread owen s
adding realtime before the crop filter dropped the bitrate and increased
the encoding speed to 80x
i moved the realtime t filter after hwdownload, but the speed was still
about 1.78
I looked over the filter documentation:
https://ffmpeg.org/ffmpeg-filters.html#realtime_002c-arealtime
and noticed there's a speed or limit options; adding realtime=speed=1.04
keeps the speed at 1.04 and the problem is resolved.

Thanks for the help!

On Tue, Jan 26, 2021 at 4:47 PM Dennis Mungai  wrote:

> On Tue, 26 Jan 2021, 03:14 owen s,  wrote:
>
> > I am running this command
> >
> > ffmpeg-git -y \
> > -vaapi_device /dev/dri/renderD128 \
> > -framerate 60 -i ./image.jpg \
> > -stream_loop -1 -i ./audio.mp3 \
> > -map 0:v \
> > -c:v h264_vaapi \
> > -vf
> >
> >
> 'crop=2560:1440:0:0,format=nv12|vaapi,hwupload,loop=loop=-1:size=1:start=0,hwdownload,format=yuv420p'
> > \
> > -rc_mode 2 -b:v 20M \
> > -c:v libx264 \
> > -map 1:a \
> > -c:a libfdk_aac -b:a 128k -ar 44100 -ac 2 \
> > -af "dynaudnorm=f=150:g=15" \
> > -f flv /dev/null
> >
> > the encoding speed is very fast, typically 1.78x
> >
> > frame=2512127 fps=107 q=0.0 size=56457493kB time=11:37:47.36
> > bitrate=11046.8kbits/s speed=1.79x
> >
> > Is there any way to limit this speed to a standard 1x?
> > ___
> >
>
>
> Add the realtime filter to your filter chain, right before crop. So you'd
> have -vf "realtime,crop..." etc
>
> >
> ___
> 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] (no subject)

2021-01-26 Thread owen s
I think it's the encoding speed that's causing the problem.

Typically, encoding faster than real time would be a good problem to have
but in this situation, when I stream this fast, it fills up the streaming
platform buffer
after some point the streaming platform gets too far behind and cuts the
stream.

This is why I would like to limit the speed to something closer to 1x.

On Tue, Jan 26, 2021 at 9:48 AM Mark Filipak (ffmpeg) 
wrote:

> On 01/25/2021 07:09 PM, owen s wrote:
> > I am running this command
> >
> > ffmpeg-git -y \
> > -vaapi_device /dev/dri/renderD128 \
> > -framerate 60 -i ./image.jpg \
> > -stream_loop -1 -i ./audio.mp3 \
> > -map 0:v \
> > -c:v h264_vaapi \
> > -vf
> >
> 'crop=2560:1440:0:0,format=nv12|vaapi,hwupload,loop=loop=-1:size=1:start=0,hwdownload,format=yuv420p'
> > \
> > -rc_mode 2 -b:v 20M \
> > -c:v libx264 \
> > -map 1:a \
> > -c:a libfdk_aac -b:a 128k -ar 44100 -ac 2 \
> > -af "dynaudnorm=f=150:g=15" \
> > -f flv /dev/null
> >
> > the encoding speed is very fast, typically 1.78x
> >
> > frame=2512127 fps=107 q=0.0 size=56457493kB time=11:37:47.36
> > bitrate=11046.8kbits/s speed=1.79x
> >
> > Is there any way to limit this speed to a standard 1x?
>
> With no guide to report formats you are understandably misinterpreting
> what ffmpeg is trying to tell
> you.
> The "speed=1.79x" means that the encoder time was 1.79x the running time.
> In other words, it took
> less time to encode than to play the video. To see the video's playback
> speed, look for lines that
> look like this:
> Output #0, matroska, to ...:
>Metadata:
>  encoder : Lavf58.65.100
>  Stream #0:0, 0, 1/1000: Video: hevc, yuv420p(tv, progressive),
> 720x240 [SAR 8:9 DAR 8:3],
> q=2-31, 59.94 fps, 1k tbn
>
>
> --
> Someone's sneaking in and turning up the range so that my food burns.
> I'm sure of it.
> And the older I get, the more sure of it I become.
> ___
> 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] (no subject)

2021-01-25 Thread owen s
I am running this command

ffmpeg-git -y \
-vaapi_device /dev/dri/renderD128 \
-framerate 60 -i ./image.jpg \
-stream_loop -1 -i ./audio.mp3 \
-map 0:v \
-c:v h264_vaapi \
-vf
'crop=2560:1440:0:0,format=nv12|vaapi,hwupload,loop=loop=-1:size=1:start=0,hwdownload,format=yuv420p'
\
-rc_mode 2 -b:v 20M \
-c:v libx264 \
-map 1:a \
-c:a libfdk_aac -b:a 128k -ar 44100 -ac 2 \
-af "dynaudnorm=f=150:g=15" \
-f flv /dev/null

the encoding speed is very fast, typically 1.78x

frame=2512127 fps=107 q=0.0 size=56457493kB time=11:37:47.36
bitrate=11046.8kbits/s speed=1.79x

Is there any way to limit this speed to a standard 1x?
___
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] vaapi_h264 encoding very low bitrate

2021-01-21 Thread owen s
Hi Mark,

You're correct in that increasing the framerate for the image input
increases the bitrate.

You also suggested lowering the gop, but that would cause issues if I am
trying to stream at these settings since the gop needs to be 2* framerate.

there's no way to have higher framerate w/ an input image is there?

On Wed, Jan 20, 2021 at 9:08 PM Mark Thompson  wrote:

> On 19/01/2021 16:07, owen s wrote:
> > I am running this command with
> > ffmpeg -y -loglevel debug \
> > -vaapi_device /dev/dri/renderD128 \
> > -loop 1 -r 1 -i ./image.jpg -pix_fmt vaapi_vld \
> > -b:v 18000k -minrate 18000k \
> > -vf 'format=nv12|vaapi,hwupload,scale_vaapi=w=1280:h=720' \
> > -rc_mode 3 \
> > -r 30 -g 60 \
> > -c:v h264_vaapi -f flv /dev/null
> >
> > I am getting high encoding speed of greater than 3x but the bitrate is
> > terrible 350Kbits/s
> >
> > Why is that when I can get better encoding speeds using cpu? log file
> > http://0x0.st/-i2j.txt
>
> Given that you're encoding the same image repeatedly, most of the frames
> will be a trivial "this frame is the same as the previous one" which can be
> signalled with very few bits.
>
> If you want to push the bitrate up then either don't use the same frame
> repeatedly as input or decrease the gop size (-g option) so that it is
> forced to intra-code more frames (I would guess that at -g 1 it will
> probably be able to hit the 18M target).
>
> - Mark
> ___
> 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] vaapi crop and video size filters

2021-01-21 Thread owen s
Mak thanks again, you are correct; what I needed to do was to crop the
image before uploading it. I didn't realize that I could change the order
of the commands in the video filter strings.

Thanks again!

On Wed, Jan 20, 2021 at 9:42 PM Mark Thompson  wrote:

> On 20/01/2021 03:06, owen s wrote:
> > with software libx264 using crop filter
> > crop=width:heigh:x:y, i could crop around a specific point. using
> > h264_vaapi and -vf crop=width:height
> > doesn't control the crop location.
> >
> > also with libx264 -video_size=widthxheight worked, but with h264_vaapi,
> the
> > video resolution comes out to be the max size of the video framebuffer
> > 65535x65535 in my case.
> >
> > Can I set where the h264_vaapi crop x,y position and how do I control the
> > resolution after using h264_vaapi?
> >
> > log file: http://0x0.st/-ifF.txt
>
> This crops your 2560x1440 input to 2560x1440 so it is unsurprising that
> nothing happens.
>
> More generally, cropping is supported by VAAPI filters but not by the
> encoder (due to internal API constraints which probably derive from actual
> hardware constraints).
>
> Therefore, you should crop either before upload (if you are uploading) or
> before applying a filter (when staying in VAAPI surfaces).  If you aren't
> filtering at all (pure decode->encode), then you need to insert a null
> scale before the encode (which is an extra copy, but can't be avoided when
> the encoder doesn't support that input).
>
> So:
>
> ffmpeg -i ... -vf crop=...,format=nv12,hwupload -c:v h264_vaapi ...
>
> ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i ... -vf
> crop=...,scale_vaapi=... -c:v h264_vaapi ...
>
> - Mark
> ___
> 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] vaapi crop and video size filters

2021-01-19 Thread owen s
with software libx264 using crop filter
crop=width:heigh:x:y, i could crop around a specific point. using
h264_vaapi and -vf crop=width:height
doesn't control the crop location.

also with libx264 -video_size=widthxheight worked, but with h264_vaapi, the
video resolution comes out to be the max size of the video framebuffer
65535x65535 in my case.

Can I set where the h264_vaapi crop x,y position and how do I control the
resolution after using h264_vaapi?

log file: http://0x0.st/-ifF.txt
___
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] vaapi_h264 encoding very low bitrate

2021-01-19 Thread owen s
I am running this command with
ffmpeg -y -loglevel debug \
-vaapi_device /dev/dri/renderD128 \
-loop 1 -r 1 -i ./image.jpg -pix_fmt vaapi_vld \
-b:v 18000k -minrate 18000k \
-vf 'format=nv12|vaapi,hwupload,scale_vaapi=w=1280:h=720' \
-rc_mode 3 \
-r 30 -g 60 \
-c:v h264_vaapi -f flv /dev/null

I am getting high encoding speed of greater than 3x but the bitrate is
terrible 350Kbits/s

Why is that when I can get better encoding speeds using cpu? log file
http://0x0.st/-i2j.txt
___
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] ffmpeg with vulkan and or opencl

2021-01-19 Thread owen s
Hi Carl

I built ffmpeg from git:
https://gist.github.com/teamblubee/21937f6b606c6577f8c2a40da76d64e5

here's the output from ffmpeg:
ffmpeg version N-100671-gc48110a4a4 Copyright (c) 2000-2021 the FFmpeg
developers
  built with gcc 10 (Ubuntu 10.2.0-13ubuntu1)
  configuration: --prefix=/home/bb/Dev/ffmpeg_build/build
--extra-cflags='-I/home/bb/Dev/ffmpeg_build/build/include -I/usr/include'
--extra-ldflags='-L/home/bb/Dev/ffmpeg_build/build/lib
-L/home/bb/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu
-Wl,-rpath=/home/bb/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu -ldrm
-L/usr/lib' --pkg-config-flags=--static --extra-libs='-lpthread -lm'
--bindir=/home/bb/Dev/ffmpeg_build/bin --arch=amd64 --disable-shared
--disable-ffprobe --disable-ffplay --disable-gnutls --enable-openssl
--enable-zlib --enable-librtmp --enable-static --enable-chromaprint
--enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-nonfree --enable-vdpau
--enable-ladspa --enable-libaom --enable-libbs2b --enable-libcaca
--enable-libcodec2 --enable-libdav1d --enable-libfontconfig
--enable-libfribidi --enable-libgme --enable-libopenjpeg --enable-librsvg
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh
--enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libwebp
--enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi
--enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl
--enable-sdl2 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm
--enable-libiec61883 --enable-libass --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-libmysofa --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-librabbitmq
--enable-libvorbis --enable-libvpx --enable-libflite --enable-chromaprint
--enable-frei0r
  libavutil  56. 63.101 / 56. 63.101
  libavcodec 58.117.101 / 58.117.101
  libavformat58. 65.101 / 58. 65.101
  libavdevice58. 11.103 / 58. 11.103
  libavfilter 7. 96.100 /  7. 96.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options]
outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


ffmpeg-git -hide_banner -hwaccels
Hardware acceleration methods:
vdpau
vaapi
drm
opencl

trying to run this command
ffmpeg-git -y \
-loglevel debug \
-hwaccel vaapi -hwaccel_device /dev/dri/renderD128 \
-loop 1 -r 4.8 -i ./image.jpg \
-stream_loop -1 -i ./audio.mp3 \
-c:v h264_vaapi -pix_fmt vaapi_vld \
-b:a 128k -ar 44100 -ac 2 -acodec aac \
-r 30 -g 60  \
-f flv /dev/null

I get this error: http://0x0.st/-i1t.txt

How can I actually use any of these hardware accelerated options?

On Mon, Jan 18, 2021 at 5:34 AM Carl Eugen Hoyos  wrote:

> Am Sa., 16. Jan. 2021 um 19:13 Uhr schrieb owen s :
> >
> > I have installed opencl and vulkan drivers on linux: Linux
> > 5.8.0-7630-generic #32~1609193707~20.10~781bb80-Ubuntu SMP Tue Jan 5
> > 21:29:56 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
> >
> > I am using ffmpeg version:
> > ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg
> developers
> > built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)
>
> Please test current FFmpeg git head before asking questions here.
>
> > I am running this ffmpeg command
> > ffmpeg -y -hwaccel any \
> > -loop 1 -framerate 30 -re \
> > -hwaccel dxva2 \
>
> I may misunderstand your question but there is no dxva2 on Linux.
>
> > -i ./1280x720.jpg \
> > -stream_loop -1 -re \
> > -i ./audio.mp3 \
> > -vcodec libx264 -pix_fmt yuv420p \
> > -b:v 2500k -maxrate 2500k -bufsize 1k \
> > -preset slow -tune stillimage \
> > -b:a 128k -ar 44100 -ac 2 -acodec aac \
> > -af "dynaudnorm=f=150:g=15" \
> > -g 60 \
> > -f flv tmp.flv
>
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] ffmpeg with vulkan and or opencl

2021-01-16 Thread owen s
I have installed opencl and vulkan drivers on linux: Linux
5.8.0-7630-generic #32~1609193707~20.10~781bb80-Ubuntu SMP Tue Jan 5
21:29:56 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

I am using ffmpeg version:
ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)

I am running this ffmpeg command
ffmpeg -y -hwaccel any \
-loop 1 -framerate 30 -re \
-hwaccel dxva2 \
-i ./1280x720.jpg \
-stream_loop -1 -re \
-i ./audio.mp3 \
-vcodec libx264 -pix_fmt yuv420p \
-b:v 2500k -maxrate 2500k -bufsize 1k \
-preset slow -tune stillimage \
-b:a 128k -ar 44100 -ac 2 -acodec aac \
-af "dynaudnorm=f=150:g=15" \
-g 60 \
-f flv tmp.flv

This is the output error:
ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)
  configuration: --prefix=/usr --extra-version=4ubuntu1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
--disable-stripping --enable-avresample --disable-filter=resample
--enable-gnutls --enable-ladspa --enable-libaom --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio
--enable-libcodec2 --enable-libdav1d --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh
--enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq
--enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl
--enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx
--enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc
--enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil  56. 51.100 / 56. 51.100
  libavcodec 58. 91.100 / 58. 91.100
  libavformat58. 45.100 / 58. 45.100
  libavdevice58. 10.100 / 58. 10.100
  libavfilter 7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc55.  7.100 / 55.  7.100
Multiple -hwaccel options specified for stream 0, only the last option
'-hwaccel dxva2' will be used.
Input #0, image2, from './1280x720.jpg':
  Duration: 00:00:00.03, start: 0.00, bitrate: 46423 kb/s
Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc,
bt470bg/unknown/unknown), 1280x720 [SAR 72:72 DAR 16:9], 30 fps, 30 tbr, 30
tbn, 30 tbc
Input #1, mp3, from './audio.mp3':
  Duration: 00:49:57.42, start: 0.025057, bitrate: 128 kb/s
Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s
Metadata:
  encoder : LAME3.99r
Side data:
  replaygain: track gain - 13.00, track peak - unknown, album gain
- unknown, album peak - unknown,
Device creation failed: -12.
[mjpeg @ 0x56112782f480] No device available for decoder: device type dxva2
needed for codec mjpeg.
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #1:0 -> #0:1 (mp3 (mp3float) -> aac (native))
Device setup failed for decoder on input stream #0:0 : Cannot allocate
memory


I cannot get ffmpeg to work, do I need to build a special version?
the wiki page: https://trac.ffmpeg.org/wiki/HWAccelIntro

doesn't provide very detailed info.
___
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 rtmp stream breaks after Delay between the first packet and last packet

2021-01-15 Thread owen s
I'll update this question

ffmpeg -version
```shell
ffmpeg -version
ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)
```

I run this command to use ffmpeg to stream to youtube ;

```shell
ffmpeg -y -threads 12 \
-loop 1 -framerate 30 -re \
-i ./1280x720.jpg \
-i ./audio.mp3 \
-video_size 1280x720 \
-vcodec libx264 -pix_fmt yuv420p \
-b:v 4500k -maxrate 5500k -bufsize 22000k \
-preset ultrafast -crf 23 -tune stillimage \
-b:a 128k -ar 44100 -ac 2 -acodec aac \
-filter_complex "dynaudnorm=f=150:g=15" \
-r 30 -g 60 \
-f flv rtmp://a.rtmp.youtube.com/live2/ 2>&1 | tee _LOG
```

The stream is excellent for 45-53 minutes then i'll get an error like this
from ffmpeg:

```shell
[flv @ 0x56077027cd80] Delay between the first packet and last packet in
the muxing queue is 10034000 > 1000: forcing output
```

then youtube starts to say, no data being received and the stream will end,
which it does.

This is the full log: http://0x0.st/-zUH.txt
___
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 streaming to youtube "Delay between the first packet and last packet in the muxing queue is 10500000 > 10000000: forcing output"

2021-01-13 Thread owen s
This is a large log file: https://0x0.st/-zyL.txt

starting up a youtube livestream with this ffmpeg command:

ffmpeg -hwaccel auto -threads 8 -re -loop 1 -framerate 2 -i ./image.jpg \
-i ./audio.mp3 \
-video_size 1920x1080 \
-threads 4 -vcodec libx264 -pix_fmt yuv420p \
-tune zerolatency \
-movflags +faststart \
-use_wallclock_as_timestamps 1 \
-fflags +genpts \
-x264opts opencl \
-preset ultrafast -crf 18 \
-b:v 1500k \
-bufsize 1k \
-b:a 128k -ar 44100 -ac 2 -acodec aac \
-r 30 -g 1 -strict experimental \
-f flv rtmp://a.rtmp.youtube.com/live2/



The YouTube stream starts off with excellent quality but after some time
the YouTube widget starts to show the buffering circle, I get this warning
in the ffmpeg log:
"Delay between the first packet and last packet in the muxing queue is
1050 > 1000: forcing output"
___
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".