Message ID | 20131216171152.GA4675@x220 |
---|---|
State | New |
Headers |
Received: from localhost ([127.0.0.1] helo=www.linuxtv.org) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from <vdr-bounces@linuxtv.org>) 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 <marko.makela@iki.fi>) 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 <vdr@linuxtv.org> 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 <vdr@linuxtv.org>; 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?= <marko.makela@iki.fi> 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 <vdr@linuxtv.org> List-Id: VDR Mailing List <vdr.linuxtv.org> List-Unsubscribe: <http://www.linuxtv.org/cgi-bin/mailman/options/vdr>, <mailto:vdr-request@linuxtv.org?subject=unsubscribe> List-Archive: <http://www.linuxtv.org/pipermail/vdr> List-Post: <mailto:vdr@linuxtv.org> List-Help: <mailto:vdr-request@linuxtv.org?subject=help> List-Subscribe: <http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr>, <mailto:vdr-request@linuxtv.org?subject=subscribe> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: vdr-bounces@linuxtv.org Errors-To: vdr-bounces@linuxtv.org |
Commit Message
Marko Mäkelä
Dec. 16, 2013, 5:11 p.m. UTC
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
Comments
On Mon, Dec 16, 2013 at 07:11:52PM +0200, Marko Mäkelä wrote: >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? Sorry for the stupid question; I learned later that the conversion from TS to PES is losing information, which may be hard to "make up" afterwards. My use case is to play old VDR recordings in a Samsung SmartTV. For that, I created a VFAT file system on a usb-storage device. (If the file system is ext2, it will only work for the Samsung time shifting feature.) New VDR recordings in MPEG TS format play just fine as is. The old recordings had to be converted from PES to PS with the following script: cat>$HOME/bin/pes2ps<<EOF #!/bin/sh exec mencoder -vc mpeg12 -oac copy -ovc copy -of mpeg \ -mpegopts format=mpeg2 -aid 0 -o "$@" EOF I converted a couple directories of TV series where each episode was stored in its own directory, named by the episode name. To do that, I did the following: cd /path/to/video/Series_name for i in */ do j="$(echo "${i%/}"|tr '~[]:;' '-()').," pes2ps "/path/to/output/Series_name/$j.mpg" "$i"/*/0*.vdr done This will unfortunately lose all metadata except the episode name. I did not test recordings with subtitles yet. Best regards, 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;