Questions tagged [mpeg2-ts]

Questions related to creation, playing and program interaction with MPEG 2 Transport stream, a standard format for transmission and storage of audio, video, and Program and System Information Protocol data. It is used in broadcast systems such as DVB, ATSC and IPTV. Transport Stream is specified in MPEG-2 Part 1, Systems (formally known as ISO/IEC standard 13818-1 or ITU-T Rec. H.222.0)

MPEG 2 Transport stream is a standard format for transmission and storage of audio, video, and Program and System Information Protocol data. It is used in broadcast systems such as DVB, ATSC and IPTV.

Transport Stream is specified in MPEG-2 Part 1, Systems (formally known as ISO/IEC standard 13818-1 or ITU-T Rec. H.222.0). It defines how MPEG audio, video and program information is multiplexed and synchronized.

More information at http://en.wikipedia.org/wiki/MPEG_transport_stream

280 questions
0
votes
1 answer

gstreamer mpeg2enc has no timestamp

I was trying to change the frame size of mpeg2 transport stream video using gstreamer pipeline. The procedure was: Fist, separated the video portion and audio portion using tsdemax, then, went through mpeg2dec, capsfilter (change the frame size),…
ghu
  • 11
  • 3
0
votes
1 answer

check CRC32 in transport stream PAT section - C#

The question is how to check / regenerate crc32 PAT MPEG-TS table. I have an array of bytes (Byte[] TS). All offset read normally. CRC32 I can not get. All algorithms do not give the correct result.
0
votes
0 answers

How to stream binary files using MPEG-2 TS

I am working on a software system to stream videos over MPEG-2 TS using FFMpeg. I have got an additional requirement of streaming pdf files. Can some one point me to the relevant link / ideas? Simply putting pdf contents as TS payload did not work…
James
  • 26
  • 3
0
votes
2 answers

Extract information from a Transport Stream in Java

I need to extract some information from a Transport Stream like PID, PAT, PMT, etc. I found an example code to get the PID: pid = ((buf[1] << 8) | (buf[2] & 0xff)) & 0x1fff; But I could not understand the reason to get the buf[1] and shift 8 to the…
Leandro P
  • 213
  • 4
  • 12
0
votes
0 answers

How to find PCR PID in m2ts file?

I need to know PCR PID in my m2ts file. I think I need to perform the following steps: Find TS packet with PID 0. This is a PAT. Parse the PAT to get the PID of the PMT. Parse the PMT to get the PID of the PCR. But I have some trouble with…
Ivan Kolesnikov
  • 1,787
  • 1
  • 29
  • 45
0
votes
1 answer

Not able to play Mpeg2-ts file in Internet Explorer

Window media player cannot able to play "ts file format" now and i m sure which was working earlier and pretty sure there was no change in the code. can anyone guess what will be the root cause?
0
votes
1 answer

Overlay image in ts file

I'm using the FFmpeg library in Android. I'm able to generate a .ts file which i can play later using VLC player. But now i want my app to overlay a .png image over the whole video. The .ts file i want to overlay an image in is called "out.ts". The…
good-engineer
  • 250
  • 2
  • 8
0
votes
1 answer

C++ - MPEG TS - Parsing header - PID is messed up - Big endian 32 bits mask

I think I'm having a tunnel vision here so I need your help. I am trying to parse a MPEG Transport-stream file and I'm stuck on the Header, on the wiki you will see that some 32bits BE MASK are provided in order to extract the data from the 4 bytes…
Maresh
  • 4,644
  • 25
  • 30
0
votes
1 answer

FFMPEG TS Null packet transmission

I am trying to transmit TS packets using Ethernet. I am using C++ and ffmpeg libraries. At the moment I can send a hevc encoded ts stream via Ethernet successfully. But the output data rate varies. I want to maintain a constant(approximately) data…
user2389323
  • 769
  • 2
  • 10
  • 22
0
votes
1 answer

ffmpeg udp live stream publish to rtmp

I need to make this chain: JVC HM650--UDP-->localhost-->ffmpeg(copy stream)-->nginx-rtmp On input I have UDP stream from camera (udp://@:35501) and I need it to publish to rtmp server (nginx with rtmp module). Apart everything works - I can play…
Pilskalns
  • 350
  • 1
  • 2
  • 15
0
votes
0 answers

how do i Play mpeg2 ts buffer by buffer?

i am processing mpeg2(TS) data online as output of TBS card DVB Receiver,i have TS buffers and wanna play them buffer by buffer ,all of player components C++ source code that i checked ,have needed a string as a file name (playing a file),my problem…
mrezvanee
  • 21
  • 5
0
votes
1 answer

Calculate PES_packet_data_byte count when PES_packet_length == 0

In MPEG-TS stream, in PES bitstream PES_packet_length can be 0 then PES packet size is determined by payload_unit_start_indicator==1 of TS packet (First TS packet of next PES packet), is this right ? Now when total size of PES packet is known…
Alex
  • 2,837
  • 5
  • 25
  • 27
0
votes
1 answer

H.264/MP2T over HTTP ExoPlayer

I am using this code for playing a simple MPEG-TS using HLS on ExoPlayer: LoadControl loadControl = new DefaultLoadControl(new BufferPool(BUFFER_SEGMENT_SIZE)); String userAgent = getUserAgent(mContext); Log.d(TAG, userAgent); HlsMasterPlaylist…
juanpe_f
  • 11
  • 4
0
votes
2 answers

How to receive UDP packets in Python without dropping

I am writing simple software to parse MPEG-TS stream to check CC (cointinuity counter) to see if any packets were dropped. When I run my script against file it works flawlessly. But when using it on UDP stream it shows losses (which are not…
0
votes
1 answer

AES-128 for HLS. How is it applied exactly?

Question about AES-128 encryption method mentioned here. How exactly is this method applied over HLS media segments? Is it the MPEG-2 TS container that is encrypted (including TS/PES packet headers & PSI (!?) ) or elementary streams inside it,…
matt-pielat
  • 1,659
  • 3
  • 20
  • 33