[MEncoder-users] Problem with -ss

Henk Schoneveld belcampo at zonnet.nl
Fri May 30 18:17:01 CEST 2008


Henk Schoneveld wrote:
> James Hastings-Trew wrote:
>   
>> According to the manual, -ss <sec> should skip forward to that number of 
>> seconds in the playback or encoding of a file. However, if I perform the 
>> following:
>>
>> mplayer -vf cropdetect -nosound -frames 10 -ss 5415 %source%
>>
>> I do not arrive 5415 seconds into the video. I end up at about 8 minutes 
>> and 25 seconds in. If I try it in hour:mins:sec format I get the same 
>> result:
>>
>> mplayer -vf cropdetect -nosound -frames 10 -ss 1:30:25 %source%
>>
>> So... what am I doing wrong?
>>
>> _______________________________________________
>> MEncoder-users mailing list
>> MEncoder-users at mplayerhq.hu
>> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>>   
>>     
> I don't know if it helps, but h264enc which uses mencoder and mpeg does 
> it like this, and it works
> http://www.registratieplatform.nl/UserFiles/File/Profielenboek%20zoekt%20branche%20Overheid%20en%20non-profit.pdf
>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>   

Sorry about giving the wrong info, cut & paste between linux and vmware 
didn't work and I didn't check what was pasted, sorry about that
Here is the right one:
GETCROP=$(mplayer "$sourcetype" $device $vid -vf cropdetect -nosound 
-nocache -frames 500 -vo null -ss $(($VLENGTH/2)) 2>/dev/null | tr '\r' 
'\n' | grep "crop=" | tail -1 | awk '{print $9}' | sed 's/crop=//g; 
s/).//g')






More information about the MEncoder-users mailing list