[FFmpeg-user] Problem with rtsp streaming using ffmpeg
Wiesmeyr Christoph
Christoph.Wiesmeyr at ait.ac.at
Tue Apr 26 12:35:49 CEST 2016
Hello all,
sorry for starting another thread about this issue but since I do not have the answer
to my original post in my inbox I do not know how to respond to it. For completeness
here is a link to the thread I originally started:
http://ffmpeg.org/pipermail/ffmpeg-user/2016-April/031854.html
http://ffmpeg.org/pipermail/ffmpeg-user/2016-April/031855.html
Here is the problem: I am trying to set up an rtsp stream through ffmpeg. The target
software requires me to encode the audio using pcm_s16be and the video using
libx264. I set up this stream and send it to a streaming server (Wowza in my case).
>From this streaming server I can retrieve the data using for example VLC but the
audio stream is interpreted as a video stream by the software. When I use ffmepg
to stream from the server it does not even see (or ignores) the audio stream.
For the detailed output of ffmpeg see below.
What works:
- When I change the audio codec to pcm_alaw/pcm_mulaw everything
works
- When I do not stream via rtsp but dump the video to a file it works
using pcm_s16be. The file can be played back using VLC without issues
I suspect a potential bug in the sdp set up by ffmpeg. Can anybody help me with
this? Thanks a lot in advance.
Best,
Christoph
Ps. The output of ffmpeg when retrieving the stream from the server:
PS C:\Users\Me\Documents> ffmpeg -i rtsp://172.25.54.1:1935/live/myStream.sdp -acodec copy -vcodec copy test.avi
ffmpeg version N-73361-g03b2b40 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi
g --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libm
p3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena
ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 46.100 / 56. 46.100
libavformat 56. 40.100 / 56. 40.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 19.100 / 5. 19.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, rtsp, from 'rtsp://172.25.54.1:1935/live/myStream.sdp':
Metadata:
title : myStream.sdp
Duration: N/A, start: 3.458000, bitrate: N/A
Stream #0:0: Video: h264 (High 4:4:4 Predictive), yuvj444p(pc), 1024x768 [SAR 1:1 DAR 4:3], 24 fps, 24 tbr, 90k tbn,
48 tbc
File 'test.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'test.avi':
Metadata:
INAM : myStream.sdp
ISFT : Lavf56.40.100
Stream #0:0: Video: h264 (H264 / 0x34363248), yuvj444p, 1024x768 [SAR 1:1 DAR 4:3], q=2-31, 24 fps, 24 tbr, 48 tbn,
48 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[avi @ 0000000005ba0020] Non-monotonous DTS in output stream 0:0; previous: -4, current: -6; changing to -3. This may re
sult in incorrect timestamps in the output file.
[avi @ 0000000005ba0020] Non-monotonous DTS in output stream 0:0; previous: -3, current: -4; changing to -2. This may re
sult in incorrect timestamps in the output file.
[avi @ 0000000005ba0020] Non-monotonous DTS in output stream 0:0; previous: -2, current: -2; changing to -1. This may re
sult in incorrect timestamps in the output file.
frame= 569 fps= 29 q=-1.0 Lsize= 1333kB time=00:00:23.43 bitrate= 466.1kbits/s
video:1301kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.498044%
More information about the ffmpeg-user
mailing list