[FFmpeg-user] MPEG-TS trouble

roko roko98 at yahoo.com
Sun Mar 25 03:21:26 CEST 2012


Thank you all for your answers.  A compiled version from Git save the file now:

emelo at alfa:~/workspace/ffmpeg> ./ffmpeg -i rtsp://admin:admin@192.168.99.146/11 -vcodec copy -y -r 25 -vbsf h264_mp4toannexb algo.ts
ffmpeg version N-39223-gac6798d Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 24 2012 19:43:40 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-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-libx264 --enable-libdc1394 --enable-pthreads --enable-librtmp
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.102 /  2. 65.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 10.100 /  0. 10.100
  libpostproc    52.  0.100 / 52.  0.100
[rtsp @ 0x6283a0] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://admin:admin@192.168.99.146/11':                    
  Metadata:
    title           : \11
  Duration: N/A, start: 0.039956, bitrate: N/A
    Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 640x480, 25 tbr, 90k tbn, 180k tbc
[mpegts @ 0x656820] muxrate VBR, pcr every 9000 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'algo.ts':
  Metadata:
    title           : \11
    encoder         : Lavf54.2.100
    Stream #0:0: Video: h264, yuv420p, 640x480, q=2-31, 90k tbn, 90k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help


And the file (algo.ts) plays well with ffplay, but a HUGE (realy... HUGE) amount of :

Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument

Is generated in the process.  Do you consider it "normal" or there is something more to be fixed ?

    E.


On Wed, Mar 21, 2012 at 10:17:10PM +0800, gs_gail wrote:
> there is a bug in libavcodec/h264_mp4toannexb_bsf.c
> when the ctx->length_size == 3 , the filter will report the error
> "Invalid argument"

patch applied with some modifications

Thanks

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list