bramp / ffmpeg-cli-wrapper

Java wrapper around the FFmpeg command line tool
BSD 2-Clause "Simplified" License
1.73k stars 413 forks source link

Add timecode field to FFmpegStream #236

Closed smedelyan closed 8 months ago

smedelyan commented 3 years ago

Describe the solution you'd like When I run:

ffprobe -show_streams <some_media>

I get something like timecode=N/A, but FFmpegStream does not even have this field. According to FFmpeg docs:

  • MPEG1/2 timecode is extracted from the GOP, and is available in the video stream details (-show_streams, see timecode)
    • MOV timecode is extracted from tmcd track, so is available in the tmcd stream metadata (-show_streams, see TAG:timecode).
  • DV, GXF and AVI timecodes are available in format metadata (-show_format, see TAG:timecode).

While I have access to tags (TAG:timecode), I still cannot access videoStream.timecode.

Describe alternatives you've considered Can't think of any. Rather rewrite cli wrapper or extract timecode from the GOP myself :)

Euklios commented 8 months ago

Sorry for the extremely late response. Could you let me know how you ended up solving this issue? Could we potentially merge back into this repository?

smedelyan commented 7 months ago

@Euklios I abandoned cli wrapper and started parsing ffprobe output myself =) Luckily, it has an option to output a JSON, so that was easy