Opened 4 years ago

Closed 6 months ago

#3418 closed defect (invalid)

Cannot stream h264 to libvorbis/libtheora with ffserver

Reported by: pferland Owned by: mastered
Priority: normal Component: ffserver
Version: Keywords:
Cc: lars.taeuber@gmx.net Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When trying to stream a h264/libx264 to a ffserver feed that has an ogg stream fails with Invalid data found when processing input

ffmpeg version: 2.1.4
Built on: Feb 24 2014 14:55:01 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)

ffmpeg config options: --prefix=/home/pferland/ffmpeg_build --extra-cflags=-I/home/pferland/ffmpeg_build/include --extra-ldflags=-L/home/pferland/ffmpeg_build/lib --bindir=/home/pferland/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
libx264 version: master at git://git.videolan.org/x264.git

Command line for ffmpeg:
% ffmpeg -i input.mkv http://172.16.0.88:8091/feed1.ffm

ffmpeg source file headers:

Input #0, matroska,webm, from '/input.mkv':
  Metadata:
    creation_time   : 2013-10-14 21:32:51
  Duration: 00:43:24.06, start: 0.000000, bitrate: 3833 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709), 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)

ffserver config file:

Port 8091
BindAddress 172.16.0.88

MaxHTTPConnections 666
MaxClients 666
#MaxBandwidth 4000
CustomLog /var/log/ffserver/access.log

NoDaemon

<Feed feed1.ffm>
  File /tmp/feed1.ffm
  FileMaxSize 8G
</Feed>

<Stream stream1.ogg>
   Feed feed1.ffm
   Format ogg

   VideoCodec libtheora
   VideoFrameRate 15
   VideoBitRate 500
   VideoSize 640x480
#   VideoQMin 1
#   VideoQMax 31
   VideoGopSize 12
   Preroll 0
   AVOptionVideo flags +global_header

   AudioCodec libvorbis
   AudioBitRate 64
   AudioChannels 1
   AudioSampleRate 44100
   AVOptionAudio flags +global_header
</Stream>

Change History (6)

comment:1 Changed 4 years ago by pferland

  • Summary changed from Cannot stream h264 to libvorbis with ffserver to Cannot stream h264 to libvorbis/libtheora with ffserver

comment:2 Changed 4 years ago by mastered

  • Owner set to mastered
  • Status changed from new to open

comment:3 Changed 2 years ago by taeuber

This is true with version:

ffserver_g -v 9 -loglevel 99 -report
ffserver version N-80494-g9204a84 Copyright (c) 2000-2016 the FFmpeg developers

built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --enable-libvorbis --enable-libmp3lame --enable-libopus
libavutil 55. 24.100 / 55. 24.100
libavcodec 57. 46.100 / 57. 46.100
libavformat 57. 38.102 / 57. 38.102
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 46.102 / 6. 46.102
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100

It also is not possible to stream opus streams or vorbis streams in matroska format:

Tue Jun 21 22:04:28 2016 [file @ 0x2d66de0]Setting default whitelist 'file,crypto'
Tue Jun 21 22:04:28 2016 Probing ffm score:101 size:2048
Tue Jun 21 22:04:28 2016 [ffm @ 0x2d6d6a0]Format ffm probed with size=2048 and score=101
Tue Jun 21 22:04:28 2016 [NULL @ 0x2d6f0a0]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:28 2016 [NULL @ 0x2d6f0a0]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:28 2016 [NULL @ 0x2d6f0a0]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:28 2016 [NULL @ 0x2d6fae0]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:28 2016 [NULL @ 0x2d6fae0]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:28 2016 [NULL @ 0x2d6fae0]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:28 2016 [NULL @ 0x2d70a00]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:28 2016 [NULL @ 0x2d70a00]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:28 2016 [NULL @ 0x2d70a00]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:28 2016 [NULL @ 0x2d70a00]Setting entry with key 'flags' to value '+global_header'
Tue Jun 21 22:04:28 2016 [AVIOContext @ 0x2d75d00]Statistics: 32768 bytes read, 0 seeks
Tue Jun 21 22:04:28 2016 FFserver started.
Tue Jun 21 22:04:32 2016 [file @ 0x2d66de0]Setting default whitelist 'file,crypto'
Tue Jun 21 22:04:32 2016 Probing ffm score:101 size:2048
Tue Jun 21 22:04:32 2016 [ffm @ 0x2d73f20]Format ffm probed with size=2048 and score=101
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75940]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75940]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75940]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d76380]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d76380]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d76380]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d772a0]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d772a0]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d772a0]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d772a0]Setting entry with key 'flags' to value '+global_header'
Tue Jun 21 22:04:32 2016 [ffm @ 0x2d71690]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Tue Jun 21 22:04:32 2016 [ffm @ 0x2d71690]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Tue Jun 21 22:04:32 2016 [ffm @ 0x2d71690]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Tue Jun 21 22:04:32 2016 writing recommended configuration: b=48000,ac=1,ar=48000
Tue Jun 21 22:04:32 2016 writing recommended configuration: b=48000,ac=1,ar=48000
Tue Jun 21 22:04:32 2016 writing recommended configuration: b=48000,ac=1,ar=48000,flags=+global_header
Tue Jun 21 22:04:32 2016 127.0.0.1 - - [GET] "/immen.ffm HTTP/1.1" 200 4175
Tue Jun 21 22:04:32 2016 [AVIOContext @ 0x2d7c5a0]Statistics: 40960 bytes read, 2 seeks
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d77c40]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d77c40]Setting entry with key 'ab' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d77c40]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d77c40]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d77c40]Setting entry with key 'frame_size' to value '1152'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d77c40]Setting entry with key 'channel_layout' to value '4'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d77c40]Setting entry with key 'time_base' to value '1/48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d77c40]Setting entry with key 'delay' to value '1105'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d77c40]Setting entry with key 'pkt_timebase' to value '1/1000000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d792c0]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d792c0]Setting entry with key 'ab' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d792c0]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d792c0]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d792c0]Setting entry with key 'frame_size' to value '64'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d792c0]Setting entry with key 'channel_layout' to value '4'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d792c0]Setting entry with key 'time_base' to value '1/48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d792c0]Setting entry with key 'pkt_timebase' to value '1/1000000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75460]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75460]Setting entry with key 'ab' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75460]Setting entry with key 'flags' to value '0x00400000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75460]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75460]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75460]Setting entry with key 'frame_size' to value '960'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75460]Setting entry with key 'compression_level' to value '10'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75460]Setting entry with key 'channel_layout' to value '4'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75460]Setting entry with key 'time_base' to value '1/48000'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75460]Setting entry with key 'delay' to value '312'
Tue Jun 21 22:04:32 2016 [NULL @ 0x2d75460]Setting entry with key 'pkt_timebase' to value '1/1000000'
Tue Jun 21 22:04:36 2016 [file @ 0x2d66ce0]Setting default whitelist 'file,crypto'
Tue Jun 21 22:04:36 2016 Probing ffm score:101 size:2048
Tue Jun 21 22:04:36 2016 [ffm @ 0x2d73580]Format ffm probed with size=2048 and score=101
Tue Jun 21 22:04:36 2016 [NULL @ 0x2d79620]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:36 2016 [NULL @ 0x2d79620]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:36 2016 [NULL @ 0x2d79620]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:36 2016 [NULL @ 0x2d77740]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:36 2016 [NULL @ 0x2d77740]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:36 2016 [NULL @ 0x2d77740]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:36 2016 [NULL @ 0x2d7a8a0]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:36 2016 [NULL @ 0x2d7a8a0]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:36 2016 [NULL @ 0x2d7a8a0]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:36 2016 [NULL @ 0x2d7a8a0]Setting entry with key 'flags' to value '+global_header'
Tue Jun 21 22:04:36 2016 [matroska @ 0x2d78dd0]Extradata corrupt.
Tue Jun 21 22:04:36 2016 Error writing frame to output for stream 'immen.mka': Operation not permitted
Tue Jun 21 22:04:36 2016 192.168.188.22 - - [GET] "/immen.mka HTTP/1.1" 200 505
Tue Jun 21 22:04:36 2016 [AVIOContext @ 0x2d79cc0]Statistics: 40960 bytes read, 2 seeks
Tue Jun 21 22:04:38 2016 [file @ 0x2d66ce0]Setting default whitelist 'file,crypto'
Tue Jun 21 22:04:38 2016 Probing ffm score:101 size:2048
Tue Jun 21 22:04:38 2016 [ffm @ 0x2d73580]Format ffm probed with size=2048 and score=101
Tue Jun 21 22:04:38 2016 [NULL @ 0x2d79620]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:38 2016 [NULL @ 0x2d79620]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:38 2016 [NULL @ 0x2d79620]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:38 2016 [NULL @ 0x2d76340]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:38 2016 [NULL @ 0x2d76340]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:38 2016 [NULL @ 0x2d76340]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:38 2016 [NULL @ 0x2d771c0]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:38 2016 [NULL @ 0x2d771c0]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:38 2016 [NULL @ 0x2d771c0]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:38 2016 [NULL @ 0x2d771c0]Setting entry with key 'flags' to value '+global_header'
Tue Jun 21 22:04:38 2016 [oga @ 0x2d78dd0]No extradata present
Tue Jun 21 22:04:38 2016 Error writing output header for stream 'immen.ogg': Invalid data found when processing input
Tue Jun 21 22:04:38 2016 192.168.188.22 - - [GET] "/immen.ogg HTTP/1.1" 200 62
Tue Jun 21 22:04:38 2016 [AVIOContext @ 0x2d79cc0]Statistics: 40960 bytes read, 2 seeks
Tue Jun 21 22:04:40 2016 [file @ 0x2d79c40]Setting default whitelist 'file,crypto'
Tue Jun 21 22:04:40 2016 Probing ffm score:101 size:2048
Tue Jun 21 22:04:40 2016 [ffm @ 0x2d76340]Format ffm probed with size=2048 and score=101
Tue Jun 21 22:04:40 2016 [NULL @ 0x2d73580]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:40 2016 [NULL @ 0x2d73580]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:40 2016 [NULL @ 0x2d73580]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:40 2016 [NULL @ 0x2d74fc0]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:40 2016 [NULL @ 0x2d74fc0]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:40 2016 [NULL @ 0x2d74fc0]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:40 2016 [NULL @ 0x2d758e0]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:40 2016 [NULL @ 0x2d758e0]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:40 2016 [NULL @ 0x2d758e0]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:40 2016 [NULL @ 0x2d758e0]Setting entry with key 'flags' to value '+global_header'
Tue Jun 21 22:04:40 2016 [opus @ 0x2d77310]No extradata present
Tue Jun 21 22:04:40 2016 Error writing output header for stream 'immen.opus': Invalid data found when processing input
Tue Jun 21 22:04:40 2016 192.168.188.22 - - [GET] "/immen.opus HTTP/1.1" 200 62
Tue Jun 21 22:04:40 2016 [AVIOContext @ 0x2d66ce0]Statistics: 40960 bytes read, 2 seeks
Tue Jun 21 22:04:41 2016 [file @ 0x2d66ce0]Setting default whitelist 'file,crypto'
Tue Jun 21 22:04:41 2016 Probing ffm score:101 size:2048
Tue Jun 21 22:04:41 2016 [ffm @ 0x2d74fc0]Format ffm probed with size=2048 and score=101
Tue Jun 21 22:04:41 2016 [NULL @ 0x2d79720]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:41 2016 [NULL @ 0x2d79720]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:41 2016 [NULL @ 0x2d79720]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:41 2016 [NULL @ 0x2d76340]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:41 2016 [NULL @ 0x2d76340]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:41 2016 [NULL @ 0x2d76340]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:41 2016 [NULL @ 0x2d75a60]Setting entry with key 'b' to value '48000'
Tue Jun 21 22:04:41 2016 [NULL @ 0x2d75a60]Setting entry with key 'ac' to value '1'
Tue Jun 21 22:04:41 2016 [NULL @ 0x2d75a60]Setting entry with key 'ar' to value '48000'
Tue Jun 21 22:04:41 2016 [NULL @ 0x2d75a60]Setting entry with key 'flags' to value '+global_header'
Tue Jun 21 22:04:44 2016 192.168.188.22 - - [GET] "/immen.mp3 HTTP/1.1" 200 18927
Tue Jun 21 22:04:44 2016 [AVIOContext @ 0x2d79c40]Statistics: 98304 bytes read, 2 seeks
Tue Jun 21 22:04:48 2016 127.0.0.1 - - [POST] "/immen.ffm HTTP/1.1" 200 315392

comment:4 Changed 2 years ago by taeuber

config file for the last comment:

HTTPPort		8090
HTTPBindAddress		0.0.0.0
MaxHTTPConnections	2000
MaxClients		1000
MaxBandwidth		768
CustomLog		-

<Feed immen.ffm>
    ACL allow	127.0.0.1
</Feed>

<Stream immen.mp3>
    Feed		immen.ffm
    Format		mp2
    AudioCodec		libmp3lame
    AudioBitRate	48
    AudioChannels	1
    AudioSampleRate	48000
    NoVideo
</Stream>

<Stream immen.mka>
    Feed		immen.ffm
    Format		matroska

    AudioCodec		libvorbis
    AudioBitRate	48
    AudioChannels	1
    AudioSampleRate	48000
    NoVideo
</Stream>

<Stream immen.ogg>
    Feed		immen.ffm
    Format		oga
    AudioCodec		libvorbis
    AudioBitRate	48
    AudioChannels	1
    AudioSampleRate	48000
    AVOptionAudio	flags +global_header
    NoVideo
</Stream>

<Stream immen.opus>
    Feed		immen.ffm
    Format		opus
    AudioCodec		libopus
    AudioBitRate	48
    AudioChannels	1
    AudioSampleRate	48000
    AVOptionAudio	flags +global_header
    NoVideo
</Stream>

comment:5 Changed 2 years ago by taeuber

  • Cc lars.taeuber@gmx.net added

comment:6 Changed 6 months ago by atomnuker

  • Resolution set to invalid
  • Status changed from open to closed

ffserver was removed from git master, closing bug as invalid

Note: See TracTickets for help on using tickets.