Hi!
Before reinventing the wheel - is there any tool that can cut VDR's TS recordings outside of VDR? (Something like hlcut for VDR 1.6 recordings).
Thx,
Tobias
On 18.12.2010 21:21, Tobias Grimm wrote:
Before reinventing the wheel - is there any tool that can cut VDR's TS recordings outside of VDR? (Something like hlcut for VDR 1.6 recordings).
like, for example, "vdr --edit=/path/to/recording"?
Yes, there is. ;)
(see HISTORY for 1.7.11)
Cheers,
Udo
Am Samstag, den 18.12.2010, 22:34 +0100 schrieb Udo Richter:
like, for example, "vdr --edit=/path/to/recording"?
Yes, there is. ;)
Thanks, but I guess I should have been more specific.
I'm more looking for something that allows me to specify the source recording folder a list of cutting marks and a target folder.
Tobias
like, for example, "vdr --edit=/path/to/recording"?
Yes, there is. ;)
Thanks, but I guess I should have been more specific.
I'm more looking for something that allows me to specify the source recording folder a list of cutting marks and a target folder.
Ok, you can't specify the target directory, the default with a leading % will be used, but I do not see what you are missing ?
Hello,
Helmut Auer wrote:
Tobias Grimm wrote:
I'm more looking for something that allows me to specify the source recording folder a list of cutting marks and a target folder.
Ok, you can't specify the target directory, the default with a leading % will be used, but I do not see what you are missing ?
At least I think, that the possibility of specifying target directory and cutmarks is worth looking for enhancements / other tools. I miss the same functionality and would appreciate any efforts in this direction!
kind regards
Gero
Am Sonntag, den 19.12.2010, 01:19 +0100 schrieb Helmut Auer:
Ok, you can't specify the target directory, the default with a leading % will be used, but I do not see what you are missing ?
There's one big recording, where I want to cut several recordings from using different sets of cut marks and store them under different names outside of the video directory.
I finally manage to extract the cutting code from VDR into a separate tool. Needs some finishing, but as soon as I'm happy with it, I'll make it available at projects.vdr-developer.org, just in case someone's interested in it.
Tobias
On 19.12.2010 11:09, Tobias Grimm wrote:
Am Sonntag, den 19.12.2010, 01:19 +0100 schrieb Helmut Auer:
Ok, you can't specify the target directory, the default with a leading % will be used, but I do not see what you are missing ?
There's one big recording, where I want to cut several recordings from using different sets of cut marks and store them under different names outside of the video directory.
I finally manage to extract the cutting code from VDR into a separate tool. Needs some finishing, but as soon as I'm happy with it, I'll make it available at projects.vdr-developer.org, just in case someone's interested in it.
If there's such a big need for having separate marks and output files, wouldn't it make more sense to to add '--output' and '--marks' options to VDR, to be (optionally) used together with '--edit'? Otherwise the cutting code would have to be maintained in two places...
Klaus
Am Sonntag, den 19.12.2010, 11:14 +0100 schrieb Klaus Schmidinger:
If there's such a big need for having separate marks and output files, wouldn't it make more sense to to add '--output' and '--marks' options to VDR, to be (optionally) used together with '--edit'? Otherwise the cutting code would have to be maintained in two places...
Would be great to have such options, but I don't know if there's a "big need" for this. It's just what I need right now, because hlcut only works with the old PES recordings.
Tobias
Hello,
Klaus Schmidinger wrote:
If there's such a big need for having separate marks and output files, wouldn't it make more sense to to add '--output' and '--marks' options to VDR, to be (optionally) used together with '--edit'?
A great enhancement would be the possibility to add an output directory instead of giving the -v option. The latter could be assumed to be part of the source directory path. If there would be a --marks option, the splitting of recordings could be handled on the fly (by external scripts/tools).
I think about situations, where the vdr-recordings are mounted readonly to do some conversion for dvd or backup and the target could be a SSD or raid 0 system.
I would appreciate such an enrichment of vdr a lot.
kind regards
Gero
There's one big recording, where I want to cut several recordings from using different sets of cut marks and store them under different names outside of the video directory.
I finally manage to extract the cutting code from VDR into a separate tool. Needs some finishing, but as soon as I'm happy with it, I'll make it available at projects.vdr-developer.org, just in case someone's interested in it.
Why don't you just use a wrapper script to get this running, like
#!/bin/bash
SOURCE_DIR=${1%/} shift REC_DATE=${SRC_DIR##*/} SRC_DIR=${SRC_DIR%/*} BASE_DIR=${SRC_DIR%/*} DIR_NAME=${SRC_DIR##*/} CUTTING_DIR=${BASE_DIR}/%${DIR_NAME} [ -d "$CUTTING_DIR" ] && mv $CUTTING_DIR $CUTTING_DIR.org [ -e "${SOURCE_DIR}/marks" ] && mv "${SOURCE_DIR}/marks" "${SOURCE_DIR}/marks.org"
while [ "$1" != "" ] ; do marks=$1 target_dir=$2 shift 2 cp -f $marks "${SOURCE_DIR}/marks" [ -e "$CUTTING_DIR" ] && rm $CUTTING_DIR ln -s $target_dir $CUTTING_DIR mkdir $CUTTING_DIR vdr --edit=${SOURCE_DIR} done
Am Sonntag, den 19.12.2010, 20:01 +0100 schrieb Helmut Auer:
Why don't you just use a wrapper script to get this running, like
I've already tried this (not in bash, but a similar approach). But I would like to avoid writing to the source dir and I would like to be able to do multiple cuts in parallel. But maybe I should reconsider this for the sake of simplicity.
Tobias
Am 19.12.2010 20:29, schrieb Tobias Grimm:
Am Sonntag, den 19.12.2010, 20:01 +0100 schrieb Helmut Auer:
Why don't you just use a wrapper script to get this running, like
I've already tried this (not in bash, but a similar approach). But I would like to avoid writing to the source dir and I would like to be able to do multiple cuts in parallel.
You could create a 'virtual' copy using symlinks in /tmp/edit_$$. That way you can provide a different marks file without touching the source dir. Also, you can symlink /tmp/%edit_$$ back to the target dir.
On a side note, for editing one big recording into several small one's, I go this way: First, thanks to the Cuttime-Patch, several parts of the same recording won't overwrite each other. And second, for managing noad marks, I have two recording commands to backup and restore the marks file. That way I backup the complete marks file, delete unneeded parts, edit, and restore the original marks afterwards.
Another cool strategy would be to use a recording command to duplicate a whole recording under a different name using soft/hard links, except for the marks file, then edit each one separately.
Cheers,
Udo
Am Sonntag, den 19.12.2010, 21:17 +0100 schrieb Udo Richter:
You could create a 'virtual' copy using symlinks in /tmp/edit_$$. That way you can provide a different marks file without touching the source dir. Also, you can symlink /tmp/%edit_$$ back to the target dir.
I haven't thought about this yet. Nice idea. I'll give it a try.
Tobias
Am Sonntag, den 19.12.2010, 22:34 +0100 schrieb Tobias Grimm:
I haven't thought about this yet. Nice idea. I'll give it a try.
Quick 'n dirty, but works like a charm:
vdrcut source target 00:00:05.00 00:00:10.00
Sometimes it's just too easy ;-)
Thx,
Tobias