Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • What is the best program to convert AVI to MP4 for playing online [on hold]

    8 avril 2016, par D3F4ULT

    I got several files into AVI movies, videos and more, and want to convert all MP4 so that it is playable on players like jwplayer, is there any ready tool for this task, which would be the best way for me to do this, the goal is :

    1 - Keep the collection of videos I have on HD in MP4 format playable online
    2 - Keep the same quality or same quality and most faithful possible
    3 - If possible to maintain the same quality, make the MP4 file have the same size or very close to the original file in AVI

  • Opencv(2.4.9) to capture video,but the program is slower when I put it on the centos(ffmpeg 1.1.3) than on the windows,what's wrong ?

    7 avril 2016, par Aaron

    Opencv(2.4.9) to capture video,but the program is slower when I put it on the centos(ffmpeg 1.1.3) than on the windows,what's wrong?

    Screenshot of the code

  • How to prepare media stream to play using dash.js web player ?

    7 avril 2016, par Paweł Tobiszewski

    I want to stream media from nginx server to Android device and play it using web player embedded into web page. Player I want to use is dash.js. I play the same media also using different methods (MediaPlayer and ExoPlayer) and they are working great. But when I try to use dash.js, I faced problem with codecs - they are not supported. I prepare my streams using ffmpeg and MP4Box, I also tried different codecs, like libx264, x264, x265 - always with the same effect. My based media are video in Y4M format and audio in WAV. How to encode it to use it in dash.js player?

    EDIT: I get error "Video Element Error: MEDIA_ERR_DECODE" while trying to decode video stream.

    Here is full log:

    [16] EME detected on this user agent! (ProtectionModel_21Jan2015) 
    [19] Playback Initialized 
    [28] [dash.js 2.0.0] MediaPlayer has been initialized 
    [102] Parsing complete: ( xml2json: 3ms, objectiron: 3ms, total: 0.006s) 
    [103] Manifest has been refreshed at Thu Apr 07 2016 22:02:52 GMT+0200 (CEST)[1460059372.696]  
    [107] SegmentTimeline detected using calculated Live Edge Time 
    [118] MediaSource is open! 
    [118] [object Event] 
    [119] Duration successfully set to: 18.58 
    [119] Added 0 inline events 
    [120] video codec: video/mp4;codecs="avc1.640032" 
    [132] Schedule controller stopping for video 
    [137] No audio data. 
    [137] No text data. 
    [137] No fragmentedText data. 
    [137] No embeddedText data. 
    [138] No muxed data. 
    [139] Start Event Controller 
    [141] Schedule controller starting for video 
    [143] Native video element event: play 
    [144] Schedule controller starting for video 
    [148] loaded video:InitializationSegment:NaN (200, 0ms, 7ms) 
    [149] Initialization finished loading 
    [154] Getting the request for video time : 0 
    [155] SegmentList: 0 / 18.58 
    [164] loaded video:MediaSegment:0 (200, 7ms, 1ms) 
    [169] Native video element event: loadedmetadata 
    [171] Starting playback at offset: 0 
    [175] Got enough buffer to start. 
    [175] Buffered Range: 0 - 0.999999 
    [179] Requesting seek to time: 0 
    [181] Prior to making a request for time, NextFragmentRequestRule is aligning index handler's currentTime with bufferedRange.end. 0  was changed to  0.999999 
    [182] Getting the request for video time : 0.999999 
    [183] SegmentList: 0 / 18.58 
    [183] Getting the next request at index: 1 
    [184] SegmentList: 1 / 18.58 
    [190] loaded video:MediaSegment:1 (200, 5ms, 0ms) 
    [192] Buffered Range: 0 - 0.999999 
    [195] Getting the request for video time : 2 
    [196] Index for video time 2 is 1 
    [197] SegmentList: 1 / 18.58 
    [197] Getting the next request at index: 2 
    [198] SegmentList: 2 / 18.58 
    [205] loaded video:MediaSegment:2 (200, 4ms, 1ms) 
    [207] Buffered Range: 0 - 0.999999 
    [207] Getting the request for video time : 3 
    [208] Index for video time 3 is 2 
    [208] SegmentList: 2 / 18.58 
    [209] Getting the next request at index: 3 
    [209] SegmentList: 3 / 18.58 
    [212] Video Element Error: MEDIA_ERR_DECODE 
    [212] [object MediaError] 
    [215] Schedule controller stopping for video 
    [219] Native video element event: pause 
    
  • Can't build ffmpeg

    7 avril 2016, par Dev_Vlad

    I have some problems with building ffmpeg for servestream radio.

    Here's the log:

    build-ffmpeg:
     [exec] arm-linux-androideabi-gcc is unable to create an executable file.
     [exec] C compiler test failed.
     [exec] 
     [exec] If you think configure made a mistake, make sure you are using the latest
     [exec] version from Git.  If the latest version fails, report the problem to the
     [exec] ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
     [exec] Include the log file "config.log" produced by configure as this will help
     [exec] solving the problem.
     [exec] Copying FFmpeg .so files from /home/vlad/WORK/Ubuntu/OnlineRadioSamples/servestream-master-minstrely/submodules/ffmpeg-0.11.1-android-2012-09-18/build/ffmpeg to /home/vlad/WORK/Ubuntu/OnlineRadioSamples/servestream-master-minstrely/jni/ffmpeg/ffmpeg/armeabi
     [exec] Copying FFmpeg .so files from /home/vlad/WORK/Ubuntu/OnlineRadioSamples/servestream-master-minstrely/submodules/ffmpeg-0.11.1-android-2012-09-18/build/ffmpeg to /home/vlad/WORK/Ubuntu/OnlineRadioSamples/servestream-master-minstrely/jni/ffmpeg/ffmpeg/armeabi-v7a
     [exec] Native build complete, exiting...
     [exec] cp: не could not execute stat for «/home/vlad/WORK/Ubuntu/OnlineRadioSamples/servestream-master-minstrely/submodules/ffmpeg-0.11.1-android-2012-09-18/build/ffmpeg/armeabi-v7a»: No such file or catalog
    
    native-clean:
     [exec] Android NDK: WARNING: APP_PLATFORM android-17 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml    
     [exec] Android NDK: ERROR:jni/ffmpeg/Android.mk:avcodec: LOCAL_SRC_FILES points to a missing file    
     [exec] Android NDK: Check that jni/ffmpeg/ffmpeg/armeabi/lib/libavcodec.so exists  or that its path is correct   
     [exec] /home/vlad/android/ndk/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.
    

    In arm-build.sh file I edited some lines:

    export NDK=${HOME}/android-ndk
    

    to

    export NDK=/home/vlad/android/ndk
    

    next:

    TOOLCHAIN=`echo $NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86*`
    

    to

    TOOLCHAIN=`echo $NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86*`
    

    What's wrong?

  • ffmpeg for a android (using tutorial : "ffmpeg and Android.mk")

    7 avril 2016, par Matthias

    I am trying to compile ffmpeg for a android. I have found several posts on this theme but non of these seems to work. If tried to build ffmpeg like it is posted on [1]. Did anybody successfully compile ffmpeg using theses tutorial? I am not sure how to realize step 4 to 5.

    STEP4: Configuring ...

    STEP5: cd to your NDK root dir, type make TARGET_ARCH=arm APP=ffmpeg-org

    It seems to me that building an application like it is explained in the tutorial in step 5 need some previous steps. Unfortunately I have no app in the folder to make. I am using the current android ndk release 3 and checked out the actual ffmpeg releases from [3] and [4]. I am thankful for every advice.

    [1] http://slworkthings.wordpress.com/
    [2] http://gitorious.org/~olvaffe/ffmpeg/ffmpeg-android
    [3] http://ffmpeg.org/download.html