-
Bug
-
Resolution: Fixed
-
Normal
-
2.0
-
None
Getting an error (in the logs below) when the video extractor (https://opensource.ncsa.illinois.edu/stash/projects/MMDB/repos/extractors-video/browse) is running and a file is uploaded.
~/extractors/extractors-video/preview$ ./ncsa.video.preview.py
INFO : pika.adapters.base_connection - Connecting to 127.0.1.1:5672
INFO : pymedici.extractors - Waiting for messages. To exit press CTRL+C
DEBUG : pymedici.extractors - [55282e9be4b0f67782ac47dd] : Started processing file
DEBUG : pymedici.extractors - [55282e9be4b0f67782ac47dd] : Downloading file.
INFO : requests.packages.urllib3.connectionpool - Starting new HTTP connection (1): groupscope.ncsa.illinois.edu
INFO : requests.packages.urllib3.connectionpool - Starting new HTTPS connection (1): groupscope.ncsa.illinois.edu
DEBUG : ncsa.video - /usr/bin/ffmpeg : ffmpeg version 0.8.17-4:0.8.17-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
built on Mar 16 2015 13:26:50 with gcc 4.6.3
The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/tmpn_LTH4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf53.21.1
Duration: 00:00:27.86, start: 0.000000, bitrate: 704 kb/s
Stream #0.0(eng): Video: mpeg4 (Simple Profile), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 513 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 187 kb/s
Incompatible pixel format 'yuv420p' for codec 'png', auto-selecting format 'rgb24'
[buffer @ 0xae5d60] w:1280 h:720 pixfmt:yuv420p
[scale @ 0xae1320] w:1280 h:720 fmt:yuv420p -> w:225 h:127 fmt:rgb24 flags:0x4
Output #0, rawvideo, to '/tmp/tmpn2Cc5P.png':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf53.21.1
Stream #0.0(eng): Video: png, rgb24, 225x127 [PAR 2032:2025 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 1 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
[buffer @ 0xae5d60] Buffering several frames is not supported. Please consume all available frames before adding a new one.
Last message repeated 23 times
frame= 3 fps= 0 q=0.0 Lsize= 86kB time=3.00 bitrate= 235.1kbits/s dup=0 drop=21
video:86kB audio:0kB global headers:0kB muxing overhead 0.000000%
INFO : requests.packages.urllib3.connectionpool - Starting new HTTP connection (1): groupscope.ncsa.illinois.edu
INFO : requests.packages.urllib3.connectionpool - Starting new HTTPS connection (1): groupscope.ncsa.illinois.edu
DEBUG : pymedici.extractors - preview id = [55282ea2e4b0f67782ac47ec]
INFO : requests.packages.urllib3.connectionpool - Starting new HTTP connection (1): groupscope.ncsa.illinois.edu
INFO : requests.packages.urllib3.connectionpool - Starting new HTTPS connection (1): groupscope.ncsa.illinois.edu
ERROR : ncsa.video - /usr/bin/ffmpeg : ffmpeg version 0.8.17-4:0.8.17-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
built on Mar 16 2015 13:26:50 with gcc 4.6.3
The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/tmpn_LTH4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf53.21.1
Duration: 00:00:27.86, start: 0.000000, bitrate: 704 kb/s
Stream #0.0(eng): Video: mpeg4 (Simple Profile), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 513 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 187 kb/s
Incompatible pixel format 'yuv420p' for codec 'png', auto-selecting format 'rgb24'
[buffer @ 0x15f9ac0] w:1280 h:720 pixfmt:yuv420p
[scale @ 0x15fa380] [Eval @ 0x7fff27b6e4c0] Missing ')' or too many args in 'if(gt(iw,800),800,iw)'
Last message repeated 1 times
Error when evaluating the expression 'if(gt(iw,800),800,iw)'
Error opening filters!
ERROR : pymedici.extractors - [55282e9be4b0f67782ac47dd] Error processing [exit code=%d]
%s
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pymedici/extractors.py", line 116, in on_message
_processFileFunction(jbody)
File "./ncsa.video.preview.py", line 35, in process_file
execute_command(parameters, imageBinary, imagePreview, imageType, False)
File "./ncsa.video.preview.py", line 57, in execute_command
x = subprocess.check_output(commandline, stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['/usr/bin/ffmpeg', '-y', '-i', '/tmp/tmpn_LTH4', '-ss', '1', '-t', '1', '-r', '1', '-vcodec', 'png', '-f', 'rawvideo', '-vf', "scale='if(gt(iw,800),800,iw)':-1", '/tmp/tmp1T29VF.png']' returned non-zero exit status 1
DEBUG : pymedici.extractors - [55282e9be4b0f67782ac47dd] : Error processing [exit code=%d]
%s
DEBUG : pymedici.extractors - [55282e9be4b0f67782ac47dd] : Done