Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
ffworker
Commits
166d04c9
Commit
166d04c9
authored
Nov 18, 2018
by
Julian Rother
Browse files
transcode: Hopefully fixed last commit
parent
b8297817
Pipeline
#453
passed with stage
in 6 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
transcode.c
View file @
166d04c9
...
...
@@ -250,7 +250,7 @@ void connect_pads(AVFilterInOut **ins, AVFilterInOut **outs)
int
main
(
int
argc
,
char
*
argv
[])
{
int
err
,
i
,
progress
,
_progress
,
canceled
;
char
*
p
,
*
input
,
*
output
,
*
inpath
,
*
outpath
,
*
tmppath
,
*
oldsrcpath
;
char
*
p
,
*
input
,
*
output
,
*
inpath
,
*
outdir
,
*
outpath
,
*
tmppath
,
*
oldsrcpath
;
AVFormatContext
*
demux
,
*
mux
;
AVCodecContext
**
decs
,
**
encs
;
AVFilterContext
**
srcs
,
**
sinks
;
...
...
@@ -276,6 +276,9 @@ int main(int argc, char *argv[])
input
=
jlookup
(
argv
[
4
],
"input"
);
inpath
=
buildpath
(
getenv
(
WORKER_RAW
),
jstr
(
jlookup
(
input
,
"path"
),
0
));
output
=
jlookup
(
argv
[
4
],
"output"
);
outdir
=
buildpath
(
getenv
(
WORKER_RELEASED
),
dirname
(
jstr
(
jlookup
(
output
,
"path"
),
0
)));
if
(
access
(
outdir
,
F_OK
)
&&
mkdir
(
outdir
,
02775
))
job_failed
(
"Could not create target directory
\"
%s
\"
: %s"
,
outdir
,
strerror
(
errno
));
outpath
=
buildpath
(
getenv
(
WORKER_RELEASED
),
jstr
(
jlookup
(
output
,
"path"
),
0
));
tmppath
=
mprintf
(
"%s/.tmp-%i"
,
getenv
(
WORKER_TMP
),
jobid
);
if
(
oldsrcpath
=
jstr
(
jlookup
(
argv
[
4
],
"srcpath"
),
0
))
...
...
@@ -283,8 +286,6 @@ int main(int argc, char *argv[])
else
oldsrcpath
=
"/var/empty/nosource"
;
overwrite_check
(
outpath
,
oldsrcpath
,
jstr
(
jlookup
(
argv
[
4
],
"srchash"
),
""
));
if
(
access
(
dirname
(
outpath
),
F_OK
)
&&
mkdir
(
dirname
(
outpath
),
02775
))
job_failed
(
"Could not create target directory
\"
%s
\"
: %s"
,
dirname
(
outpath
),
strerror
(
errno
));
demux
=
0
;
opts
=
0
;
parse_dict
(
&
opts
,
jlookup
(
input
,
"options"
));
...
...
Write
Preview
Supports
Markdown
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