Skip to content

Commit

Permalink
Removed the (faulty) fps extraction completely
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten Woelk committed Nov 7, 2012
1 parent 46ee6d3 commit d3078d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions media/src/org/riotfamily/media/processing/FFmpeg.java
Expand Up @@ -40,7 +40,7 @@ public class FFmpeg implements InitializingBean {
"bitrate: (\\d+) kb/s");

private static final Pattern VIDEO_PATTERN = Pattern.compile(
"Video: (\\w+).*?(\\d+)x(\\d+).*?(\\d+\\.?\\d?k?) (fps|tb\\(r\\)|tbr)");
"Video: (\\w+).*?(\\d+)x(\\d+)");

private static final Pattern AUDIO_PATTERN = Pattern.compile(
"Audio: (\\w+).*?(\\d+) Hz, (mono|stereo)");
Expand Down Expand Up @@ -108,7 +108,6 @@ public VideoMetaData identify(File file) throws IOException {
meta.setVideoCodec(m.group(1));
meta.setWidth(Integer.parseInt(m.group(2)));
meta.setHeight(Integer.parseInt(m.group(3)));
meta.setFps(Float.parseFloat(m.group(4)));
}

m = AUDIO_PATTERN.matcher(out);
Expand Down
Expand Up @@ -6,7 +6,7 @@
<tbody>
<tr><td class="label">Name</td><td class="value">${element.video.fileName}</td></tr>
<tr><td class="label">Size</td><td class="value">${element.video.width} &times; ${element.video.height} (${element.video.formatedSize})</td></tr>
<tr><td class="label">Video</td><td class="value">${element.video.videoCodec!} ${element.video.fps} fps</td></tr>
<tr><td class="label">Video</td><td class="value">${element.video.videoCodec!}</td></tr>
<#if element.video.audioCodec??>
<tr><td class="label">Audio</td><td class="value">${element.video.audioCodec} ${element.video.samplingRate} Hz ${element.video.stereo?string('Stereo','Mono')}</td></tr>
</#if>
Expand Down

0 comments on commit d3078d1

Please sign in to comment.