Recherche avancée

Médias (9)

Mot : - Tags -/soundtrack

Autres articles (41)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (6942)

  • How can I run command line FFMPEG and accept multiple pipes (video and audio) without blocking on the first input ?

    18 février 2016, par Version135b

    I’m trying to mux h264 and aac created with MediaCodec using FFMPEG, and also use FFMPEG’s RTMP support to send to youtube. I’ve created two pipes, and am writing from java (android) through WriteableByteChannels. I can send to one pipe just fine (accepting null audio) like this :

    ./ffmpeg -f lavfi -i aevalsrc=0 -i "files/camera-test.h264" -acodec aac -vcodec copy -bufsize 512k -f flv "rtmp://a.rtmp.youtube.com/live2/XXXX"

    YouTube streaming works perfectly (but I have no audio). Using two pipes this is my command :

    ./ffmpeg \
    -i "files/camera-test.h264" \
    -i "files/audio-test.aac" \
    -vcodec copy \
    -acodec copy \
    -map 0:v:0 -map 1:a:0 \
    -f flv "rtmp://a.rtmp.youtube.com/live2/XXXX""

    The pipes are created with mkfifo , and opened from java like this :

    pipeWriterVideo = Channels.newChannel(new FileOutputStream(outputFileVideo.toString()));

    The order of execution (for now in my test phase) is creation of the files, starting ffmpeg (through adb shell) and then starting recording which opens the channels. ffmpeg will immediately open the h264 stream and then wait, since it is reading from the pipe the first channel open (for video) will successfully run. When it comes to trying to open the audio the same way, it fails because ffmpeg has not actually started reading from the pipe. I can open a second terminal window and cat the audio file and my app spits out what i hope is encoded aac, but ffmpeg fails, usually just sitting there waiting. Here is the verbose output :

    ffmpeg version N-78385-g855d9d2 Copyright (c) 2000-2016 the FFmpeg
    developers
     built with gcc 4.8 (GCC)
     configuration: --prefix=/home/dev/svn/android-ffmpeg-with-rtmp/src/ffmpeg/android/arm
       --enable-shared --disable-static --disable-doc --disable-ffplay
       --disable-ffprobe --disable-ffserver --disable-symver
       --cross-prefix=/home/dev/dev/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
       --target-os=linux --arch=arm --enable-cross-compile
       --enable-librtmp --enable-pic --enable-decoder=h264
       --sysroot=/home/dev/dev/android-ndk-r10e/platforms/android-19/arch-arm
       --extra-cflags='-Os -fpic -marm'
       --extra-ldflags='-L/home/dev/svn/android-ffmpeg-with-rtmp/src/openssl-android/libs/armeabi '
       --extra-ldexeflags=-pie --pkg-config=/usr/bin/pkg-config
     libavutil      55. 17.100 / 55. 17.100
     libavcodec     57. 24.102 / 57. 24.102
     libavformat    57. 25.100 / 57. 25.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 31.100 /  6. 31.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
    matched as AVOption 'debug' with argument 'verbose'.
    Trailing options were found on the commandline.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option async (audio sync method) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input file files/camera-test.h264.
    Successfully parsed a group of options.
    Opening an input file: files/camera-test.h264.
    [file @ 0xb503b100] Setting default whitelist 'file'

    I think if I could just get ffmpeg to start listening to both pipes, the rest would work out !

    Thanks for your time.

    EDIT :
    I’ve made progress by decoupling the audio pipe connection and encoding, but now as soon as the video stream has been passed it errors on audio. I started a separate thread to create the WriteableByteChannel for audio and it never gets passed the FileOutputStream creation.

    matched as AVOption 'debug' with argument 'verbose'.
    Trailing options were found on the commandline.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Successfully parsed a group of options.
    Parsing a group of options: input file files/camera-test.h264.
    Successfully parsed a group of options.
    Opening an input file: files/camera-test.h264.
    [file @ 0xb503b100] Setting default whitelist 'file'
    [h264 @ 0xb503c400] Format h264 probed with size=2048 and score=51
    [h264 @ 0xb503c400] Before avformat_find_stream_info() pos: 0 bytes read:15719 seeks:0
    [h264 @ 0xb5027400] Current profile doesn't provide more RBSP data in PPS, skipping
    [h264 @ 0xb503c400] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
    [h264 @ 0xb503c400] After avformat_find_stream_info() pos: 545242 bytes read:546928 seeks:0 frames:127
    Input #0, h264, from 'files/camera-test.h264':
     Duration: N/A, bitrate: N/A
       Stream #0:0, 127, 1/1200000: Video: h264 (Baseline), 1 reference frame, yuv420p(left), 854x480 (864x480), 1/50, 25 fps, 25 tbr, 1200k tbn, 50 tbc
    Successfully opened the file.
    Parsing a group of options: input file files/audio-test.aac.
    Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy.
    Successfully parsed a group of options.
    Opening an input file: files/audio-test.aac.
    Unknown decoder 'copy'
    [AVIOContext @ 0xb5054020] Statistics: 546928 bytes read, 0 seeks

    Here is where I attempt to open the audio pipe.

    new Thread(){
        public void run(){
             Log.d("Audio", "pre thread");
             FileOutputStream fs = null;
             try {
                  fs = new FileOutputStream("/data/data/android.com.android.grafika/files/audio-test.aac");
             } catch (FileNotFoundException e) {
                  e.printStackTrace();
             }
             Log.d("Audio", "made fileoutputstream");  //never hits here
             mVideoEncoder.pipeWriterAudio = Channels.newChannel(fs);
             Log.d("Audio", "made it past opening audio pipe");
        }
    }.start();

    Thanks.

  • ffmpeg transcoding stop after few seconds

    9 avril 2018, par Salem F

    Hi i’m trying to do this over week now with no success ,
    What’s i’m trying to do is transcoding video from live streaming source and downscale it with FFmpeg , but every time I start transcoding it broadcasting fro 11 Sec and stop . here last command I tried

     ffmpeg  -re  -i 'http://source.com/1034.ts' -preset ultrafast http://localhost:2052/feed1.ffm

    I tried to download the .ts file with IDM and it finish downloading the file on the exact 12 Sec that FFmpeg stop trans coding on it .

    does that means that FFmpeg download that file as one segment and not continued reading the source video As what video players does usually . BTW I tried with source with VLC player and it didn’t stop playing the the same source video .

    Edit :- I decide to pass FFmpeg command via FFserver config file ffserver.conf

    Launch ffmpeg -i 'http://source.com/1.ts' -copyinkf -codec copy  

    The stream works fine for a while but after testing couple sources I notice it’s struggle to trans-coding HD videos .

    I guess the issue with my VPS KVM server being very limited CPU and RAM ( 128MB only ) ! Since I tried using ultrafast preset but din’t solve the issue , another thing , I notice when I enable AVOptionVideo crf setting on ffserver.conf trans-coding runs bit smoothly without frame-rate dropping .
    Las my server uses Xeon L5520 CPU which is outdated CPU specially I gout 1/4 power of V single core (if they count HT it will be 1/8 of the real core ) :(

    Edit 2 :-

    # vlc -I dummy 'https://source.com/1034.ts' --sout '#standard{access=http,mux=flv,dst=localhost:2052}'
    VLC media player 2.2.8 Weatherwax (revision 2.2.7-14-g3cc1d8cba9)
    [09d3fdf0] pulse audio output error: PulseAudio server connection failure: Connection refused
    [09d279c0] core interface error: no suitable interface module
    [09c9b8f8] core libvlc error: interface "globalhotkeys,none" initialization failed
    [09d279c0] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
    [09d279c0] core interface error: no suitable interface module
    [09c9b8f8] core libvlc error: interface "dbus,none" initialization failed
    [09d279c0] dummy interface: using the dummy interface module...
    [b5e04ae0] access_output_http access out: Consider passing --http-host=IP on the command line instead.
    [b5e38ab8] ts demux: MPEG-4 descriptor not found for pid 0x101 type 0xf
    [b5e90ae0] packetizer_mpeg4audio decoder: AAC channels: 2 samplerate: 48000
    [flv @ 0xb5e33b40] dimensions not set
    [b5e06360] avformat mux error: could not write header: Invalid argument
    [b5e88ef0] core decoder error: cannot continue streaming due to errors
    [b5e90ae0] core decoder error: cannot continue streaming due to errors

    Here output with -loglevel verbose

    :~# ffmpeg -i http://source.com/1.ts -copyinkf -codec copy  -loglevel verbose  http://127.0.0.1:8090/feed1.ffm
    ffmpeg version 2.6.9 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.9.2 (Debian 4.9.2-10)
     configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/i386-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/i386-linux-gnu
     libavutil      54. 20.100 / 54. 20.100
     libavcodec     56. 26.100 / 56. 26.100
     libavformat    56. 25.101 / 56. 25.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 11.102 /  5. 11.102
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Invalid UE golomb code
       Last message repeated 2 times
    Input #0, mpegts, from 'http://source.com/1.ts':
     Duration: N/A, start: 30472.768167, bitrate: N/A
     Program 1
       Metadata:
         service_name    : Service01
         service_provider: FFmpeg
       Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 960x540 (960x544) [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
       Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 105 kb/s
    [graph 0 input from stream 0:1 @ 0x971f2c0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
    [audio format for output stream 0:0 @ 0x9844de0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
    [auto-inserted resampler 0 @ 0x97115e0] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:1 chl:mono fmt:fltp r:22050Hz
    [graph 1 input from stream 0:0 @ 0x96f5d00] w:960 h:540 pixfmt:yuv420p tb:1/90000 fr:50/1 sar:1/1 sws_param:flags=2
    [scaler for output stream 0:1 @ 0x96f5e80] w:352 h:240 flags:'0x4' interl:0
    [scaler for output stream 0:1 @ 0x96f5e80] w:960 h:540 fmt:yuv420p sar:1/1 -> w:352 h:240 fmt:yuv420p sar:40/33 flags:0x4
    Output #0, ffm, to 'http://127.0.0.1:8090/feed1.ffm':
     Metadata:
       creation_time   : now
       encoder         : Lavf56.25.101
       Stream #0:0: Audio: wmav2, 22050 Hz, mono, fltp, 64 kb/s
       Metadata:
         encoder         : Lavc56.26.100 wmav2
       Stream #0:1: Video: msmpeg4v3 (msmpeg4), yuv420p, 352x240 [SAR 40:33 DAR 16:9], q=2-31, 256 kb/s, 50 fps, 1000k tbn, 15 tbc
       Metadata:
         encoder         : Lavc56.26.100 msmpeg4
    Stream mapping:
     Stream #0:1 -> #0:0 (aac (native) -> wmav2 (native))
     Stream #0:0 -> #0:1 (h264 (native) -> msmpeg4v3 (msmpeg4))
    Press [q] to stop, [?] for help
    Invalid UE golomb code
    *** dropping frame 3 from stream 1 at ts 1
       Last message repeated 1 times
    [msmpeg4 @ 0x970f060] warning, clipping 1 dct coefficients to -127..127
    *** dropping frame 4 from stream 1 at ts 2
       Last message repeated 1 times
    *** dropping frame 5 from stream 1 at ts 3
       Last message repeated 1 times
    *** dropping frame 5 from stream 1 at ts 4
    *** dropping frame 6 from stream 1 at ts 4
       Last message repeated 1 times
    *** dropping frame 7 from stream 1 at ts 5
       Last message repeated 1 times
    [msmpeg4 @ 0x970f060] warning, clipping 1 dct coefficients to -127..127
    *** dropping frame 8 from stream 1 at ts 6
       Last message repeated 1 times
    *** dropping frame 8 from stream 1 at ts 7
    *** dropping frame 9 from stream 1 at ts 7
       Last message repeated 1 times
    *** dropping frame 10 from stream 1 at ts 8
       Last message repeated 1 times
    *** dropping frame 11 from stream 1 at ts 9
       Last message repeated 1 times
    *** dropping frame 11 from stream 1 at ts 10
    *** dropping frame 12 from stream 1 at ts 10
       Last message repeated 1 times
    *** dropping frame 13 from stream 1 at ts 11
       Last message repeated 1 times
    *** dropping frame 14 from stream 1 at ts 12
       Last message repeated 1 times
    *** dropping frame 14 from stream 1 at ts 13
    *** dropping frame 15 from stream 1 at ts 13
       Last message repeated 1 times
    *** dropping frame 16 from stream 1 at ts 14
       Last message repeated 1 times
    *** dropping frame 17 from stream 1 at ts 15
       Last message repeated 1 times
    *** dropping frame 17 from stream 1 at ts 16
    *** dropping frame 18 from stream 1 at ts 16
       Last message repeated 1 times
    *** dropping frame 19 from stream 1 at ts 17
       Last message repeated 1 times
    *** dropping frame 20 from stream 1 at ts 18me=00:00:01.33 bitrate= 270.3kbits/s dup=0 drop=39
       Last message repeated 1 times
    *** dropping frame 20 from stream 1 at ts 19
    *** dropping frame 21 from stream 1 at ts 19
       Last message repeated 1 times
    *** dropping frame 22 from stream 1 at ts 20
       Last message repeated 1 times
    *** dropping frame 23 from stream 1 at ts 21
       Last message repeated 1 times
    *** dropping frame 23 from stream 1 at ts 22
    *** dropping frame 24 from stream 1 at ts 22
       Last message repeated 1 times
    *** dropping frame 25 from stream 1 at ts 23
       Last message repeated 1 times
    *** dropping frame 26 from stream 1 at ts 24
       Last message repeated 1 times
    *** dropping frame 26 from stream 1 at ts 25
    *** dropping frame 27 from stream 1 at ts 25
       Last message repeated 1 times
    *** dropping frame 28 from stream 1 at ts 26
       Last message repeated 1 times
    *** dropping frame 29 from stream 1 at ts 27
       Last message repeated 1 times
    *** dropping frame 29 from stream 1 at ts 28
    *** dropping frame 30 from stream 1 at ts 28
       Last message repeated 1 times
    *** dropping frame 31 from stream 1 at ts 29
       Last message repeated 1 times
    *** dropping frame 32 from stream 1 at ts 30
       Last message repeated 1 times
    *** dropping frame 32 from stream 1 at ts 31
    *** dropping frame 33 from stream 1 at ts 31
       Last message repeated 1 times
    *** dropping frame 34 from stream 1 at ts 32
       Last message repeated 1 times
    *** dropping frame 34 from stream 1 at ts 33
    *** dropping frame 35 from stream 1 at ts 33
    *** dropping frame 35 from stream 1 at ts 34
    *** dropping frame 36 from stream 1 at ts 34
       Last message repeated 1 times
    *** dropping frame 37 from stream 1 at ts 35
       Last message repeated 1 times
    Invalid UE golomb code
    *** dropping frame 38 from stream 1 at ts 36
       Last message repeated 1 times
    *** dropping frame 38 from stream 1 at ts 37
    *** dropping frame 39 from stream 1 at ts 37
       Last message repeated 1 times
    *** dropping frame 40 from stream 1 at ts 38
       Last message repeated 1 times
    *** dropping frame 41 from stream 1 at ts 39me=00:00:02.73 bitrate= 311.7kbits/s dup=0 drop=88
       Last message repeated 1 times
    *** dropping frame 41 from stream 1 at ts 40
    *** dropping frame 42 from stream 1 at ts 40
       Last message repeated 1 times
    *** dropping frame 43 from stream 1 at ts 41
       Last message repeated 1 times
    *** dropping frame 44 from stream 1 at ts 42
       Last message repeated 1 times
    *** dropping frame 44 from stream 1 at ts 43
    *** dropping frame 45 from stream 1 at ts 43
       Last message repeated 1 times
    *** dropping frame 46 from stream 1 at ts 44
       Last message repeated 1 times
    *** dropping frame 47 from stream 1 at ts 45
       Last message repeated 1 times
    *** dropping frame 47 from stream 1 at ts 46
    *** dropping frame 48 from stream 1 at ts 46
       Last message repeated 1 times
    *** dropping frame 49 from stream 1 at ts 47
       Last message repeated 1 times
    *** dropping frame 50 from stream 1 at ts 48
       Last message repeated 1 times
    *** dropping frame 50 from stream 1 at ts 49
    *** dropping frame 51 from stream 1 at ts 49
       Last message repeated 1 times
    *** dropping frame 52 from stream 1 at ts 50
       Last message repeated 1 times
    *** dropping frame 53 from stream 1 at ts 51
       Last message repeated 1 times
    [h264 @ 0x9844a00] error while decoding MB 58 12, bytestream -5
    [h264 @ 0x9844a00] concealing 1311 DC, 1311 AC, 1311 MV errors in B frame
    *** dropping frame 53 from stream 1 at ts 52
    No more output streams to write to, finishing.
    frame=   55 fps= 42 q=4.3 Lsize=     152kB time=00:00:03.66 bitrate= 339.6kbits/s dup=0 drop=119
    video:116kB audio:26kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 6.760316%
    Input file #0 (http://source.com/1.ts):
     Input stream #0:0 (video): 174 packets read (220322 bytes); 174 frames decoded;
     Input stream #0:1 (audio): 156 packets read (36657 bytes); 156 frames decoded (159744 samples);
     Total: 330 packets (256979 bytes) demuxed
    Output file #0 (http://127.0.0.1:8090/feed1.ffm):
     Output stream #0:0 (audio): 72 frames encoded (73383 samples); 72 packets muxed (26712 bytes);
     Output stream #0:1 (video): 55 frames encoded; 55 packets muxed (119080 bytes);
     Total: 127 packets (145792 bytes) muxed

    Here input url file info After i download it to my PC with IDM

    General
    ID                             : 1 (0x1)
    Complete name                  : D:\1.ts
    Format                         : MPEG-TS
    File size                      : 256 KiB
    Duration                       : 2 s 520 ms
    Overall bit rate mode          : Variable
    Overall bit rate               : 788 kb/s

    Video
    ID                             : 256 (0x100)
    Menu ID                        : 1 (0x1)
    Format                         : AVC
    Format/Info                    : Advanced Video Codec
    Format profile                 : High@L3.1
    Format settings, CABAC         : Yes
    Format settings, RefFrames     : 2 frames
    Codec ID                       : 27
    Duration                       : 2 s 680 ms
    Width                          : 960 pixels
    Height                         : 540 pixels
    Display aspect ratio           : 16:9
    Frame rate                     : 50.000 FPS
    Color space                    : YUV
    Chroma subsampling             : 4:2:0
    Bit depth                      : 8 bits
    Scan type                      : Progressive

    Audio
    ID                             : 257 (0x101)
    Menu ID                        : 1 (0x1)
    Format                         : AAC
    Format/Info                    : Advanced Audio Codec
    Format version                 : Version 4
    Format profile                 : LC
    Muxing mode                    : ADTS
    Codec ID                       : 15
    Duration                       : 2 s 69 ms
    Bit rate mode                  : Variable
    Channel(s)                     : 2 channels
    Channel positions              : Front: L R
    Sampling rate                  : 48.0 kHz
    Frame rate                     : 46.875 FPS (1024 SPF)
    Compression mode               : Lossy
    Delay relative to video        : -12 ms

    Menu
    ID                             : 4096 (0x1000)
    Menu ID                        : 1 (0x1)
    Duration                       : 2 s 520 ms
    List                           : 256 (0x100) (AVC) / 257 (0x101) (AAC)
    Service name                   : Service01
    Service provider               : FFmpeg
    Service type                   : digital television
  • merge video of images(without audio) to another video(with audio) through ffmpeg in android

    28 février 2018, par Raghav Sharma

    I am using the below qwery for creating video from image

    String imageToVideo[]={"-loop","1","-i",picturePath,"-pix_fmt","yuv420p","-t","6",VideoSavePath};

    successfully created video and then i merge created video to another video but getting issue

    below is the command for merging two videos

    VideoSavePath — created video from image

    secondVideoPath — path of some random video

    String VidCommand[]={"-y","-i",VideoSavePath ,"-i", secondVideoPath, "-filter_complex","[0:0][1:0]concat=n=2:v=1:a=0", bothMerge}

    But now i am stuck with this error :

    Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.829 9364-9364/com.demovideomerge D/MainActivity : progress : libavutil 55. 17.103 / 55. 17.103
    02-27 21:14:57.830 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.830 9364-9364/com.demovideomerge D/MainActivity : progress : libavcodec 57. 24.102 / 57. 24.102
    02-27 21:14:57.831 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.831 9364-9364/com.demovideomerge D/MainActivity : progress : libavformat 57. 25.100 / 57. 25.100
    02-27 21:14:57.831 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.832 9364-9364/com.demovideomerge D/MainActivity : progress : libavdevice 57. 0.101 / 57. 0.101
    02-27 21:14:57.833 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.833 9364-9364/com.demovideomerge D/MainActivity : progress : libavfilter 6. 31.100 / 6. 31.100
    02-27 21:14:57.833 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.834 9364-9364/com.demovideomerge D/MainActivity : progress : libswscale 4. 0.100 / 4. 0.100
    02-27 21:14:57.834 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.834 9364-9364/com.demovideomerge D/MainActivity : progress : libswresample 2. 0.101 / 2. 0.101
    02-27 21:14:57.835 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.835 9364-9364/com.demovideomerge D/MainActivity : progress : libpostproc 54. 0.100 / 54. 0.100
    02-27 21:14:57.857 9364-9389/com.demovideomerge V/RenderScript : Application requested CPU execution
    02-27 21:14:57.900 9364-9389/com.demovideomerge V/RenderScript : 0xb772e190 Launching thread(s), CPUs 4
    02-27 21:14:57.945 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.947 9364-9364/com.demovideomerge D/MainActivity : progress : Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/Movies/Merge_Video5.mp4’ :
    02-27 21:14:57.948 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.948 9364-9364/com.demovideomerge D/MainActivity : progress : Metadata :
    02-27 21:14:57.948 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.951 9364-9364/com.demovideomerge D/MainActivity : progress : major_brand : isom
    02-27 21:14:57.951 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.954 9364-9364/com.demovideomerge D/MainActivity : progress : minor_version : 512
    02-27 21:14:57.954 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.956 9364-9364/com.demovideomerge D/MainActivity : progress : compatible_brands : isomiso2avc1mp41
    02-27 21:14:57.956 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.957 9364-9364/com.demovideomerge D/MainActivity : progress : encoder : Lavf57.25.100
    02-27 21:14:57.957 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.959 9364-9364/com.demovideomerge D/MainActivity : progress : Duration : 00:00:06.00, start : 0.000000, bitrate : 80 kb/s
    02-27 21:14:57.959 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.961 9364-9364/com.demovideomerge D/MainActivity : progress : Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 540x960, 76 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    02-27 21:14:57.961 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.961 9364-9364/com.demovideomerge D/MainActivity : progress : Metadata :
    02-27 21:14:57.961 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:57.962 9364-9364/com.demovideomerge D/MainActivity : progress : handler_name : VideoHandler
    02-27 21:14:58.318 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.321 9364-9364/com.demovideomerge D/MainActivity : progress : Input #1, mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/DCIM/Camera/VID_20180209_200422444.mp4’ :
    02-27 21:14:58.322 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.323 9364-9364/com.demovideomerge D/MainActivity : progress : Metadata :
    02-27 21:14:58.323 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.324 9364-9364/com.demovideomerge D/MainActivity : progress : major_brand : mp42
    02-27 21:14:58.324 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.325 9364-9364/com.demovideomerge D/MainActivity : progress : minor_version : 0
    02-27 21:14:58.326 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.327 9364-9364/com.demovideomerge D/MainActivity : progress : compatible_brands : isommp42
    02-27 21:14:58.327 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.329 9364-9364/com.demovideomerge D/MainActivity : progress : creation_time : 2018-02-09 14:34:30
    02-27 21:14:58.331 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.333 9364-9364/com.demovideomerge D/MainActivity : progress : Duration : 00:00:05.59, start : 0.000000, bitrate : 8748 kb/s
    02-27 21:14:58.334 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.338 9364-9364/com.demovideomerge D/MainActivity : progress : Stream #1:0(eng) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 864x480, 8283 kb/s, SAR 1:1 DAR 9:5, 29.13 fps, 29.92 tbr, 90k tbn, 180k tbc (default)
    02-27 21:14:58.339 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.340 9364-9364/com.demovideomerge D/MainActivity : progress : Metadata :
    02-27 21:14:58.340 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.341 9364-9364/com.demovideomerge D/MainActivity : progress : rotate : 90
    02-27 21:14:58.341 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.342 9364-9364/com.demovideomerge D/MainActivity : progress : creation_time : 2018-02-09 14:34:30
    02-27 21:14:58.343 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.344 9364-9364/com.demovideomerge D/MainActivity : progress : handler_name : VideoHandle
    02-27 21:14:58.345 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.346 9364-9364/com.demovideomerge D/MainActivity : progress : encoder : MOTO
    02-27 21:14:58.346 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.348 9364-9364/com.demovideomerge D/MainActivity : progress : Side data :
    02-27 21:14:58.348 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.350 9364-9364/com.demovideomerge D/MainActivity : progress : displaymatrix : rotation of -90.00 degrees
    02-27 21:14:58.351 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.355 9364-9364/com.demovideomerge D/MainActivity : progress : Stream #1:1(eng) : Audio : aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    02-27 21:14:58.355 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.355 9364-9364/com.demovideomerge D/MainActivity : progress : Metadata :
    02-27 21:14:58.362 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.363 9364-9364/com.demovideomerge D/MainActivity : progress : creation_time : 2018-02-09 14:34:30
    02-27 21:14:58.365 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.366 9364-9364/com.demovideomerge D/MainActivity : progress : handler_name : SoundHandle
    02-27 21:14:58.366 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.370 9364-9364/com.demovideomerge D/MainActivity : progress : [Parsed_concat_0 @ 0xb819c8b0] Input link in1:v0 parameters (size 480x864, SAR 1:1) do not match the corresponding output link in0:v0 parameters (540x960, SAR 1:1)
    02-27 21:14:58.370 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.372 9364-9364/com.demovideomerge D/MainActivity : progress : [Parsed_concat_0 @ 0xb819c8b0] Failed to configure output pad on Parsed_concat_0
    02-27 21:14:58.372 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.376 9364-9364/com.demovideomerge D/MainActivity : progress : Error configuring complex filters.
    02-27 21:14:58.376 9364-9364/com.demovideomerge D/MainActivity : Started command : ffmpeg [Ljava.lang.String ;@8061ebb
    02-27 21:14:58.377 9364-9364/com.demovideomerge D/MainActivity : progress : Invalid argument
    02-27 21:14:58.378 9364-9364/com.demovideomerge D/MainActivity : FAILED with output : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
    built with gcc 4.8 (GCC)
    configuration : —target-os=linux —cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- —arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot —enable-pic —enable-libx264 —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie’ —extra-libs=’-lpng -lexpat -lm’ —extra-cxxflags=
    libavutil 55. 17.103 / 55. 17.103
    libavcodec 57. 24.102 / 57. 24.102
    libavformat 57. 25.100 / 57. 25.100
    libavdevice 57. 0.101 / 57. 0.101
    libavfilter 6. 31.100 / 6. 31.100
    libswscale 4. 0.100 / 4. 0.100
    libswresample 2. 0.101 / 2. 0.101
    libpostproc 54. 0.100 / 54. 0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/Movies/Merge_Video5.mp4’ :
    Metadata :
    major_brand : isom
    minor_version : 512
    compatible_brands : isomiso2avc1mp41
    encoder : Lavf57.25.100
    Duration : 00:00:06.00, start : 0.000000, bitrate : 80 kb/s
    Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 540x960, 76 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata :
    handler_name : VideoHandler
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/DCIM/Camera/VID_20180209_200422444.mp4’ :
    Metadata :
    major_brand : mp42
    minor_version : 0
    compatible_brands : isommp42
    creation_time : 2018-02-09 14:34:30
    Duration : 00:00:05.59, start : 0.000000, bitrate : 8748 kb/s
    Stream #1:0(eng) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 864x480, 8283 kb/s, SAR 1:1 DAR 9:5, 29.13 fps, 29.92 tbr, 90k tbn, 180k tbc (default)
    Metadata :
    rotate : 90
    creation_time : 2018-02-09 14:34:30
    handler_name : VideoHandle
    encoder : MOTO
    Side data :
    displaymatrix : rotation of -90.00 degrees
    Stream #1:1(eng) : Audio : aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata :
    creation_time : 2018-02-09 14:34:30
    handler_name : SoundHandle
    [Parsed_concat_0 @ 0xb819c8b0] Input link in1:v0 parameters (size 480x864, SAR 1:1) do not match the corresponding output link in0:v0 parameters (540x960, SAR 1:1)
    [Parsed_concat_0 @ 0xb819c8b0] Failed to configure output pad on Parsed_concat_0
    Error configuring complex filters.
    Invalid argument
    02-27 21:14:58.378 9364-9364/com.demovideomerge D/MainActivity : Finished command : ffmpeg [Ljava.lang.String ;@8061ebb

    Any help would be appreciated. I am badly stuck in this. Thanks in Advance.