Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • How to build fdk-aac for ios arm64 architecture ?

    2 décembre 2014, par 谢小进

    I have built fdk-aac for iOS, including x86_64, i386, armv7, and armv7s, failed to build to arm64 architecture. I have sent email to the author of fdk-aac but he said he won't support arm64. Does anybody know how to build for arm64?

  • SNAP : Simulation and Neuroscience Application Platform

    2 décembre 2014, par Sumit

    Is there any documentation/help manual on how to use SNAP (Simulation and Neuroscience Application Platform)1.

    I wanted to run the Motor Imagery sample scenario with a .avi file for the stimulus instead of the image. How can that be done?

    The following error is obtained when using the AlphaCalibration scenario which gives code to play an avi file.Any help appreciated

    :movies:ffmpeg(warning): parser not found for codec indeo4, packets or times may be invalid.
    :movies:ffmpeg(warning): max_analyze_duration 5000000 reached at 5000000
    :movies(error): Could not open /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
    :audio(error): Cannot open file: /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
    :audio(error): Could not open audio /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
    :movies:ffmpeg(warning): parser not found for codec indeo4, packets or times may be invalid.
    :movies:ffmpeg(warning): max_analyze_duration 5000000 reached at 5000000
    :movies(error): Could not open /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
    :gobj(error): Texture "/e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi" exists but cannot be read.
    Traceback (most recent call last):
      File "E:\BCI_Feb2014\SNAP-master\src\framework\latentmodule.py", line 458, in _run_wrap
        self.run()
      File "modules\BCI\AlphaCalibration.py", line 30, in run
    Exception during run():
        m = self.movie(self.moviefile, block=False, scale=[0.7,0.4],aspect=1.125,contentoffset=[0,0],volume=0.3,timeoffset=self.begintime+t*self.awake_duration,looping=True)
    Could not load texture: bird.avi
      File "E:\BCI_Feb2014\SNAP-master\src\framework\basicstimuli.py", line 348, in movie
        tex = self._engine.base.loader.loadTexture(filename)
      File "E:\BCI_Feb2014\Panda3D-1.8.0\direct\showbase\Loader.py", line 554, in loadTexture
        raise IOError, message
    IOError: Could not load texture: bird.avi
    
  • Expanding media capabilities of Win Embedded CE 6.0

    1er décembre 2014, par Simo Erkinheimo

    I have an embedded device with WinCE 6.0 as OS. The manufacturer provides an IDE for 3rd party development to it. The IDE pretty much allows nothing else than

    • .NET 3.5 Compact Framework scripting that's invoked from various events from the main application
    • Adding files to the device.

    The included mediaplayer seems to be using DirectShow and the OS has media codec only for mpeg-1 encoded video playback. My goal is to to be able to play media encoded with some other codecs as well inside that main application.

    I've already managed to use DirectShowNETCF (DirectShow wrapper for .NET Compact Framework) and successfully playback mpeg-1 encoded video.

    I'm totally new with this stuff and I have tons of (stupid) questions. I'll try to narrow them down:

    • The OS is based on WinCE, but as far as I've understood, it's actually always some customized version of it (via Platform Builder). Only "correct way" of developing anything for it afterwards is to use the SDK the manufacturer usually provides. Right? In my case, the SDK is extremely limited and tightly integrated into IDE as noted above. However, .NET CF 3.5 is capable for interop so its possible to call native libraries -as long as they are compiled for correct platform.

    • Compiled code is pretty much just instructions for the processor (assembler code) and the compiler chooses the correct instructions based on the target processor setting. Also there's the PE-header that defines under which platform the program is meant to be run. If I target my "helloworld.exe" (does nothing but returns specific exit code) to x86 and compile it with VC, should it work?

    • If the PE-header is in fact the problem, is it possible to setup for WINCE without the SDK? Do I REALLY need the whole SDK for creating a simple executable that uses only base types? I'm using VS2010, which doesn't even support smart device dev anymore and I'd hate to downgrade just for testing purposes.

    • Above questions are prequel to my actual idea: Porting ffmpeg/ffdshow for WinCE. This actually already exists, but not targeted nor built for Intel Atom. Comments?

    • If the native implementation is not possible and I would end up implementing some specific codec with C#...well that would probably be quite a massive task. But having to choose C# over native, could I run into problems with codec performance? I mean.. is C# THAT much slower?

    Thank you.

  • FFMPEG no metadata

    1er décembre 2014, par user2601259

    I am trying to dump all the important info using ffmpeg.exe -i "1.mp4" -f ffmetadata metadata.txt yet all I get is

    ;FFMETADATA1
    major_brand=isom
    minor_version=1
    compatible_brands=isom
    

    Official documentation gives no clues at all

  • Android HLS plays first segment then only audio

    1er décembre 2014, par Chris Recalis

    I'm having difficulty playing HLS on Android where only the audio is playing. The stream will play for the first video segment and then turn into an audio only stream. Here is a sample link https://clipter.com/c/aymels8/hls.m3u8

    hls.m3u8

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-PLAYLIST-TYPE:VOD
    #EXT-X-TARGETDURATION:9
    #EXT-X-ALLOW-CACHE:YES
    #EXTINF:8.5,
    https://d3ilpkc014v0xn.cloudfront.net/f5305de24/2103cb31c3078eb5edd5c325108f6d6f.ts?1416176849
    #EXTINF:7.33,
    https://d3ilpkc014v0xn.cloudfront.net/f5305de24/1214ef63a031e3d3229893fdb60eea86.ts?1416176848
    #EXTINF:8.5,
    https://d3ilpkc014v0xn.cloudfront.net/f5305de24/99c47c49548521b0fff05119a5c63908.ts?1416176889
    #EXTINF:8.43,
    https://d3ilpkc014v0xn.cloudfront.net/f5305de24/143acefc2149f2572ddcc08abb705736.ts?1416176988
    #EXTINF:4.43,
    https://d3ilpkc014v0xn.cloudfront.net/f5305de24/11c92b5084971e0cf4768f958e97f936.ts?1416177431
    #EXTINF:6.9,
    https://d3ilpkc014v0xn.cloudfront.net/f5305de24/10ab810169fb684469f736a53f2cba3a.ts?1416177545
    #EXTINF:8.57,
    https://d3ilpkc014v0xn.cloudfront.net/f5305de24/88b037af27757e4805d7f1ed0496cbb8.ts?1416178434
    #EXTINF:2.1,
    https://d3ilpkc014v0xn.cloudfront.net/f5305de24/4a8cda13ea40228de4638dee9985b8b0.ts?1416178513
    #EXTINF:8.47,
    https://d3ilpkc014v0xn.cloudfront.net/f5305de24/e6fa0135987c86d323f1e994bcd2b429.ts?1416179772
    #EXTINF:8.38,
    https://d3ilpkc014v0xn.cloudfront.net/f5305de24/9a08aba19b45601c83854216bb07a6b6.ts?1416604373
    #EXT-X-ENDLIST
    

    output from ffprobe

    ffprobe version 2.3.3 Copyright (c) 2007-2014 the FFmpeg developers
      built on Aug 25 2014 19:47:15 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
      configuration: --prefix=/usr/local/Cellar/ffmpeg/2.3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
      libavutil      52. 92.100 / 52. 92.100
      libavcodec     55. 69.100 / 55. 69.100
      libavformat    55. 48.100 / 55. 48.100
      libavdevice    55. 13.102 / 55. 13.102
      libavfilter     4. 11.100 /  4. 11.100
      libavresample   1.  3.  0 /  1.  3.  0
      libswscale      2.  6.100 /  2.  6.100
      libswresample   0. 19.100 /  0. 19.100
      libpostproc    52.  3.100 / 52.  3.100
    Input #0, mpegts, from '2103cb31c3078eb5edd5c325108f6d6f.ts?1416176849':
      Duration: 00:00:08.53, start: 1.400000, bitrate: 1236 kb/s
      Program 1 
        Metadata:
          service_name    : Service01
          service_provider: FFmpeg
        Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 480x480, 30 fps, 30 tbr, 90k tbn, 60 tbc
        Stream #0:1[0x101](und): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp, 67 kb/s