"showwaves has an unconnected output" when sending audio with waveform as video

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

"showwaves has an unconnected output" when sending audio with waveform as video

Zoltan Kerenyi Nagy
Hi,

I'd like to send the analog audio as video with waveform superimposed, I
did this so far:

ffmpeg -f alsa -i hw:0,0 -f lavfi -i nullsrc -filter_complex
"[0:a]showwaves=mode=line:s=hd480:colors=Red[v]" -map "[v]" -map 0:a
-pix_fmt yuv420p -b:a 360k -r:a 44100 http://localhost:5554/video.ffm

/etc/ffserver.conf

HTTPPort 5554
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 10
MaxClients 10
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>

The error message is:

Filter showwaves has an unconnected output
Tue Jan 29 22:18:08 2019 127.0.0.1 - - [POST] "/video.ffm HTTP/1.1" 200 0


------------------
(program exited with code: 1)
Press return to continue
_______________________________________________
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: "showwaves has an unconnected output" when sending audio with waveform as video

Zoltan Kerenyi Nagy
Slight modification does not work either:

ffmpeg -f lavfi -i nullsrc -f alsa -i hw:0,0 -filter_complex
"[0:a]showwaves=s=1280x720:mode=line:colors=Blue[v]" -map "[v]" -map 0:a
-c:v libx264 -r 15 http://localhost:5554/video.ffm

error:

Stream specifier ':a' in filtergraph description
[0:a]showwaves=s=1280x720:mode=line:colors=Blue[v] matches no streams.


On Tue, 29 Jan 2019 at 22:19, Zoltan Kerenyi Nagy <
[hidden email]> wrote:

> Hi,
>
> I'd like to send the analog audio as video with waveform superimposed, I
> did this so far:
>
> ffmpeg -f alsa -i hw:0,0 -f lavfi -i nullsrc -filter_complex
> "[0:a]showwaves=mode=line:s=hd480:colors=Red[v]" -map "[v]" -map 0:a
> -pix_fmt yuv420p -b:a 360k -r:a 44100 http://localhost:5554/video.ffm
>
> /etc/ffserver.conf
>
> HTTPPort 5554
> HTTPBindAddress 0.0.0.0
> MaxHTTPConnections 10
> MaxClients 10
> 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>
>
> The error message is:
>
> Filter showwaves has an unconnected output
> Tue Jan 29 22:18:08 2019 127.0.0.1 - - [POST] "/video.ffm HTTP/1.1" 200 0
>
>
> ------------------
> (program exited with code: 1)
> Press return to continue
>
>
_______________________________________________
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: "showwaves has an unconnected output" when sending audio with waveform as video

Moritz Barsnick
On Tue, Jan 29, 2019 at 23:04:23 +0100, Zoltan Kerenyi Nagy wrote:

> Slight modification does not work either:
>
> ffmpeg -f lavfi -i nullsrc -f alsa -i hw:0,0 -filter_complex
> "[0:a]showwaves=s=1280x720:mode=line:colors=Blue[v]" -map "[v]" -map 0:a
> -c:v libx264 -r 15 http://localhost:5554/video.ffm
>
> error:
>
> Stream specifier ':a' in filtergraph description
> [0:a]showwaves=s=1280x720:mode=line:colors=Blue[v] matches no streams.

This is why you should always show us the *complete* uncut console
output. You are hiding interesting info otherwise.

Your first input (0) is nullsrc, a video source. So "[0:a]" does not
specify a valid stream. You are not even using nullsrc, so you should
probably omit "-f lavfi -i nullsrc", then the rest should work.

Moritz
_______________________________________________
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: "showwaves has an unconnected output" when sending audio with waveform as video

Zoltan Kerenyi Nagy
Thanks your're right!

Unfortunately it still doesnt work:
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" -c:v
libx264 -preset fast -crf 23 -c:a copy http://localhost:5554/video.ffm

On Wed, 30 Jan 2019 at 09:45, Moritz Barsnick <[hidden email]> wrote:

> On Tue, Jan 29, 2019 at 23:04:23 +0100, Zoltan Kerenyi Nagy wrote:
> > Slight modification does not work either:
> >
> > ffmpeg -f lavfi -i nullsrc -f alsa -i hw:0,0 -filter_complex
> > "[0:a]showwaves=s=1280x720:mode=line:colors=Blue[v]" -map "[v]" -map 0:a
> > -c:v libx264 -r 15 http://localhost:5554/video.ffm
> >
> > error:
> >
> > Stream specifier ':a' in filtergraph description
> > [0:a]showwaves=s=1280x720:mode=line:colors=Blue[v] matches no streams.
>
> This is why you should always show us the *complete* uncut console
> output. You are hiding interesting info otherwise.
>
> Your first input (0) is nullsrc, a video source. So "[0:a]" does not
> specify a valid stream. You are not even using nullsrc, so you should
> probably omit "-f lavfi -i nullsrc", then the rest should work.
>
> Moritz
> _______________________________________________
> 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".
_______________________________________________
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: "showwaves has an unconnected output" when sending audio with waveform as video

Zoltan Kerenyi Nagy
Neither does this work:

#OUTPUT=out.mp4
OUTPUT="http://localhost:5554/video.ffm"
ffmpeg -f alsa -i hw:0,0 -filter_complex
"[0:a]showwaves=split_channels=1:s=1280x720:mode=line:colors=Red|Blue[v]"
-map "[v]" -map 0:a $OUTPUT

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

> Thanks your're right!
>
> Unfortunately it still doesnt work:
> 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" -c:v
> libx264 -preset fast -crf 23 -c:a copy http://localhost:5554/video.ffm
>
> On Wed, 30 Jan 2019 at 09:45, Moritz Barsnick <[hidden email]> wrote:
>
>> On Tue, Jan 29, 2019 at 23:04:23 +0100, Zoltan Kerenyi Nagy wrote:
>> > Slight modification does not work either:
>> >
>> > ffmpeg -f lavfi -i nullsrc -f alsa -i hw:0,0 -filter_complex
>> > "[0:a]showwaves=s=1280x720:mode=line:colors=Blue[v]" -map "[v]" -map 0:a
>> > -c:v libx264 -r 15 http://localhost:5554/video.ffm
>> >
>> > error:
>> >
>> > Stream specifier ':a' in filtergraph description
>> > [0:a]showwaves=s=1280x720:mode=line:colors=Blue[v] matches no streams.
>>
>> This is why you should always show us the *complete* uncut console
>> output. You are hiding interesting info otherwise.
>>
>> Your first input (0) is nullsrc, a video source. So "[0:a]" does not
>> specify a valid stream. You are not even using nullsrc, so you should
>> probably omit "-f lavfi -i nullsrc", then the rest should work.
>>
>> Moritz
>> _______________________________________________
>> 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".
>
>
_______________________________________________
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: "showwaves has an unconnected output" when sending audio with waveform as video

Moritz Barsnick
On Wed, Jan 30, 2019 at 11:39:42 +0100, Zoltan Kerenyi Nagy wrote:
> Neither does this work:

That's not a very good error description.

I asked this:

> >> This is why you should always show us the *complete* uncut console
> >> output. You are hiding interesting info otherwise.

Sorry, can't help you without so little info. Others may feel free to
jump in.

Moritz
_______________________________________________
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: "showwaves has an unconnected output" when sending audio with waveform as video

Zoltan Kerenyi Nagy
Sorry Sir, I forgot:

https://pastebin.com/vrAj7C3W

On Wed, 30 Jan 2019 at 14:33, Moritz Barsnick <[hidden email]> wrote:

> On Wed, Jan 30, 2019 at 11:39:42 +0100, Zoltan Kerenyi Nagy wrote:
> > Neither does this work:
>
> That's not a very good error description.
>
> I asked this:
>
> > >> This is why you should always show us the *complete* uncut console
> > >> output. You are hiding interesting info otherwise.
>
> Sorry, can't help you without so little info. Others may feel free to
> jump in.
>
> Moritz
> _______________________________________________
> 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".
_______________________________________________
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".