[FFmpeg-trac] #1970(FFserver:new): ffserver ignores ffmpeg command line arguments
FFmpeg
trac at avcodec.org
Tue Nov 27 08:32:17 CET 2012
#1970: ffserver ignores ffmpeg command line arguments
------------------------------------+------------------------------------
Reporter: importinis | Owner:
Type: defect | Status: new
Priority: normal | Component: FFserver
Version: 1.0 | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by importinis):
This bug I noticed than upgraded from 1years old ffmpeg version :)
*** TEST1 - ffmpeg with map arguments and writing to file
# ffmpeg -i http://10.2.3.14:9050/233.239.0.66 -map 0:2 -map 0:0 -c copy
/tmp/tofile.ts
ffmpeg version N-46531-g7693543 Copyright (c) 2000-2012 the FFmpeg
developers
built on Nov 9 2012 11:36:04 with gcc 4.4.5 (Debian 4.4.5-8)
configuration: --prefix=/usr/local --enable-nonfree --enable-gpl
--enable-runtime-cpudetect --disable-ffprobe --disable-ffplay --disable-
devices --enable-libmp3lame --enable-libx264 --disable-protocols --enable-
protocol=http --enable-protocol=udp --enable-protocol=file --disable-
hwaccels
libavutil 52. 5.100 / 52. 5.100
libavcodec 54. 71.100 / 54. 71.100
libavformat 54. 36.100 / 54. 36.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 21.106 / 3. 21.106
libswscale 2. 1.102 / 2. 1.102
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100
[mpegts @ 0x2e22240] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0x2e22240] Estimating duration from bitrate, this may be
inaccurate
Input #0, mpegts, from 'http://10.2.3.14:9050/233.239.0.66':
Duration: N/A, start: 23737.567233, bitrate: 384 kb/s
Program 1850
Stream #0:0[0x73b]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x73e](rus): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16, 192 kb/s
Stream #0:2[0x73f](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16, 192 kb/s
Output #0, mpegts, to '/tmp/tofile.ts':
Metadata:
encoder : Lavf54.36.100
Stream #0:0(eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, 192 kb/s
Stream #0:1: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p,
720x576 [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 90k tbn, 25 tbc
Stream mapping:
Stream #0:2 -> #0:0 (copy)
Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 212 fps= 58 q=-1.0 Lsize= 4071kB time=00:00:08.88
bitrate=3754.8kbits/s
video:3558kB audio:200kB subtitle:0 global headers:0kB muxing overhead
8.323952%
Notice '''Stream #0:2 -> #0:0 (copy)''' 0:2 -> 0:0 Thats OK.
*** TEST2 - ffmpeg with map arguments and feeding to ffserver
#ffmpeg -i http://10.2.3.14:9050/233.239.0.66 -map 0:2 -map 0:0
http://127.0.0.1:1200/stream.ffm
ffmpeg version N-46531-g7693543 Copyright (c) 2000-2012 the FFmpeg
developers
built on Nov 9 2012 11:36:04 with gcc 4.4.5 (Debian 4.4.5-8)
configuration: --prefix=/usr/local --enable-nonfree --enable-gpl
--enable-runtime-cpudetect --disable-ffprobe --disable-ffplay --disable-
devices --enable-libmp3lame --enable-libx264 --disable-protocols --enable-
protocol=http --enable-protocol=udp --enable-protocol=file --disable-
hwaccels
libavutil 52. 5.100 / 52. 5.100
libavcodec 54. 71.100 / 54. 71.100
libavformat 54. 36.100 / 54. 36.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 21.106 / 3. 21.106
libswscale 2. 1.102 / 2. 1.102
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100
[mpeg2video @ 0x2a69a40] mpeg_decode_postinit() failure
Last message repeated 10 times
[mpegts @ 0x2a63240] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0x2a63240] Estimating duration from bitrate, this may be
inaccurate
Input #0, mpegts, from 'http://10.2.3.14:9050/233.239.0.66':
Duration: N/A, start: 23860.207222, bitrate: 384 kb/s
Program 1850
Stream #0:0[0x73b]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x73e](rus): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16, 192 kb/s
Stream #0:2[0x73f](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16, 192 kb/s
[libx264 @ 0x2b1aea0] using SAR=1/1
[libx264 @ 0x2b1aea0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2 AVX
[libx264 @ 0x2b1aea0] profile High, level 4.1
[libx264 @ 0x2b1aea0] 264 - core 128 - H.264/MPEG-4 AVC codec - Copyleft
2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=5 psy=1 psy_rd=1.00:0.00
mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0
deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12
lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=25
keyint_min=13 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1
bitrate=640 ratetol=1.0 qcomp=0.50 qpmin=10 qpmax=51 qpstep=4
vbv_maxrate=800 vbv_bufsize=41943 nal_hrd=none ip_ratio=1.40 aq=1:1.00
Output #0, ffm, to 'http://127.0.0.1:1200/stream.ffm':
Metadata:
creation_time : now
encoder : Lavf54.36.100
Stream #0:0(rus): Audio: mp3, 44100 Hz, mono, s32p, 64 kb/s
Stream #0:1: Video: h264, yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=10-51,
640 kb/s, 1000k tbn, 25 tbc
Stream mapping:
Stream #0:1 -> #0:0 (mp2 -> libmp3lame)
Stream #0:0 -> #0:1 (mpeg2video -> libx264)
Press [q] to stop, [?] for help
Notice '''Stream #0:1 -> #0:0 (mp2 -> libmp3lame)''' audio stream picked
first, despite of -map 0:2! Thats not OK.
*** FFSERVER config
Port 1200
#######################################
<Feed stream.ffm>
File /dev/shm/1200.ffm
FileMaxSize 5M
</Feed>
<Stream stream.flv>
Feed stream.ffm
Format flv
VideoCodec libx264
VideoBitRate 640k
VideoBufferSize 5120k
VideoFrameRate 25
VideoSize 640x480
AVPresetVideo lossless_medium
AVOptionVideo flags +global_header
AudioCodec libmp3lame
AudioBitRate 64k
AudioChannels 1
AudioSampleRate 44100
#i tried to uncomment - results the same AVOptionAudio map 0:2
AVOptionAudio flags +global_header
Preroll 5
StartSendOnKey
</Stream>
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1970#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list