Questions tagged [transport-stream]

MPEG2 Transport Stream is a Audio/Video container format used to encapsulate a multimedia stream containing audio, video and other metadata. It is the commonly used Broadcast format.

MPEG transport stream (MPEG-TS, MTS or TS) is a standard format for transmission and storage of audio, video, and Program and System Information Protocol (PSIP) 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).

Transport stream specifies a container format encapsulating packetized elementary streams, with error correction and stream synchronization features for maintaining transmission integrity when the signal is degraded.

Transport streams differ from the similarly named program streams in several important ways: program streams are designed for reasonably reliable media, such as discs (like DVDs), while transport streams designed for less reliable transmission, namely terrestrial or satellite broadcast. Further, a transport stream may carry multiple programs.

Source: MPEG Transport Streams - Wikipedia

89 questions
24
votes
2 answers

How to use MediaCodec without MediaExtractor for H264

I need to use MediaCodec without the MediaExtractor and I'm reading the file using a FileInputStream. Currently it is not working, it is showing a greenish scrambled image on the screen. This is the whole source code: FileInputStream in = new…
thiagolr
  • 6,909
  • 6
  • 44
  • 64
20
votes
2 answers

How do I alter my FFMPEG command to make my HTTP Live Streams more efficient?

I want to reduce the muxing overhead when creating .ts files using FFMPEG. Im using FFMPEG to create a series of transport stream files used for HTTP live streaming. ./ffmpeg -i myInputFile.ismv \ -vcodec copy \ -acodec copy \ …
Robert
  • 37,670
  • 37
  • 171
  • 213
16
votes
5 answers

Subtitles for AVPlayer/MPMoviePlayerController

I am using m3u8 video format for streaming the video and now I need to display subtitles for the same. I searched in Apple Documentation and found that I can achieve this by using the closedCaptionDisplayEnabled property of AVPlayer. I am…
15
votes
3 answers

FFmpeg - Extracting video and audio from transport stream file (.ts)

I wish to extract the audio and video of a certain program in a transport stream file (.ts) by specifying its PID without losing quality and using the same codec in the resulting file (the output file is a MPEG). Is that even possible with FFmpeg?…
Passepartout
  • 442
  • 1
  • 5
  • 16
10
votes
3 answers

FFMPEG - convert video without losing resolution

I am using ffmpeg to convert mp4 video from youtube. The video is HD 1080. When I convert it to mpeg2video, the video loses its sharpness, regardless of the -s 1920x1080 parameter. How can I convert the video without losing picture sharpness? The…
Srh
  • 109
  • 1
  • 1
  • 3
9
votes
2 answers

Can't write packet with unknown timestamp av_interleaved_write_frame(): Invalid argument

I'm trying to convert a .ts file with this output to mkv: ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers built with Apple clang version 12.0.0 (clang-1200.0.32.27) configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_4…
jagvetinte
  • 93
  • 1
  • 4
8
votes
1 answer

Using OpenSSL to decrypt a .ts file

Everything is in the same directory. M3u8…
user3541092
  • 267
  • 1
  • 3
  • 12
8
votes
1 answer

HLS MPEG-TS metadata stream using FFMPEG

I want to create mpeg ts segment for HLS streaming. The ts should contain metadata as a separate stream as shown below- **Stream #0:0**[0x102]: Data: timed_id3 (ID3 / 0x20334449) **Stream #0:1**[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B),…
6
votes
2 answers

How does the demux differenctiate between the 0x47 that is the sync byte and 0x47 as the data?

To the demux the input is a byte stream. Everything is just zero's and one's. Now how does the parser differentiate between 0x47 in the data and the 0x47 that is the sync byte of the Transport stream header? For example, if the data that the demux…
user4089193
4
votes
2 answers

HTTP Live Streaming MPEG TS segment

I'm using FFMPEG and a free segmenter (Carson Mcdonald's) to produce my ts segments which i later save to a web server and play with Quicktime by playing the .m3u8 If I have segments 1,2,3,4 and another stream with segments 1,2,3,4 and would like to…
user1069624
  • 561
  • 2
  • 9
  • 24
4
votes
1 answer

detect key-frame in TS with H264 codec

Is there an easy not horrifyingly complex way to detect key-frame in an H264 video stream wrapped in a Transport Stream? Also, if extra previous packets needed for the decoding of the key-frame is there a way to find those as well?
Karoly Horvath
  • 94,607
  • 11
  • 117
  • 176
4
votes
2 answers

Detecting I-frame data in an MPEG-4 transport stream

I am testing a project. I need to break the payload data(making zero some bytes) of the MPEG-4 ts packets by a percentage coming from the user. I am doing it by reading the ".ts" file packet by packet(188 bytes). But the video is changing to really…
tadar
  • 41
  • 1
  • 3
4
votes
2 answers

opening .ts files in C and reading bit by bit the contents of the stream file

Can a mpeg 2 transport stream ( .ts ) file be opened in binary mode in C ?? How to read the contents of the file bit by bit for analyzing the various tables in the transport stream?
user2400394
  • 91
  • 1
  • 6
3
votes
0 answers

H.265/HEVC support for HLS in iOS 9?

Currently, HLS (HTTP Live Streaming) requires the content to be video H.264 and/or AAC/MP3/sound. Is there support for H.265/HEVC for HLS in iOS 9? If not, is there any way to bypass this limitation and use TS files that are H.265 encoded?
Joe
  • 2,386
  • 1
  • 22
  • 33
3
votes
1 answer

Multiplexing multiple single video MPEG-TS into MPTS using ffmpeg

I tried to find a solution for multiplexing different inputs (ts) into one MPTS, so that can be used as input for DVB-T modulator. Basically, what I want is to select certain TS provided by satellite receiver, repack them into one MPTS and send to…
Aleks
  • 78
  • 1
  • 8
1
2 3 4 5 6