[FFmpeg-trac] #6084(undetermined:new): RTMP to MPEG-Dash conversion not possible since commit 6f69f7a8bf6a0d013985578df2ef42ee6b1c7994
FFmpeg
trac at avcodec.org
Sun Jan 15 16:15:50 EET 2017
#6084: RTMP to MPEG-Dash conversion not possible since commit
6f69f7a8bf6a0d013985578df2ef42ee6b1c7994
-------------------------------------+-------------------------------------
Reporter: lmm | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: flv, rtmp, | Blocked By:
mpeg-dash | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Since commit 6f69f7a8bf6a0d013985578df2ef42ee6b1c7994 it is not longer
possible to convert a live RTMP stream to live MPEG-Dash stream.
By the new commit there are new warnings regarding audio and video stream
discovery ("audio stream discovered after head already parsed"
How to reproduce:
{{{
% ffmpeg -y -f flv -i rtmp://184.72.239.149/vod/BigBuckBunny_115k.mov
-map 0:0 -c:v libvpx-vp9 -frame-parallel 1 -threads 8 -b:v 8192k -f
webm_chunk -header /tmp/video/glass_7673159932128379.hdr
-chunk_start_index 1 /tmp/video/glass_7673159932128379_%d.chk -map 0:1
-c:a libvorbis -b:a 128k -ar 44100 -f webm_chunk -audio_chunk_duration
2000 -header /tmp/video/glass_2497349482377957.hdr -chunk_start_index 1
/tmp/video/glass_2497349482377957_%d.chk
ffmpeg version N-83119-g0ba0187
built on Ubuntu 16.04 (64 bit)
}}}
ffmpeg (from master branch) output:
{{{
ffmpeg version N-83119-g0ba0187 Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --enable-libvpx --enable-libvorbis --enable-gpl --enable-
nonfree --disable-decoder=libopenjpeg --disable-decoder=libschroedinger
--enable-librtmp --enable-libtheora --enable-libvpx --enable-libwebp
--disable-opencl --enable-encoder=libvpx_vp9 --enable-encoder=libvpx_vp8
libavutil 55. 43.100 / 55. 43.100
libavcodec 57. 72.100 / 57. 72.100
libavformat 57. 62.100 / 57. 62.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 69.100 / 6. 69.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Metadata:
trackinfo:
language eng
timescale 24.00
length 14315.00
sampledescription:
sampletype avc1
language eng
timescale 12000.00
length 7157760.00
sampledescription:
sampletype mp4a
audiochannels 2.00
audiosamplerate 12000.00
videoframerate 24.00
aacaot 2.00
avclevel 30.00
avcprofile 66.00
audiocodecid mp4a
videocodecid avc1
width 240.00
height 160.00
frameWidth 240.00
frameHeight 160.00
displayWidth 240.00
displayHeight 160.00
framerate 24.00
moovposition 8671904.00
duration 596.48
[flv @ 0x2ddf000] audio stream discovered after head already parsed
[flv @ 0x2ddf000] video stream discovered after head already parsed
Input #0, flv, from 'rtmp://184.72.239.149/vod/BigBuckBunny_115k.mov':
Metadata:
length : 7157760
timescale : 12000
sampletype : mp4a
audiochannels : 2
videoframerate : 24
aacaot : 2
avclevel : 30
avcprofile : 66
frameWidth : 240
frameHeight : 160
displayWidth : 240
displayHeight : 160
moovposition : 8671904
Duration: 00:09:56.48, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: aac (LC), 12000 Hz, stereo, fltp
Stream #0:1: Video: h264 (Constrained Baseline), yuv420p(progressive),
240x160, 24 fps, 24 tbr, 1k tbn, 48 tbc
Automatic encoder selection failed for output stream #0:0. Default encoder
for format webm_chunk (codec none) is probably disabled. Please choose an
encoder manually.
Error selecting an encoder for stream 0:0
}}}
Expected output:
{{{
ffmpeg version 2.8.10-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-
suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl
--enable-shared --disable-stripping --disable-decoder=libopenjpeg
--disable-decoder=libschroedinger --enable-avresample --enable-avisynth
--enable-gnutls --enable-ladspa --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-
libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-
libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-
libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal
--enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883
--enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-
version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
--cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping
--disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-
avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-
libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-
libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype
--enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug
--enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-
libpulse --enable-librtmp --enable-libschroedinger --enable-libshine
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh
--enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid
--enable-libzvbi --enable-openal --enable-opengl --enable-x11grab
--enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r
--enable-libx264 --enable-libopencv --enable-version3 --disable-doc
--disable-programs --disable-avdevice --disable-avfilter --disable-
avformat --disable-avresample --disable-postproc --disable-swscale
--enable-libopencore_amrnb --enable-libopencore_amrwb --enable-
libvo_aacenc --enable-libvo_amrwbenc
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
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Metadata:
trackinfo:
language eng
timescale 24.00
length 14315.00
sampledescription:
sampletype avc1
language eng
timescale 12000.00
length 7157760.00
sampledescription:
sampletype mp4a
audiochannels 2.00
audiosamplerate 12000.00
videoframerate 24.00
aacaot 2.00
avclevel 30.00
avcprofile 66.00
audiocodecid mp4a
videocodecid avc1
width 240.00
height 160.00
frameWidth 240.00
frameHeight 160.00
displayWidth 240.00
displayHeight 160.00
framerate 24.00
moovposition 8671904.00
duration 596.48
Input #0, flv, from 'rtmp://184.72.239.149/vod/BigBuckBunny_115k.mov':
Metadata:
length : 7157760
timescale : 12000
sampletype : mp4a
audiochannels : 2
videoframerate : 24
aacaot : 2
avclevel : 30
avcprofile : 66
frameWidth : 240
frameHeight : 160
displayWidth : 240
displayHeight : 160
moovposition : 8671904
Duration: 00:09:56.48, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 240x160,
24.42 fps, 24 tbr, 1k tbn, 48 tbc
Stream #0:1: Audio: aac (LC), 12000 Hz, stereo, fltp
[libvpx-vp9 @ 0x1ccec80] v1.5.0
Output #0, webm_chunk, to '/tmp/video/glass_7673159932128379_%d.chk':
Metadata:
length : 7157760
timescale : 12000
sampletype : mp4a
audiochannels : 2
videoframerate : 24
aacaot : 2
avclevel : 30
avcprofile : 66
frameWidth : 240
frameHeight : 160
displayWidth : 240
displayHeight : 160
moovposition : 8671904
encoder : Lavf56.40.101
Stream #0:0: Video: vp9 (libvpx-vp9), yuv420p, 240x160, q=-1--1, 8192
kb/s, 24 fps, 1k tbn, 24 tbc
Metadata:
encoder : Lavc56.60.100 libvpx-vp9
Output #1, webm_chunk, to '/tmp/video/glass_2497349482377957_%d.chk':
Metadata:
length : 7157760
timescale : 12000
sampletype : mp4a
audiochannels : 2
videoframerate : 24
aacaot : 2
avclevel : 30
avcprofile : 66
frameWidth : 240
frameHeight : 160
displayWidth : 240
displayHeight : 160
moovposition : 8671904
encoder : Lavf56.40.101
Stream #1:0: Audio: vorbis (libvorbis), 44100 Hz, stereo, fltp, 128
kb/s
Metadata:
encoder : Lavc56.60.100 libvorbis
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> vp9 (libvpx-vp9))
Stream #0:1 -> #1:0 (aac (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
^Cframe= 96 fps= 34 q=0.0 Lsize=N/A time=00:00:04.33 bitrate=N/A
video:79kB audio:42kB subtitle:0kB other streams:0kB global headers:4kB
muxing overhead: unknown
Exiting normally, received signal 2.
}}}
A complete debug log is attached.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6084>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list