Comments (14)
you'll have to play around with the sensitivity a bit. try -s=0.001
from vtt-editor.
And remove -b=true
> that is actually a method used by mashup_folder.js
to signal 'edl_dropboring.js` not to render the job.
from vtt-editor.
so i now saw that i already had 6 ffprobes running in background (while the script was already finished) and my load avg was up to 22. that was because i changed the log levels for ffprobe and made mplayer not-silent to dump the script output.
child_process has a max buffer size after which the process will be killed (SIGTERM i think). it is 200*1024. could this become a problem in some cases?
https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback
also, i noticed that sometimes the analyze script seems to let ffprobe run for ages (looking good) and just steps through the next files in milliseconds.
guess it would really be nice to see the output of the script in those cases (although i never got anything when dumping the values from the return function of child_process and changing the log level for ffprobe).
from vtt-editor.
i'll try it in linux now. why exactly do i need to compile ffmpeg from the github source?
from vtt-editor.
The thing is that the scoring of different films is necessarily different.
e.g. A video of the sky won't offer up much on the way of change, whereas people dancing changes all the time.
Try this:
ffprobe -loglevel error -show_frames -of compact=p=0 -f lavfi "movie=bin/assets/SDV_0476.MP4,select=gt(scene\,0.001)"
it gives something like this:
media_type=video|stream_index=0|key_frame=1|pkt_pts=2997600|pkt_pts_time=49.960000|pkt_dts=2997600|pkt_dts_time=49.960000|best_effort_timestamp=2997600|best_effort_timestamp_time=49.960000|pkt_duration=1200|pkt_duration_time=0.020000|pkt_pos=10257616|pkt_size=451584|width=448|height=336|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0|tag:lavfi.scene_score=0.002825
This is the interesting bit: lavfi.scene_score=0.002825
from vtt-editor.
did that and it gives me (among a million other lines):
pkt_size=2073600|width=960|height=720|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0|tag:lavfi.scene_score=0.448768
that score looks high enough to go over my threshold. but there are way less fields in my output.
from vtt-editor.
oh copy & paste error i guess:
media_type=video|key_frame=1|pkt_pts=11219208|pkt_pts_time=467.467000|pkt_dts=11219208|pkt_dts_time=467.467000|best_effort_timestamp=11219208|best_effort_timestamp_time=467.467000|pkt_duration=1001|pkt_duration_time=0.041708|pkt_pos=132815963|pkt_size=2073600|width=960|height=720|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0|tag:lavfi.scene_score=0.004472
from vtt-editor.
i know - the output is sed
'd to get the frame where the scenchange happened.
ffprobe -loglevel error -show_frames -of compact=p=0 -f lavfi "movie=bin/assets/SDV_0476.MP4,select=gt(scene\,0.001)" | sed -r 's/.*pkt_pts_time=([0-9.]{8,})\|.*/\1/'
from vtt-editor.
so actually it should be filling up the edl files (at least tmp), right? then the error is somewhere else, maybe while extracting the data from the stdout?
from vtt-editor.
FFMPEG BUILDER:
https://gist.github.com/denjello/7705937e693a4c49932a
from vtt-editor.
i'll set up a vm especially for that as a last resort. but actually, if the probe command outputs all those values with time and difference and whatnot, i don't see why this can't work on my mac.
from vtt-editor.
aha!
unknown60F81DB21D5E:~ anton$ ffprobe -loglevel error -show_frames -of compact=p=0 -f lavfi "movie=/Volumes/GHOSTSHARK/mash/Decoder.avi,select=gt(scene\,0.001)" | sed -r 's/.*pkt_pts_time=([0-9.]{8,})\|.*/\1/'
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
from vtt-editor.
bsd-style sed has no -r option, but rather -E
from vtt-editor.
ok i now get edls with content. running it now to see if it works. btw, the -b=true
gets added automatically. i did not pass it to the mashup script.
from vtt-editor.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vtt-editor.