Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

Issue listening radios online

Discussions about problems encountered using ffplay.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

Issue listening radios online

Postby zecarlosalmeida » Mon May 05, 2014 10:24 pm

Hi.
I'm with a problem listening some radio stations with ffplay. Seems the problem its with radios with m3u8 formats. Plays , but every 10 seconds the sound hangs, and come back.
I've tried to change the buffer size but no success.

My system is windows 7 x64

Thanks and sorry by the poor english.
zecarlosalmeida
 
Posts: 6
Joined: Mon May 05, 2014 5:42 pm

Re: Issue listening radios online

Postby llogan » Tue May 06, 2014 6:06 am

Show your command and the complete console output so others can try to duplicate the issue.
llogan
 
Posts: 2363
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska

Re: Issue listening radios online

Postby zecarlosalmeida » Tue May 06, 2014 12:31 pm

Hi.

Code: Select all
>ffplay -i http://a6.fabricahost.com.br:1935/vivasonorapatobranco/stream/playlis
t.m3u8 -nodisp
ffplay version N-62950-gc25b0b7 Copyright (c) 2003-2014 the FFmpeg developers
  built on May  3 2014 22:09:12 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
ack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable
-decklink --enable-zlib
  libavutil      52. 81.100 / 52. 81.100
  libavcodec     55. 60.103 / 55. 60.103
  libavformat    55. 37.102 / 55. 37.102
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  5.100 /  4.  5.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[hls,applehttp @ 000000000427f0e0] Estimating duration from bitrate, this may be
 inaccurate
Input #0, hls,applehttp, from 'http://a6.fabricahost.com.br:1935/vivasonorapatob
ranco/stream/playlist.m3u8':
  Duration: 00:00:00.04, start: 88546.832200, bitrate: 32 kb/s
  Program 0
    Metadata:
      variant_bitrate : 36621
    Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp, 32 kb/sf=0/0
    Metadata:
      variant_bitrate : 36621
skipping 1 segments ahead, expired from playlistsB sq=    0B f=0/0
88768.49 M-A:  0.000 fd=   0 aq=    1KB vq=    0KB sq=    0B f=0/0


Thanks.
zecarlosalmeida
 
Posts: 6
Joined: Mon May 05, 2014 5:42 pm

Re: Issue listening radios online

Postby BlueCrypt » Wed May 07, 2014 3:16 pm

zecarlosalmeida wrote:Plays , but every 10 seconds the sound hangs, and come back.
I've tried to change the buffer size but no success.

Same issue here...
Code: Select all
blueknight@bk:~$ ffplay -i http://a6.fabricahost.com.br:1935/vivasonorapatobranco/stream/playlist.m3u8 -nodisp -v debug
ffplay version N-62826-gf0c78b0 Copyright (c) 2003-2014 the FFmpeg developers
  built on Apr 30 2014 23:31:31 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu8)
  configuration: --prefix=/usr --enable-gpl --enable-version3 --enable-nonfree --disable-static --enable-shared --disable-debug --enable-gray --enable-fontconfig --enable-libaacplus --enable-libass --enable-libbluray --enable-libcaca --enable-libcelt --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-opengl --enable-x11grab --enable-libx265 --enable-libx264
  libavutil      52. 80.100 / 52. 80.100
  libavcodec     55. 60.100 / 55. 60.100
  libavformat    55. 37.101 / 55. 37.101
  libavdevice    55. 13.100 / 55. 13.100
  libavfilter     4.  4.100 /  4.  4.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[http @ 0x7ff2bc005720] request: GET /vivasonorapatobranco/stream/playlist.m3u8 HTTP/1.1
User-Agent: Lavf/55.37.101
Accept: */*
Range: bytes=0-
Connection: close
Host: a6.fabricahost.com.br:1935


[http @ 0x7ff2bc005720] header='HTTP/1.1 200 OK'B sq=    0B f=0/0   
[http @ 0x7ff2bc005720] http_code=200
[http @ 0x7ff2bc005720] header='Date: Wed, 07 May 2014 15:08:43 GMT'
[http @ 0x7ff2bc005720] header='Content-Type: application/vnd.apple.mpegurl'
[http @ 0x7ff2bc005720] header='Server: FlashCom/3.5.5'
[http @ 0x7ff2bc005720] header='Cache-Control: no-cache'
[http @ 0x7ff2bc005720] header='Content-Length: 156'
[http @ 0x7ff2bc005720] header=''
[hls,applehttp @ 0x7ff2bc005c40] Format hls,applehttp probed with size=2048 and score=100
[http @ 0x7ff2bc005520] request: GET /vivasonorapatobranco/stream/playlist.m3u8?wowzasessionid=237956186 HTTP/1.1
User-Agent: Lavf/55.37.101
Accept: */*
Connection: close
Host: a6.fabricahost.com.br:1935


[http @ 0x7ff2bc005520] header='HTTP/1.1 200 OK'B sq=    0B f=0/0   
[http @ 0x7ff2bc005520] http_code=200
[http @ 0x7ff2bc005520] header='Date: Wed, 07 May 2014 15:08:44 GMT'
[http @ 0x7ff2bc005520] header='Content-Type: application/vnd.apple.mpegurl'
[http @ 0x7ff2bc005520] header='Server: FlashCom/3.5.5'
[http @ 0x7ff2bc005520] header='Cache-Control: no-cache'
[http @ 0x7ff2bc005520] header='Content-Length: 242'
[http @ 0x7ff2bc005520] header=''
[AVIOContext @ 0x7ff2bc00cf20] Statistics: 242 bytes read, 0 seeks 
[hls,applehttp @ 0x7ff2bc005c40] HLS request for url 'http://a6.fabricahost.com.br:1935/vivasonorapatobranco/stream/media_29153.aac?wowzasessionid=237956186', offset 0, playlist 0
[http @ 0x7ff2bc00c260] request: GET /vivasonorapatobranco/stream/media_29153.aac?wowzasessionid=237956186 HTTP/1.1
User-Agent: Lavf/55.37.101
Accept: */*
Connection: close
Host: a6.fabricahost.com.br:1935


[http @ 0x7ff2bc00c260] header='HTTP/1.1 200 OK'B sq=    0B f=0/0   
[http @ 0x7ff2bc00c260] http_code=200
[http @ 0x7ff2bc00c260] header='Date: Wed, 07 May 2014 15:08:44 GMT'
[http @ 0x7ff2bc00c260] header='Content-Type: audio/x-aac'
[http @ 0x7ff2bc00c260] header='Server: FlashCom/3.5.5'
[http @ 0x7ff2bc00c260] header='Cache-Control: no-cache'
[http @ 0x7ff2bc00c260] header='Content-Length: 42353'
[http @ 0x7ff2bc00c260] header=''
[NULL @ 0x7ff2bc00b460] Stripped 73 HLS ID3 bytes
id3v2 ver:4 flags:00 len:63
[NULL @ 0x7ff2bc00b460] HLS ID3 audio timestamp 7155929116
Format aac probed with size=2048 and score=51
[aac @ 0x7ff2bc00b460] Before avformat_find_stream_info() pos: 0 bytes read:2823 seeks:0
[aac @ 0x7ff2bc00b460] max_analyze_duration 5000000 reached at 5015510 microseconds
[aac @ 0x7ff2bc00b460] After avformat_find_stream_info() pos: 22671 bytes read:23095 seeks:0 frames:113
[hls,applehttp @ 0x7ff2bc005c40] Before avformat_find_stream_info() pos: 156 bytes read:156 seeks:0
[hls,applehttp @ 0x7ff2bc005c40] All info found
[hls,applehttp @ 0x7ff2bc005c40] Estimating duration from bitrate, this may be inaccurate
[hls,applehttp @ 0x7ff2bc005c40] After avformat_find_stream_info() pos: 156 bytes read:156 seeks:0 frames:1
Input #0, hls,applehttp, from 'http://a6.fabricahost.com.br:1935/vivasonorapatobranco/stream/playlist.m3u8':
  Duration: 00:00:00.04, start: 79510.323511, bitrate: 31 kb/s
  Program 0
    Metadata:
      variant_bitrate : 36583
    Stream #0:0, 1, 1/90000: Audio: aac, 44100 Hz, stereo, fltp, 31 kb/s
    Metadata:
      variant_bitrate : 36583
detected 2 logical cores
[ffplay_abuffer @ 0x7ff2bc01e920] Setting 'sample_rate' to value '44100'
[ffplay_abuffer @ 0x7ff2bc01e920] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7ff2bc01e920] Setting 'channels' to value '2'
[ffplay_abuffer @ 0x7ff2bc01e920] Setting 'time_base' to value '1/44100'
[ffplay_abuffer @ 0x7ff2bc01e920] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 0x7ff2bc01e920] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3
[ffplay_abuffersink @ 0x7ff2bc09a5a0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 0x7ff2bc01e260] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7ff2bc09b560] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:2 chl:stereo fmt:s16 r:44100Hz

Playing...

And this comes after the audio stops and plays back again...
Code: Select all
Audio frame changed from rate:44100 ch:2 fmt:fltp layout:stereo serial:-1 to rate:44100 ch:2 fmt:fltp layout:stereo serial:1
[ffplay_abuffer @ 0x7ff2ac0051e0] Setting 'sample_rate' to value '44100'
[ffplay_abuffer @ 0x7ff2ac0051e0] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7ff2ac0051e0] Setting 'channels' to value '2'
[ffplay_abuffer @ 0x7ff2ac0051e0] Setting 'time_base' to value '1/44100'
[ffplay_abuffer @ 0x7ff2ac0051e0] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 0x7ff2ac0051e0] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3
[ffplay_abuffersink @ 0x7ff2ac0063a0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 0x7ff2ac004ee0] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7ff2ac0076c0] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:2 chl:stereo fmt:s16 r:44100Hz
[http @ 0x7ff2bc0a5d00] request: GET /vivasonorapatobranco/stream/playlist.m3u8?wowzasessionid=237956186 HTTP/1.1
User-Agent: Lavf/55.37.101
Accept: */*
Connection: close
Host: a6.fabricahost.com.br:1935


[http @ 0x7ff2bc0a5d00] header='HTTP/1.1 200 OK'KB sq=    0B f=0/0   
[http @ 0x7ff2bc0a5d00] http_code=200
[http @ 0x7ff2bc0a5d00] header='Date: Wed, 07 May 2014 15:08:55 GMT'
[http @ 0x7ff2bc0a5d00] header='Content-Type: application/vnd.apple.mpegurl'
[http @ 0x7ff2bc0a5d00] header='Server: FlashCom/3.5.5'
[http @ 0x7ff2bc0a5d00] header='Cache-Control: no-cache'
[http @ 0x7ff2bc0a5d00] header='Content-Length: 242'
[http @ 0x7ff2bc0a5d00] header=''
[AVIOContext @ 0x7ff2bc011120] Statistics: 242 bytes read, 0 seeks   
[hls,applehttp @ 0x7ff2bc005c40] HLS request for url 'http://a6.fabricahost.com.br:1935/vivasonorapatobranco/stream/media_29154.aac?wowzasessionid=237956186', offset 0, playlist 0
[http @ 0x7ff2bc01f380] request: GET /vivasonorapatobranco/stream/media_29154.aac?wowzasessionid=237956186 HTTP/1.1
User-Agent: Lavf/55.37.101
Accept: */*
Connection: close
Host: a6.fabricahost.com.br:1935


[http @ 0x7ff2bc01f380] header='HTTP/1.1 200 OK'KB sq=    0B f=0/0   
[http @ 0x7ff2bc01f380] http_code=200
[http @ 0x7ff2bc01f380] header='Date: Wed, 07 May 2014 15:08:56 GMT'
[http @ 0x7ff2bc01f380] header='Content-Type: audio/x-aac'
[http @ 0x7ff2bc01f380] header='Server: FlashCom/3.5.5'
[http @ 0x7ff2bc01f380] header='Cache-Control: no-cache'
[http @ 0x7ff2bc01f380] header='Content-Length: 42279'
[http @ 0x7ff2bc01f380] header=''
[aac @ 0x7ff2bc00b460] Stripped 73 HLS ID3 bytes
id3v2 ver:4 flags:00 len:63
[aac @ 0x7ff2bc00b460] HLS ID3 audio timestamp 7156844506
BlueCrypt
 
Posts: 23
Joined: Tue Sep 17, 2013 1:40 am

Re: Issue listening radios online

Postby llogan » Wed May 07, 2014 3:30 pm

Does anything else play the stream as expected?
llogan
 
Posts: 2363
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska

Re: Issue listening radios online

Postby BlueCrypt » Wed May 07, 2014 4:12 pm

llogan wrote:Does anything else play the stream as expected?

I tried to play with VLC, same issue. The only difference is that it stops and resumes faster (smaller "gap").

And even larger interval in mplayer:
AO: [alsa] 44100Hz 2ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A:83181.3 (23:06:21.2) of 34548523008.0 (9596811:29:29.6) 0.5% 0%
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
A:83191.4 (23:06:31.4) of 34548523008.0 (9596811:29:29.6) 5.1% 0%
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
A:83201.6 (23:06:41.6) of 34548523008.0 (9596811:29:29.6) 6.5% 0%
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
A:83204.5 (23:06:44.5) of 34548523008.0 (9596811:29:29.6) 8.3% 0%

Exiting... (Quit)
BlueCrypt
 
Posts: 23
Joined: Tue Sep 17, 2013 1:40 am

Re: Issue listening radios online

Postby noomi » Fri Mar 27, 2015 12:43 pm

ffmpeg -s 1280x720 -r 30 -f x11grab -i :0.0 -fflags nobuffer -vcodec h264 -f flv "tcp://192.168.122.223:4242"
noomi
 
Posts: 1
Joined: Fri Mar 27, 2015 5:05 am

Re: Issue listening radios online

Postby adrianc » Wed Jun 01, 2016 1:39 pm

you can add "-infbuf' to ffplay's parameters to fix/avoid the issue
adrianc
 
Posts: 1
Joined: Wed Jun 01, 2016 1:37 pm


Return to ffplay

Who is online

Users browsing this forum: No registered users and 1 guest