AlbrechtL / rtl_fm_streamer

Software to turn the RTL2832U into an SDR
GNU General Public License v2.0
68 stars 23 forks source link

cur_dts is invalid error with FFMPEG #4

Closed cdgraff closed 5 years ago

cdgraff commented 6 years ago

Hi! I'm fighting without success with this error:

cur_dts is invalid

Always when start the connection using FFMPEG start for 2 or 3 second and FFMPEG stop with that error.

Logs:


Successfully parsed a group of options.
Opening an input file: http://sdr1:8083/99900000/0.
[s16le @ 0x2a73980] Opening 'http://sdr1:8083/99900000/0' for reading
[http @ 0x2a74330] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[http @ 0x2a74330] request: GET /99900000/0 HTTP/1.1
User-Agent: Lavf/58.10.100
Accept: */*
Range: bytes=0-
Connection: close
Host: sdr1:8083
Icy-MetaData: 1

[s16le @ 0x2a73980] Before avformat_find_stream_info() pos: 0 bytes read:48 seeks:0 nb_streams:1
[s16le @ 0x2a73980] max_analyze_duration 10000 reached at 23220 microseconds st:0
[s16le @ 0x2a73980] After avformat_find_stream_info() pos: 8192 bytes read:16432 seeks:0 frames:3
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, s16le, from 'http://sdr1:8083/99900000/0':
  Duration: N/A, bitrate: 705 kb/s
    Stream #0:0, 3, 1/44100: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
Successfully opened the file.
Parsing a group of options: output url icecast://source:source@icecast.server.net:8000/2335cd4f46416e62be64ab1c960a5f42-encoder1.
Applying option acodec (force audio codec ('copy' to copy stream)) with argument libmp3lame.
Applying option ab (audio bitrate (please use -b:a)) with argument 64k.
Applying option f (force format) with argument mp3.
Successfully parsed a group of options.
Opening an output file: icecast://source:source@icecast.server.net:8000/2335cd4f46416e62be64ab1c960a5f42-encoder1.
[icecast @ 0x2a7ceb0] No default whitelist set
[http @ 0x2a7d250] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[http @ 0x2a7d250] request: PUT /2335cd4f46416e62be64ab1c960a5f42-encoder1 HTTP/1.1

Successfully opened the file.
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
detected 4 logical cores
[graph_0_in_0_0 @ 0x2a907d0] Setting 'time_base' to value '1/44100'
[graph_0_in_0_0 @ 0x2a907d0] Setting 'sample_rate' to value '44100'
[graph_0_in_0_0 @ 0x2a907d0] Setting 'sample_fmt' to value 's16'
[graph_0_in_0_0 @ 0x2a907d0] Setting 'channel_layout' to value '0x4'
[graph_0_in_0_0 @ 0x2a907d0] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x4
[format_out_0_0 @ 0x2a90d00] Setting 'sample_fmts' to value 's32p|fltp|s16p'
[format_out_0_0 @ 0x2a90d00] Setting 'sample_rates' to value '44100|48000|32000|22050|24000|16000|11025|12000|8000'
[format_out_0_0 @ 0x2a90d00] Setting 'channel_layouts' to value '0x4|0x3'
[format_out_0_0 @ 0x2a90d00] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_0'
[AVFilterGraph @ 0x2a70ea0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto_resampler_0 @ 0x2a91bf0] picking s16p out of 3 ref:s16
[auto_resampler_0 @ 0x2a91bf0] [SWR @ 0x2a91e10] Using s16p internally between filters
[auto_resampler_0 @ 0x2a91bf0] ch:1 chl:mono fmt:s16 r:44100Hz -> ch:1 chl:mono fmt:s16p r:44100Hz
[icecast @ 0x2a7ceb0] It seems you are streaming an unsupported format.
[icecast @ 0x2a7ceb0] It might work, but is not officially supported in Icecast!
Output #0, mp3, to 'icecast://source:source@icecast.server.net:8000/2335cd4f46416e62be64ab1c960a5f42-encoder1':
  Metadata:
    TSSE            : Lavf58.10.100
    Stream #0:0, 0, 1/44100: Audio: mp3 (libmp3lame), 44100 Hz, mono, s16p, delay 1105, 64 kb/s
    Metadata:
      encoder         : Lavc58.16.100 libmp3lame
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 8 times
[out_0_0 @ 0x2a90ad0] EOF on sink link out_0_0:default.speed=0.947x
No more output streams to write to, finishing.
[libmp3lame @ 0x2a7c2a0] Trying to remove 535 more samples than there are in the queue
size=      21kB time=00:00:02.61 bitrate=  64.7kbits/s speed=0.998x
video:0kB audio:21kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.213210%
Input file #0 (http://sdr1:8083/99900000/0):
  Input stream #0:0 (audio): 113 packets read (229424 bytes); 113 frames decoded (114712 samples);
  Total: 113 packets (229424 bytes) demuxed
Output file #0 (icecast://source:source@icecast.server.net:8000/2335cd4f46416e62be64ab1c960a5f42-encoder1):
  Output stream #0:0 (audio): 100 frames encoded (114712 samples); 101 packets muxed (21106 bytes);
  Total: 101 packets (21106 bytes) muxed
113 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x2a86b90] Statistics: 0 seeks, 102 writeouts
[AVIOContext @ 0x2a764f0] Statistics: 229424 bytes read, 0 seeks

some advice? thanks!

AlbrechtL commented 6 years ago

It might be that the WAV header is not 100% correct.

AlbrechtL commented 5 years ago

Closed because of no activity.

sourabharsh commented 5 years ago

How can we close an issue just because there is no activity on this? We should find out ways to get some activity on issues which aren't being answered.

Arlen22 commented 2 years ago

I have this happening every single day on a different file.