Recherche avancée

Médias (91)

Autres articles (97)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (8308)

  • FFmpeg : Green images from TS file

    5 septembre 2017, par Tatsiana

    I use ffmpeg to generate images from a TS file and at some places it generates green images. I checked a couple of ffmpeg versions. The issue reproduces on
    3.3.3, 2.8.11, 2.7.7, but doesn’t on 2.6.9.
    What might be the reason ?

    For example, the output of 2.8.11 :

        $ ffmpeg -ss 00:42:20 -i video.ts -frames:v 1 out_42_20.jpg -loglevel debug
        ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
          built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1 16.04.4) 20160609
          configuration : —prefix=/usr —extra-version=0ubuntu0.16.04.1 —build-suffix=-ffmpeg —toolchain=hardened —libdir=/usr/lib/x86_64-linux-=/usr/include/x86_64-linux-gnu —cc=cc —cxx=g++ —enable-gpl —enable-shared —disable-stripping —disable-decoder=libopenjpeg —disable-dhroedinger —enable-avresample —enable-avisynth —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libbs2b —enab-enable-libcdio —enable-libflite —enable-libfontconfig —enable-libfreetype —enable-libfribidi —enable-libgme —enable-libgsm —enable—enable-libmp3lame —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-librtmp —enable-libschroedinger —enable-libshine —enpy —enable-libsoxr —enable-libspeex —enable-libssh —enable-libtheora —enable-libtwolame —enable-libvorbis —enable-libvpx —enable-linable-libwebp —enable-libx265 —enable-libxvid —enable-libzvbi —enable-openal —enable-opengl —enable-x11grab —enable-libdc1394 —enab83 —enable-libzmq —enable-frei0r —enable-libx264 —enable-libopencv
          libavutil      54. 31.100 / 54. 31.100
          libavcodec     56. 60.100 / 56. 60.100
          libavformat    56. 40.101 / 56. 40.101
          libavdevice    56.  4.100 / 56.  4.100
          libavfilter     5. 40.101 /  5. 40.101
          libavresample   2.  1.  0 /  2.  1.  0
          libswscale      3.  1.101 /  3.  1.101
          libswresample   1.  2.101 /  1.  2.101
          libpostproc    53.  3.100 / 53.  3.100
        Splitting the commandline.
        Reading option ’-ss’ ... matched as option ’ss’ (set the start time offset) with argument ’00:42:20’.
        Reading option ’-i’ ... matched as input url with argument ’video.ts’.
        Reading option ’-frames:v’ ... matched as option ’frames’ (set the number of frames to output) with argument ’1’.
        Reading option ’out_42_20.jpg’ ... matched as output url.
        Reading option ’-loglevel’ ... matched as option ’loglevel’ (set logging level) with argument ’debug’.
        Finished splitting the commandline.
        Parsing a group of options : global .
        Applying option loglevel (set logging level) with argument debug.
        Successfully parsed a group of options.
        Parsing a group of options : input url video.ts.
        Applying option ss (set the start time offset) with argument 00:42:20.
        Successfully parsed a group of options.
        Opening an input file : video.ts.
        [mpegts @ 0x22ba400] Format mpegts probed with size=2048 and score=100
        [mpegts @ 0x22ba400] stream=0 stream_type=1b pid=1e1 prog_reg_desc=
        [mpegts @ 0x22ba400] stream=1 stream_type=f pid=1e2 prog_reg_desc=
        [mpegts @ 0x22ba400] stream=2 stream_type=6 pid=1e3 prog_reg_desc=
        [mpegts @ 0x22ba400] Before avformat_find_stream_info() pos : 0 bytes read:32768 seeks:0
        [h264 @ 0x22be840] no picture
        [mpegts @ 0x22ba400] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
        [mpegts @ 0x22ba400] stream 0 : no PTS found at end of file, duration not set
        [mpegts @ 0x22ba400] After avformat_find_stream_info() pos : 0 bytes read:4026800 seeks:3 frames:550
        Input #0, mpegts, from ’video.ts’ :
          Duration : 02:15:27.97, start : 1.079989, bitrate : 4983 kb/s
          Program 1
            Stream #0:0[0x1e1], 216, 1/90000 : Video : h264 (High), 4 reference frames ([27][0][0][0] / 0x001B), yuv420p(left), 1920x1080 (1920x1088)R 16:9], 1/50, 25 fps, 50 tbr, 90k tbn, 50 tbc
            Stream #0:1[0x1e2](und), 203, 1/90000 : Audio : aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s
            Stream #0:2[0x1e3](und), 131, 1/90000 : Audio : ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 384 kb/s
        Successfully opened the file.
        Parsing a group of options : output url out_42_20.jpg.
        Applying option frames:v (set the number of frames to output) with argument 1.
        Successfully parsed a group of options.
        Opening an output file : out_42_20.jpg.
        Successfully opened the file.
        detected 1 logical cores
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’video_size’ to value ’1920x1080’
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’pix_fmt’ to value ’0’
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’time_base’ to value ’1/90000’
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’pixel_aspect’ to value ’1/1’
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’sws_param’ to value ’flags=2’
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’frame_rate’ to value ’25/1’
        [graph 0 input from stream 0:0 @ 0x22ba280] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:1/1 sws_param:flags=2
        [format @ 0x2328360] compat : called with args=[yuvj420p|yuvj422p|yuvj444p]
        [format @ 0x2328360] Setting ’pix_fmts’ to value ’yuvj420p|yuvj422p|yuvj444p’
        [auto-inserted scaler 0 @ 0x2326600] Setting ’flags’ to value ’bicubic’
        [auto-inserted scaler 0 @ 0x2326600] w:iw h:ih flags :’bicubic’ interl:0
        [format @ 0x2328360] auto-inserting filter ’auto-inserted scaler 0’ between the filter ’Parsed_null_0’ and the filter ’format’
        [AVFilterGraph @ 0x2327ba0] query_formats : 5 queried, 3 merged, 1 already done, 0 delayed
        [auto-inserted scaler 0 @ 0x2326600] picking yuvj420p out of 3 ref:yuv420p alpha:0
        [swscaler @ 0x2310660] deprecated pixel format used, make sure you did set range correctly
        [auto-inserted scaler 0 @ 0x2326600] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:1920 h:1080 fmt:yuvj420p sar:1/1 flags:0x4
        [mjpeg @ 0x2327620] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multipl
        [mjpeg @ 0x2327620] intra_quant_bias = 96 inter_quant_bias = 0
        Output #0, image2, to ’out_42_20.jpg’ :
          Metadata :
            encoder : Lavf56.40.101
            Stream #0:0, 0, 1/25 : Video : mjpeg, 1 reference frame, yuvj420p(pc, left), 1920x1080 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 25 fps tbc
            Metadata :
              encoder : Lavc56.60.100 mjpeg
        Stream mapping :
          Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
        Press [q] to stop, [?] for help
        [h264 @ 0x232a040] Missing reference picture, default is 0
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 0
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 0
        [h264 @ 0x232a040] decode_slice_header error
        timestamp discontinuity 0, new offset= -2541079989
        [h264 @ 0x232a040] no picture
        [h264 @ 0x232a040] illegal short term buffer state detected
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] no picture
        *** 0 dup !
        [AVIOContext @ 0x2448c00] Statistics : 0 seeks, 2 writeouts
        No more output streams to write to, finishing.
        frame=    1 fps=0.0 q=2.2 Lsize=N/A time=00:00:00.04 bitrate=N/A dup=1 drop=1
        video:32kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : unknown
        Input file #0 (video.ts) :
          Input stream #0:0 (video) : 9 packets read (261340 bytes) ; 3 frames decoded ;
          Input stream #0:1 (audio) : 0 packets read (0 bytes) ;
          Input stream #0:2 (audio) : 0 packets read (0 bytes) ;
          Total : 9 packets (261340 bytes) demuxed
        Output file #0 (out_42_20.jpg) :
          Output stream #0:0 (video) : 1 frames encoded ; 1 packets muxed (33209 bytes) ;
          Total : 1 packets (33209 bytes) muxed
        3 frames successfully decoded, 0 decoding errors
        [AVIOContext @ 0x22c2e40] Statistics : 8798032 bytes read, 36 seeks
    
  • How can I test and know what is the latency of streaming with ffmpeg ?

    1er octobre 2017, par Davis8988

    I am using ffmpeg to stream a window of an app to another computer.
    How can I measure/check/get/see exact value of latency ?

    Here is the script I use :

    ffmpeg -y -rtbufsize 100M -f gdigrab -framerate 25 -probsize 100M -i  
    title="App Name" -c:v libx264 -r 25 -preset ultrafast -tune zerolatency  
    -crf 25 -f mpegts udp://30.30.2.38:1080  

    And here is the script I use to capture it with ffplay on receiving computer :

    ffplay -fflags nobuffer -sync ext udp://30.30.2.38:1080  
  • To concatenate more than two video using FFMPEG

    21 décembre 2018, par Alok Kumar Verma

    I’ve been working on FFMPEG, this is indeed not an easy task since I’ve succeeded in doing some work. I’m done with concatenating two videos using ffmpeg but somehow when it comes to more than two it does not work. So I’m finding out some command to do my task.

    The thing I did is to merge two videos are :

    String complexCommand[] = {"-y", "-i", "/mnt/m_external_sd/Videos/VID-20161221-WA0000.mp4", "-i", "/mnt/m_external_sd/Videos/Brodha V - Aathma Raama [Music Video]_HD.mp4", "-strict", "experimental", "-filter_complex",
                "[0:v]scale=1920x1080,setsar=1:1[v0];[1:v] scale=iw*min(1920/iw\\,1080/ih):ih*min(1920/iw\\,1080/ih), pad=1920:1080:(1920-iw*min(1920/iw\\,1080/ih))/2:(1080-ih*min(1920/iw\\,1080/ih))/2,setsar=1:1[v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1",
                "-ab", "48000", "-ac", "2", "-ar", "22050", "-s", "1920x1080", "-vcodec", "libx264","-crf","27","-q","4","-preset", "ultrafast", savingPath};

    The above is working fine for two videos. I’ve tried altering my code for three videos but it does not work.

    What I’ve done in the above code is :

    • Added one more input after the second one
    • Changed the concat=3:v=1:a=1

    But it does not merge and gave me this error in my LogCat :

    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 '/mnt/m_external_sd/Videos/VID-20161221-WA0000.mp4':
                                                          Metadata:
                                                            major_brand     : isom
                                                            minor_version   : 512
                                                            compatible_brands: isomiso2avc1mp41
                                                            encoder         : Lavf57.25.100
                                                          Duration: 00:02:47.09, start: 0.000000, bitrate: 245 kb/s
                                                            Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 112 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc (default)
                                                            Metadata:
                                                              handler_name    : VideoHandler
                                                            Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
                                                            Metadata:
                                                              handler_name    : SoundHandler
                                                        Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/m_external_sd/Videos/Brodha V - Aathma Raama [Music Video]_HD.mp4':
                                                          Metadata:
                                                            major_brand     : mp42
                                                            minor_version   : 0
                                                            compatible_brands: isommp42
                                                            creation_time   : 2013-12-15 13:11:41
                                                          Duration: 00:03:51.08, start: 0.000000, bitrate: 1693 kb/s
                                                            Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1498 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc (default)
                                                            Metadata:
                                                              handler_name    : VideoHandler
                                                            Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default)
                                                            Metadata:
                                                              creation_time   : 2013-12-15 13:11:41
                                                              handler_name    : IsoMedia File Produced by Google, 5-11-2011
                                                        Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/m_external_sd/DCIM/Sinha's POP/20150530_073113.mp4':
                                                          Metadata:
                                                            major_brand     : isom
                                                            minor_version   : 0
                                                            compatible_brands: isom3gp4
                                                            creation_time   : 2015-05-30 02:06:06
                                                          Duration: 00:04:48.48, start: 0.000000, bitrate: 3608 kb/s
                                                            Stream #2:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 720x480, 3478 kb/s, 30.28 fps, 30 tbr, 90k tbn, 180k tbc (default)
                                                            Metadata:
                                                              creation_time   : 2015-05-30 02:06:06
                                                              handler_name    : VideoHandle
                                                              encoder         :                                
                                                            Stream #2:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 125 kb/s (default)
                                                            Metadata:
                                                              creation_time   : 2015-05-30 02:06:06
                                                              handler_name    : SoundHandle
                                                        [Parsed_setsar_1 @ 0xa9ea9220] num:den syntax is deprecated, please use num/den or named options instead
                                                        [Parsed_setsar_4 @ 0xa9ea9310] num:den syntax is deprecated, please use num/den or named options instead
                                                        [Parsed_setsar_1 @ 0xa9ea92c0] num:den syntax is deprecated, please use num/den or named options instead
                                                        [Parsed_setsar_4 @ 0xa9ea93b0] num:den syntax is deprecated, please us

    I’ve tried one more command which works fine for concatenating two videos but still it does not work for more than two videos :

    String complexCommand[] = {"-y", "-i", "/mnt/m_external_sd/Videos/VID-20161221-WA0000.mp4", "-i", "/mnt/m_external_sd/Videos/Brodha V - Aathma Raama [Music Video]_HD.mp4", "-i", "/mnt/m_external_sd/DCIM/Sinha's POP/20150530_073113.mp4", "-strict", "experimental", "-filter_complex",
               "[0:v]scale=480x640,setsar=1:1[v0];[1:v]scale=480x640,setsar=1:1[v1];[v0][0:a][v1][1:a] concat=n=3:v=1:a=1",
               "-ab", "48000", "-ac", "2", "-ar", "22050", "-s", "480x640", "-vcodec", "libx264","-crf","27","-q","4","-preset", "ultrafast", savingPath};

    You can clearly see in the above code that I’ve tried using this for the three videos but still no luck. Will appreciate your help. Thanks.

    EDITS

    After following the LordNeckbeard’s suggestion from the comment section, I’ve used his suggestion in my code but after doing that still no luck however the console’s output got changed and here is the command which I used :

    String complexCommand[] = {"-y", "-i", "/mnt/m_external_sd/Videos/VID-20161221-WA0000.mp4", "-i", "/mnt/m_external_sd/Videos/Brodha V - Aathma Raama [Music Video]_HD.mp4", "-i", "/mnt/m_external_sd/DCIM/Sinha's POP/20150530_073113.mp4", "-strict", "experimental", "-filter_complex",
               "[0:v]scale=480x640,setsar=1[v0];[1:v]scale=480x640,setsar=1[v1];[v0][0:a][v1][1:a] concat=n=3:v=1:a=1",
               "-ab", "48000", "-ac", "2", "-ar", "22050", "-s", "480x640", "-vcodec", "libx264","-crf","27","-preset", "ultrafast", savingPath};

    Here you can clearly see that I’ve used setsar=1 and used -crf only.

    And the logs are :

    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 '/mnt/m_external_sd/Videos/VID-20161221-WA0000.mp4':
                                                            Metadata:
                                                              major_brand     : isom
                                                              minor_version   : 512
                                                              compatible_brands: isomiso2avc1mp41
                                                              encoder         : Lavf57.25.100
                                                            Duration: 00:02:47.09, start: 0.000000, bitrate: 245 kb/s
                                                              Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 112 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc (default)
                                                              Metadata:
                                                                handler_name    : VideoHandler
                                                              Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
                                                              Metadata:
                                                                handler_name    : SoundHandler
                                                          Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/m_external_sd/Videos/Brodha V - Aathma Raama [Music Video]_HD.mp4':
                                                            Metadata:
                                                              major_brand     : mp42
                                                              minor_version   : 0
                                                              compatible_brands: isommp42
                                                              creation_time   : 2013-12-15 13:11:41
                                                            Duration: 00:03:51.08, start: 0.000000, bitrate: 1693 kb/s
                                                              Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1498 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc (default)
                                                              Metadata:
                                                                handler_name    : VideoHandler
                                                              Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default)
                                                              Metadata:
                                                                creation_time   : 2013-12-15 13:11:41
                                                                handler_name    : IsoMedia File Produced by Google, 5-11-2011
                                                          Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/m_external_sd/DCIM/Sinha's POP/20150530_073113.mp4':
                                                            Metadata:
                                                              major_brand     : isom
                                                              minor_version   : 0
                                                              compatible_brands: isom3gp4
                                                              creation_time   : 2015-05-30 02:06:06
                                                            Duration: 00:04:48.48, start: 0.000000, bitrate: 3608 kb/s
                                                              Stream #2:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 720x480, 3478 kb/s, 30.28 fps, 30 tbr, 90k tbn, 180k tbc (default)
                                                              Metadata:
                                                                creation_time   : 2015-05-30 02:06:06
                                                                handler_name    : VideoHandle
                                                                encoder         :                                
                                                              Stream #2:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 125 kb/s (default)
                                                              Metadata:
                                                                creation_time   : 2015-05-30 02:06:06
                                                                handler_name    : SoundHandle
                                                          [Parsed_concat_4 @ 0xa7ea91d0] Input link in2:v0 parameters (size 720x480, SAR 0:1) do not match the corresponding output link in0:v0 parameters (480x640, SAR 1:1)
                                                          [Parsed_concat_4 @ 0xa7ea91d0] Failed to configure output pad on Parsed_concat_4
                                                          Error configuring complex filters.
                                                          Invalid argument

    NOTE : I have tried using setsar=1/1 but still got the same result.