transport-stream

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

江枫思渺然 提交于 2019-12-03 11:41:22
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? If so, how can I do it? So far, I've come to this command: ffmpeg -i tsfile.ts -vcodec copy -acodec copy -q:v 1 output.mpg Edit : Note that the file output.mpg is created. The file contains the video but the audio isn't attached (no sound). Also, I am unable to specify the program PID to extract. Edit 2 : Here's the output of ffmpeg -i tsfile.ts

ITuner::put_TuneRequest() call ignored

独自空忆成欢 提交于 2019-12-01 11:07:23
I have a DirectShow graph with a "Microsoft DVBT Network Provider", "AVerMedia BDA DVBT Tuner", "AVerMEdia BDA Digital Capture", "Sample Grabber" and "NULL Renderer". These filters are connected. Beside that I also have an "MPEG-2 Demultiplexer" and a "BDA MPEG2 Transport Information Filter", but these two filters are NOT connected! It seems like they have to be here in order to run the graph. When I start the graph, I'm receiving TS data, but no matter what I do, I'm not able to put the tuning request. I can only capture the MUX data from the last tuned frequency with some other application

ITuner::put_TuneRequest() call ignored

我的梦境 提交于 2019-12-01 09:32:23
问题 I have a DirectShow graph with a "Microsoft DVBT Network Provider", "AVerMedia BDA DVBT Tuner", "AVerMEdia BDA Digital Capture", "Sample Grabber" and "NULL Renderer". These filters are connected. Beside that I also have an "MPEG-2 Demultiplexer" and a "BDA MPEG2 Transport Information Filter", but these two filters are NOT connected! It seems like they have to be here in order to run the graph. When I start the graph, I'm receiving TS data, but no matter what I do, I'm not able to put the

Subtitles for AVPlayer/MPMoviePlayerController

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 17:20:16
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 interested to know what should be the format of subtitles? Will the .srt format do? Also can I achieve the same using MPMoviePlayerController ? Any help is appreciated. Update 10/30/2018: It's worth checking this answer by an Apple engineer (Thanks to @allenlini for pointing it out ). He suggests a solution involving AVAssetResourceLoaderDelegate . I haven't

How to use MediaCodec without MediaExtractor for H264

ぃ、小莉子 提交于 2019-11-27 03:06:27
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 FileInputStream("/sdcard/sample.ts"); String mimeType = "video/avc"; MediaCodec decoder = MediaCodec.createDecoderByType(mimeType); MediaFormat format = MediaFormat.createVideoFormat(mimeType, 1920, 1080); byte[] header_sps = { 0, 0, 0, 1, 103, 100, 0, 40, -84, 52, -59, 1, -32, 17, 31, 120, 11, 80, 16, 16, 31, 0, 0, 3, 3, -23, 0, 0, -22, 96, -108 }; byte[

How to use MediaCodec without MediaExtractor for H264

倾然丶 夕夏残阳落幕 提交于 2019-11-26 12:38:00
问题 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 FileInputStream(\"/sdcard/sample.ts\"); String mimeType = \"video/avc\"; MediaCodec decoder = MediaCodec.createDecoderByType(mimeType); MediaFormat format = MediaFormat.createVideoFormat(mimeType, 1920, 1080); byte[] header_sps = { 0, 0, 0, 1, 103, 100,