mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
VDR developer version 1.7.32 is now available at ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.32.tar.bz2 A 'diff' against the previous version is available at ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.31-1.7.32.diff MD5 checksums: 068ba78fd427694dcc480fe3b2d07148 vdr-1.7.32.tar.bz2 222f1e9b4d4edaa6fe57286409614cc7 vdr-1.7.31-1.7.32.diff WARNING: ======== This is a developer version. Even though I use it in my productive environment. I strongly recommend that you only use it under controlled conditions and for testing and debugging. The main focus of this version is on an improved frame detection code, and improvements to the cutting process. When cutting a recording, VDR now removes any "dangling" TS packets from the beginning of an editing sequence and pulls in any "pending" TS packets at the end of a sequence. It also fixes all timestamps and continuity counters. However, while the results look much better now in, for instance, Kaffeine, the TT S2-6400 still shows some video artifacts at the editing points, and the Mac video player sometimes totally chokes on edited material. I did spend a lot of time trying to find out what could still be wrong here, but couldn't come up with any new ideas. So I think it's now time to invite others to test this new cutting code, read the source code and try to find out what's still going wrong here. Maybe (hopefully ;-) it's just some stupid little error... ;-) From the HISTORY file: - Pressing the Play key during normal live viewing mode now opens the Recordings menu if there is no "last viewed" recording (thanks to Alexander Wenzel). The same behavior has been implemented for the Blue key in the main menu. - cIoThrottle::Engaged() is now also checked in cRemoveDeletedRecordingsThread::Action(), to suspend removing deleted recordings in case this is necessary to make room for new, ongoing recordings (suggested by Udo Richter). - The cThread constructor now has an additional boolean parameter that can be set to true to have this thread run at a lower priority. Plugin authors that use low priority threads may want to use this instead of the calls to SetPriority(19) and SetIOPriority(7). The priority of a thread ("low" or "high") is now logged when the thread starts. - Changed DTV_DVBT2_PLP_ID to DTV_STREAM_ID in dvbdevice.c to adapt to an incompatible change in DVB API 5.8 (reported by Derek Kelly). Removed the meanwhile obsolete definition of FE_CAN_TURBO_FEC. - Fixed some compiler warnings under gcc version 4.7.1. - Fixed setting the video format in the dvbhdffdevice (thanks to Torsten Lang). - Fixed 'make install' to not overwrite existing configuration files (thanks to Peter Münster). - Added including the Make.global and Make.config files to the dvbdhffdevice's libhdffcmd/Makefile. - Added options to build a 32-bit version of VDR on a 64-bit machine to Make.config.template. - Fixed handling VPS timers in case the running status of an event goes to '1' (not running) and later goes to '4' (running). - If a frame position in the 'marks' file of a recording doesn't point to an I-frame, it will now be shifted towards the next I-frame, either up or down, whichever is closer (suggested by Udo Richter). - Fixed a possible memory leak in SI::StructureLoop::getNextAsPointer() (reported by Sundararaj Reel). - Fixed handling timers in case an event is modified and "phased out" while the timer is recording. - Improved frame detection by parsing just far enough into the MPEG-4 NAL units to get the necessary information about frames and slices. - The initial syncing of the frame detector is now done immediately after the first complete GOP has been seen. This makes recordings and especially pausing live video start up to twice as fast as before. - Updated the Romanian OSD texts (thanks to Lucian Muresan). - Fixed handling the very last entry in a recording index. - The return type of cMarks::Add() has been changed to void, since due to the sorting of the list of marks the returned pointer might have pointed to a totally different mark. Besides, the return value was never actually used. - Improved editing TS recordings by + stripping dangling TS packets from the beginning of a sequence + including pending TS packets at the end of a sequence + fixing all timestamps and continuity counters + generating editing marks for the edited version in such a way that each cutting point is marked by an "end" and "begin" mark with the same offset + no longer generating an editing mark at the "end" of the edited recording (this was actually generated at the beginning of the last GOP, so that a subsequent edit would have cut off the last GOP) + no longer generating any editing marks if the edited recording results on just one single sequence + ignoring pairs of editing marks that are placed at exactly the same position of a recording when actually cutting the recording + not doing anything if the editing marks in place would result in the edited version being the same as the original recording - Editing marks can now be placed directly on top of each other, in which case they simply mark a position, but have no effect on the actual cutting process. - When positioned at an offset where two (or more) editing marks are placed on top of each other, the '4' key moves the first one of them to the left, while the '6' key moves the last one of them to the right. The '7' and '9' key handle multiple marks at the same place as if it were one single mark. - Modified editing marks are now written to disk whenever the replay progress display gets hidden (thanks to Christoph Haubrich).
155 lines
5.0 KiB
C
155 lines
5.0 KiB
C
/**********************************************************************
|
|
*
|
|
* HDFF firmware command interface library
|
|
*
|
|
* Copyright (C) 2011 Andreas Regel
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the
|
|
* Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*
|
|
*********************************************************************/
|
|
|
|
#ifndef HDFFCMD_AV_H
|
|
#define HDFFCMD_AV_H
|
|
|
|
typedef enum HdffAvContainerType_t
|
|
{
|
|
HDFF_AV_CONTAINER_PES,
|
|
HDFF_AV_CONTAINER_PES_DVD
|
|
} HdffAvContainerType_t;
|
|
|
|
typedef enum HdffAudioStreamType_t
|
|
{
|
|
HDFF_AUDIO_STREAM_INVALID = -1,
|
|
HDFF_AUDIO_STREAM_MPEG1 = 0,
|
|
HDFF_AUDIO_STREAM_MPEG2,
|
|
HDFF_AUDIO_STREAM_AC3,
|
|
HDFF_AUDIO_STREAM_AAC,
|
|
HDFF_AUDIO_STREAM_HE_AAC,
|
|
HDFF_AUDIO_STREAM_PCM,
|
|
HDFF_AUDIO_STREAM_EAC3,
|
|
HDFF_AUDIO_STREAM_DTS
|
|
} HdffAudioStreamType_t;
|
|
|
|
typedef enum HdffVideoStreamType_t
|
|
{
|
|
HDFF_VIDEO_STREAM_INVALID = -1,
|
|
HDFF_VIDEO_STREAM_MPEG1 = 0,
|
|
HDFF_VIDEO_STREAM_MPEG2,
|
|
HDFF_VIDEO_STREAM_H264,
|
|
HDFF_VIDEO_STREAM_MPEG4_ASP,
|
|
HDFF_VIDEO_STREAM_VC1
|
|
} HdffVideoStreamType_t;
|
|
|
|
typedef enum HdffTvFormat_t
|
|
{
|
|
HDFF_TV_FORMAT_4_BY_3,
|
|
HDFF_TV_FORMAT_16_BY_9
|
|
} HdffTvFormat_t;
|
|
|
|
typedef enum HdffVideoConversion_t
|
|
{
|
|
HDFF_VIDEO_CONVERSION_AUTOMATIC,
|
|
HDFF_VIDEO_CONVERSION_LETTERBOX_16_BY_9,
|
|
HDFF_VIDEO_CONVERSION_LETTERBOX_14_BY_9,
|
|
HDFF_VIDEO_CONVERSION_PILLARBOX,
|
|
HDFF_VIDEO_CONVERSION_CENTRE_CUT_OUT,
|
|
HDFF_VIDEO_CONVERSION_ALWAYS_16_BY_9,
|
|
HDFF_VIDEO_CONVERSION_ZOOM_16_BY_9
|
|
} HdffVideoConversion_t;
|
|
|
|
typedef struct HdffVideoFormat_t
|
|
{
|
|
int AutomaticEnabled;
|
|
int AfdEnabled;
|
|
HdffTvFormat_t TvFormat;
|
|
HdffVideoConversion_t VideoConversion;
|
|
} HdffVideoFormat_t;
|
|
|
|
typedef enum HdffVideoOutputMode_t
|
|
{
|
|
HDFF_VIDEO_OUTPUT_CLONE,
|
|
HDFF_VIDEO_OUTPUT_HD_ONLY
|
|
} HdffVideoOutputMode_t;
|
|
|
|
typedef enum HdffAudioDownmixMode_t
|
|
{
|
|
HDFF_AUDIO_DOWNMIX_OFF,
|
|
HDFF_AUDIO_DOWNMIX_ANALOG,
|
|
HDFF_AUDIO_DOWNMIX_ALWAYS,
|
|
HDFF_AUDIO_DOWNMIX_AUTOMATIC,
|
|
HDFF_AUDIO_DOWNMIX_HDMI_ONLY
|
|
} HdffAudioDownmixMode_t;
|
|
|
|
|
|
int HdffCmdAvSetPlayMode(int OsdDevice, uint8_t PlayMode, int Realtime);
|
|
|
|
int HdffCmdAvSetVideoPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid,
|
|
HdffVideoStreamType_t StreamType);
|
|
|
|
int HdffCmdAvSetAudioPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid,
|
|
HdffAudioStreamType_t StreamType,
|
|
HdffAvContainerType_t ContainerType);
|
|
|
|
int HdffCmdAvSetPcrPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid);
|
|
|
|
int HdffCmdAvSetTeletextPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid);
|
|
|
|
int HdffCmdAvSetVideoWindow(int OsdDevice, uint8_t DecoderIndex, int Enable,
|
|
uint16_t X, uint16_t Y, uint16_t Width,
|
|
uint16_t Height);
|
|
|
|
int HdffCmdAvShowStillImage(int OsdDevice, uint8_t DecoderIndex,
|
|
const uint8_t * StillImage, int Size,
|
|
HdffVideoStreamType_t StreamType);
|
|
|
|
int HdffCmdAvSetDecoderInput(int OsdDevice, uint8_t DecoderIndex,
|
|
uint8_t DemultiplexerIndex);
|
|
|
|
int HdffCmdAvSetDemultiplexerInput(int OsdDevice, uint8_t DemultiplexerIndex,
|
|
uint8_t TsInputIndex);
|
|
|
|
int HdffCmdAvSetVideoFormat(int OsdDevice, uint8_t DecoderIndex,
|
|
const HdffVideoFormat_t * VideoFormat);
|
|
|
|
int HdffCmdAvSetVideoOutputMode(int OsdDevice, uint8_t DecoderIndex,
|
|
HdffVideoOutputMode_t OutputMode);
|
|
|
|
int HdffCmdAvSetStc(int OsdDevice, uint8_t DecoderIndex, uint64_t Stc);
|
|
|
|
int HdffCmdAvFlushBuffer(int OsdDevice, uint8_t DecoderIndex, int FlushAudio,
|
|
int FlushVideo);
|
|
|
|
int HdffCmdAvEnableSync(int OsdDevice, uint8_t DecoderIndex, int SyncAudio,
|
|
int SyncVideo);
|
|
|
|
int HdffCmdAvSetVideoSpeed(int OsdDevice, uint8_t DecoderIndex, int32_t Speed);
|
|
|
|
int HdffCmdAvSetAudioSpeed(int OsdDevice, uint8_t DecoderIndex, int32_t Speed);
|
|
|
|
int HdffCmdAvEnableVideoAfterStop(int OsdDevice, uint8_t DecoderIndex,
|
|
int EnableVideoAfterStop);
|
|
|
|
int HdffCmdAvSetAudioDelay(int OsdDevice, int16_t Delay);
|
|
|
|
int HdffCmdAvSetAudioDownmix(int OsdDevice,
|
|
HdffAudioDownmixMode_t DownmixMode);
|
|
|
|
int HdffCmdAvSetAudioChannel(int OsdDevice, uint8_t AudioChannel);
|
|
|
|
int HdffCmdAvSetSyncShift(int OsdDevice, int16_t SyncShift);
|
|
|
|
#endif /* HDFFCMD_AV_H */
|