[FFmpeg-user] [ffmpeg-user] Can't play sdp file

Massimo Battistel battistel at gmail.com
Tue Jan 29 15:34:34 CET 2013


Hi,
i'm streaming the following video to rtp. The problem is that the
auto-generated SDP only works with ffplay, other players (vlc for example)
do not play anything.
1. Is it possible to configure the generation of sdp file some way?
2. Is it possible to know which parameters are missing?

Thanks,
Massimo

Command line:
ffmpeg -analyzeduration 50000000 -re -i sample.mpg -vcodec mpeg2video -g 25
-s 320x240 -r 25 -vb 500k -an -f rtp rtp://192.168.100.102:1100 -acodec mp2
-ab 128k -ac 2 -ar 48000 -vn -f rtp rtp://192.168.100.102:1102

Output:
ffmpeg version N-49069-gc74d465 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Jan 20 2013 23:46:49 with gcc 4.7.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
--enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass
--enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib --enable-filter=frei0r
  libavutil      52. 15.100 / 52. 15.100
  libavcodec     54. 89.100 / 54. 89.100
  libavformat    54. 61.101 / 54. 61.101
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.101 /  3. 32.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mpeg, from 'sample.mpg':
  Duration: 01:58:04.75, start: 0.370000, bitrate: 4466 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR
16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 224 kb/s
Output #0, rtp, to 'rtp://192.168.100.102:1100':
  Metadata:
    encoder         : Lavf54.61.101
    Stream #0:0: Video: mpeg2video, yuv420p, 320x240 [SAR 1:1 DAR 4:3],
q=2-31, 500 kb/s, 90k tbn, 25 tbc
Output #1, rtp, to 'rtp://192.168.100.102:1102':
  Metadata:
    encoder         : Lavf54.61.101
    Stream #1:0: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video)
  Stream #0:1 -> #1:0 (mp2 -> mp2)
Press [q] to stop, [?] for help
frame=   16 fps=0.0 q=2.0 size=       3kB time=00:00:00.56 bitrate=
49.5kbits/s
frame=   29 fps= 27 q=2.0 size=       6kB time=00:00:01.08 bitrate=
48.8kbits/s
frame=   41 fps= 26 q=2.0 size=       8kB time=00:00:01.56 bitrate=
43.3kbits/s
frame=   55 fps= 26 q=2.0 size=      11kB time=00:00:02.12 bitrate=
44.2kbits/s
frame=   68 fps= 26 q=2.0 size=      13kB time=00:00:02.64 bitrate=
41.6kbits/s
frame=   71 fps= 25 q=2.0 Lsize=      14kB time=00:00:02.80 bitrate=
41.0kbits/s

video:13kB audio:32kB subtitle:0 global headers:0kB muxing overhead
-68.709889%

SDP file:
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
t=0 0
a=tool:libavformat 54.61.101
m=video 1100 RTP/AVP 32
c=IN IP4 192.168.100.102
b=AS:500
m=audio 1102 RTP/AVP 14
c=IN IP4 192.168.100.102
b=AS:128


More information about the ffmpeg-user mailing list