Project

General

Profile

IPTV: No Video (just audio)

Added by Nick Rowe over 13 years ago

Hello-

I'm running an IPTV channel in my house. I've set it up using VLC. I setup the channel like this:

setup channel1 output #rtp{mux=ts,dst=239.255.1.1,port=5004,sdp=sap://,name="Channel 1"}

This works great using VLC. I can fire up a machine anywhere on the network and see that I am receiving an MPEG ts stream that's encoded with the a52 codec for audio (Stream 0) and mp4v codec for video (Stream 1).

I then bring this stream over to tvheadend with the Group of 239.255.1.1, the port 5004, and the interface eth1. When I click the play button through the web interface I get nothin'. But that didn't worry me too much, since it's working in VLC.

However I when I connect via XBMC I get audio but no video!

Here's my log:

Feb 27 00:19:26 htsp: 127.0.0.1: Welcomed client software: XBMC Media Center
Feb 27 00:19:26 htsp: 127.0.0.1 [ XBMC Media Center ]: Identified as user admin
Feb 27 00:19:26 htsp: 127.0.0.1 [ admin | XBMC Media Center ]: Privileges raised
Feb 27 00:19:26 subscription: "127.0.0.1 [ admin | XBMC Media Center ]" subscribing on "Channel 1", weight: 150, adapter: "eth1", network: "", mux: "239.255.1.1", provider: "", service: "", quality: 100

What am I missing? Why can't I see any video?

Thanks!
-Nick


Replies (4)

RE: IPTV: No Video (just audio) - Added by Nick Rowe over 13 years ago

Here's some of the XBMC log- I notice an error-

00:31:56 T:3054397312 M:223055872   DEBUG: SDLKeyboard: scancode: 36, sym: 13, unicode: 13, modifier: 0
00:31:56 T:3054397312 M:223055872   DEBUG: OnKey: 61453 pressed, action is Select
00:31:56 T:3054397312 M:223055872   DEBUG: new file set audiostream:0
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerCoreFactory::GetPlayers(pvr://channels/tv/all/1.pvr)
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/rtmp/mms/udp
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdfile
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
00:31:56 T:3054397312 M:223055872   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
00:31:56 T:3054397312 M:221913088  NOTICE: DVDPlayer: Opening: pvr://channels/tv/all/1.pvr
00:31:56 T:3054397312 M:221913088 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:31:56 T:2813963120 M:221913088   DEBUG: thread start, auto delete: 0
00:31:56 T:2813963120 M:221913088  NOTICE: Creating InputStream
00:31:56 T:2813963120 M:221913088   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPSession::Connect - connecting to '127.0.0.1', port '9982'
00:31:56 T:2813963120 M:221913088   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPSession::Connect - connected to server: [HTS Tvheadend], version: [2.12], proto: 5
00:31:56 T:2813963120 M:221913088   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPSession::ParseChannelUpdate - id:1, name:'Channel 1', icon:'(null)', event:0
00:31:56 T:2813963120 M:221872128   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::SubscriptionStart - id: 1, type: AC3, language: (null)
00:31:56 T:2813963120 M:221872128   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::SubscriptionStart - subscription started on adapter eth1, mux 239.255.1.1, network , provider , service
00:31:56 T:2813963120 M:221872128   DEBUG: Open - TV Channel has started on filename pvr://channels/tv/all/1.pvr
00:31:56 T:2813963120 M:221872128  NOTICE: Creating Demuxer
00:31:56 T:2813963120 M:221872128   DEBUG: CDVDDemuxPVRClient::RequestStreams(): added stream 0:1 with codec_id 86020
00:31:56 T:2813963120 M:221872128  NOTICE: Opening audio stream: 0 source: 256
00:31:56 T:2813963120 M:221872128  NOTICE: Finding audio codec for: 86020
00:31:56 T:2813963120 M:221872128   DEBUG: FactoryCodec - Audio: FFmpeg - Opening
00:31:56 T:2813963120 M:221872128   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avutil-50-i486-linux.so)
00:31:56 T:2813963120 M:221872128   DEBUG: Loading: /usr/lib/xbmc/system/players/dvdplayer/avutil-50-i486-linux.so
00:31:56 T:2813963120 M:221745152   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avcodec-52-i486-linux.so)
00:31:56 T:2813963120 M:221745152   DEBUG: Loading: /usr/lib/xbmc/system/players/dvdplayer/avcodec-52-i486-linux.so
00:31:56 T:2813963120 M:218050560   DEBUG: FactoryCodec - Audio: FFmpeg - Opened
00:31:56 T:2813963120 M:218050560  NOTICE: Creating audio thread
00:31:56 T:2825124720 M:218050560   DEBUG: thread start, auto delete: 0
00:31:56 T:2825124720 M:218050560  NOTICE: running thread: CDVDPlayerAudio::Process()
00:31:56 T:2813963120 M:218050560   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/1.pvr)
00:31:56 T:3054397312 M:218050560   DEBUG: ------ Window Init (DialogBusy.xml) ------
00:31:56 T:3054397312 M:218050560   DEBUG: Alloc resources: 0.01ms (0.01 ms skin load)
00:31:56 T:2813963120 M:218050560   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/1.pvr)
00:31:56 T:2813963120 M:218050560   DEBUG: CDVDPlayer::SetCaching - caching state 2
00:31:56 T:2813963120 M:218050560 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
00:31:56 T:2813963120 M:218050560   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
00:31:56 T:2825124720 M:218050560   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(24596731766.000000, 1)
00:31:56 T:2825124720 M:218050560  NOTICE: Creating audio device with codec id: 86020, channels: 6, sample rate: 48000, no pass-through
00:31:56 T:2825124720 M:218050560    INFO: AudioRendererFactory:  not a explicit device, trying to autodetect.
00:31:56 T:2825124720 M:218050560    INFO: CPCMRemap: Configured speaker layout: 2.0
00:31:56 T:2825124720 M:218050560    INFO: CPCMRemap: I channel map: FL,FR,CE,LFE,SL,SR
00:31:56 T:2825124720 M:218050560   DEBUG: CPCMRemap: Forcing side channel map to back channels
00:31:56 T:2825124720 M:218050560    INFO: CPCMRemap: O channel map: FL,FR
00:31:56 T:2825124720 M:218050560   DEBUG: CPCMRemap: Downmix normalization is disabled
00:31:56 T:2825124720 M:218050560   DEBUG: CPCMRemap: FL = FL(1.000000) CE(0.707107) LFE(0.707107) BL(1.000000)
00:31:56 T:2825124720 M:218050560   DEBUG: CPCMRemap: FR = FR(1.000000) CE(0.707107) LFE(0.707107) BR(1.000000)
00:31:56 T:2825124720 M:218050560   DEBUG: CPulseAudioDirectSound::CPulseAudioDirectSound - Requested channels changed from 6 to 2
00:31:56 T:2825124720 M:218050560   DEBUG: RemoveActiveDevice - Removing device 1
00:31:56 T:2825124720 M:218050560   DEBUG: CGUIAudioManager::DeInitialize
00:31:56 T:2813963120 M:218050560   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
00:31:56 T:2813963120 M:217849856   DEBUG: Previous line repeats 8 times.
00:31:56 T:2813963120 M:217849856   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/1.pvr)
00:31:56 T:2813963120 M:217849856   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
00:31:56 T:3012553584 M:217849856   DEBUG: Previous line repeats 1 times.
00:31:56 T:3012553584 M:217849856   ERROR: PVR: Tvheadend HTSP Client/127.0.0.1:9982 - Client returns bad error (-3) after SignalQuality
00:31:56 T:2813963120 M:217522176   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
00:31:56 T:2813963120 M:217784320   DEBUG: Previous line repeats 4 times.
00:31:56 T:2813963120 M:217784320   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/1.pvr)
00:31:56 T:2813963120 M:217784320   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
00:31:57 T:2813963120 M:218046464   DEBUG: Previous line repeats 7 times.
00:31:57 T:2813963120 M:218046464   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/1.pvr)
00:31:57 T:2813963120 M:218046464   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
00:31:57 T:2813963120 M:218230784   DEBUG: Previous line repeats 7 times.
00:31:57 T:2813963120 M:218230784   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/1.pvr)
00:31:57 T:2813963120 M:218734592   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
00:31:57 T:2813963120 M:218734592   DEBUG: Previous line repeats 1 times.
00:31:57 T:2813963120 M:218734592   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/1.pvr)
00:31:57 T:2813963120 M:218734592   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
00:31:57 T:2813963120 M:218607616   DEBUG: Previous line repeats 4 times.
00:31:57 T:2813963120 M:218607616   DEBUG: CGUIInfoManager::SetCurrentMovie(pvr://channels/tv/all/1.pvr)
00:31:57 T:2813963120 M:218607616   DEBUG: AddOnLog: xbmc.pvrclient/Tvheadend HTSP Client: cHTSPDemux::Read - Frame type
00:31:57 T:3012553584 M:218607616   DEBUG: Previous line repeats 1 times.
00:31:57 T:3012553584 M:218607616   ERROR: PVR: Tvheadend HTSP Client/127.0.0.1:9982 - Client returns bad error (-3) after SignalQuality

The error is on the last line. Could the signal quality be part of the problem?

Thanks,
Nick

RE: IPTV: No Video (just audio) - Added by Andreas Smas over 13 years ago

Nick Rowe wrote:

Hello-

I'm running an IPTV channel in my house. I've set it up using VLC. I setup the channel like this:

setup channel1 output #rtp{mux=ts,dst=239.255.1.1,port=5004,sdp=sap://,name="Channel 1"}

This works great using VLC. I can fire up a machine anywhere on the network and see that I am receiving an MPEG ts stream that's encoded with the a52 codec for audio (Stream 0) and mp4v codec for video (Stream 1).

I then bring this stream over to tvheadend with the Group of 239.255.1.1, the port 5004, and the interface eth1. When I click the play button through the web interface I get nothin'. But that didn't worry me too much, since it's working in VLC.

However I when I connect via XBMC I get audio but no video!

Here's my log:

[...]

What am I missing? Why can't I see any video?

Try to record a show and see what happens

Thanks!
-Nick

RE: IPTV: No Video (just audio) - Added by Nick Rowe over 13 years ago

Alright- when I record I see the following in the logs:

Feb 27 03:05:47 subscription: "DVR: Test" subscribing on "Channel 1", weight: 300, adapter: "eth1", network: "", mux: "239.255.1.1", provider: "", service: "", quality: 100
Feb 27 03:05:47 dvr: Test from adapter: "eth1", network: "", mux: "239.255.1.1", provider: "", service: "" 
Feb 27 03:05:47 dvr:  # type                 lang resolution       samplerate channels  
Feb 27 03:05:47 dvr:  1 AC3                                        48000      5.1        
Feb 27 03:07:00 subscription: "DVR: Test" unsubscribing from "Channel 1" 
Feb 27 03:07:00 dvr: Recording completed: "/home/hts/Test.mkv" 
Feb 27 03:07:00 dvr: "Test" on "Channel 1": End of program: OK

And the video only contains the audio- no video. So the problem exists between VLC and tvheadend. Why would VLC (the player) see both streams but tvheadend only the first one?

Are there requirements on the rtp stream? Does it have to be a certain set of codecs in a certain container? Maybe if I pre-prepared a video rather than letting VLC handle that at the time of streaming I could see different results?

Thank you very much for your help, I really appreciate it.

-Nick

-Nick

RE: IPTV: No Video (just audio) - Added by Nick Rowe over 13 years ago

I tried a few more videos and video sometimes works. But I've not found a combination of video and audio that works. Here's a video where the video works:

Format                           : MPEG-4
Format profile                   : Base Media
Codec ID                         : isom
File size                        : 70.1 MiB
Duration                         : 2mn 17s
Overall bit rate                 : 4 284 Kbps
Encoded date                     : UTC 2007-02-19 05:03:04
Tagged date                      : UTC 2007-02-19 05:03:04

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : Yes
Format settings, ReFrames        : 6 frames
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 2mn 17s
Bit rate mode                    : Variable
Bit rate                         : 4 214 Kbps
Maximum bit rate                 : 12.6 Mbps
Width                            : 1 280 pixels
Height                           : 544 pixels
Display aspect ratio             : 2.35:1
Frame rate mode                  : Constant
Frame rate                       : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.252
Stream size                      : 69.0 MiB (98%)
Writing library                  : x264 core 54 svn-620M
Encoding settings                : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x1:0x131 / me=umh / subme=6 / brdo=1 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=1 / nr=0 / decimate=1 / mbaff=0 / bframes=1 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=0 / bime=0 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=4214 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30
Encoded date                     : UTC 2007-02-19 05:03:04
Tagged date                      : UTC 2007-02-19 05:03:08

Audio
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format profile                   : HE-AAC / LC
Codec ID                         : 40
Duration                         : 2mn 17s
Bit rate mode                    : Variable
Bit rate                         : 64.1 Kbps
Maximum bit rate                 : 80.7 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz / 24.0 KHz
Compression mode                 : Lossy
Stream size                      : 1.05 MiB (1%)
Encoded date                     : UTC 2007-02-19 05:03:08
Tagged date                      : UTC 2007-02-19 05:03:08

and here's one where audio works but no video:

Format                           : AVI
Format/Info                      : Audio Video Interleave
Format profile                   : OpenDML
File size                        : 2.15 GiB
Duration                         : 2h 28mn
Overall bit rate                 : 2 081 Kbps
Writing application              : VirtualDubMod 1.5.10.2 (build 2540/release)
Writing library                  : VirtualDubMod build 2540/release

Video
ID                               : 0
Format                           : MPEG-4 Visual
Format profile                   : Advanced Simple@L5
Format settings, BVOP            : 1
Format settings, QPel            : No
Format settings, GMC             : No warppoints
Format settings, Matrix          : Default (MPEG)
Muxing mode                      : Packed bitstream
Codec ID                         : XVID
Codec ID/Hint                    : XviD
Duration                         : 2h 28mn
Bit rate                         : 1 606 Kbps
Width                            : 720 pixels
Height                           : 304 pixels
Display aspect ratio             : 2.35:1
Frame rate                       : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Compression mode                 : Lossy
Bits/(Pixel*Frame)               : 0.306
Stream size                      : 1.66 GiB (77%)
Writing library                  : XviD 1.2.1 (UTC 2008-12-04)

Audio
ID                               : 1
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : 2000
Duration                         : 2h 28mn
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Compression mode                 : Lossy
Stream size                      : 407 MiB (18%)
Alignment                        : Split accross interleaves

What are the requirements on audio and video codecs for a stream to be recognized as a valid IPTV stream?

    (1-4/4)