Project

General

Profile

Need help output to .ts file instead of .mkv

Added by William Sun over 12 years ago

Hi all,

I just want to have the recordings to be output as .ts file instead of .mkv file because VLC player cannot recognize the subtitle format of the recordings from tvheadend. It is shown as "undf" for subtitles. Is output to ts file possible or is there anyway I can view the recordings with VLC?

By the way, I found my apartment's DVB frequency is different from the internal (I live in Hong Kong) and some channels are not found. (I used to watch TV with VLC directly by using w_scan to generate the .conf file to include all the channels) Is there any way I can either add the channels manually or let tvheadend to scan the channels manually?

Also, I found I cannot have the VLC plugin work properly on my MacBook Pro (Firefox 11 and Mac OS X 10.7.3). Anyone know how I can stream the TV from the browser or with VLC player directly?

Thank you very much.


Replies (69)

RE: Need help output to .ts file instead of .mkv - Added by Eric Valette over 12 years ago

Nathan McAullay wrote:

Ok, I'll go away and figure out about openelec audio (HDMI/AC3/passthrough). I have a limited (but growing) appreciation of the ALSA setup for HDMI, but I'll give it a shot.

I am running 1.95.4-PVR (ION) (I tried 1.95.5 but it had some other issues that made it not loungeroom friendly).

Is there a tool you recommend to extract 20 seconds from a 10+Gb file? I'm not sure if something like avidemux will "correct" some of the details you wish to see?

TS is made of 188 byte chunks. So a command like "dd if=yourfile of=trunkated bs=188 count=xxx" should do. Choose xxx to get about 20s...

RE: Need help output to .ts file instead of .mkv - Added by Nathan McAullay over 12 years ago

Hi there EricV, I have chopped the first 28 seconds of the recording, and attached it here. Not sure if that will work, but here goes.
I've setup the audio as per http://wiki.xbmc.org/index.php?title=HOW-TO:Configure_HDMI_audio_on_Gen_1_ION_%28linux%29
I have AC3 passthrough happening on this recording, as if I try to up the volume it says i cant as it is in passthrough.
The AC3 HD recordings still fail to skip with the passthrough active, so possibly still something not right in the file format?

Here is the log for playing back the full file, waiting about 5 seconds, then trying to skip ahead 30 seconds.

22:04:17 T:140468953392960 NOTICE: DVDPlayer: Opening: nfs://192.168.1.100/Multimedia/Movies/Parents/League Of Extraordinary Gentlemen.mpeg
22:04:17 T:140468953392960 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:04:17 T:140467473442560 NOTICE: Thread CDVDPlayer start, auto delete: false
22:04:17 T:140467473442560 NOTICE: Creating InputStream
22:04:18 T:140467473442560 NOTICE: Creating Demuxer
22:04:18 T:140467473442560 NOTICE: Opening video stream: 0 source: 256
22:04:18 T:140467473442560 NOTICE: Creating video codec with codec id: 2
22:04:18 T:140467473442560 NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU
22:04:18 T:140467473442560 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
22:04:18 T:140467473442560 NOTICE: VDPAU Decoder capabilities:
22:04:18 T:140467473442560 NOTICE: name level macbs width height
22:04:18 T:140467473442560 NOTICE: ------------------------------------
22:04:18 T:140467473442560 NOTICE: MPEG1 0 8192 2048 2048
22:04:18 T:140467473442560 NOTICE: MPEG2_SIMPLE 3 8192 2048 2048
22:04:18 T:140467473442560 NOTICE: MPEG2_MAIN 3 8192 2048 2048
22:04:18 T:140467473442560 NOTICE: H264_MAIN 41 8190 2032 2048
22:04:18 T:140467473442560 NOTICE: H264_HIGH 41 8190 2032 2048
22:04:18 T:140467473442560 NOTICE: VC1_SIMPLE 1 8190 2048 2048
22:04:18 T:140467473442560 NOTICE: VC1_MAIN 2 8190 2048 2048
22:04:18 T:140467473442560 NOTICE: VC1_ADVANCED 4 8190 2048 2048
22:04:18 T:140467473442560 NOTICE: ------------------------------------
22:04:18 T:140467473442560 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION
22:04:18 T:140467473442560 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_SHARPNESS
22:04:18 T:140467473442560 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
22:04:18 T:140467473442560 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
22:04:18 T:140467473442560 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
22:04:18 T:140467473442560 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-1/2 video (VDPAU acceleration)
22:04:18 T:140467455645440 NOTICE: Thread CVideoReferenceClock start, auto delete: false
22:04:18 T:140467473442560 NOTICE: Creating video thread
22:04:18 T:140467482846976 NOTICE: Thread CDVDPlayerVideo start, auto delete: false
22:04:18 T:140467482846976 NOTICE: running thread: video_thread
22:04:18 T:140467473442560 NOTICE: Opening audio stream: 1 source: 256
22:04:18 T:140467473442560 NOTICE: Finding audio codec for: 86019
22:04:18 T:140467473442560 NOTICE: Creating audio thread
22:04:18 T:140467447252736 NOTICE: Thread CDVDPlayerAudio start, auto delete: false
22:04:18 T:140467447252736 NOTICE: running thread: CDVDPlayerAudio::Process()
22:04:19 T:140467447252736 NOTICE: Creating audio device with codec id: 86019, channels: 2, sample rate: 48000, pass-through
22:04:19 T:140467482846976 NOTICE: (VDPAU) screenWidth:1440 vidWidth:1440 surfaceWidth:1440
22:04:19 T:140467482846976 NOTICE: (VDPAU) screenHeight:1080 vidHeight:1080 surfaceHeight:1080
22:04:19 T:140467429455616 NOTICE: Thread Vdpau Output Thread start, auto delete: false
22:04:19 T:140467429455616 NOTICE: COutput::OnStartup: Output Thread created
22:04:19 T:140467429455616 NOTICE: VDPAU::COutput::CreateGlxContext - created context
22:04:19 T:140467429455616 NOTICE: VDPAU::COutput GL interop supported
22:04:19 T:140467429455616 NOTICE: VDPAU::COutput: vdpau gl interop initialized
22:04:19 T:140467421062912 NOTICE: Thread Vdpau Mixer Thread start, auto delete: false
22:04:19 T:140467421062912 NOTICE: CMixer::OnStartup: Output Thread created
22:04:19 T:140467421062912 NOTICE: (VDPAU) Creating the video mixer
22:04:19 T:140467429455616 NOTICE: VDPAU::COutput::InitBufferPool - Output Surface created
22:04:19 T:140467429455616 NOTICE: Previous line repeats 8 times.
22:04:19 T:140467429455616 NOTICE: VDPAU::COutput registered output surfaces
22:04:19 T:140467482846976 NOTICE: fps: 25.000000, pwidth: 1440, pheight: 1080, dwidth: 1440, dheight: 808
22:04:19 T:140467482846976 NOTICE: Display resolution ADJUST : default: 1920x1080 @ 50.00Hz (14) (weight: 0.000)
22:04:19 T:140468953392960 NOTICE: CWinSystemX11::SetFullScreen - calling xrandr
22:04:19 T:140468953392960 NOTICE: CVDPAU::OnLostDevice event
22:04:19 T:140468953392960 NOTICE: (VDPAU) FiniVDPAUOutput
22:04:19 T:140467421062912 NOTICE: CMixer::OnExit: Output Thread terminated
22:04:19 T:140467429455616 NOTICE: VDPAU::COutput: vdpau gl interop finished
22:04:19 T:140467429455616 NOTICE: COutput::OnExit: Output Thread terminated
22:04:19 T:140467482846976 NOTICE: CVDPAU::Check waiting for display reset event
22:04:19 T:140468953392960 ERROR: GLX: Same window as before, refreshing context
22:04:20 T:140468953392960 NOTICE: Using GL_TEXTURE_2D
22:04:20 T:140468953392960 NOTICE: GL: Using VDPAU render method
22:04:20 T:140468953392960 NOTICE: GL: NPOT texture support detected
22:04:20 T:140468953392960 NOTICE: GL: Using GL_ARB_pixel_buffer_object
22:04:20 T:140468953392960 ERROR: GLX: Same window as before, refreshing context
22:04:20 T:140468953392960 NOTICE: CVDPAU::OnResetDevice event
22:04:20 T:140467482846976 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
22:04:20 T:140467482846976 NOTICE: (VDPAU) screenWidth:1440 vidWidth:1440 surfaceWidth:1440
22:04:20 T:140467482846976 NOTICE: (VDPAU) screenHeight:1080 vidHeight:1080 surfaceHeight:1080
22:04:20 T:140467429455616 NOTICE: Thread Vdpau Output Thread start, auto delete: false
22:04:20 T:140467429455616 NOTICE: COutput::OnStartup: Output Thread created
22:04:20 T:140467429455616 NOTICE: VDPAU::COutput::CreateGlxContext - created context
22:04:20 T:140467429455616 NOTICE: VDPAU::COutput GL interop supported
22:04:20 T:140467429455616 NOTICE: VDPAU::COutput: vdpau gl interop initialized
22:04:20 T:140467421062912 NOTICE: Thread Vdpau Mixer Thread start, auto delete: false
22:04:20 T:140467421062912 NOTICE: CMixer::OnStartup: Output Thread created
22:04:20 T:140467421062912 NOTICE: (VDPAU) Creating the video mixer
22:04:20 T:140467429455616 NOTICE: VDPAU::COutput::InitBufferPool - Output Surface created
22:04:20 T:140467429455616 NOTICE: Previous line repeats 8 times.
22:04:20 T:140467429455616 NOTICE: VDPAU::COutput registered output surfaces
22:04:20 T:140467482846976 NOTICE: -------- drop output
22:04:25 T:140467482846976 NOTICE: Previous line repeats 25 times.
22:04:25 T:140467482846976 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
22:04:25 T:140467447252736 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
22:04:25 T:140467473442560 NOTICE: CDVDPlayer::OnExit()
22:04:25 T:140467473442560 NOTICE: DVDPlayer: eof, waiting for queues to empty
22:04:25 T:140467473442560 NOTICE: DVDPlayer: closing audio stream
22:04:25 T:140467473442560 NOTICE: Closing audio stream
22:04:25 T:140467473442560 NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
22:04:25 T:140467473442560 NOTICE: Waiting for audio thread to exit
22:04:25 T:140467447252736 NOTICE: thread end: CDVDPlayerAudio::OnExit()
22:04:25 T:140467473442560 NOTICE: Closing audio device
22:04:25 T:140467473442560 NOTICE: Deleting audio codec
22:04:25 T:140467473442560 NOTICE: DVDPlayer: closing video stream
22:04:25 T:140467473442560 NOTICE: Closing video stream
22:04:25 T:140467473442560 NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
22:04:25 T:140467473442560 NOTICE: waiting for video thread to exit
22:04:25 T:140467482846976 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
22:04:25 T:140467482846976 NOTICE: thread end: video_thread
22:04:25 T:140467473442560 NOTICE: deleting video codec
22:04:25 T:140467473442560 NOTICE: CVDPAU::Release pre-cleanup
22:04:25 T:140467473442560 NOTICE: CDVDPlayer::OnExit() deleting demuxer
22:04:25 T:140467473442560 NOTICE: CDVDPlayer::OnExit() deleting input stream
22:04:26 T:140468953392960 NOTICE: CWinSystemX11::SetFullScreen - calling xrandr
22:04:26 T:140468953392960 NOTICE: (VDPAU) Close
22:04:26 T:140468953392960 NOTICE: (VDPAU) FiniVDPAUOutput
22:04:26 T:140467421062912 NOTICE: CMixer::OnExit: Output Thread terminated
22:04:26 T:140467429455616 NOTICE: VDPAU::COutput: vdpau gl interop finished
22:04:26 T:140467429455616 NOTICE: COutput::OnExit: Output Thread terminated
22:04:26 T:140468953392960 ERROR: GLX: Same window as before, refreshing context
22:04:26 T:140467429455616 NOTICE: Thread Background Loader start, auto delete: false
22:04:27 T:140468953392960 ERROR: GLX: Same window as before, refreshing context
22:04:27 T:140468953392960 NOTICE: CDVDPlayer::CloseFile()
22:04:27 T:140468953392960 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:04:27 T:140468953392960 NOTICE: DVDPlayer: waiting for threads to exit
22:04:27 T:140468953392960 NOTICE: DVDPlayer: finished waiting

Cheers, Nathan

RE: Need help output to .ts file instead of .mkv - Added by Eric Valette over 12 years ago

Nathan McAullay wrote:

Hi there EricV, I have chopped the first 28 seconds of the recording, and attached it here. Not sure if that will work, but here goes.
I've setup the audio as per http://wiki.xbmc.org/index.php?title=HOW-TO:Configure_HDMI_audio_on_Gen_1_ION_%28linux%29

tsinfo shown indeed a problem with audio:

tsinfo League-Test.ts
Reading from League-Test.ts
Scanning 1000 TS packets

Packet 1 is PAT
Program list:
Program 1 -> PID 0fff (4095)

Packet 2 is PMT with PID 0fff (4095)
Program 1, version 0, PCR PID 0082 (130)
Program streams:
PID 0202 ( 514) -> Stream type 02 ( 2) H.262/13818-2 video (MPEG-2) or 11172-2 constrained video
PID 02a0 ( 672) -> Stream type 81 (129) User private
ES info (9 bytes): 0a 04 65 6e 67 00 6a 01 00
Languages: eng
DVB AC-3 (1 byte): 00

Found 2 PAT packets and 1 PMT packet in 1000 TS packets

So its a problem in the muxer/demuxer. Can you try a mkv recording of the same source, it should also lack audio. It this happens, this is not a ts recording problem but an audio stream extraction pb in the muxer/demuxer that is not specific to TS. I bet a raw dump of the stream with the about the same duration would help then.

RE: Need help output to .ts file instead of .mkv - Added by Nathan McAullay over 12 years ago

Hi EricV, I have chopped out a start of hte MKV from the same source, it is attached. I used the same command, so hopefully the BS=188 is still valid.

I'll record a raw one next if that helps.

Cheers Nathan

RE: Need help output to .ts file instead of .mkv - Added by Eric Valette over 12 years ago

Nathan McAullay wrote:

Hi EricV, I have chopped out a start of hte MKV from the same source, it is attached. I used the same command, so hopefully the BS=188 is still valid.

I'll record a raw one next if that helps.

Cheers Nathan

Unfortunately, the structure of mkv is totally different, but you did cut past the complete header, so even if the file is not totally correct I can play it, with sound using XBMC or mplayer2. It is advertized as 4.1 in XBMC

Codec ID : A_AC3
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 5 channels
Channel positions : Front: L C R, Side: L R

So I dunno why it does not work with your setup.

RE: Need help output to .ts file instead of .mkv - Added by Nathan McAullay over 12 years ago

Hi EricV, I'm not sure i understand where this has lead us to?
The ts recording of the HD AC3 source has structural issues
The mkv recording of the same source looks ok?

MKV
Playing ok on all channels (liveTV, recordings)
Seeking ok on all recordings (once completed)
Seeking NOT ok on recordings in progress (aka timeshift) - it takes 15 seconds to do a 30 second advance

TS
Playing ok on all channels (liveTV, recordings)
Seeking ok on all completed recordings APART from one channel (channel one)
Seeking ok on recordings in progress APART from one channel (channel one)

The TS option is working great apart from the one channel that does AC3. This is bascially a HD sport channel.

Any ideas?

Cheers Nathan

RE: Need help output to .ts file instead of .mkv - Added by Eric Valette over 12 years ago

Nathan McAullay wrote:

Hi EricV, I'm not sure i understand where this has lead us to?
The ts recording of the HD AC3 source has structural issues
The mkv recording of the same source looks ok?

No. In fact If I can play the ts and have sound, probably the ts structure is also OK. Anyway a failure in the identification of stream in ts would lead to failure in the mkv.

MKV cannot be used on recording in progress in theory. TS is better suited for that, except that TS for seeking in bad by design as you should record the location of iframe to do the seeking like vdr does.

The TS option is working great apart from the one channel that does AC3. This is bascially a HD sport channel.
Any ideas?

No.

I though you had no sound at all and that it was not only when doing seeking.

RE: Need help output to .ts file instead of .mkv - Added by Nathan McAullay over 12 years ago

Ah, sorry for the confusion... I have sound fine on both MKV and TS. I have confimed that audio wirks with and without passthrough on TS.

The trouble is that
1) The MKV cant seek very well on a recording in progress (15 seconds to seek 30 seconds ahead), and
2) The TS playback will fail when i seek on a recording from one specific source (Channel one, AC3 HD)

The playback (video and audio) is fine on the TS, and it seeks great on all other srouces.
It just crashes out of playback when you skip ahead on Channel One with AC3 and HD.

Cheers,
Nathan

RE: Need help output to .ts file instead of .mkv - Added by Eric Valette over 12 years ago

Nathan McAullay wrote:

Ah, sorry for the confusion... I have sound fine on both MKV and TS. I have confimed that audio wirks with and without passthrough on TS.

The trouble is that
1) The MKV cant seek very well on a recording in progress (15 seconds to seek 30 seconds ahead), and

The mkv header usually contains some information that is missing until recording is finished... That's why using mkv for streaming is a bad idea...

2) The TS playback will fail when i seek on a recording from one specific source (Channel one, AC3 HD)

The playback (video and audio) is fine on the TS, and it seeks great on all other srouces.
It just crashes out of playback when you skip ahead on Channel One with AC3 and HD.

Its probably a bug in the player. Because if you watch while recording is not finished, I bet you are not using the htsp protocol but mount a share in the NAS and play from there?

And BTW ffmpeg ts is not the best one.

RE: Need help output to .ts file instead of .mkv - Added by Nathan McAullay over 12 years ago

I get the same skipping/seeking playback issue in XBMC whether I view through PVR recordings (over htsp) or using NFS to a NAS.

Here are the logs from a htsp playback and also a NFS direct file payback. Same crash

This is the log when I play a problematic recording using the "recording" PVR part in XBMC

22:35:20 T:3016988416 NOTICE: DVDPlayer: Opening: http://xxxxx:[email protected]:9981/dvrfile/124
22:35:20 T:3016988416 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:35:20 T:2843880256 NOTICE: Thread CDVDPlayer start, auto delete: false
22:35:20 T:2843880256 NOTICE: Creating InputStream
22:35:20 T:2814774080 NOTICE: Thread CFileCache start, auto delete: false
22:35:20 T:2843880256 NOTICE: Creating Demuxer
22:35:21 T:2843880256 NOTICE: Opening video stream: 0 source: 256
22:35:21 T:2843880256 NOTICE: Creating video codec with codec id: 2
22:35:21 T:2843880256 NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU
22:35:21 T:2843880256 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
22:35:21 T:2843880256 NOTICE: VDPAU Decoder capabilities:
22:35:21 T:2843880256 NOTICE: name level macbs width height
22:35:21 T:2843880256 NOTICE: ------------------------------------
22:35:21 T:2843880256 NOTICE: MPEG1 0 8192 2048 2048
22:35:21 T:2843880256 NOTICE: MPEG2_SIMPLE 3 8192 2048 2048
22:35:21 T:2843880256 NOTICE: MPEG2_MAIN 3 8192 2048 2048
22:35:21 T:2843880256 NOTICE: H264_MAIN 41 8192 2048 2048
22:35:21 T:2843880256 NOTICE: H264_HIGH 41 8192 2048 2048
22:35:21 T:2843880256 NOTICE: VC1_SIMPLE 1 8190 2048 2048
22:35:21 T:2843880256 NOTICE: VC1_MAIN 2 8190 2048 2048
22:35:21 T:2843880256 NOTICE: VC1_ADVANCED 4 8190 2048 2048
22:35:21 T:2843880256 NOTICE: MPEG4_PART2_ASP 5 8192 2048 2048
22:35:21 T:2843880256 NOTICE: ------------------------------------
22:35:21 T:2843880256 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION
22:35:21 T:2843880256 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_SHARPNESS
22:35:21 T:2843880256 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
22:35:21 T:2843880256 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
22:35:21 T:2843880256 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
22:35:21 T:2843880256 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1
22:35:21 T:2843880256 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-1/2 video (VDPAU acceleration)
22:35:21 T:2793405248 NOTICE: Thread CVideoReferenceClock start, auto delete: false
22:35:21 T:2843880256 NOTICE: Creating video thread
22:35:21 T:2754173760 NOTICE: Thread CDVDPlayerVideo start, auto delete: false
22:35:21 T:2754173760 NOTICE: running thread: video_thread
22:35:21 T:2843880256 NOTICE: Opening audio stream: 1 source: 256
22:35:21 T:2843880256 NOTICE: Finding audio codec for: 86019
22:35:21 T:2843880256 NOTICE: Creating audio thread
22:35:21 T:2824211264 NOTICE: Thread CDVDPlayerAudio start, auto delete: false
22:35:21 T:2824211264 NOTICE: running thread: CDVDPlayerAudio::Process()
22:35:21 T:2824211264 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
22:35:21 T:2824211264 NOTICE: Creating audio device with codec id: 86019, channels: 5, sample rate: 48000, no pass-through
22:35:21 T:2754173760 NOTICE: (VDPAU) screenWidth:1440 vidWidth:1440 surfaceWidth:1440
22:35:21 T:2754173760 NOTICE: (VDPAU) screenHeight:1080 vidHeight:1080 surfaceHeight:1080
22:35:21 T:2762566464 NOTICE: Thread Vdpau Output Thread start, auto delete: false
22:35:21 T:2762566464 NOTICE: COutput::OnStartup: Output Thread created
22:35:21 T:2762566464 NOTICE: VDPAU::COutput::CreateGlxContext - created context
22:35:21 T:2762566464 NOTICE: VDPAU::COutput GL interop supported
22:35:21 T:2762566464 NOTICE: VDPAU::COutput: vdpau gl interop initialized
22:35:21 T:2719562560 NOTICE: Thread Vdpau Mixer Thread start, auto delete: false
22:35:21 T:2719562560 NOTICE: CMixer::OnStartup: Output Thread created
22:35:21 T:2719562560 NOTICE: (VDPAU) Creating the video mixer
22:35:21 T:2762566464 NOTICE: VDPAU::COutput::InitBufferPool - Output Surface created
22:35:21 T:2762566464 NOTICE: Previous line repeats 8 times.
22:35:21 T:2762566464 NOTICE: VDPAU::COutput registered output surfaces
22:35:21 T:2754173760 NOTICE: fps: 25.000000, pwidth: 1440, pheight: 1080, dwidth: 1440, dheight: 808
22:35:21 T:2754173760 NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (12)
22:35:21 T:3016988416 NOTICE: Using GL_TEXTURE_2D
22:35:21 T:3016988416 NOTICE: GL: Using VDPAU render method
22:35:21 T:3016988416 NOTICE: GL: NPOT texture support detected
22:35:21 T:3016988416 NOTICE: GL: Using GL_ARB_pixel_buffer_object
22:35:22 T:2754173760 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
22:35:35 T:3016988416 WARNING: Previous line repeats 4 times.
22:35:35 T:3016988416 NOTICE: ----------- no buffer, out: 0, current: 0, display: 4
22:35:35 T:2824211264 NOTICE: Previous line repeats 4 times.
22:35:35 T:2824211264 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
22:35:35 T:2843880256 NOTICE: CDVDPlayer::OnExit()
22:35:35 T:2843880256 NOTICE: DVDPlayer: eof, waiting for queues to empty
22:35:35 T:2843880256 NOTICE: DVDPlayer: closing audio stream
22:35:35 T:2843880256 NOTICE: Closing audio stream
22:35:35 T:2843880256 NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
22:35:35 T:2824211264 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
22:35:35 T:2843880256 NOTICE: Waiting for audio thread to exit
22:35:35 T:2824211264 NOTICE: thread end: CDVDPlayerAudio::OnExit()
22:35:35 T:2843880256 NOTICE: Closing audio device
22:35:35 T:2843880256 NOTICE: Deleting audio codec
22:35:35 T:2843880256 NOTICE: DVDPlayer: closing video stream
22:35:35 T:2843880256 NOTICE: Closing video stream
22:35:35 T:2843880256 NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
22:35:35 T:2843880256 NOTICE: waiting for video thread to exit
22:35:35 T:2754173760 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
22:35:35 T:2754173760 NOTICE: thread end: video_thread
22:35:35 T:2843880256 NOTICE: deleting video codec
22:35:35 T:2843880256 NOTICE: CVDPAU::Release pre-cleanup
22:35:35 T:2843880256 NOTICE: CDVDPlayer::OnExit() deleting demuxer
22:35:35 T:2843880256 NOTICE: CDVDPlayer::OnExit() deleting input stream
22:35:35 T:3016988416 NOTICE: ----------- no buffer, out: 0, current: 0, display: 4
22:35:36 T:3016988416 NOTICE: CDVDPlayer::CloseFile()
22:35:36 T:3016988416 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:35:36 T:3016988416 NOTICE: DVDPlayer: waiting for threads to exit
22:35:36 T:3016988416 NOTICE: DVDPlayer: finished waiting
22:35:36 T:3016988416 NOTICE: (VDPAU) Close
22:35:36 T:3016988416 NOTICE: (VDPAU) FiniVDPAUOutput
22:35:36 T:2719562560 NOTICE: CMixer::OnExit: Output Thread terminated
22:35:36 T:2762566464 NOTICE: VDPAU::COutput: vdpau gl interop finished
22:35:36 T:2762566464 NOTICE: COutput::OnExit: Output Thread terminated

This is the log when I play the same recording over NFS from a NAS

22:35:56 T:3016988416 NOTICE: DVDPlayer: Opening: nfs://192.168.1.100/Multimedia/Recordings/MotoGP/MotoGP.2012-07-16.mpeg
22:35:56 T:3016988416 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:35:56 T:2824211264 NOTICE: Thread CDVDPlayer start, auto delete: false
22:35:56 T:2824211264 NOTICE: Creating InputStream
22:35:56 T:2824211264 NOTICE: Creating Demuxer
22:35:56 T:2824211264 NOTICE: Opening video stream: 0 source: 256
22:35:56 T:2824211264 NOTICE: Creating video codec with codec id: 2
22:35:56 T:2824211264 NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU
22:35:56 T:2824211264 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
22:35:56 T:2824211264 NOTICE: VDPAU Decoder capabilities:
22:35:56 T:2824211264 NOTICE: name level macbs width height
22:35:56 T:2824211264 NOTICE: ------------------------------------
22:35:56 T:2824211264 NOTICE: MPEG1 0 8192 2048 2048
22:35:56 T:2824211264 NOTICE: MPEG2_SIMPLE 3 8192 2048 2048
22:35:56 T:2824211264 NOTICE: MPEG2_MAIN 3 8192 2048 2048
22:35:56 T:2824211264 NOTICE: H264_MAIN 41 8192 2048 2048
22:35:56 T:2824211264 NOTICE: H264_HIGH 41 8192 2048 2048
22:35:56 T:2824211264 NOTICE: VC1_SIMPLE 1 8190 2048 2048
22:35:56 T:2824211264 NOTICE: VC1_MAIN 2 8190 2048 2048
22:35:56 T:2824211264 NOTICE: VC1_ADVANCED 4 8190 2048 2048
22:35:56 T:2824211264 NOTICE: MPEG4_PART2_ASP 5 8192 2048 2048
22:35:56 T:2824211264 NOTICE: ------------------------------------
22:35:56 T:2824211264 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION
22:35:56 T:2824211264 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_SHARPNESS
22:35:56 T:2824211264 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
22:35:56 T:2824211264 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
22:35:56 T:2824211264 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
22:35:56 T:2824211264 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1
22:35:56 T:2824211264 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-1/2 video (VDPAU acceleration)
22:35:56 T:2762566464 NOTICE: Thread CVideoReferenceClock start, auto delete: false
22:35:56 T:2824211264 NOTICE: Creating video thread
22:35:56 T:2719562560 NOTICE: Thread CDVDPlayerVideo start, auto delete: false
22:35:56 T:2719562560 NOTICE: running thread: video_thread
22:35:56 T:2824211264 NOTICE: Opening audio stream: 1 source: 256
22:35:56 T:2824211264 NOTICE: Finding audio codec for: 86019
22:35:56 T:2824211264 NOTICE: Creating audio thread
22:35:56 T:2843880256 NOTICE: Thread CDVDPlayerAudio start, auto delete: false
22:35:56 T:2843880256 NOTICE: running thread: CDVDPlayerAudio::Process()
22:35:57 T:2843880256 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
22:35:57 T:2843880256 NOTICE: Creating audio device with codec id: 86019, channels: 5, sample rate: 48000, no pass-through
22:35:57 T:2719562560 NOTICE: (VDPAU) screenWidth:1440 vidWidth:1440 surfaceWidth:1440
22:35:57 T:2719562560 NOTICE: (VDPAU) screenHeight:1080 vidHeight:1080 surfaceHeight:1080
22:35:57 T:2785012544 NOTICE: Thread Vdpau Output Thread start, auto delete: false
22:35:57 T:2785012544 NOTICE: COutput::OnStartup: Output Thread created
22:35:57 T:2785012544 NOTICE: VDPAU::COutput::CreateGlxContext - created context
22:35:57 T:2785012544 NOTICE: VDPAU::COutput GL interop supported
22:35:57 T:2785012544 NOTICE: VDPAU::COutput: vdpau gl interop initialized
22:35:57 T:2754173760 NOTICE: Thread Vdpau Mixer Thread start, auto delete: false
22:35:57 T:2754173760 NOTICE: CMixer::OnStartup: Output Thread created
22:35:57 T:2754173760 NOTICE: (VDPAU) Creating the video mixer
22:35:57 T:2785012544 NOTICE: VDPAU::COutput::InitBufferPool - Output Surface created
22:35:57 T:2785012544 NOTICE: Previous line repeats 8 times.
22:35:57 T:2785012544 NOTICE: VDPAU::COutput registered output surfaces
22:35:57 T:2719562560 NOTICE: fps: 25.000000, pwidth: 1440, pheight: 1080, dwidth: 1440, dheight: 808
22:35:57 T:2719562560 NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (12)
22:35:57 T:3016988416 NOTICE: Using GL_TEXTURE_2D
22:35:57 T:3016988416 NOTICE: GL: Using VDPAU render method
22:35:57 T:3016988416 NOTICE: GL: NPOT texture support detected
22:35:57 T:3016988416 NOTICE: GL: Using GL_ARB_pixel_buffer_object
22:35:57 T:2719562560 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
22:36:11 T:2843880256 WARNING: Previous line repeats 3 times.
22:36:11 T:2843880256 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
22:36:11 T:2843880256 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
22:36:11 T:3016988416 NOTICE: ----------- no buffer, out: 1, current: 1, display: 0
22:36:11 T:2843880256 ERROR: GetDelay - snd_pcm_delay, alsa error: 32 - Broken pipe
22:36:11 T:2824211264 NOTICE: CDVDPlayer::OnExit()
22:36:11 T:2824211264 NOTICE: DVDPlayer: eof, waiting for queues to empty
22:36:11 T:2824211264 NOTICE: DVDPlayer: closing audio stream
22:36:11 T:2824211264 NOTICE: Closing audio stream
22:36:11 T:2824211264 NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
22:36:11 T:3016988416 NOTICE: ----------
no buffer, out: 1, current: 1, display: 0
22:36:11 T:2843880256 NOTICE: Previous line repeats 1 times.
22:36:11 T:2843880256 NOTICE: thread end: CDVDPlayerAudio::OnExit()
22:36:11 T:2824211264 NOTICE: Waiting for audio thread to exit
22:36:11 T:2824211264 NOTICE: Closing audio device
22:36:11 T:2824211264 NOTICE: Deleting audio codec
22:36:11 T:2824211264 NOTICE: DVDPlayer: closing video stream
22:36:11 T:2824211264 NOTICE: Closing video stream
22:36:11 T:2824211264 NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
22:36:11 T:2824211264 NOTICE: waiting for video thread to exit
22:36:11 T:2719562560 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
22:36:11 T:2719562560 NOTICE: thread end: video_thread
22:36:11 T:2824211264 NOTICE: deleting video codec
22:36:11 T:2824211264 NOTICE: CVDPAU::Release pre-cleanup
22:36:11 T:2824211264 NOTICE: CDVDPlayer::OnExit() deleting demuxer
22:36:11 T:2824211264 NOTICE: CDVDPlayer::OnExit() deleting input stream
22:36:11 T:3016988416 NOTICE: ----------- no buffer, out: 1, current: 1, display: 0
22:36:11 T:2824211264 NOTICE: Thread Background Loader start, auto delete: false
22:36:11 T:3016988416 NOTICE: CDVDPlayer::CloseFile()
22:36:11 T:3016988416 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:36:11 T:3016988416 NOTICE: DVDPlayer: waiting for threads to exit
22:36:11 T:3016988416 NOTICE: DVDPlayer: finished waiting
22:36:11 T:3016988416 NOTICE: (VDPAU) Close
22:36:11 T:3016988416 NOTICE: (VDPAU) FiniVDPAUOutput
22:36:11 T:2754173760 NOTICE: CMixer::OnExit: Output Thread terminated
22:36:11 T:2785012544 NOTICE: VDPAU::COutput: vdpau gl interop finished
22:36:11 T:2785012544 NOTICE: COutput::OnExit: Output Thread terminated

RE: Need help output to .ts file instead of .mkv - Added by Henk Schoneveld over 12 years ago

Hi Eric,

Installed your version fine, I do get a .ts stream but I'm missing the teletext streams in it. I do get the DBV Subtitles, but not the S_TEXT/UTF8 ones which I do get when I choose mkv as container. Any idea how to get this going ?

Henk

RE: Need help output to .ts file instead of .mkv - Added by Eric Valette over 12 years ago

Henk Schoneveld wrote:

Hi Eric,

Installed your version fine, I do get a .ts stream but I'm missing the teletext streams in it. I do get the DBV Subtitles, but not the S_TEXT/UTF8 ones which I do get when I choose mkv as container. Any idea how to get this going ?

Henk

The fact it is in mkv means the ts demuxer is able to recognize it before remuxing to mkv. So I'm not sure its not the player that does not recognize it or if it is the PAT/PMT re-generation that is bogus. What player do you use? What version? any sample. Tsinfo/mediainfo output on the ts file?

RE: Need help output to .ts file instead of .mkv - Added by Henk Schoneveld over 12 years ago

I did 2 recordings from BBC, mediainfo tells me teletext isn't in the .ts file, while the mkv does have it.
To be complete the mkv does have DVB_SUB and S_TEXT/UTF8, while the ts only has DVB_SUB. For me I have to extract the S_TEXT/UTF8 to make it an .srt which I later use for iPod/iPhone/iPad/AppleTV compatible m4v files by using MP4Box.
ts files has:
Text
Count : 200
Count of stream of this kind : 1
Kind of stream : Text
Kind of stream : Text
Stream identifier : 0
ID : 5404
ID : 5404 (0x151C)
Menu ID : 1
Menu ID : 1 (0x1)
Format : DVB Subtitle
Commercial name : DVB Subtitle
Codec ID : 6
Codec : DVB Subtitle
Codec : DVB Subtitle
Duration : 727782
Duration : 12mn 7s
Duration : 12mn 7s 782ms
Duration : 12mn 7s
Duration : 00:12:07.782
Delay : 44158845.867
Delay : 12h 15mn
Delay : 12h 15mn 58s 846ms
Delay : 12h 15mn
Delay : 12:15:58.846
Delay, origin : Container
Delay, origin : Container
Delay relative to video : 6580
Delay relative to video : 6s 580ms
Delay relative to video : 6s 580ms
Delay relative to video : 6s 580ms
Delay relative to video : 00:00:06.580
Video0 delay : 6580
Video0 delay : 6s 580ms
Video0 delay : 6s 580ms
Video0 delay : 6s 580ms
Video0 delay : 00:00:06.580
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
subtitle_stream_id : 0 / 0
page_id : 1 / 1
region_id : 0 / 1
region_horizontal_address : 0
region_vertical_address : 906
region_width : 1920 / 1920
region_height : 58 / 58
region_depth : 4 / 4

while mkv has
Text #1
Count : 192
Count of stream of this kind : 2
Kind of stream : Text
Kind of stream : Text
Stream identifier : 0
Stream identifier : 1
StreamOrder : 2
ID : 3
ID : 3
Unique ID : 3
Format : S_DVBSUB
Commercial name : S_DVBSUB
Codec ID : S_DVBSUB
Codec : S_DVBSUB
Codec : S_DVBSUB
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Default : Yes
Default : Yes
Forced : No
Forced : No

Text #2
Count : 192
Count of stream of this kind : 2
Kind of stream : Text
Kind of stream : Text
Stream identifier : 1
Stream identifier : 2
StreamOrder : 4
ID : 5
ID : 5
Unique ID : 5
Format : UTF-8
Commercial name : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Codec : S_TEXT/UTF8
Codec : UTF-8
Codec/Info : UTF-8 Plain Text
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Default : Yes
Default : Yes
Forced : No
Forced : No

Regards Henk

RE: Need help output to .ts file instead of .mkv - Added by Eric Valette over 12 years ago

Henk Schoneveld wrote:

I did 2 recordings from BBC, mediainfo tells me teletext isn't in the .ts file, while the mkv does have it.
To be complete the mkv does have DVB_SUB and S_TEXT/UTF8, while the ts only has DVB_SUB. For me I have to extract the S_TEXT/UTF8 to make it an .srt which I later use for iPod/iPhone/iPad/AppleTV compatible m4v files by using MP4Box.

If mediainfo use the PAT/PMT description (which I would bet) and the description is wrong, that could easily explain the behavior even if the teletext packets are in the TS. I guess there has been other bugs on this subject but I do not remember the conclusion.

Well I found https://github.com/andoma/tvheadend/pull/44. You can test it and see if it solves your problem.

RE: Need help output to .ts file instead of .mkv - Added by Henk Schoneveld over 12 years ago

That link gives me a 404 error this is not the page you are looking for. What am I supposed to do with that link ?
Further if I choose to save as a RAW transport stream which I suppose would give me everything on the transponder results in only video and audio stream all subtitle formats are missing.

Henk

RE: Need help output to .ts file instead of .mkv - Added by Eric Valette over 12 years ago

Henk Schoneveld wrote:

That link gives me a 404 error this is not the page you are looking for.

You could have figured by yourself that the gt at the end of the link was bogus...

RE: Need help output to .ts file instead of .mkv - Added by Henk Schoneveld about 12 years ago

Hi Eric,

It's me again. You gave the link which I did/don't understand what to do with. At https://github.com/andoma/ I do find 'the git sources' of tvheadend but I have no idea what you mean with "pull/44". Should I do a git clone ? Would you be so kind to tell me what to do to solve my problem ?

Kind regards

Henk Schoneveld

PS. I'm a user not a programmer/developer. I know how to configure and compile but that's how far I'm able to get.

RE: Need help output to .ts file instead of .mkv - Added by Eric Valette about 12 years ago

Henk Schoneveld wrote:

Hi Eric,

It's me again. You gave the link which I did/don't understand what to do with. At https://github.com/andoma/ I do find 'the git sources' of tvheadend but I have no idea what you mean with "pull/44". Should I do a git clone ? Would you be so kind to tell me what to do to solve my problem ?

Recent change in the tvheadend github location makes the link point nowhere now I'm affraid. However, I integrated the patch myself in my tree and as I'm not able to test requested someone to test it was correctly working. So just update your copy of my git tree and tell me if it works.

RE: Need help output to .ts file instead of .mkv - Added by robivin virobi over 10 years ago

RoboSK - wrote:

.ts - all OK
.mkv - subtitle is "showed" (strange, EricV branch ?) but with bad chars...

how to record or stream subtitle pids?

i can record only audio and video pid in TS.

TNX

(51-69/69)