Opened 3 years ago

Closed 6 months ago

#4966 closed defect (invalid)

ffserver - no stream mapping with ffmpeg

Reported by: peterschneider91 Owned by:
Priority: normal Component: ffserver
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hello,

i configured and started the ffserver without problems.
Now, i will receive a http live stream and broadcast it with ffserver.

In any case the audio output stream from ffmpeg has the stream number 0:0 and the video stream the number 0:1.
The ffmpeg commands for stream mapping does not work in the interaction with ffserver.

Report from ffmpeg:

./ffmpeg -i "http://daserste_live-lh.akamaihd.net/i/daserste_de@91204/index_608_av-p.m3u8?sd=10&rebase=on" -map 0:1 -map 0:0 http://localhost:8080/feed1.ffm
ffmpeg version 2.8.1-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.3 (Debian 4.9.3-4)
  configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --cc=gcc-4.9
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, hls,applehttp, from 'http://daserste_live-lh.akamaihd.net/i/daserste_de@91204/index_608_av-p.m3u8?sd=10&rebase=on':
  Duration: N/A, start: 89474.553378, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv), 512x288 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 102 kb/s
    Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
[libvpx @ 0x529cd20] v1.4.0-1523-gc2b8b5b
Output #0, ffm, to 'http://localhost:8080/feed1.ffm':
  Metadata:
    creation_time   : 2015-10-26 15:49:45
    encoder         : Lavf56.40.101
    Stream #0:0: Audio: opus (libopus), 48000 Hz, stereo, s16, 64 kb/s
    Metadata:
      encoder         : Lavc56.60.100 libopus
    Stream #0:1: Video: vp8 (libvpx), yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=10-42, 1000 kb/s, 25 fps, 1000k tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.60.100 libvpx
Stream mapping:
  Stream #0:1 -> #0:0 (aac (native) -> opus (libopus))
  Stream #0:0 -> #0:1 (h264 (native) -> vp8 (libvpx))
Press [q] to stop, [?] for help
[http @ 0x4ffc080] No trailing CRLF found in HTTP header.1 bitrate=1127.1kbits/s dup=20 drop=0
[http @ 0x507c240] No trailing CRLF found in HTTP header.1 bitrate=1181.2kbits/s dup=20 drop=0
frame=  616 fps= 50 q=0.0 Lsize=    3732kB time=00:00:24.73 bitrate=1236.1kbits/s dup=20 drop=0
...

Is there a bugfix available?

P.S. Stream mapping from a local file to a local file without ffserver, only with ffmpeg does work without problems.

Change History (3)

comment:1 follow-up: Changed 3 years ago by cehoyos

  • Keywords stream mapping ffserver ffmpeg live http stream audio video removed
  • Priority changed from important to normal

Is this a regression?
How can there be a mapping bug for the input file you used: It has only one audio and one video stream, or do I miss something?

comment:2 in reply to: ↑ 1 Changed 3 years ago by peterschneider91

Replying to cehoyos:

Is this a regression?
How can there be a mapping bug for the input file you used: It has only one audio and one video stream, or do I miss something?

I will switch the video and audio streams. --> output file with video stream (with number 0) and audio stream (with number 1)

Stream mapping with the commands (-map 0:1 -map 0:0) from a local file to a local file without ffserver, only with ffmpeg does work without problems.

Last edited 3 years ago by peterschneider91 (previous) (diff)

comment:3 Changed 6 months ago by atomnuker

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

ffserver and the ffm muxer/demuxer were removed from git master, closing bug as invalid

Note: See TracTickets for help on using tickets.