[FFmpeg-user] RTP/MPEGTS streaming with FFMPEG
Alexander Dethof
alexander.m.dethof at campus.tu-berlin.de
Thu Oct 22 17:20:16 CEST 2015
Carl Eugen Hoyos wrote
> My guess is that you wanted to use:
> -c:v copy
I am not sure if I understood you correctly. Thus I tried the following two
commands:
$> ffmpeg -i sintel.hevc -c:v copy -f rtp_mpegts rtp://127.0.0.1:1234
ffmpeg version N-76159-gda43e9e Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --prefix=/home/alexanderdethof/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/alexanderdethof/ffmpeg_build/include
--extra-ldflags=-L/home/alexanderdethof/ffmpeg_build/lib
--bindir=/home/alexanderdethof/bin --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-nonfree
libavutil 55. 4.100 / 55. 4.100
libavcodec 57. 8.100 / 57. 8.100
libavformat 57. 10.101 / 57. 10.101
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 12.100 / 6. 12.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, hevc, from 'sintel.hevc':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080, 24 fps, 24 tbr,
1200k tbn, 24 tbc
Output #0, rtp_mpegts, to 'rtp://127.0.0.1:1234':
Metadata:
encoder : Lavf57.10.101
Stream #0:0: Video: hevc, yuv420p, 1920x1080, q=2-31, 24 fps, 24 tbr,
90k tbn, 24 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x35cc680] first pts value must be set
av_interleaved_write_frame(): Invalid data found when processing input
frame= 1 fps=0.0 q=-1.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A
video:55kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Conversion failed!
$> ffmpeg -i sintel.hevc -c:v copy rtp://127.0.0.1:1234
ffmpeg version N-76159-gda43e9e Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --prefix=/home/alexanderdethof/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/alexanderdethof/ffmpeg_build/include
--extra-ldflags=-L/home/alexanderdethof/ffmpeg_build/lib
--bindir=/home/alexanderdethof/bin --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-nonfree
libavutil 55. 4.100 / 55. 4.100
libavcodec 57. 8.100 / 57. 8.100
libavformat 57. 10.101 / 57. 10.101
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 12.100 / 6. 12.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, hevc, from 'sintel.hevc':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080, 24 fps, 24 tbr,
1200k tbn, 24 tbc
[NULL @ 0x33984e0] Unable to find a suitable output format for
'rtp://127.0.0.1:1234'
rtp://127.0.0.1:1234: Invalid argument
With the hevc bitstream filter switched on, I get the same outputs.
--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/RTP-MPEGTS-streaming-with-FFMPEG-tp4672782p4672805.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
More information about the ffmpeg-user
mailing list