Skip to content

Fix crash in tf.contrib.ffmpeg.decode_video - #16105

Merged
fredbertsch merged 1 commit into
tensorflow:masterfrom
yongtang:16101-decode_video-crash
Jan 23, 2018
Merged

fredbertsch merged 1 commit into
tensorflow:masterfrom
yongtang:16101-decode_video-crash

Conversation

@yongtang

Copy link
Copy Markdown
Member

This fix fixes the crash in tf.contrib.ffmpeg.decode_video. The reason for the crash was that, decode_video dumps the information about streaming etc. (as opposed to dump
to stderr) info a file and read from it. As the loglevel was error the file was empty.

This fix addresses the issue.

The fix could be verifed by manually running

bazel test -s --config=opt --cache_test_results=no \
        //tensorflow/contrib/ffmpeg:decode_video_op_test

With this fix, the above test works.

Signed-off-by: Yong Tang [email protected]

This fix fixes the crash in `tf.contrib.ffmpeg.decode_video`.
The reason for the crash was that, `decode_video` dumps
the information about streaming etc. (as opposed to dump
to stderr) info a file and read from it. As the loglevel
was `error` the file was empty.

This fix addresses the issue.

The fix could be verifed by manually running
```
bazel test -s --config=opt --cache_test_results=no //tensorflow/contrib/ffmpeg:decode_video_op_test
```

With this fix, the above test works.

Signed-off-by: Yong Tang <[email protected]>

@fredbertsch fredbertsch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, yongtang!

@fredbertsch
fredbertsch merged commit 9e2846a into tensorflow:master Jan 23, 2018
@yongtang
yongtang deleted the 16101-decode_video-crash branch January 23, 2018 18:41
@XuChunling

Copy link
Copy Markdown

@yongtang have updata tf1.6,but there is still error log
######################################################

device:GPU:0 with 4333 MB memory) -> physical GPU (device: 0, name: Tesla K20c, pci bus id: 0000:02:00.0, compute capability: 3.5)
2018-03-08 09:42:15.159004: I tensorflow/core/common_runtime/gpu/gpu_device.cc:993] Creating TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:1 with 4333 MB memory) -> physical GPU (device: 1, name: Tesla K20m, pci bus id: 0000:81:00.0, compute capability: 3.5)
2018-03-08 09:42:31.078200: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1312] Adding visible gpu devices: 0, 1
2018-03-08 09:42:31.078609: I tensorflow/core/common_runtime/gpu/gpu_device.cc:993] Creating TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 74 MB memory) -> physical GPU (device: 0, name: Tesla K20c, pci bus id: 0000:02:00.0, compute capability: 3.5)
2018-03-08 09:42:31.079489: I tensorflow/core/common_runtime/gpu/gpu_device.cc:993] Creating TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:1 with 74 MB memory) -> physical GPU (device: 1, name: Tesla K20m, pci bus id: 0000:81:00.0, compute capability: 3.5)
2018-03-08 09:44:24.215896: F tensorflow/contrib/ffmpeg/default/ffmpeg_lib.cc:400] Non-OK-status: ReadInfoFile(stderr_filename, width, height, frames) status: Unknown: Not enough video info returned by FFmpeg [127, 0, 640, 3]Could not read FFmpeg stderr file: /tmp/tmp_file_tensorflow_3_ukCr1I.err

已放弃 (核心已转储)

@yongtang

yongtang commented Mar 8, 2018

Copy link
Copy Markdown
Member Author

@XuChunling If possible, can you provide the reproducible script and the video sample? Also, instead of continue discussion in a merged PR, can you open a new issue? You can ping or assign me in the new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review Pull request awaiting review cla: yes stat:awaiting tensorflower Status - Awaiting response from tensorflower

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants