[FFserver-user] FFServer Tag avc1incompatible with output codec id '28'

roko roko98 at yahoo.com
Sun Mar 4 05:55:15 CET 2012


Hi

I'm saving a RTSP stream like this:

ffmpeg -i rtsp://admin:admin@192.168.99.146/11 -vcodec copy -r 25 algo.mp4

The output file seems OK.  It plays with vlc and ffplay.  Here are the file details:

emelo at alfa:~> ffprobe algo.mp4 
ffprobe version 0.10 Copyright (c) 2007-2012 the FFmpeg developers
  built on Jan 27 2012 20:25:58 with gcc 4.5.1 20101208 [gcc-4_5-branch revision 167585]
  configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-postproc --enable-gpl --enable-x11grab --extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-debug --disable-stripping --enable-libgsm --enable-libschroedinger --enable-libdirac --enable-avfilter --enable-libvpx --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libdc1394 --enable-pthreads --enable-librtmp
  libavutil      51. 34.101 / 51. 34.101
  libavcodec     53. 60.100 / 53. 60.100
  libavformat    53. 31.100 / 53. 31.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 60.100 /  2. 60.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'algo.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : \11
    encoder         : Lavf53.31.100
  Duration: 00:13:39.59, start: 0.000000, bitrate: 773 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480, 772 kb/s, 12.52 fps, 37.67 tbr, 90k tbn, 180k tbc
    Metadata:
      handler_name    : 


But, if I try to stream it with ffserver, like this:

<Stream test1.mp4>
File "/home/emelo/algo.mp4"
NoAudio
</Stream>


I get this error:

Sat Mar  3 22:14:00 2012 Opening file '/home/emelo/algo.mp4'
Sat Mar  3 22:14:00 2012 FFserver started.
Sat Mar  3 22:14:39 2012 Tag avc1/0x31637661 incompatible with output codec id '28'
Sat Mar  3 22:14:39 2012 Error writing output header
Sat Mar  3 22:14:39 2012 127.0.0.1 - - [GET] "/test1.mp4 HTTP/1.1" 200 68


If I use other thing (swf, mpeg) I can stream the file.. but I don't want to transcode the file, just stream it.  What I'm missing ? Thx.

    E.


More information about the ffserver-user mailing list