A Mennucc wrote:
> Duncan Webb ha scritto:
>> A Mennucc wrote:
>>> hi
>>>
>>> I am (trying to) adding a new feature in the reencoding server : the
>>> ability to specify a slice of the original program to be reencoded (by
>>> specifying start and end , using bookmarks)
> 
> now it works; I attach the patch
> 
> (this patch contains also the patch in previous email, re: unsafe tmp usage)
> 
> this patch is really useful for me:
> 
> 1) since programs are quite randomized in Italy, I use a huge PADDING in
> recordin; but, when I transcode, I do want to delete all extra stuff
> 
> 2) once I recorded a show , but before that show there was a movie in
> 16/9 , with huge black bands: when I tried to reencode that show,
> cropdetect was done only on the preceding movie, so that the show was
> then cropped to 16/9  :-( . The good point in my patch is that
> cropdetect, also, is done from the starting point that the user decides.
> 
>> This is not the correct way to use mencoder for cutting av media. Use
>> the edl (edit decision list). There is some code in the commdetectserver
>> that may help.
> 
> In designing this code, I thought about a future development in this
> respect: the variable 'timeslice' is a list , now this list has only two
> elements , but the idea is that it may contain the EDL list (when EDL
> will be more reliable  :-)

I saw this extract from a post by Matthias Hopf on the mencoder users list.

On Mar 26, 07 13:26:34 +0200, Ivan Arcos wrote:
> > First, I used mencoder with -ss -endpos options for cutting but it >
> didn“t cut where I indicated.

-hr-edl-seek is your friend here. -ss never worked reliably, and only
starts at keyframes / I-frames.


Okay for most stuff I-frames is good enough as the occur about every 1/2
second, which is good enough for most people but I still think that
using the edl is better. Then it could be used with the commercial
detect application too and we could remove one of the servers from freevo.

What I do with my buttons is:

EVENTS['video']['LEFT'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='seek -60')
EVENTS['video']['RIGHT'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='seek +60')
EVENTS['video']['UP'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='pausing seek
+0.5')
EVENTS['video']['DOWN'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='pausing
seek -0.5')
EVENTS['video']['REPLAY'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='pausing
seek -0.1')
EVENTS['video']['SKIP'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='pausing
frame_step +1.0')
# POWER is not a good choice :(
EVENTS['video']['POWER'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='pausing
edl_mark')

and
MPLAYER_ARGS = {
...
'mpeg' : '-cache 8192 -subfont-text-scale 4 -utf8 -edlout /tmp/mpeg.edl',
...
}

The pausing keeps the video paused if it is already paused and not if
playing.

I would like to add you patch, it's nice and a good idea. Any chance of
you using the edl instead?

Duncan

PS Please to add freevo-1 patches to the tracker, I'm away for the next
two weeks and will forget what has been said in the email lists.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to