From patchwork Mon Dec 16 17:11:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TWFya28gTcOka2Vsw6Q=?= X-Patchwork-Id: 21152 Received: from localhost ([127.0.0.1] helo=www.linuxtv.org) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1Vsbi3-0002Lg-Iv; Mon, 16 Dec 2013 18:11:59 +0100 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1Vsbi1-0002Lb-J8 for vdr@linuxtv.org; Mon, 16 Dec 2013 18:11:57 +0100 X-tubIT-Incoming-IP: 195.197.172.111 Received: from gw03.mail.saunalahti.fi ([195.197.172.111]) by mail.tu-berlin.de (exim-4.72/mailfrontend-6) with esmtps [TLSv1:AES256-SHA:256] for id 1Vsbi0-0002fg-3n; Mon, 16 Dec 2013 18:11:57 +0100 Received: from localhost (91-157-78-171.elisa-laajakaista.fi [91.157.78.171]) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id ACAEA2167A7 for ; Mon, 16 Dec 2013 19:11:52 +0200 (EET) Date: Mon, 16 Dec 2013 19:11:52 +0200 From: Marko =?iso-8859-1?B?TeRrZWzk?= To: vdr@linuxtv.org Message-ID: <20131216171152.GA4675@x220> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.12.16.165714 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' RCVD_FROM_IP_DATE 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_900_999 0, INVALID_MSGID_NO_FQDN 0, __ANY_URI 0, __CD 0, __CP_MEDIA_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_FROM 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_MAILTO 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __USER_AGENT 0' X-LSpam-Score: -1.1 (-) X-LSpam-Report: No, score=-1.1 required=5.0 tests=BAYES_00=-1.9, RDNS_NONE=0.793 autolearn=no Subject: [vdr] [PATCH] vdr -v ... --edit ignores -v to set videodir X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: vdr-bounces@linuxtv.org Errors-To: vdr-bounces@linuxtv.org Hi all, I am not sure if this was reported already, but I encountered this bug when trying to edit a recording without setting up VDR: ./vdr -v /tmp/video --edit /tmp/video/Rec_name/2013-08-12.20.58.50.99.rec Without the attached patch, VDR would try to create /srv/vdr/video, and would fail to cut the recording. With the patch, VDR successfully cut the recording. The source files were in PES format, and also the new recording is in PES format. Based on a discussion from 2008, this is the expected behaviour. Is there some tool for converting old PES recordings to TS format? Marko --- vdr.c 2013-10-16 12:46:36.000000000 +0300 +++ vdr.c 2013-12-16 18:47:42.526981566 +0200 @@ -331,6 +331,7 @@ int main(int argc, char *argv[]) } break; case 'e' | 0x100: + SetVideoDirectory(VideoDirectory); return CutRecording(optarg) ? 0 : 2; case 'E': EpgDataFileName = (*optarg != '-' ? optarg : NULL); break;