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.

What is wrong with my ffserver stream?

Discussions about problems encountered using ffserver.
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

What is wrong with my ffserver stream?

Postby fossum_13 » Thu Sep 01, 2016 4:37 am

I'm trying to get my first ffserver going and I almost have it, but there are still some decent problems. The stream comes through, but it has terrible video/audio. I feel like some of the ffmpeg output is telling me what the issue is, but I have no idea what's trying to tell me. Please help! Football season is almost upon us!!! haha

PS - It seems I can't post links as a new user, so any time I say stream below I really mean a http address to my HDHomerun device. Feed1 will represent the http localhost stream.

ffmpeg command output
➜ ~ ffmpeg -i stream -c:v -c:a Feed1
ffmpeg version N-81350-g3282e31 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 6.1.1 (GCC) 20160621 (Red Hat 6.1.1-3)
configuration: --enable-gpl --enable-libx264 --enable-libmp3lame --enable-nonfree --enable-libfdk-aac
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 52.100 / 57. 52.100
libavformat 57. 46.101 / 57. 46.101
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 51.100 / 6. 51.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
[mpeg2video @ 0x2196d60] Invalid frame dimensions 0x0.
Last message repeated 26 times
Input #0, mpegts, from 'stream':
Duration: N/A, start: 44546.742478, bitrate: N/A
Program 2
Stream #0:0[0xee6]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0xeeb](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:2[0xeec](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s (visual impaired)
[ffm @ 0x21ff520] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Last message repeated 1 times
Output #0, ffm, to 'Feed1':
Metadata:
creation_time : now
encoder : Lavf57.46.101
Stream #0:0(eng): Audio: mp2, 22050 Hz, mono, s16, 32 kb/s
Metadata:
encoder : Lavc57.52.100 mp2
Stream #0:1: Video: mpeg2video (Main), yuv420p, 160x128 [SAR 64:45 DAR 16:9], q=2-31, 64 kb/s, 29.97 fps, 1000k tbn, 5 tbc
Metadata:
encoder : Lavc57.52.100 mpeg2video
Side data:
cpb: bitrate max/min/avg: 128000/0/64000 buffer size: 128000 vbv_delay: -1
Stream mapping:
Stream #0:1 -> #0:0 (ac3 (native) -> mp2 (native))
Stream #0:0 -> #0:1 (mpeg2video (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
[mpegts @ 0x2188380] PES packet size mismatche=00:00:03.60 bitrate= 100.1kbits/s dup=7 drop=58 speed= 1.4x
[mpeg2video @ 0x21999a0] 00 motion_type at 10 24
[mpeg2video @ 0x21999a0] 00 motion_type at 12 25
[mpeg2video @ 0x21999a0] 00 motion_type at 0 27
[mpeg2video @ 0x21999a0] ac-tex damaged at 10 20
[mpeg2video @ 0x21999a0] 00 motion_type at 4 21
[mpeg2video @ 0x21999a0] invalid cbp -1 at 2 22
[mpeg2video @ 0x21999a0] invalid cbp -1 at 0 23
[mpeg2video @ 0x21999a0] Invalid mb type in P-frame at 20 24
[mpeg2video @ 0x21999a0] slice mismatch
[mpeg2video @ 0x21999a0] mb incr damaged
[mpeg2video @ 0x21999a0] invalid cbp 0 at 5 27
[mpeg2video @ 0x21999a0] mb incr damaged
Last message repeated 1 times
[mpeg2video @ 0x21999a0] ac-tex damaged at 7 30
[mpeg2video @ 0x21999a0] invalid cbp -1 at 0 31
[mpeg2video @ 0x21999a0] mb incr damaged
[mpeg2video @ 0x21999a0] 00 motion_type at 10 33
[mpeg2video @ 0x21999a0] 00 motion_type at 12 34
[mpeg2video @ 0x21999a0] 00 motion_type at 8 35
[mpeg2video @ 0x21999a0] 00 motion_type at 115 7
[mpeg2video @ 0x21999a0] 00 motion_type at 7 9
[mpeg2video @ 0x21999a0] 00 motion_type at 4 20
[mpeg2video @ 0x21999a0] 00 motion_type at 1 21
[mpeg2video @ 0x21999a0] 00 motion_type at 9 60
[mpeg2video @ 0x21999a0] 00 motion_type at 7 61
[mpeg2video @ 0x21999a0] 00 motion_type at 2 62
[mpeg2video @ 0x21999a0] Invalid mb type in P-frame at 34 63
[mpeg2video @ 0x21999a0] ac-tex damaged at 44 36
[mpeg2video @ 0x21999a0] 00 motion_type at 9 37
[mpeg2video @ 0x21999a0] 00 motion_type at 75 64
[mpeg2video @ 0x21999a0] 00 motion_type at 18 65
[mpeg2video @ 0x21999a0] 00 motion_type at 16 66
[mpeg2video @ 0x21999a0] 00 motion_type at 6 67
[mpeg2video @ 0x21999a0] 00 motion_type at 9 38
[mpeg2video @ 0x21999a0] mb incr damaged
[mpeg2video @ 0x21999a0] 00 motion_type at 7 40
[mpeg2video @ 0x21999a0] 00 motion_type at 13 41
[mpeg2video @ 0x21999a0] ac-tex damaged at 37 42
[mpeg2video @ 0x21999a0] Warning MVs not available
[mpeg2video @ 0x21999a0] concealing 7267 DC, 7267 AC, 7267 MV errors in P frame
[mpeg2video @ 0x21999a0] mb incr damaged
[mpeg2video @ 0x21999a0] 00 motion_type at 76 54
[mpeg2video @ 0x21999a0] Warning MVs not available
[mpeg2video @ 0x21999a0] concealing 0 DC, 0 AC, 0 MV errors in B frame
[mpeg2video @ 0x21999a0] ac-tex damaged at 73 350:00:04.40 bitrate= 89.4kbits/s dup=7 drop=70 speed=1.37x
[mpeg2video @ 0x21999a0] Warning MVs not available
[mpeg2video @ 0x21999a0] concealing 2016 DC, 2016 AC, 2016 MV errors in P frame
[mpeg2video @ 0x21999a0] 00 motion_type at 62 37
[mpeg2video @ 0x21999a0] Warning MVs not available
[mpeg2video @ 0x21999a0] concealing 480 DC, 480 AC, 480 MV errors in B frame
[mpeg2video @ 0x21999a0] 00 motion_type at 21 64
[mpeg2video @ 0x21999a0] 00 motion_type at 14 65
[mpeg2video @ 0x21999a0] 00 motion_type at 0 66
[mpeg2video @ 0x21999a0] 00 motion_type at 2 67
[mpeg2video @ 0x21999a0] mb incr damaged
[mpeg2video @ 0x21999a0] slice mismatch
[mpeg2video @ 0x21999a0] 00 motion_type at 5 21
[mpeg2video @ 0x21999a0] slice mismatch
[mpeg2video @ 0x21999a0] 00 motion_type at 6 23
[mpeg2video @ 0x21999a0] 00 motion_type at 30 24
[mpeg2video @ 0x21999a0] 00 motion_type at 10 25
[mpeg2video @ 0x21999a0] 00 motion_type at 1 26
[mpeg2video @ 0x21999a0] invalid cbp 0 at 0 27
[mpeg2video @ 0x21999a0] 00 motion_type at 12 28
[mpeg2video @ 0x21999a0] 00 motion_type at 7 29
[mpeg2video @ 0x21999a0] 00 motion_type at 3 30
[mpeg2video @ 0x21999a0] ac-tex damaged at 9 31
[mpeg2video @ 0x21999a0] 00 motion_type at 9 32
[mpeg2video @ 0x21999a0] slice mismatch
[mpeg2video @ 0x21999a0] 00 motion_type at 2 34
[mpeg2video @ 0x21999a0] 00 motion_type at 5 35
[mpeg2video @ 0x21999a0] 00 motion_type at 18 36
[mpeg2video @ 0x21999a0] 00 motion_type at 2 37
[mpeg2video @ 0x21999a0] 00 motion_type at 1 38
[mpeg2video @ 0x21999a0] 00 motion_type at 2 39
[mpeg2video @ 0x21999a0] slice mismatch
[mpeg2video @ 0x21999a0] Warning MVs not available
[mpeg2video @ 0x21999a0] concealing 5400 DC, 5400 AC, 5400 MV errors in B frame
[ac3 @ 0x219a380] exponent -1 is out-of-range
[ac3 @ 0x219a380] error decoding the audio block
[ac3 @ 0x219a380] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[ac3 @ 0x219a380] exponent 29 is out-of-range
[ac3 @ 0x219a380] error decoding the audio block
[ac3 @ 0x219a380] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[ac3 @ 0x219a380] new coupling strategy must be present in block 0
[ac3 @ 0x219a380] error decoding the audio block
Input stream #0:1 frame changed from rate:48000 fmt:fltp ch:6 chl:5.1(side) to rate:44100 fmt:fltp ch:3 chl:3.0
[mpeg2video @ 0x21999a0] 00 motion_type at 1 6
[mpeg2video @ 0x21999a0] Warning MVs not available
[mpeg2video @ 0x21999a0] concealing 3654 DC, 3654 AC, 3654 MV errors in P frame
[mpeg2video @ 0x21999a0] 00 motion_type at 46 36
[mpeg2video @ 0x21999a0] Warning MVs not available
[mpeg2video @ 0x21999a0] concealing 2280 DC, 2280 AC, 2280 MV errors in P frame
[mpeg2video @ 0x21999a0] skip with previntra
[mpeg2video @ 0x21999a0] 00 motion_type at 6 44
[mpeg2video @ 0x21999a0] Invalid mb type in B-frame at 14 47
[mpeg2video @ 0x21999a0] Warning MVs not available
[mpeg2video @ 0x21999a0] concealing 1000 DC, 1000 AC, 1000 MV errors in B frame
[mpeg2video @ 0x21999a0] 00 motion_type at 8 2300:00:05.20 bitrate= 81.9kbits/s dup=7 drop=76 speed=1.38x
[mpeg2video @ 0x21999a0] 00 motion_type at 82 16
[mpeg2video @ 0x21999a0] Warning MVs not available
[mpeg2video @ 0x21999a0] concealing 3455 DC, 3455 AC, 3455 MV errors in P frame
[mpeg2video @ 0x21999a0] 00 motion_type at 81 27
[mpeg2video @ 0x21999a0] 00 motion_type at 35 32
[mpeg2video @ 0x21999a0] 00 motion_type at 98 18
[mpeg2video @ 0x21999a0] Warning MVs not available
[mpeg2video @ 0x21999a0] concealing 4440 DC, 4440 AC, 4440 MV errors in B frame
[mpegts @ 0x2188380] PES packet size mismatch
[ac3 @ 0x219a380] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
Input stream #0:1 frame changed from rate:44100 fmt:fltp ch:3 chl:3.0 to rate:48000 fmt:fltp ch:6 chl:5.1(side)
[ac3 @ 0x219a380] exponent -2 is out-of-range
[ac3 @ 0x219a380] error decoding the audio block
[ac3 @ 0x219a380] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[ac3 @ 0x219a380] invalid coupling range (6 >= 6)
[ac3 @ 0x219a380] error decoding the audio block
[ac3 @ 0x219a380] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x21999a0] skipped MB in I-frame at 110 17
[mpeg2video @ 0x21999a0] skipped MB in I-frame at 22 20
[mpeg2video @ 0x21999a0] Warning MVs not available
[mpeg2video @ 0x21999a0] concealing 1739 DC, 1739 AC, 1739 MV errors in I frame
[ac3 @ 0x219a380] exponent 25 is out-of-range
[ac3 @ 0x219a380] error decoding the audio block
[ac3 @ 0x219a380] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
frame= 32 fps=7.0 q=8.8 Lsize= 76kB time=00:00:06.00 bitrate= 103.8kbits/s dup=7 drop=92 speed=1.31x
video:51kB audio:17kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 11.487716%
➜ ~


ffserver command output
➜ ~ ffserver -f ~/ffserver.conf.mpeg
ffserver version N-81350-g3282e31 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 6.1.1 (GCC) 20160621 (Red Hat 6.1.1-3)
configuration: --enable-gpl --enable-libx264 --enable-libmp3lame --enable-nonfree --enable-libfdk-aac
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 52.100 / 57. 52.100
libavformat 57. 46.101 / 57. 46.101
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 51.100 / 6. 51.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
/home/ericfoss/ffserver.conf.mpeg:32: Setting default value for audio sample rate = 22050. Use NoDefaults to disable it.
/home/ericfoss/ffserver.conf.mpeg:32: Setting default value for video bit rate = 64000. Use NoDefaults to disable it.
/home/ericfoss/ffserver.conf.mpeg:32: Setting default value for video frame rate = 5. Use NoDefaults to disable it.
/home/ericfoss/ffserver.conf.mpeg:32: Setting default value for video size = 160x128. Use NoDefaults to disable it.
/home/ericfoss/ffserver.conf.mpeg:32: Setting default value for video bit rate tolerance = 16000. Use NoDefaults to disable it.
/home/ericfoss/ffserver.conf.mpeg:32: Setting default value for video rate control equation = tex^qComp. Use NoDefaults to disable it.
/home/ericfoss/ffserver.conf.mpeg:32: Setting default value for video max rate = 128000. Use NoDefaults to disable it.
/home/ericfoss/ffserver.conf.mpeg:32: Setting default value for video buffer size = 128000. Use NoDefaults to disable it.
Wed Aug 31 21:09:38 2016 Codec sample_rate, channels, frame_size do not match for stream 0
Wed Aug 31 21:09:38 2016 [ffm @ 0x3aae5e0]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Wed Aug 31 21:09:38 2016 [ffm @ 0x3aae5e0]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Wed Aug 31 21:09:38 2016 FFserver started.
Wed Aug 31 21:09:46 2016 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175
Wed Aug 31 21:10:15 2016 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 303104
Wed Aug 31 21:10:15 2016 67.185.134.181 - - [GET] "/live.ts HTTP/1.1" 200 317219
Wed Aug 31 21:10:28 2016 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175
Wed Aug 31 21:10:33 2016 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 77824
Wed Aug 31 21:10:33 2016 67.185.134.181 - - [GET] "/live.ts HTTP/1.1" 200 71879
Wed Aug 31 21:11:40 2016 67.185.134.181 - - [GET] "/stat.html HTTP/1.1" 200 1730


Config file
HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 2000
CustomLog -

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 1000M
ACL allow 127.0.0.1
</Feed>

<Stream live.ts>
Feed feed1.ffm
Format mpegts

AudioBitRate 32
AudioChannels 1

AVOptionVideo flags +global_header
AVOptionAudio flags +global_header
</Stream>

# Server status
<Stream stat.html>
Format status
# Only allow local people to get the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>
fossum_13
 
Posts: 1
Joined: Thu Sep 01, 2016 4:14 am

Re: What is wrong with my ffserver stream?

Postby paul-e-f » Mon Jan 23, 2017 7:52 pm

Hello. I know how much headache this can be and took me a LONG time to find a solution, so Im sharing for anyone who finds this page on google etc.

I could stream OK from a DVB-T PC to nginx rtmp, but when I tried to encode via a PC across the LAN. I had all these errors, both encoding on Windows FFMpeg, and on Linux:

PES packet size mismatch
ac-tex
warning MVs not available
etc

So today I installed latest ffmpeg github, and it works a lot better. Maybe worth a try!

Though for a live stream (DVB-T freeview) I had to remove the -re option on my FFmpeg command, which I had been trying to see if that helped.

Hope this helps someone!
paul-e-f
 
Posts: 1
Joined: Mon Jan 23, 2017 7:47 pm


Return to ffserver

Who is online

Users browsing this forum: No registered users and 1 guest