how to pass output of lavfi to xv?
I need to monitor audio levels while capturing audio/video. To achieve this I tried simple thing first: # ffmpeg -i Like\ an\ e-bird.mp3 -lavfi showvolume -f xv audiolevel And I've got: ... Stream mapping: Stream #0:0 (mp3) -> showvolume showvolume -> Stream #0:0 (rawvideo) Could not write header for output file #0 (incorrect codec parameters ?): Not yet implemented in FFmpeg, patches welcome At the same time I can play any video on xv device without problem, like this: # ffmpeg -i video.avi -f xv video ... Stream mapping: Stream #0:0 -> #0:0 (mpeg4 (native) -> rawvideo (native)) Press [q] to stop, [?] for help Also, I can encode output of lavfi to file: # ffmpeg -i Like\ an\ e-bird.mp3 -lavfi showvolume -c:v h264 -an volmon.mp4
On Sun, May 28, 2017 at 23:51:18 +0300, Anatoly wrote:
# ffmpeg -i Like\ an\ e-bird.mp3 -lavfi showvolume -f xv audiolevel And I've got: ... Stream mapping:
Would you please quote the complete, uncut console output? There's other valuable information in there. I get a totally different error message, including an indication as to what to do about it (choose an xv-compatible pixel format). Which version of ffmpeg are you using? (The console output will show us...) Moritz
On Sun, 28 May 2017 23:07:37 +0200 Moritz Barsnick <barsnick@gmx.net> wrote:
I get a totally different error message, including an indication as to what to do about it (choose an xv-compatible pixel format). Thank you for pointing me that, I've just overlooked those strings in the middle of the output, paying attention to the last strings only. Now I understand that I must tell lafi to produce yuyv422 output: # ffmpeg -i Like\ an\ e-bird.mp3 -lavfi showvolume,format=yuyv422 -f xv audiolevel
participants (2)
-
Anatoly -
Moritz Barsnick