Questions tagged [mpeg-2]

Questions related to MPEG-2, an ISO/IEC standard for video/audio compression and systems. MPEG-2 standard was successor to MPEG-1 standards. MPEG-2 is at the core of most digital television and DVD formats.

MPEG-2 is a standard for "the generic coding of moving pictures and associated audio information". It describes a combination of lossy video compression and lossy audio data compression methods which permit storage and transmission of movies using currently available storage media and transmission bandwidth.

MPEG-2 is widely used as the format of digital television signals that are broadcast by terrestrial (over-the-air), cable, and direct broadcast satellite TV systems. It also specifies the format of movies and other programs that are distributed on DVD and similar discs.

MPEG-2 systems specification, encompasses MPEG transport stream (used in ATSC/DVB/ISDB/SBTVD broadcasting, and HDV recording on tape) and MPEG program stream (used as container format in file-based media such as hard disk drives, optical discs and flash memory)

Sources:

  1. http://en.wikipedia.org/wiki/MPEG-2
82 questions
28
votes
4 answers

Fetching the dimensions of a H264Video stream

I am trying to fetch the dimensions (Height and width) from a H264 stream. I know that to fetch the same details from a mpeg2 stream you have to look at the four bytes following the sequence header start code ((01B3)). Will the same logic work for…
DRT
  • 281
  • 1
  • 4
  • 4
8
votes
6 answers

Access MPEG transport packets via .NET

I have to deal with MPEG 2 transport packets using .NET. What is the best way to do that? Currently I'm considering using OpenCV to accomplish that, but not sure yet if it's possible.
Anton Moiseev
  • 2,766
  • 4
  • 21
  • 30
7
votes
3 answers

Generate PCR from PTS

I am trying to create PCR from PTS as follows. S64 nPcr = nPts * 9 / 100; pTsBuf[4] = 7 + nStuffyingBytes; pTsBuf[5] = 0x10; /* flags */ pTsBuf[6] = ( nPcr >> 25 )&0xff; pTsBuf[7] = ( nPcr >> 17…
Ven
  • 247
  • 1
  • 5
  • 17
6
votes
0 answers

What ffmpeg settings to ensure 0 duplicate frames and 0 dropped frames when capturing to mpeg-2 program stream using ffmpeg/avfoundation on Mac?

I'm trying to capture to a DVD compliant mpeg-2 file (ffmpeg: -target ntsc-dvd) from the HDMI output of a camcorder into a Magewell HDMI to USB 3.0 box into my Late 2012 15" non-retina MacBook Pro (quad core 2.3, 16gb ram, ssd), using…
aerodavo
  • 61
  • 1
  • 1
  • 5
4
votes
1 answer

calculate MPEG frame length (ms)

I'm looking all over the Internet for information in regards to calculating the frame length and it's been hard... I was able to successfully calculate the frame length in ms of MPEG-4, AAC, using: frameLengthMs = mSamplingRate/1000 This works…
Jona
  • 12,642
  • 13
  • 82
  • 124
3
votes
2 answers

FFMPEG conversion to MXF

I have to wrap an MPEG2 video file in an MXF container and convert the audio in the process. I have the MXF wrapping working but it won't convert the audio stream (which needs to be 16bit, 48kHz Linear PCM). Here's what I'm trying: ffmpeg -i…
MFB
  • 16,000
  • 24
  • 66
  • 111
3
votes
2 answers

best way to build graph for MPEG2 transport stream

on windows 7 the windows media player supports .ts files very well, in the sense that windows media player knows how to handle such files without any additional codec packs. however if I try to use graphedit to "render" a .ts file, it complains it…
3
votes
1 answer

How to read the MPEG2VideoDescriptor in an MXF file?

Here follows the hex dump of the MPEG2VideoDescriptor: 06 0e 2b 34 02 53 01 01 0d 01 01 01 01 01 51 00 83 00 00 f3 3c 0a 00 10 a3 be 51 b2 00 05 e7 11 bf 82 21 97 f7 a0 14 ed 30 06 00 04 00 00 00 02 30 01 00 08 00 00 ea 60 00 00 03 e9 80 00 00…
Malik Urac
  • 132
  • 7
3
votes
1 answer

Streaming from dvblast to HLS using gstreamer

I have dvblast that is successfully multicasting an MPEG2 stream originating from DVB-T onto a network, and I am trying to pick up this multicast MPEG2 stream and convert it to HLS on a Raspberry Pi 2 using gstreamer v1.0 as follows: gst-launch-1.0…
Graham Leggett
  • 565
  • 4
  • 13
3
votes
4 answers

How to determine video dimensions of an mpeg-2 program stream file

How do I programmatically find out the width and height of the video in an mpeg-2 transport program stream file? Edit: I am using C++, but am happy for examples in any language. Edit: Corrected question - it was probably program streams I was…
hamishmcn
  • 7,333
  • 10
  • 38
  • 45
3
votes
1 answer

How do I set libavcodec to use 4:2:2 chroma when encoding MPEG-2 4:2:2 profile?

I have a project using libavcodec (ffmpeg). I'm using it to encode MPEG-2 video at 4:2:2 Profile, Main Level. I have the pixel format PIX_FMT_YUV422P selected in the AVCodecContext, however the video output I'm getting has all the colours wrong, and…
Mike Pollitt
  • 1,247
  • 12
  • 11
3
votes
1 answer

Android MediaCodec usage for decoding MPEG2 video stream

I am trying to use MediaCodec API to decode and display an MPEG2 encoded stream. I use MediaExtractor to extract the stream from an MPEG Transport Stream (TS). I notice that configure() of the decoder is failing on all devices that I have tried -…
b_s_anoop
  • 63
  • 1
  • 5
3
votes
1 answer

Mpeg2 PES demultiplexor: how to extract PES packets with H.264 Video Stream?

I detect new PES packet in PES demultiplexor searching packet_start_code_prefix (0x000001). When it occures then I can read PES_packet_length and so I can extract the current PES packet from byte stream. But if it is a H.264 video stream then…
Harry
  • 95
  • 1
  • 7
2
votes
1 answer

Xbox 360 XNA HLS Streaming

I am interested in creating a simple HLS Viewer for the Xbox 360 that works kind of like SilverLive. I have read about as much documentation oh HLS that I can find and am not sure where to continue. I feel like I could probably write the code to…
CuddleBunny
  • 1,771
  • 1
  • 22
  • 43
2
votes
1 answer

Problem with MpegTs file while playing with VLC

I have created mpegts file which contains h264 elementary stream. I am facing a pixelation problem with my encoded file when I try to play it using VLC. Can anyone help me in finding what is going wrong with my mepgts encoder. I have uploaded the…
Ven
  • 247
  • 1
  • 5
  • 17
1
2 3 4 5 6