Closed ChicoQi closed 4 weeks ago
My input_list.txt has lots of ..mp4
but ffmpeg seems can't deal with double dot rather than one dot like .mp4
.
I manually ran ffmpeg -loglevel error -f concat -safe 0 -i /tmp/tmpw0zyftkh/input_list.txt -c copy /tmp/cvat_import_chico2/cvat.mp4
and the same error occurred.
$ head /tmp/tmpw0zyftkh/input_list.txt
file '/tmp/tmp44yd5t3h/0..mp4'
file '/tmp/tmp44yd5t3h/1..mp4'
file '/tmp/tmp44yd5t3h/2..mp4'
file '/tmp/tmp44yd5t3h/3..mp4'
file '/tmp/tmp44yd5t3h/4..mp4'
file '/tmp/tmp44yd5t3h/5..mp4'
file '/tmp/tmp44yd5t3h/6..mp4'
file '/tmp/tmp44yd5t3h/7..mp4'
file '/tmp/tmp44yd5t3h/8..mp4'
file '/tmp/tmp44yd5t3h/9..mp4'
After digging a little bit, this line might be the root cause,
chunk_path = os.path.join(tmp_dir, "%d.%s" % (chunk_id, ext))
at
https://github.com/voxel51/fiftyone/blob/develop/fiftyone/utils/cvat.py#L376
Finally, "%d.%s" is changed to "%d%s" and then it worked.
@ChicoQi thanks for catching this! Will be fixed by https://github.com/voxel51/fiftyone/pull/4674 and released as part of fiftyone==0.25
, slated for release on Monday August 19
Instructions
Thank you for submitting an issue. Please refer to our issue policy for information on what types of issues we address.
Describe the problem
fouv.concat_videos
incvat.py
failed.Code to reproduce issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem. Please avoid sharing code that relies on your local data or datasets. Include a short video or screenshot if the bug is in the App.
System information
python --version
):fiftyone --version
):Other info/logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Please do not use screenshots for sharing text. Code snippets should be used instead when providing tracebacks, logs, etc.
Willingness to contribute
The FiftyOne Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the FiftyOne codebase?