Part II - Digital TV API¶
Note
This API is also known as DVB API, although it is generic enough to support all digital TV standards.
Version 5.10
Table of Contents
- 1. Introduction
- 2. DVB Frontend API
- 2.1. Querying frontend information
- 2.2. Querying frontend status and statistics
- 2.3. DVB Frontend properties
- 2.4. Example: Setting digital TV frontend properties
- 2.4.1. struct dtv_stats
- 2.4.2. struct dtv_fe_stats
- 2.4.3. struct dtv_property
- 2.4.4. struct dtv_properties
- 2.4.5. Property types
- 2.4.6. Digital TV property parameters
- 2.4.6.1. DTV_UNDEFINED
- 2.4.6.2. DTV_TUNE
- 2.4.6.3. DTV_CLEAR
- 2.4.6.4. DTV_FREQUENCY
- 2.4.6.5. DTV_MODULATION
- 2.4.6.6. DTV_BANDWIDTH_HZ
- 2.4.6.7. DTV_INVERSION
- 2.4.6.8. DTV_DISEQC_MASTER
- 2.4.6.9. DTV_SYMBOL_RATE
- 2.4.6.10. DTV_INNER_FEC
- 2.4.6.11. DTV_VOLTAGE
- 2.4.6.12. DTV_TONE
- 2.4.6.13. DTV_PILOT
- 2.4.6.14. DTV_ROLLOFF
- 2.4.6.15. DTV_DISEQC_SLAVE_REPLY
- 2.4.6.16. DTV_FE_CAPABILITY_COUNT
- 2.4.6.17. DTV_FE_CAPABILITY
- 2.4.6.18. DTV_DELIVERY_SYSTEM
- 2.4.6.19. DTV_ISDBT_PARTIAL_RECEPTION
- 2.4.6.20. DTV_ISDBT_SOUND_BROADCASTING
- 2.4.6.21. DTV_ISDBT_SB_SUBCHANNEL_ID
- 2.4.6.22. DTV_ISDBT_SB_SEGMENT_IDX
- 2.4.6.23. DTV_ISDBT_SB_SEGMENT_COUNT
- 2.4.6.24. DTV-ISDBT-LAYER[A-C] parameters
- 2.4.6.24.1. DTV_ISDBT_LAYER_ENABLED
- 2.4.6.24.2. DTV_ISDBT_LAYER[A-C]_FEC
- 2.4.6.24.3. DTV_ISDBT_LAYER[A-C]_MODULATION
- 2.4.6.24.4. DTV_ISDBT_LAYER[A-C]_SEGMENT_COUNT
- 2.4.6.24.5. DTV_ISDBT_LAYER[A-C]_TIME_INTERLEAVING
- 2.4.6.24.6. DTV_ATSCMH_FIC_VER
- 2.4.6.24.7. DTV_ATSCMH_PARADE_ID
- 2.4.6.24.8. DTV_ATSCMH_NOG
- 2.4.6.24.9. DTV_ATSCMH_TNOG
- 2.4.6.24.10. DTV_ATSCMH_SGN
- 2.4.6.24.11. DTV_ATSCMH_PRC
- 2.4.6.24.12. DTV_ATSCMH_RS_FRAME_MODE
- 2.4.6.24.13. DTV_ATSCMH_RS_FRAME_ENSEMBLE
- 2.4.6.24.14. DTV_ATSCMH_RS_CODE_MODE_PRI
- 2.4.6.24.15. DTV_ATSCMH_RS_CODE_MODE_SEC
- 2.4.6.24.16. DTV_ATSCMH_SCCC_BLOCK_MODE
- 2.4.6.24.17. DTV_ATSCMH_SCCC_CODE_MODE_A
- 2.4.6.24.18. DTV_ATSCMH_SCCC_CODE_MODE_B
- 2.4.6.24.19. DTV_ATSCMH_SCCC_CODE_MODE_C
- 2.4.6.24.20. DTV_ATSCMH_SCCC_CODE_MODE_D
- 2.4.6.25. DTV_API_VERSION
- 2.4.6.26. DTV_CODE_RATE_HP
- 2.4.6.27. DTV_CODE_RATE_LP
- 2.4.6.28. DTV_GUARD_INTERVAL
- 2.4.6.29. DTV_TRANSMISSION_MODE
- 2.4.6.30. DTV_HIERARCHY
- 2.4.6.31. DTV_STREAM_ID
- 2.4.6.32. DTV_DVBT2_PLP_ID_LEGACY
- 2.4.6.33. DTV_ENUM_DELSYS
- 2.4.6.34. DTV_INTERLEAVING
- 2.4.6.35. DTV_LNA
- 2.4.7. Frontend statistics indicators
- 2.4.8. Properties used on terrestrial delivery systems
- 2.4.9. Properties used on cable delivery systems
- 2.4.10. Properties used on satellite delivery systems
- 2.5. Frontend Function Calls
- 2.5.1. DVB frontend open()
- 2.5.2. DVB frontend close()
- 2.5.3. ioctl FE_GET_INFO
- 2.5.4. ioctl FE_READ_STATUS
- 2.5.5. ioctl FE_SET_PROPERTY, FE_GET_PROPERTY
- 2.5.6. ioctl FE_DISEQC_RESET_OVERLOAD
- 2.5.7. ioctl FE_DISEQC_SEND_MASTER_CMD
- 2.5.8. ioctl FE_DISEQC_RECV_SLAVE_REPLY
- 2.5.9. ioctl FE_DISEQC_SEND_BURST
- 2.5.10. ioctl FE_SET_TONE
- 2.5.11. ioctl FE_SET_VOLTAGE
- 2.5.12. ioctl FE_ENABLE_HIGH_LNB_VOLTAGE
- 2.5.13. ioctl FE_SET_FRONTEND_TUNE_MODE
- 2.6. DVB Frontend legacy API (a. k. a. DVBv3)
- 3. DVB Demux Device
- 3.1. Demux Data Types
- 3.2. Demux Function Calls
- 3.2.1. DVB demux open()
- 3.2.2. DVB demux close()
- 3.2.3. DVB demux read()
- 3.2.4. DVB demux write()
- 3.2.5. DMX_START
- 3.2.6. DMX_STOP
- 3.2.7. DMX_SET_FILTER
- 3.2.8. DMX_SET_PES_FILTER
- 3.2.9. DMX_SET_BUFFER_SIZE
- 3.2.10. DMX_GET_EVENT
- 3.2.11. DMX_GET_STC
- 3.2.12. DMX_GET_PES_PIDS
- 3.2.13. DMX_GET_CAPS
- 3.2.14. DMX_SET_SOURCE
- 3.2.15. DMX_ADD_PID
- 3.2.16. DMX_REMOVE_PID
- 4. DVB CA Device
- 5. DVB Network API
- 6. DVB net Function Calls
- 7. DVB Deprecated APIs
- 7.1. DVB Video Device
- 7.1.1. Video Data Types
- 7.1.1.1. video_format_t
- 7.1.1.2. video_displayformat_t
- 7.1.1.3. video_stream_source_t
- 7.1.1.4. video_play_state_t
- 7.1.1.5. struct video_command
- 7.1.1.6. video_size_t
- 7.1.1.7. struct video_event
- 7.1.1.8. struct video_status
- 7.1.1.9. struct video_still_picture
- 7.1.1.10. video capabilities
- 7.1.1.11. video_system_t
- 7.1.1.12. struct video_highlight
- 7.1.1.13. struct video_spu
- 7.1.1.14. struct video_spu_palette
- 7.1.1.15. struct video_navi_pack
- 7.1.1.16. video_attributes_t
- 7.1.2. Video Function Calls
- 7.1.2.1. dvb video open()
- 7.1.2.2. dvb video close()
- 7.1.2.3. dvb video write()
- 7.1.2.4. VIDEO_STOP
- 7.1.2.5. VIDEO_PLAY
- 7.1.2.6. VIDEO_FREEZE
- 7.1.2.7. VIDEO_CONTINUE
- 7.1.2.8. VIDEO_SELECT_SOURCE
- 7.1.2.9. VIDEO_SET_BLANK
- 7.1.2.10. VIDEO_GET_STATUS
- 7.1.2.11. VIDEO_GET_FRAME_COUNT
- 7.1.2.12. VIDEO_GET_PTS
- 7.1.2.13. VIDEO_GET_FRAME_RATE
- 7.1.2.14. VIDEO_GET_EVENT
- 7.1.2.15. VIDEO_COMMAND
- 7.1.2.16. VIDEO_TRY_COMMAND
- 7.1.2.17. VIDEO_GET_SIZE
- 7.1.2.18. VIDEO_SET_DISPLAY_FORMAT
- 7.1.2.19. VIDEO_STILLPICTURE
- 7.1.2.20. VIDEO_FAST_FORWARD
- 7.1.2.21. VIDEO_SLOWMOTION
- 7.1.2.22. VIDEO_GET_CAPABILITIES
- 7.1.2.23. VIDEO_SET_ID
- 7.1.2.24. VIDEO_CLEAR_BUFFER
- 7.1.2.25. VIDEO_SET_STREAMTYPE
- 7.1.2.26. VIDEO_SET_FORMAT
- 7.1.2.27. VIDEO_SET_SYSTEM
- 7.1.2.28. VIDEO_SET_HIGHLIGHT
- 7.1.2.29. VIDEO_SET_SPU
- 7.1.2.30. VIDEO_SET_SPU_PALETTE
- 7.1.2.31. VIDEO_GET_NAVI
- 7.1.2.32. VIDEO_SET_ATTRIBUTES
- 7.1.1. Video Data Types
- 7.2. DVB Audio Device
- 7.2.1. Audio Data Types
- 7.2.2. Audio Function Calls
- 7.2.2.1. DVB audio open()
- 7.2.2.2. DVB audio close()
- 7.2.2.3. DVB audio write()
- 7.2.2.4. AUDIO_STOP
- 7.2.2.5. AUDIO_PLAY
- 7.2.2.6. AUDIO_PAUSE
- 7.2.2.7. AUDIO_CONTINUE
- 7.2.2.8. AUDIO_SELECT_SOURCE
- 7.2.2.9. AUDIO_SET_MUTE
- 7.2.2.10. AUDIO_SET_AV_SYNC
- 7.2.2.11. AUDIO_SET_BYPASS_MODE
- 7.2.2.12. AUDIO_CHANNEL_SELECT
- 7.2.2.13. AUDIO_BILINGUAL_CHANNEL_SELECT
- 7.2.2.14. AUDIO_GET_PTS
- 7.2.2.15. AUDIO_GET_STATUS
- 7.2.2.16. AUDIO_GET_CAPABILITIES
- 7.2.2.17. AUDIO_CLEAR_BUFFER
- 7.2.2.18. AUDIO_SET_ID
- 7.2.2.19. AUDIO_SET_MIXER
- 7.2.2.20. AUDIO_SET_STREAMTYPE
- 7.2.2.21. AUDIO_SET_EXT_ID
- 7.2.2.22. AUDIO_SET_ATTRIBUTES
- 7.2.2.23. AUDIO_SET_KARAOKE
- 7.1. DVB Video Device
- 8. Examples
- 9. DVB Audio Header File
- 10. DVB Conditional Access Header File
- 11. DVB Demux Header File
- 12. DVB Frontend Header File
- 13. DVB Network Header File
- 14. DVB Video Header File
Revision and Copyright¶
Authors:
- Metzler, Ralph <rjkm@metzlerbros.de>
- Original author of the DVB API documentation.
- Metzler, Marcus <rjkm@metzlerbros.de>
- Original author of the DVB API documentation.
- Carvalho Chehab, Mauro <m.chehab@kernel.org>
- Ported document to Docbook XML, addition of DVBv5 API, documentation gaps fix.
Copyright © 2002-2003 : Convergence GmbH
Copyright © 2009-2016 : Mauro Carvalho Chehab
Revision History¶
revision: | 2.1.0 / 2015-05-29 (mcc) |
---|
DocBook improvements and cleanups, in order to document the system calls on a more standard way and provide more description about the current DVB API.
revision: | 2.0.4 / 2011-05-06 (mcc) |
---|
Add more information about DVB APIv5, better describing the frontend GET/SET props ioctl’s.
revision: | 2.0.3 / 2010-07-03 (mcc) |
---|
Add some frontend capabilities flags, present on kernel, but missing at the specs.
revision: | 2.0.2 / 2009-10-25 (mcc) |
---|
documents FE_SET_FRONTEND_TUNE_MODE and FE_DISHETWORK_SEND_LEGACY_CMD ioctls.
revision: | 2.0.1 / 2009-09-16 (mcc) |
---|
Added ISDB-T test originally written by Patrick Boettcher
revision: | 2.0.0 / 2009-09-06 (mcc) |
---|
Conversion from LaTex to DocBook XML. The contents is the same as the original LaTex version.
revision: | 1.0.0 / 2003-07-24 (rjkm) |
---|
Initial revision on LaTEX.