ffserver - send audio with filter complex as video

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ffserver - send audio with filter complex as video

Zoltan Kerenyi Nagy
Hi Guys,

I'd like to send the audio with waveform overlay for both channels, I can
save it to file:
ffmpeg -f alsa -i hw:0,0 -filter_complex
"showwaves=split_channels=1:s=1280x720:mode=line:colors=Red|Blue" out.mp4

However with ffserver it fails:
ffmpeg -f alsa -i hw:0,0 -filter_complex
"showwaves=split_channels=1:s=1280x720:mode=line:colors=Red|Blue"
http://localhost:5554/video.ffm

OUTPUT:
Wed Jan 30 09:06:00 2019 127.0.0.1 - - New connection: GET /video.ffm
Missing video stream which is required by this ffm
Wed Jan 30 09:06:00 2019 127.0.0.1 - - [GET] "/video.ffm HTTP/1.1" 200 4175

Here is the config file:

HTTPPort 5554
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 4
MaxClients 4
MaxBandwidth 1024
CustomLog -

<Feed video.ffm>
    File /tmp/video.ffm
    FileMaxSize 2048M
</Feed>

#####################

<Stream video>
    Format flv
    Feed video.ffm
    VideoCodec libx264
    VideoFrameRate 15
    VideoBitRate 512
    VideoSize 1280x720
    AVOptionVideo crf 23
    AVOptionVideo preset medium
    AVOptionVideo flags +global_header

    AudioCodec aac
    Strict -2
    AudioBitRate 128
    AudioChannels 2
    AudioSampleRate 44100
    AVOptionAudio flags +global_header
</Stream>

I'm sure that something is wrong with the ffserver config file.

Thanks,

Z
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffserver - send audio with filter complex as video

Zoltan Kerenyi Nagy
it doesnt work either if I modify like this:

ffmpeg -f alsa -i hw:0,0 -f lavfi -i nullsrc -filter_complex
"[0]showwaves=split_channels=1:s=1280x720:mode=line:colors=Red|Blue"
http://localhost:5554/video.ffm

OUTPUT:
Wed Jan 30 09:27:12 2019 127.0.0.1 - - [POST] "/video.ffm HTTP/1.1" 200 4096
Past duration 0.799995 too large
[alsa @ 0x55d011719ca0] Thread message queue blocking; consider raising the
thread_queue_size option (current value: 8)
av_interleaved_write_frame(): Connection reset by peer
    Last message repeated 2 times
Error writing trailer of http://localhost:5554/video.ffm: Connection reset
by peer
frame=   88 fps=0.0 q=2.0 Lq=27.0 size=      12kB time=00:00:03.44
bitrate=  28.6kbits/s dup=0 drop=33 speed=7.08x
video:15kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
[aac @ 0x55d0117812c0] Qavg: 171.867
[libx264 @ 0x55d011782e60] frame I:1     Avg QP: 7.00  size:   223
[libx264 @ 0x55d011782e60] frame P:14    Avg QP: 7.71  size:    46
[libx264 @ 0x55d011782e60] frame B:40    Avg QP:11.35  size:    38
[libx264 @ 0x55d011782e60] consecutive B-frames:  1.8%  3.6%  0.0% 94.5%
[libx264 @ 0x55d011782e60] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x55d011782e60] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%
0.0%  0.0%  0.0%  0.0%    skip:100.0%
[libx264 @ 0x55d011782e60] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%
0.0%  0.0%  direct: 0.0%  skip:100.0%
[libx264 @ 0x55d011782e60] 8x8 transform intra:0.0%
[libx264 @ 0x55d011782e60] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% inter:
0.0% 0.0% 0.0%
[libx264 @ 0x55d011782e60] i16 v,h,dc,p: 98%  0%  2%  0%
[libx264 @ 0x55d011782e60] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x55d011782e60] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55d011782e60] kb/s:5.16
Conversion failed!


On Wed, 30 Jan 2019 at 09:22, Zoltan Kerenyi Nagy <
[hidden email]> wrote:

> Hi Guys,
>
> I'd like to send the audio with waveform overlay for both channels, I can
> save it to file:
> ffmpeg -f alsa -i hw:0,0 -filter_complex
> "showwaves=split_channels=1:s=1280x720:mode=line:colors=Red|Blue" out.mp4
>
> However with ffserver it fails:
> ffmpeg -f alsa -i hw:0,0 -filter_complex
> "showwaves=split_channels=1:s=1280x720:mode=line:colors=Red|Blue"
> http://localhost:5554/video.ffm
>
> OUTPUT:
> Wed Jan 30 09:06:00 2019 127.0.0.1 - - New connection: GET /video.ffm
> Missing video stream which is required by this ffm
> Wed Jan 30 09:06:00 2019 127.0.0.1 - - [GET] "/video.ffm HTTP/1.1" 200 4175
>
> Here is the config file:
>
> HTTPPort 5554
> HTTPBindAddress 0.0.0.0
> MaxHTTPConnections 4
> MaxClients 4
> MaxBandwidth 1024
> CustomLog -
>
> <Feed video.ffm>
>     File /tmp/video.ffm
>     FileMaxSize 2048M
> </Feed>
>
> #####################
>
> <Stream video>
>     Format flv
>     Feed video.ffm
>     VideoCodec libx264
>     VideoFrameRate 15
>     VideoBitRate 512
>     VideoSize 1280x720
>     AVOptionVideo crf 23
>     AVOptionVideo preset medium
>     AVOptionVideo flags +global_header
>
>     AudioCodec aac
>     Strict -2
>     AudioBitRate 128
>     AudioChannels 2
>     AudioSampleRate 44100
>     AVOptionAudio flags +global_header
> </Stream>
>
> I'm sure that something is wrong with the ffserver config file.
>
> Thanks,
>
> Z
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".