{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21549","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21549/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21549/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21549/events","html_url":"https://github.com/tensorflow/tensorflow/issues/21549","id":349713829,"node_id":"MDU6SXNzdWUzNDk3MTM4Mjk=","number":21549,"title":"tf.contrib.ffmpeg.decode_video Error","user":{"login":"Flowerfan","id":7525070,"node_id":"MDQ6VXNlcjc1MjUwNzA=","avatar_url":"https://avatars2.githubusercontent.com/u/7525070?v=4","gravatar_id":"","url":"https://api.github.com/users/Flowerfan","html_url":"https://github.com/Flowerfan","followers_url":"https://api.github.com/users/Flowerfan/followers","following_url":"https://api.github.com/users/Flowerfan/following{/other_user}","gists_url":"https://api.github.com/users/Flowerfan/gists{/gist_id}","starred_url":"https://api.github.com/users/Flowerfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flowerfan/subscriptions","organizations_url":"https://api.github.com/users/Flowerfan/orgs","repos_url":"https://api.github.com/users/Flowerfan/repos","events_url":"https://api.github.com/users/Flowerfan/events{/privacy}","received_events_url":"https://api.github.com/users/Flowerfan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"yongtang","id":6932348,"node_id":"MDQ6VXNlcjY5MzIzNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/6932348?v=4","gravatar_id":"","url":"https://api.github.com/users/yongtang","html_url":"https://github.com/yongtang","followers_url":"https://api.github.com/users/yongtang/followers","following_url":"https://api.github.com/users/yongtang/following{/other_user}","gists_url":"https://api.github.com/users/yongtang/gists{/gist_id}","starred_url":"https://api.github.com/users/yongtang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yongtang/subscriptions","organizations_url":"https://api.github.com/users/yongtang/orgs","repos_url":"https://api.github.com/users/yongtang/repos","events_url":"https://api.github.com/users/yongtang/events{/privacy}","received_events_url":"https://api.github.com/users/yongtang/received_events","type":"User","site_admin":false},"assignees":[{"login":"yongtang","id":6932348,"node_id":"MDQ6VXNlcjY5MzIzNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/6932348?v=4","gravatar_id":"","url":"https://api.github.com/users/yongtang","html_url":"https://github.com/yongtang","followers_url":"https://api.github.com/users/yongtang/followers","following_url":"https://api.github.com/users/yongtang/following{/other_user}","gists_url":"https://api.github.com/users/yongtang/gists{/gist_id}","starred_url":"https://api.github.com/users/yongtang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yongtang/subscriptions","organizations_url":"https://api.github.com/users/yongtang/orgs","repos_url":"https://api.github.com/users/yongtang/repos","events_url":"https://api.github.com/users/yongtang/events{/privacy}","received_events_url":"https://api.github.com/users/yongtang/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-08-11T07:34:10Z","updated_at":"2018-11-29T19:13:59Z","closed_at":null,"author_association":"NONE","body":"\r\n### System information\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**:\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Linux Ubuntu 16.04\r\n- **TensorFlow installed from (source or binary)**: pip\r\n- **TensorFlow version (use command below)**: 1.9.0\r\n- **Python version**:  2.7\r\n- **GCC/Compiler version (if compiling from source)**: 4.8\r\n- **CUDA/cuDNN version**: 9.0\r\n- **GPU model and memory**: Titan 1080 Ti\r\n\r\n### Describe the problem\r\nI try to use tf.contrib.ffmpeg.decode_video to decode *avi video, but i got errors when processing some videos.\r\n\r\n### Source code / logs\r\n\r\nSource code:\r\n\r\nwith tf.Session() as sess:\r\n    for pth in pths:\r\n        print(pth)\r\n        vids = tf.contrib.ffmpeg.decode_video(tf.read_file(pth))\r\n        np_frames = sess.run(vids)\r\n\r\n\r\nLog Information:\r\n\r\nUnknownError                              Traceback (most recent call last)\r\n<ipython-input-3-525c5b7a8b81> in <module>()\r\n      5         print(pth)\r\n      6         vids = tf.contrib.ffmpeg.decode_video(tf.read_file(pth))\r\n----> 7         np_frames = sess.run(vids)\r\n      8         im_shapes += [np_frames.shape]\r\n\r\n/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tensorflow/python/client/session.pyc in run(self, fetches, feed_dict, options, run_metadata)\r\n    875     try:\r\n    876       result = self._run(None, fetches, feed_dict, options_ptr,\r\n--> 877                          run_metadata_ptr)\r\n    878       if run_metadata:\r\n    879         proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)\r\n\r\n/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tensorflow/python/client/session.pyc in _run(self, handle, fetches, feed_dict, options, run_metadata)\r\n   1098     if final_fetches or final_targets or (handle and feed_dict_tensor):\r\n   1099       results = self._do_run(handle, final_targets, final_fetches,\r\n-> 1100                              feed_dict_tensor, options, run_metadata)\r\n   1101     else:\r\n   1102       results = []\r\n\r\n/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tensorflow/python/client/session.pyc in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)\r\n   1270     if handle is None:\r\n   1271       return self._do_call(_run_fn, feeds, fetches, targets, options,\r\n-> 1272                            run_metadata)\r\n   1273     else:\r\n   1274       return self._do_call(_prun_fn, handle, feeds, fetches)\r\n\r\n/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tensorflow/python/client/session.pyc in _do_call(self, fn, *args)\r\n   1289         except KeyError:\r\n   1290           pass\r\n-> 1291       raise type(e)(node_def, op, message)\r\n   1292 \r\n   1293   def _extend_graph(self):\r\n\r\nUnknownError: Output created by FFmpeg [967449600] does not match description [100, 608, 1360, 3]\r\n\t [[Node: DecodeVideo_5 = DecodeVideo[_device=\"/job:localhost/replica:0/task:0/device:CPU:0\"](ReadFile_5)]]\r\n\r\nCaused by op u'DecodeVideo_5', defined at:\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/runpy.py\", line 174, in _run_module_as_main\r\n    \"__main__\", fname, loader, pkg_name)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/runpy.py\", line 72, in _run_code\r\n    exec code in run_globals\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/ipykernel_launcher.py\", line 16, in <module>\r\n    app.launch_new_instance()\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/traitlets/config/application.py\", line 658, in launch_instance\r\n    app.start()\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/ipykernel/kernelapp.py\", line 486, in start\r\n    self.io_loop.start()\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tornado/ioloop.py\", line 1064, in start\r\n    handler_func(fd_obj, events)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tornado/stack_context.py\", line 276, in null_wrapper\r\n    return fn(*args, **kwargs)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py\", line 450, in _handle_events\r\n    self._handle_recv()\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py\", line 480, in _handle_recv\r\n    self._run_callback(callback, msg)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py\", line 432, in _run_callback\r\n    callback(*args, **kwargs)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tornado/stack_context.py\", line 276, in null_wrapper\r\n    return fn(*args, **kwargs)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/ipykernel/kernelbase.py\", line 283, in dispatcher\r\n    return self.dispatch_shell(stream, msg)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/ipykernel/kernelbase.py\", line 233, in dispatch_shell\r\n    handler(stream, idents, msg)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/ipykernel/kernelbase.py\", line 399, in execute_request\r\n    user_expressions, allow_stdin)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/ipykernel/ipkernel.py\", line 208, in do_execute\r\n    res = shell.run_cell(code, store_history=store_history, silent=silent)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/ipykernel/zmqshell.py\", line 537, in run_cell\r\n    return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/IPython/core/interactiveshell.py\", line 2714, in run_cell\r\n    interactivity=interactivity, compiler=compiler, result=result)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/IPython/core/interactiveshell.py\", line 2818, in run_ast_nodes\r\n    if self.run_code(code, result):\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/IPython/core/interactiveshell.py\", line 2878, in run_code\r\n    exec(code_obj, self.user_global_ns, self.user_ns)\r\n  File \"<ipython-input-3-525c5b7a8b81>\", line 6, in <module>\r\n    vids = tf.contrib.ffmpeg.decode_video(tf.read_file(pth))\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tensorflow/contrib/ffmpeg/ffmpeg_ops.py\", line 108, in decode_video\r\n    return gen_decode_video_op_py.decode_video(contents)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tensorflow/contrib/ffmpeg/ops/gen_decode_video_op_py.py\", line 46, in decode_video\r\n    \"DecodeVideo\", contents=contents, name=name)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py\", line 787, in _apply_op_helper\r\n    op_def=op_def)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tensorflow/python/util/deprecation.py\", line 454, in new_func\r\n    return func(*args, **kwargs)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tensorflow/python/framework/ops.py\", line 3155, in create_op\r\n    op_def=op_def)\r\n  File \"/home/flowerfan/anaconda3/envs/tf27/lib/python2.7/site-packages/tensorflow/python/framework/ops.py\", line 1717, in __init__\r\n    self._traceback = tf_stack.extract_stack()\r\n\r\nUnknownError (see above for traceback): Output created by FFmpeg [967449600] does not match description [100, 608, 1360, 3]\r\n\t [[Node: DecodeVideo_5 = DecodeVideo[_device=\"/job:localhost/replica:0/task:0/device:CPU:0\"](ReadFile_5)]]\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/442957443","html_url":"https://github.com/tensorflow/tensorflow/issues/21549#issuecomment-442957443","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21549","id":442957443,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mjk1NzQ0Mw==","user":{"login":"tensorflowbutler","id":28546240,"node_id":"MDQ6VXNlcjI4NTQ2MjQw","avatar_url":"https://avatars2.githubusercontent.com/u/28546240?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorflowbutler","html_url":"https://github.com/tensorflowbutler","followers_url":"https://api.github.com/users/tensorflowbutler/followers","following_url":"https://api.github.com/users/tensorflowbutler/following{/other_user}","gists_url":"https://api.github.com/users/tensorflowbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflowbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflowbutler/subscriptions","organizations_url":"https://api.github.com/users/tensorflowbutler/orgs","repos_url":"https://api.github.com/users/tensorflowbutler/repos","events_url":"https://api.github.com/users/tensorflowbutler/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflowbutler/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T19:13:59Z","updated_at":"2018-11-29T19:13:59Z","author_association":"MEMBER","body":"Nagging Assignee @yongtang: It has been 105 days with no activity and this issue has an assignee. Please update the label and/or status accordingly."}}
{"actor":{"display_login":"tensorflowbutler"}}