Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

RTSP MPEG4 to RTSP h.264

Discussions about problems encountered using ffmpeg.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

RTSP MPEG4 to RTSP h.264

Postby martyn1986 » Thu Aug 24, 2017 6:01 pm

Hi guys,

I'm trying to configure ffmpeg to convert an rtsp MPEG4 stream to a .h264 stream with the follow command in windows, can anyone shed any light where I'm going wrong please?

Code: Select all
ffmpeg -re -i rtsp://192.168.2.207/VideoInput/1/mpeg4/1 -pix_fmt yuv420p -c:v libx264 -preset ultrafast -profile baseline -crf 18 -f rtsp udp://192.168.0.2:8000


however when I run the command I get the following error:

Code: Select all
C:\Users\Martyn>ffmpeg -re -i rtsp://192.168.2.207/VideoInput/1/mpeg4/1 -pix_fmt
 yuv420p -c:v libx264 -preset ultrafast -profile baseline -crf 18 -f rtsp udp://
192.168.0.2:8000
ffmpeg version N-87027-gd826951 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.1.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --e
nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --
enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-li
bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug -
-enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li
bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolam
e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable
-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 74.100 / 55. 74.100
  libavcodec     57.103.100 / 57.103.100
  libavformat    57. 76.100 / 57. 76.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6.100.100 /  6.100.100
  libswscale      4.  7.102 /  4.  7.102
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
[udp @ 00000000003fdf40] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[udp @ 000000000036b1a0] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
Input #0, rtsp, from 'rtsp://192.168.2.207/VideoInput/1/mpeg4/1':
  Metadata:
    title           : MC153906N015_Camera_1
  Duration: N/A, start: 0.040000, bitrate: N/A
    Stream #0:0: Video: mpeg4 (Simple Profile), yuv420p, 1920x1080 [SAR 1:1 DAR
16:9], 25 fps, 25 tbr, 90k tbn, 1k tbc
Please use -profile:a or -profile:v, -profile is ambiguous
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0000000002ae5fa0] using SAR=1/1
[libx264 @ 0000000002ae5fa0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX
[libx264 @ 0000000002ae5fa0] profile Constrained Baseline, level 4.0
[libx264 @ 0000000002ae5fa0] 264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2017 - http:/ww.videolan.org/x264.html - options: cabac=0 r
ef=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0
 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 ch
roma_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=0 keyint=250
 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=18.0 qcomp=0.60 qp
min=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
martyn1986
 
Posts: 1
Joined: Thu Aug 24, 2017 5:47 pm

Return to ffmpeg

Who is online

Users browsing this forum: Bing [Bot] and 2 guests