08-31-2019, 09:01 PM
running the following will record the video and allow for playback.
gst-launch-1.0 -v dvbsrc frequency=177000000 delsys=atsc modulation=8vsb pids=49:52:1 ! filesink location="test.ts"
Attempting to run that same command will produce a test.ts file with no data.
gst-launch-1.0 -v dvbsrc frequency=177000000 delsys=atsc modulation=8vsb pids=49:52:1 ! decodebin ! queue ! mpph264enc ! filesink location="test.ts"
The following is the output from running `mplayer -vo null -ao null -frames 0 -identify test.ts` against a recorded sample using the first command listed.
MPlayer 1.3.0 (Debian), built with gcc-8 © 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing test.ts.
libavformat version 58.20.100 (external)
Mismatching header version 58.12.100
TS file format detected.
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
VIDEO MPEG2(pid=49) AUDIO A52(pid=52) NO SUBS (yet)! PROGRAM N. 0
ID_VIDEO_ID=49
ID_AUDIO_ID=52
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 15000.0 kbps (1875.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.35.100 (external)
Mismatching header version 58.18.100
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
ID_VIDEO_CODEC=ffmpeg2
Load subtitles in ./
ID_FILENAME=test.ts
ID_DEMUXER=mpegts
ID_VIDEO_FORMAT=0x10000002
ID_VIDEO_BITRATE=15000000
ID_VIDEO_WIDTH=1920
ID_VIDEO_HEIGHT=1080
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_START_TIME=24005.77
ID_LENGTH=14.87
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 384.0 kbit/12.50% (ratio: 48000->384000)
ID_AUDIO_BITRATE=384000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [null] 48000Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=ffac3
Starting playback...
Exiting... (End of file)
ID_EXIT=EOF
gst-launch-1.0 -v dvbsrc frequency=177000000 delsys=atsc modulation=8vsb pids=49:52:1 ! filesink location="test.ts"
Attempting to run that same command will produce a test.ts file with no data.
gst-launch-1.0 -v dvbsrc frequency=177000000 delsys=atsc modulation=8vsb pids=49:52:1 ! decodebin ! queue ! mpph264enc ! filesink location="test.ts"
The following is the output from running `mplayer -vo null -ao null -frames 0 -identify test.ts` against a recorded sample using the first command listed.
MPlayer 1.3.0 (Debian), built with gcc-8 © 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing test.ts.
libavformat version 58.20.100 (external)
Mismatching header version 58.12.100
TS file format detected.
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
VIDEO MPEG2(pid=49) AUDIO A52(pid=52) NO SUBS (yet)! PROGRAM N. 0
ID_VIDEO_ID=49
ID_AUDIO_ID=52
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
PROGRAM_ID=1 (0x01), PMT_PID: 48(0x30)
PROGRAM_ID=2 (0x02), PMT_PID: 64(0x40)
PROGRAM_ID=3 (0x03), PMT_PID: 80(0x50)
PROGRAM_ID=4 (0x04), PMT_PID: 96(0x60)
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 15000.0 kbps (1875.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.35.100 (external)
Mismatching header version 58.18.100
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
ID_VIDEO_CODEC=ffmpeg2
Load subtitles in ./
ID_FILENAME=test.ts
ID_DEMUXER=mpegts
ID_VIDEO_FORMAT=0x10000002
ID_VIDEO_BITRATE=15000000
ID_VIDEO_WIDTH=1920
ID_VIDEO_HEIGHT=1080
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_START_TIME=24005.77
ID_LENGTH=14.87
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 384.0 kbit/12.50% (ratio: 48000->384000)
ID_AUDIO_BITRATE=384000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [null] 48000Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=ffac3
Starting playback...
Exiting... (End of file)
ID_EXIT=EOF