How can I show a timecode while playing audio in FFPlay?

Clash Royale CLAN TAG#URR8PPP up vote
1
down vote
favorite
I'm wanting to play strictly audio files with FFplay.
Already when opening files it displays a window with a rolling spectogram.
I'd like to have the same spectogram with an overlay of a timecode in hh:mm:ss.
There is nothing on the man page whatsoever of this.
How can I achieve this?
command-line sound xorg ffmpeg
add a comment |Â
up vote
1
down vote
favorite
I'm wanting to play strictly audio files with FFplay.
Already when opening files it displays a window with a rolling spectogram.
I'd like to have the same spectogram with an overlay of a timecode in hh:mm:ss.
There is nothing on the man page whatsoever of this.
How can I achieve this?
command-line sound xorg ffmpeg
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm wanting to play strictly audio files with FFplay.
Already when opening files it displays a window with a rolling spectogram.
I'd like to have the same spectogram with an overlay of a timecode in hh:mm:ss.
There is nothing on the man page whatsoever of this.
How can I achieve this?
command-line sound xorg ffmpeg
I'm wanting to play strictly audio files with FFplay.
Already when opening files it displays a window with a rolling spectogram.
I'd like to have the same spectogram with an overlay of a timecode in hh:mm:ss.
There is nothing on the man page whatsoever of this.
How can I achieve this?
command-line sound xorg ffmpeg
command-line sound xorg ffmpeg
edited Apr 11 at 0:47
muru
130k19273463
130k19273463
asked Apr 10 at 17:59
Nectar
7543617
7543617
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
This can be done with the showspectrum and drawtext filters.

ffplay -f lavfi "amovie=input.mp3,asplit[a][out1];[a]showspectrum=mode=separate:color=intensity:slide=1,drawtext=text='%pts:hms':box=1:boxborderw=5:x=(w-text_w)/2:y=h-(text_h*2):fontsize=16:font=Mono[out0]"
- Seeking during playback will not be possible.
- Use a mono font, otherwise the width of the numbers will vary causing movement. The use of the option
font=Monoallows you to set the font family, but this requires yourffmpegto be compiled with--enable-libfribidi. Otherwise, use thefontfileoption and provide the full path to the font file.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
This can be done with the showspectrum and drawtext filters.

ffplay -f lavfi "amovie=input.mp3,asplit[a][out1];[a]showspectrum=mode=separate:color=intensity:slide=1,drawtext=text='%pts:hms':box=1:boxborderw=5:x=(w-text_w)/2:y=h-(text_h*2):fontsize=16:font=Mono[out0]"
- Seeking during playback will not be possible.
- Use a mono font, otherwise the width of the numbers will vary causing movement. The use of the option
font=Monoallows you to set the font family, but this requires yourffmpegto be compiled with--enable-libfribidi. Otherwise, use thefontfileoption and provide the full path to the font file.
add a comment |Â
up vote
0
down vote
This can be done with the showspectrum and drawtext filters.

ffplay -f lavfi "amovie=input.mp3,asplit[a][out1];[a]showspectrum=mode=separate:color=intensity:slide=1,drawtext=text='%pts:hms':box=1:boxborderw=5:x=(w-text_w)/2:y=h-(text_h*2):fontsize=16:font=Mono[out0]"
- Seeking during playback will not be possible.
- Use a mono font, otherwise the width of the numbers will vary causing movement. The use of the option
font=Monoallows you to set the font family, but this requires yourffmpegto be compiled with--enable-libfribidi. Otherwise, use thefontfileoption and provide the full path to the font file.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
This can be done with the showspectrum and drawtext filters.

ffplay -f lavfi "amovie=input.mp3,asplit[a][out1];[a]showspectrum=mode=separate:color=intensity:slide=1,drawtext=text='%pts:hms':box=1:boxborderw=5:x=(w-text_w)/2:y=h-(text_h*2):fontsize=16:font=Mono[out0]"
- Seeking during playback will not be possible.
- Use a mono font, otherwise the width of the numbers will vary causing movement. The use of the option
font=Monoallows you to set the font family, but this requires yourffmpegto be compiled with--enable-libfribidi. Otherwise, use thefontfileoption and provide the full path to the font file.
This can be done with the showspectrum and drawtext filters.

ffplay -f lavfi "amovie=input.mp3,asplit[a][out1];[a]showspectrum=mode=separate:color=intensity:slide=1,drawtext=text='%pts:hms':box=1:boxborderw=5:x=(w-text_w)/2:y=h-(text_h*2):fontsize=16:font=Mono[out0]"
- Seeking during playback will not be possible.
- Use a mono font, otherwise the width of the numbers will vary causing movement. The use of the option
font=Monoallows you to set the font family, but this requires yourffmpegto be compiled with--enable-libfribidi. Otherwise, use thefontfileoption and provide the full path to the font file.
edited Apr 12 at 18:34
answered Apr 11 at 0:47
LordNeckbeard
4,6451334
4,6451334
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023749%2fhow-can-i-show-a-timecode-while-playing-audio-in-ffplay%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password