[FFmpeg-user] UDP streaming to Pico QAM modulator

Steve Kowald skowald at gvtc.com
Wed Jul 8 01:01:00 CEST 2015


Hi Carl,

> How do their streams look like with "ffmpeg -i"?

As a follow up I also ran ffprobe on the stream created by FFMpeg:

ffmpeg -i "c:\Superman vs Batman.mpg" -vcodec mpeg2video -pix_fmt yuv420p -vb 15000000 -minrate 15000000 -maxrate 15000000 -acodec mp2 -ac 2 -ab 224k -ar 44100 -f mpegts udp://192.168.1.3:10005?pkt_size=1316

This is the result from ffprob:

C:\Downloads\FFMPeg\ffmpeg-20150630-git--win32-shared\bin>ffprobe -show_streams
-i udp://192.168.1.3:10005
ffprobe version N-73266-g4aa0de6 Copyright (c) 2007-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --ena
ble-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --e
nable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-
libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --ena
ble-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-
libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-lib
vo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-li
bwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --e
nable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 45.101 / 56. 45.101
  libavformat    56. 40.100 / 56. 40.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 19.100 /  5. 19.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
[mpeg2video @ 0281dce0] Invalid frame dimensions 0x0.
    Last message repeated 4 times
Input #0, mpegts, from 'udp://192.168.1.3:10005':
  Duration: N/A, start: 38.620822, bitrate: 15224 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 15000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn,
59.94 tbc
    Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s1
6p, 224 kb/s
[STREAM]
index=0
codec_name=mpeg2video
codec_long_name=MPEG-2 video
profile=Main
codec_type=video
codec_time_base=1001/60000
codec_tag_string=[2][0][0][0]
codec_tag=0x0002
width=1920
height=1080
coded_width=0
coded_height=0
has_b_frames=1
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=4
color_range=tv
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
timecode=00:00:37:13
refs=1
id=0x100
r_frame_rate=30000/1001
avg_frame_rate=30000/1001
time_base=1/90000
start_pts=3486357
start_time=38.737300
duration_ts=N/A
duration=N/A
bit_rate=15000000
max_bit_rate=15000000
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]
[STREAM]
index=1
codec_name=mp2
codec_long_name=MP2 (MPEG audio layer 2)
profile=unknown
codec_type=audio
codec_time_base=1/44100
codec_tag_string=[3][0][0][0]
codec_tag=0x0003
sample_fmt=s16p
sample_rate=44100
channels=2
channel_layout=stereo
bits_per_sample=0
id=0x101
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=3475874
start_time=38.620822
duration_ts=N/A
duration=N/A
bit_rate=224000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]

This is the result from ffprob from Lead Tools stream:

C:\Downloads\FFMPeg\ffmpeg-20150630-git--win32-shared\bin>ffprobe  -show_streams
  -i udp://192.168.1.3:10005
ffprobe version N-73266-g4aa0de6 Copyright (c) 2007-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --ena
ble-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --e
nable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-
libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --ena
ble-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-
libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-lib
vo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-li
bwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --e
nable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 45.101 / 56. 45.101
  libavformat    56. 40.100 / 56. 40.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 19.100 /  5. 19.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpegts, from 'udp://192.168.1.3:10005':
  Duration: N/A, start: 15.972289, bitrate: N/A
  Program 1
    Stream #0:0[0x80]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p
(tv), 1920x1080 [SAR 1:1 DAR 16:9], max. 14776 kb/s, 29.97 fps, 29.97 tbr, 90k t
bn, 59.94 tbc
    Stream #0:1[0x90]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16
p, 224 kb/s
[STREAM]
index=0
codec_name=mpeg2video
codec_long_name=MPEG-2 video
profile=Main
codec_type=video
codec_time_base=1001/60000
codec_tag_string=[2][0][0][0]
codec_tag=0x0002
width=1920
height=1080
coded_width=0
coded_height=0
has_b_frames=1
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=4
color_range=tv
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
timecode=00:00:15:13
refs=1
id=0x80
r_frame_rate=30000/1001
avg_frame_rate=30000/1001
time_base=1/90000
start_pts=1444398
start_time=16.048867
duration_ts=N/A
duration=N/A
bit_rate=N/A
max_bit_rate=14776000
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]
[STREAM]
index=1
codec_name=mp2
codec_long_name=MP2 (MPEG audio layer 2)
profile=unknown
codec_type=audio
codec_time_base=1/44100
codec_tag_string=[3][0][0][0]
codec_tag=0x0003
sample_fmt=s16p
sample_rate=44100
channels=2
channel_layout=stereo
bits_per_sample=0
id=0x90
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=1437506
start_time=15.972289
duration_ts=N/A
duration=N/A
bit_rate=224000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0



This is the result from fffprob:



More information about the ffmpeg-user mailing list