[FFmpeg-user] restream with multiple audiotrack with ffserver

mamonick at kabel1.cz mamonick at kabel1.cz
Thu Jan 22 11:10:56 CET 2015


If I try it by feed it always use only one video a one audiotrack.

Here is info about stream:
Program 456
    Metadata:
      service_name    :
      service_provider:
    Stream #0:0[0x1cfd](cze): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:1[0x1fe0]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x1fe1](cze): Audio: ac3 ([6][0][0][0] / 0x0006), 48000
Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:3[0x1fe2](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000
Hz, 5.1(side), fltp, 384 kb/s

When I use -override_server and map feed have more auditrack but server
reset connection with error stream number does not match registered feed

ffserver.conf:
<Feed TEST>
File /tmp/TEST
Truncate
Launch ffmpeg -i udp://xxx.xxx.xxx.xxx:1234 -override_ffserver -c copy
-map 0:2 -map 0:1 -map 0:3 -f ffm
# Only allow connections from localhost to the feed.
ACL allow 127.0.0.1
</Feed>

<Stream 11111>
Format mpegts
Feed TEST
</Stream>



Output #0, ffm, to 'http://127.0.0.1:8090/TEST':
  Metadata:
    creation_time   : now
    encoder         : Lavf55.19.104
    Stream #0:0(cze): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz,
5.1(side), 384 kb/s
    Stream #0:1: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080
[SAR 1:1 DAR 16:9], q=2-31, 25 fps, 1000k tbn, 25 tbc
    Stream #0:2(eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz,
5.1(side), 384 kb/s
Stream mapping:
  Stream #0:2 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:3 -> #0:2 (copy)
Press [q] to stop, [?] for help
Thu Jan 22 10:49:24 2015 Feed '/tmp/TEST' stream number does not match
registered feed
Thu Jan 22 10:49:24 2015 127.0.0.1 - - [POST] "/TEST HTTP/1.1" 200 4096
av_interleaved_write_frame(): Connection reset by peer
TEST: Pid 14746 exited with status 13 after 3 seconds

Is any other way how to do it or how to change feed stream number?


More information about the ffmpeg-user mailing list