Telecommunication-Telemedia-Assessment / bitstream_mode3_p1204_3

Open source reference implementation of ITU-T P.1204.3
Other
58 stars 15 forks source link

Shall we need put all the test videos inside test_videos folder? #8

Closed liweijian closed 4 years ago

liweijian commented 4 years ago

I tried to run p1204_3 in another folder, and got errors as follow:

$ poetry run p1204_3 fast.mp4

[RuntimeError]
Poetry could not find a pyproject.toml file in /Downloads/channels-cases or its parents

Just wondering if maybe anything I was missing?

slhck commented 4 years ago

You can only run the module from the same folder where it is located.

We might add an installable (system-wide) executable at some point in the future though.

slhck commented 4 years ago

Regarding the title of your question: You can specify any video file name as a parameter, so you can run:

poetry run p1204_3 /path/to/fast.mp4 /path/to/someotherfile.mp4
liweijian commented 4 years ago

Thanks @slhck for your quick reply.

Another question, does p1204_3 run in MacOS?

I got an error when trying to run the script.

 $ poetry run p1204_3 fast.mp4
INFO:root:handle the following videos (# 1):
  fast.mp4
ERROR:root:video parser is not build correctly, please check
Traceback (most recent call last):
  File "/Users/tli/Downloads/toys/bitstream_mode3_p1204_3/p1204_3/bitstream_mode3_videoparser/PythonInterface/parse.py", line 78, in <module>
    main()
  File "/Users/tli/Downloads/toys/bitstream_mode3_p1204_3/p1204_3/bitstream_mode3_videoparser/PythonInterface/parse.py", line 59, in main
    video_parser = videoparser.VideoParser(a["input"], a["dll"])
  File "/Users/tli/Downloads/toys/bitstream_mode3_p1204_3/p1204_3/bitstream_mode3_videoparser/PythonInterface/lib/videoparser.py", line 15, in __init__
    self.parser = pi.ParserInterface(self.input_file, dll_path)
  File "/Users/tli/Downloads/toys/bitstream_mode3_p1204_3/p1204_3/bitstream_mode3_videoparser/PythonInterface/lib/parserinterface.py", line 17, in __init__
    raise IOError("DLL file not found")
OSError: DLL file not found
ERROR:root:there was something wrong with fast.mp4
ERROR:root:please check the following command:
 /Users/tli/Downloads/toys/bitstream_mode3_p1204_3/p1204_3/bitstream_mode3_videoparser/parser.sh "fast.mp4" --output "./tmp/fast.json.bz2"
ERROR:root:no bitstream stats file for fast.mp4
[
    {}
]
slhck commented 4 years ago

I had problems getting the bitstream parser to run under macOS; there is an open PR here: https://github.com/Telecommunication-Telemedia-Assessment/bitstream_mode3_videoparser/pull/2

I think it would be best to run it under Ubuntu or within a Docker container. Sorry for not being able to provide a macOS version yet – it's a bit trickier.