Skip to content

Instantly share code, notes, and snippets.

@kylejohnson
Created February 3, 2015 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylejohnson/845d4c218844e20f0fd1 to your computer and use it in GitHub Desktop.
Save kylejohnson/845d4c218844e20f0fd1 to your computer and use it in GitHub Desktop.
[kjohnson@kyle-arch ~]$ ffmpeg -i 'rtsp://kjohnson:sosafe@192.168.11.20/axis-media/media.amp?streamProfile=ZM' -ab 64k -vcodec copy -vb 448k -s 704x480 -f mpeg1video tcp://127.0.0.1:5678?listen
ffmpeg version 2.5.3 Copyright (c) 2000-2015 the FFmpeg developers
built on Jan 10 2015 23:24:25 with gcc 4.9.2 (GCC) 20141224 (prerelease)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, rtsp, from 'rtsp://kjohnson:sosafe@192.168.11.20/axis-media/media.amp?streamProfile=ZM':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.033356, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuvj420p(pc, smpte170m/smpte170m/bt709), 704x480 [SAR 10:11 DAR 4:3], 29.97 tbr, 90k tbn, 180k tbc
Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (tcp://127.0.0.1:5678?listen) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Output #0, mpeg1video, to 'tcp://127.0.0.1:5678?listen':
Metadata:
title : Media Presentation
encoder : Lavf56.15.102
Stream #0:0: Video: h264, yuvj420p, 704x480 [SAR 10:11 DAR 4:3], q=2-31, 90k tbn, 90k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[NULL @ 0x7fdb4dd67ec0] RTP: missed 2747 packets
av_interleaved_write_frame(): Connection reset by peer
frame= 30 fps=0.0 q=-1.0 Lsize= 2146kB time=00:00:02.10 bitrate=8364.3kbits/s
video:2146kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
Conversion failed!
[kjohnson@kyle-arch ~]$
[kjohnson@kyle-arch ~]$ ffplay tcp://127.0.0.1:5678
ffplay version 2.5.3 Copyright (c) 2003-2015 the FFmpeg developers
built on Jan 10 2015 23:24:25 with gcc 4.9.2 (GCC) 20141224 (prerelease)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
tcp://127.0.0.1:5678: Invalid data found when processing input0/0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment