Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques Problem width ffmpeg version N-60724-gb9936e5 Copyright (c) 2000-2014

  • Problem width ffmpeg version N-60724-gb9936e5 Copyright (c) 2000-2014

    Posted by Moahammad Yazdian on February 25, 2014 at 12:57 pm

    Hello everone,

    I like to use ffmpeg in my web project to convert video files and get some information from ffmpeg such as duration ,screensize , video bitrate and audio bitrate.

    So I downloaded FFMPEG and use this codes in asp.net:

    “I have Problem to get above information”


    Dim psi As ProcessStartInfo = New ProcessStartInfo("c:\ffmpeg\ffmpeg.exe")
    Dim proc As Process = Process.Start(psi)
    psi.UseShellExecute = False
    psi.Arguments = " -i " & Request.QueryString("file")
    psi.RedirectStandardError = True
    proc = Process.Start(psi)
    proc.WaitForExit()

    Dim sr As StreamReader = proc.StandardError

    Do While Not sr.EndOfStream
    Response.Write(sr.ReadLine & "")
    Loop

    This Codes worked correctly when I used ffmpeg(version N-57235-g0bf8580-Sherpya Copyright developers built on Oct 18 2013 00:18:11 with gcc 4.6 (GCC)) except that it could not convert video files with the format of MKV to MP4. But when I used ffmpeg(version N-60724-gb9936e5 Copyright (c) 2000-2 developers built on Feb 18 2014 22:01:49 with gcc 4.8.2 (GCC)) it converts MKV format to MP4 but it dose not provide duration ,screensize , video bitrate and audio bitrate.

    In other words, In FFMPEG (version N-60724-gb9936e5 Copyright (c) 2000-2 developers built on Feb 18 2014 22:01:49 with gcc 4.8.2 (GCC)) , I can Convert video formats but I cann’t get duration and In FFMPEG (version N-57235-g0bf8580-Sherpya Copyright developers built on Oct 18 2013 00:18:11 with gcc 4.6 (GCC)) I can get duration but I cann’t convert video formats (I mean specialy MKV).

    So I get this result when I use FFMEG:

    In the FFMPEG (version N-60724-gb9936e5 Copyright (c) 2000-2 developers built on Feb 18 2014 22:01:49 with gcc 4.8.2 (GCC)) RedirectStandardError I cann’t find Duration to parse(HOUR , MINUTE , SECOND).

    ffmpeg version N-60724-gb9936e5 Copyright (c) 2000-2014 the FFmpeg developers
    built on Feb 18 2014 22:01:49 with gcc 4.8.2 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
    libavutil 52. 64.100 / 52. 64.100
    libavcodec 55. 52.102 / 55. 52.102
    libavformat 55. 33.100 / 55. 33.100
    libavdevice 55. 10.100 / 55. 10.100
    libavfilter 4. 1.102 / 4. 1.102
    libswscale 2. 5.101 / 2. 5.101
    libswresample 0. 17.104 / 0. 17.104
    libpostproc 52. 3.100 / 52. 3.100

    In the FFMPEG (version N-57235-g0bf8580-Sherpya Copyright developers built on Oct 18 2013 00:18:11 with gcc 4.6 (GCC)) RedirectStandardError I can find Duration to parse(HOUR , MINUTE , SECOND) but I cann’t connvert video format MKV.


    ffmpeg version N-57235-g0bf8580-Sherpya Copyright (c) 2000-2013 the FFmpeg developers
    built on Oct 18 2013 00:18:11 with gcc 4.6 (GCC)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\MyProject\gooya\Website\panel\pictures\myazdian\Video\19216811-57201311925-656.mp4':
    Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf55.0.100
    Duration: 00:00:16.96, start: 0.072562, bitrate: 142 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 176x144 [SAR 178:163 DAR 1958:1467], 105 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
    handler_name : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 32 kb/s (default)
    Metadata:
    handler_name : SoundHandler
    At least one output file must be specified

    PLEASE HELP.

    Best Regards

    Jim Sustacek replied 12 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Jim Sustacek

    February 27, 2014 at 2:04 pm

    Can you share the complete FFMPEG command, as generated by ASP.NET? That way, we can test it on our versions of FFMPEG. A link to download a sample video might help, too.

    Also, if you are running Windows, have you tried the Zeranoe builds of FFMPEG?

    https://ffmpeg.zeranoe.com/builds/

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy