Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
F
ffworker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Video AG Infrastruktur
ffworker
Commits
ca4d3423
Commit
ca4d3423
authored
Dec 05, 2017
by
Julian Rother
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the first job ping to the earliest point possible
parent
1513ea4a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
5 deletions
+6
-5
probe.c
probe.c
+1
-1
publish_video.c
publish_video.c
+1
-1
remux.c
remux.c
+1
-1
thumbnail.c
thumbnail.c
+1
-1
transcode.c
transcode.c
+2
-1
No files found.
probe.c
View file @
ca4d3423
...
...
@@ -74,11 +74,11 @@ int main(int argc, char *argv[])
init_avlogbuf
();
jobid
=
atoi
(
argv
[
1
]);
ping_job
(
jobid
,
"running"
,
0
);
if
(
!
strcmp
(
argv
[
2
],
"probe-raw"
))
path
=
buildpath
(
getenv
(
WORKER_RAW
),
jstr
(
jlookup
(
argv
[
4
],
"path"
),
0
));
else
path
=
buildpath
(
getenv
(
WORKER_RELEASED
),
jstr
(
jlookup
(
argv
[
4
],
"path"
),
0
));
ping_job
(
jobid
,
"running"
,
0
);
opts
=
0
;
av_dict_set_int
(
&
opts
,
"export_xmp"
,
1
,
0
);
/* Ignored if not supported */
...
...
publish_video.c
View file @
ca4d3423
...
...
@@ -13,10 +13,10 @@ int main(int argc, char *argv[])
init_env
();
init_avlogbuf
();
jobid
=
atoi
(
argv
[
1
]);
ping_job
(
jobid
,
"running"
,
0
);
src
=
buildpath
(
getenv
(
WORKER_TMP
),
jstr
(
jlookup
(
argv
[
4
],
"source"
),
0
));
dest
=
buildpath
(
getenv
(
WORKER_RELEASED
),
jstr
(
jlookup
(
argv
[
4
],
"path"
),
0
));
destdir
=
dirname
(
mprintf
(
"%s/%s"
,
getenv
(
WORKER_RELEASED
),
jstr
(
jlookup
(
argv
[
4
],
"path"
),
""
)));
ping_job
(
jobid
,
"running"
,
0
);
overwrite_check
(
dest
,
0
,
0
);
if
(
mkdir
(
destdir
,
02775
)
&&
errno
!=
EEXIST
)
job_failed
(
"Could not create target directory
\"
%s
\"
: %s"
,
destdir
,
strerror
(
errno
));
...
...
remux.c
View file @
ca4d3423
...
...
@@ -21,11 +21,11 @@ int main(int argc, char *argv[])
av_init_packet
(
&
pkt
);
jobid
=
atoi
(
argv
[
1
]);
ping_job
(
jobid
,
"running"
,
0
);
path
=
buildpath
(
getenv
(
WORKER_RELEASED
),
jstr
(
jlookup
(
argv
[
4
],
"path"
),
0
));
srcpath
=
buildpath
(
getenv
(
WORKER_RAW
),
jstr
(
jlookup
(
argv
[
4
],
"srcpath"
),
0
));
tmp
=
mprintf
(
"%s/.tmp-%i"
,
getenv
(
WORKER_TMP
),
jobid
);
overwrite_check
(
path
,
srcpath
,
jstr
(
jlookup
(
argv
[
4
],
"srchash"
),
""
));
ping_job
(
jobid
,
"running"
,
0
);
demux
=
0
;
if
(
err
=
avformat_open_input
(
&
demux
,
path
,
0
,
0
))
...
...
thumbnail.c
View file @
ca4d3423
...
...
@@ -37,11 +37,11 @@ int main(int argc, char *argv[])
/* Prepare arguments */
jobid
=
atoi
(
argv
[
1
]);
ping_job
(
jobid
,
"running"
,
0
);
src
=
buildpath
(
getenv
(
WORKER_RELEASED
),
jstr
(
jlookup
(
argv
[
4
],
"path"
),
0
));
tmp
=
mprintf
(
"%s/.tmp-%i"
,
getenv
(
WORKER_TMP
),
jobid
);
dest
=
mprintf
(
"%s/thumbnail/l_%s.jpg"
,
getenv
(
WORKER_RELEASED
),
jstr
(
jlookup
(
argv
[
4
],
"lectureid"
),
"0"
));
ping_job
(
jobid
,
"running"
,
0
);
/* Open src */
demux
=
0
;
...
...
transcode.c
View file @
ca4d3423
...
...
@@ -269,6 +269,7 @@ int main(int argc, char *argv[])
return
99
;
jobid
=
atoi
(
argv
[
1
]);
ping_job
(
jobid
,
"running"
,
0
);
input
=
jlookup
(
argv
[
4
],
"input"
);
inpath
=
buildpath
(
getenv
(
WORKER_RAW
),
jstr
(
jlookup
(
input
,
"path"
),
0
));
output
=
jlookup
(
argv
[
4
],
"output"
);
...
...
@@ -321,8 +322,8 @@ int main(int argc, char *argv[])
assert_empty_opts
(
opts
);
progress
=
0
;
ping_job
(
jobid
,
"running"
,
0
);
ping_job
(
jobid
,
"running"
,
0
);
while
(
!
av_read_frame
(
demux
,
&
pkt
))
{
i
=
pkt
.
stream_index
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment