Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codec data: stream info parsing does not support commas inside parentheses #682

Open
tkalliom opened this issue Mar 24, 2017 · 0 comments
Open
Labels

Comments

@tkalliom
Copy link

For a video for which ffmpeg prints the following to stderr:

Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 560x320, 465 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default)

the data for the codecData event breaks at the comma inside parentheses. (Parsing the human-readable output of ffmpeg seems suboptimal compared to ffprobe -show_streams, but using ffprobe is tricky when the input is a stream. The main ffmpeg does not seem to have an option for similar output?)

Version information

  • fluent-ffmpeg version: 2.1.0
  • ffmpeg version: 3.2.4
  • OS: Linux (4.9, Debian Stretch)

Code to reproduce

ffmpeg('/path/to/source')
.on("codecData", data => console.log(data.video_details[1]))

happens on http://techslides.com/demos/sample-videos/small.mp4 for example

Expected results

yuv420p(tv, bt709)

Observed results

yuv420p(tv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants