Thread: Tech FFmpeg duration
View Single Post
Old 10-26-2017, 12:11 PM  
mikeworks
Confirmed User
 
Join Date: Apr 2010
Posts: 272
The database field runtime contains the count in seconds for example 256, but only after the video has been processed. Would then have to process video a second time to add watermark.

This is not ideal solution due to content amount and that cdn will sync video as soon as it has been encoded, and won't unless manual flush via contacting host, sync video after second encoding.

It's frustrating. I have no idea why the exact same code pasted into command line works, but script fails when using it.

The ffmpeg log is showing this:

[Parsed_drawtext_0 @ 0x808c3e320] [Eval @ 0x7fffffff9250] Undefined constant or missing '(' in '/2))*w/20'
[Parsed_drawtext_0 @ 0x808c3e320] Failed to configure input pad on Parsed_drawtext_0
Error opening filters!

So it looks like when run via script $duration is empty.

Last edited by mikeworks; 10-26-2017 at 12:28 PM.. Reason: ffmpeg log
mikeworks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote