Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (66)

  • 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 (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (10269)

  • M2TS from FREEBOX V6 -> Subtitle issue : Unsupported codec

    2 avril 2016, par httpways

    I would like to extract subtitles of an M2TS file coming from my FREEBOX V6.

    Below the command I typed :

    $ avprobe source.m2ts
    avprobe version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2007-2014 the Libav developers
     built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [aac @ 0x224c0c0] get_buffer() failed
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [aac @ 0x2267a80] get_buffer() failed
    [aac @ 0x224b6a0] get_buffer() failed
    [h264 @ 0x2249700] non-existing PPS referenced
    [h264 @ 0x2249700] non-existing PPS 0 referenced
    [h264 @ 0x2249700] decode_slice_header error
    [h264 @ 0x2249700] no frame!
    [mpegts @ 0x2244200] max_analyze_duration reached
    [mpegts @ 0x2244200] PES packet size mismatch
    [mpegts @ 0x2244200] PES packet size mismatch
    [mpegts @ 0x2244200] PES packet size mismatch
    [mpegts @ 0x2244200] PES packet size mismatch
    Input #0, mpegts, from 'source.m2ts':
     Duration: 00:55:00.23, start: 19624.453300, bitrate: 4608 kb/s
     Program 4106
       Stream #0.0[0x140]: Video: h264 (High), yuv420p, 1440x1080 [PAR 4:3 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0.1[0x14a](fra): Audio: aac, 48000 Hz, stereo, fltp, 66 kb/s
       Stream #0.2[0x14b](qad): Audio: aac, 48000 Hz, stereo, fltp, 54 kb/s
       Stream #0.3[0x14c](qaa): Audio: aac, 48000 Hz, stereo, fltp, 65 kb/s
       Stream #0.4[0x155](fre): Subtitle: [6][0][0][0] / 0x0006
    [h264 @ 0x2249f80] Ignoring NAL unit 9 during extradata parsing
    Unsupported codec with id 94215 for input stream 4
    # avprobe output

    As you can see, I have an unsupported codec for the Subtitle stream n°4 [b]Unsupported codec with id 94215 for input stream 4[/b]

    Any idea on how to fix it ?

    Below is the mediainfo to show you more information about the file M2TS generated by the FREEBOX V6 :

    $ mediainfo source.m2ts
    General
    ID                                       : 4106 (0x100A)
    Complete name                            : source.m2ts
    Format                                   : BDAV
    Format/Info                              : Blu-ray Video
    File size                                : 1.77 GiB
    Duration                                 : 54mn 59s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 4 609 Kbps

    Video
    ID                                       : 320 (0x140)
    Menu ID                                  : 4106 (0x100A)
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L4.0
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Format settings, GOP                     : M=4, N=25
    Codec ID                                 : 27
    Duration                                 : 54mn 59s
    Width                                    : 1 440 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 16:9
    Frame rate                               : 25.000 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : MBAFF

    Audio #1
    ID                                       : 330 (0x14A)
    Menu ID                                  : 4106 (0x100A)
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format version                           : Version 2
    Format profile                           : HE-AAC / LC
    Muxing mode                              : ADTS
    Codec ID                                 : 15
    Duration                                 : 54mn 59s
    Bit rate mode                            : Variable
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz / 24.0 KHz
    Compression mode                         : Lossy
    Delay relative to video                  : -104ms
    Language                                 : French

    Audio #2
    ID                                       : 331 (0x14B)
    Menu ID                                  : 4106 (0x100A)
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format version                           : Version 2
    Format profile                           : HE-AAC / LC
    Muxing mode                              : ADTS
    Codec ID                                 : 15
    Duration                                 : 54mn 59s
    Bit rate mode                            : Variable
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz / 24.0 KHz
    Compression mode                         : Lossy
    Delay relative to video                  : -104ms
    Language                                 : qad

    Audio #3
    ID                                       : 332 (0x14C)
    Menu ID                                  : 4106 (0x100A)
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format version                           : Version 2
    Format profile                           : HE-AAC / LC
    Muxing mode                              : ADTS
    Codec ID                                 : 15
    Duration                                 : 54mn 59s
    Bit rate mode                            : Variable
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz / 24.0 KHz
    Compression mode                         : Lossy
    Delay relative to video                  : -104ms
    Language                                 : qaa

    Text #1
    ID                                       : 341 (0x155)-100
    Menu ID                                  : 4106 (0x100A)
    Format                                   : Teletext
    Language                                 : French

    Text #2
    ID                                       : 341 (0x155)-888
    Menu ID                                  : 4106 (0x100A)
    Format                                   : Teletext Subtitle
    Language                                 : French

    Text #3
    ID                                       : 341 (0x155)-889
    Menu ID                                  : 4106 (0x100A)
    Format                                   : Teletext Subtitle
    Language                                 : French

    Menu
    ID                                       : 66 (0x42)
    Menu ID                                  : 4106 (0x100A)
    Duration                                 : 54mn 59s
    List                                     : 320 (0x140) (AVC) / 330 (0x14A) (AAC, French) / 331 (0x14B) (AAC, qad) / 332 (0x14C) (AAC, qaa) / 341 (0x155) ()
    Language                                 :  / French / qad / qaa

    As we can, I have 3 Text section which logic with the Teletext subtitle I originnaly have on my internet box...

    Thanks for any help

  • Ffmpeg lose streams while using -map 0

    27 mars 2016, par Ngoral

    I had a strange issue using ffmpeg on Ubuntu 14.04.
    I run a command

    ffmpeg -i output2.avi -c:v h264 -minrate 2000k -maxrate 5000k -bufsize 2000k -profile:v high -level:v 4 -coder 1 -s 640x360 -bf 0 -pix_fmt yuv420p -r 25 -g 25 -c:a aac -ar 48k -b:a 321k -map 0 -y outpu.mp4

    It provides such a usual output in console (already with -loglevel verbose) :

    ffmpeg version N-79004-g2e6636a Copyright (c) 2000-2016 the FFmpeg developers


    built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
     configuration: --prefix=/home/ngoral/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/ngoral/ffmpeg_build/include --extra-ldflags=-L/home/ngoral/ffmpeg_build/lib --bindir=/home/ngoral/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree
     libavutil      55. 19.100 / 55. 19.100
     libavcodec     57. 28.101 / 57. 28.101
     libavformat    57. 28.101 / 57. 28.101
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 39.102 /  6. 39.102
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    [avi @ 0x2707800] parser not found for codec dvvideo, packets or times may be invalid.
       Last message repeated 1 times
    Input #0, avi, from 'output2.avi':
     Metadata:
       encoder         : Lavf57.28.101
     Duration: 00:00:20.04, start: 0.000000, bitrate: 28911 kb/s
       Stream #0:0: Video: dvvideo, 1 reference frame (dvsd / 0x64737664), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28684 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 192 kb/s
       Stream #0:2: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 64 kb/s
       Stream #0:3: Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp, 117 kb/s
    Matched encoder 'libx264' for codec 'h264'.
    [graph 0 input from stream 0:0 @ 0x2784f60] w:720 h:576 pixfmt:yuv420p tb:1/25 fr:25/1 sar:16/15 sws_param:flags=2
    [scaler for output stream 0:0 @ 0x2749d20] w:640 h:360 flags:'bicubic' interl:0
    [scaler for output stream 0:0 @ 0x2749d20] w:720 h:576 fmt:yuv420p sar:16/15 -> w:640 h:360 fmt:yuv420p sar:3/4 flags:0x4
    [graph 1 input from stream 0:1 @ 0x27a4fc0] tb:1/48000 samplefmt:s16p samplerate:48000 chlayout:0x3
    [audio format for output stream 0:1 @ 0x27a5380] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1'
    [auto-inserted resampler 0 @ 0x27a7ae0] ch:2 chl:stereo fmt:s16p r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz
    [graph 2 input from stream 0:2 @ 0x27a6620] tb:1/48000 samplefmt:s16p samplerate:48000 chlayout:0x3
    [audio format for output stream 0:2 @ 0x27a6440] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:2'
    [auto-inserted resampler 0 @ 0x27b6be0] ch:2 chl:stereo fmt:s16p r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz
    [graph 3 input from stream 0:3 @ 0x27b6560] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
    [libx264 @ 0x27889a0] using SAR=3/4
    [libx264 @ 0x27889a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x27889a0] profile High, level 4.0
    [libx264 @ 0x27889a0] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=5000 vbv_bufsize=2000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'outpu.mp4':
     Metadata:
       encoder         : Lavf57.28.101
       Stream #0:0: Video: h264 (libx264), -1 reference frame ([33][0][0][0] / 0x0021), yuv420p, 640x360 [SAR 3:4 DAR 4:3], q=-1--1, max. 5000 kb/s, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc57.28.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 5000000/0/0 buffer size: 2000000 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 321 kb/s
       Metadata:
         encoder         : Lavc57.28.101 aac
       Stream #0:2: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 321 kb/s
       Metadata:
         encoder         : Lavc57.28.101 aac
       Stream #0:3: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 321 kb/s
       Metadata:
         encoder         : Lavc57.28.101 aac
    Stream mapping:
     Stream #0:0 -> #0:0 (dvvideo (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (mp3 (native) -> aac (native))
     Stream #0:2 -> #0:2 (mp3 (native) -> aac (native))
     Stream #0:3 -> #0:3 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    *** 3 dup!
    No more output streams to write to, finishing.e=00:00:19.84 bitrate= 359.9kbits/s dup=3 drop=0 speed=1.15x
    frame=  501 fps= 29 q=-1.0 Lsize=    1792kB time=00:00:20.05 bitrate= 732.2kbits/s dup=3 drop=0 speed=1.14x
    video:440kB audio:1331kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.155376%
    Input file #0 (output2.avi):
     Input stream #0:0 (video): 498 packets read (71712000 bytes); 498 frames decoded;
     Input stream #0:1 (audio): 834 packets read (480384 bytes); 834 frames decoded (960768 samples);
     Input stream #0:2 (audio): 835 packets read (160320 bytes); 835 frames decoded (961920 samples);
     Input stream #0:3 (audio): 0 packets read (0 bytes); 0 frames decoded (0 samples);
     Total: 2167 packets (72352704 bytes) demuxed
    Output file #0 (outpu.mp4):
     Output stream #0:0 (video): 501 frames encoded; 501 packets muxed (451055 bytes);
     Output stream #0:1 (audio): 939 frames encoded (960768 samples); 940 packets muxed (724261 bytes);
     Output stream #0:2 (audio): 940 frames encoded (961920 samples); 941 packets muxed (639072 bytes);
     Output stream #0:3 (audio): 0 frames encoded (0 samples); 0 packets muxed (0 bytes);
     Total: 2382 packets (1814388 bytes) muxed
    [libx264 @ 0x27889a0] frame I:21    Avg QP:15.30  size:  8718
    [libx264 @ 0x27889a0] frame P:480   Avg QP:24.52  size:   557
    [libx264 @ 0x27889a0] mb I  I16..4: 20.4% 55.5% 24.1%
    [libx264 @ 0x27889a0] mb P  I16..4:  0.0%  0.1%  0.0%  P16..4:  7.6%  3.7%  1.7%  0.0%  0.0%    skip:86.8%
    [libx264 @ 0x27889a0] 8x8 transform intra:56.3% inter:50.3%
    [libx264 @ 0x27889a0] coded y,uvDC,uvAC intra: 42.0% 39.5% 27.5% inter: 2.6% 1.4% 0.0%
    [libx264 @ 0x27889a0] i16 v,h,dc,p: 36% 52%  3% 10%
    [libx264 @ 0x27889a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 56% 20% 14%  2%  1%  1%  2%  2%  2%
    [libx264 @ 0x27889a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 26%  7%  4%  3%  4%  5%  5%  4%
    [libx264 @ 0x27889a0] i8c dc,h,v,p: 66% 13% 17%  4%
    [libx264 @ 0x27889a0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x27889a0] ref P L0: 68.1% 11.5% 13.9%  6.5%
    [libx264 @ 0x27889a0] kb/s:179.78
    [aac @ 0x2747da0] Qavg: 62719.090
    [aac @ 0x2748b20] Qavg: 64509.496
    [aac @ 0x27498a0] Qavg: -nan

    it seems like it outputs all 3 audiostreams, but then i do

    ffmpeg -loglevel verbose -i outpu.mp4

    And get only 2 audiostreams :

    ffmpeg version N-79004-g2e6636a Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
     configuration: --prefix=/home/ngoral/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/ngoral/ffmpeg_build/include --extra-ldflags=-L/home/ngoral/ffmpeg_build/lib --bindir=/home/ngoral/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree
     libavutil      55. 19.100 / 55. 19.100
     libavcodec     57. 28.101 / 57. 28.101
     libavformat    57. 28.101 / 57. 28.101
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 39.102 /  6. 39.102
     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 'outpu.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.28.101
     Duration: 00:00:20.06, start: 0.021333, bitrate: 731 kb/s
       Stream #0:0(und): Video: h264 (High), 3 reference frames (avc1 / 0x31637661), yuv420p, 640x360 (640x368) [SAR 3:4 DAR 4:3], 180 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 289 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
       Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 254 kb/s
       Metadata:
         handler_name    : SoundHandler

    What’s wrong with it ?
    It works fine on my Win machine, on virtual machine with Ubuntu on it, but as ran on real Ubuntu it behaves like this. Do you have any ideas ?
    Thanks !

  • ffmpeg error : "Missing ')' or too many args in 'if(gt(a,1),650,-1)'"

    23 février 2015, par Remini me

    I am trying to run this ffmpeg command in linux shell, to scale down the video (if portrait, than to maximum height of 650, while adjusting the width. And if landscape, then 650 maximum width, and adjust the height with aspect ratio) :

    ffmpeg -i 1.mp4 -r 30 -vf scale="'if(gt(a,1),650,-1)':'if(gt(a,1),-1,650)'" -vcodec libx264 output_file1.mp4

    But I get the following error :

    [scale @ 0x1d48a40] [Eval @ 0x7fff53a49340] Missing ’)’ or too many
    args in ’if(gt(a,1),650,-1)’ [scale @ 0x1d48a40] [Eval @
    0x7fff53a49340] Missing ’)’ or too many args in ’if(gt(a,1),-1,650)’
    Error when evaluating the expression ’if(gt(a,1),-1,650)’

    **EDIT : I have tried using the new @slhck syntax :

    -vf "scale=if(gt(a\,1)\,650\,-2):if(gt(a\,1)\,-2\,650)"

    The result I got was :

    ffmpeg version 0.8.16-4:0.8.16-0ubuntu0.12.04.1, Copyright (c)
    2000-2014 the Libav developers built on Sep 16 2014 18:33:49 with
    gcc 4.6.3 The ffmpeg program is only provided for script compatibility
    and will be removed in a future release. It has been deprecated in the
    Libav project to allow for incompatible command line syntax
    improvements in its replacement called avconv (see Changelog for
    details). Please use avconv instead.

    Seems stream 0 codec frame rate differs from container frame rate :
    180000.00 (180000/1) -> 90000.00 (180000/2) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’1.mp4’ : Metadata :
    major_brand : isom
    minor_version : 0
    compatible_brands : isom3gp4
    creation_time : 2015-02-05 14:54:24 Duration : 00:00:45.30, start : 0.000000, bitrate : 17058 kb/s
    Stream #0.0(eng) : Video : h264 (High), yuv420p, 1920x1080, 17021 kb/s, 30.01 fps, 90k tbr, 90k tbn, 180k tbc
    Metadata :
    creation_time : 2015-02-05 14:54:24
    Stream #0.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 124 kb/s
    Metadata :
    creation_time : 2015-02-05 14:54:24 File ’output_file1.mp4’ already exists. Overwrite ? [y/N] y

    [buffer @ 0x747ec0] w:1920 h:1080 pixfmt:yuv420p [scale @ 0x745a40] [Eval @ 0x7fffac94b220] Missing ’)’ or too many args in
    ’if(gt(a,1),650,-2)’ [scale @ 0x745a40] [Eval @ 0x7fffac94b220]
    Missing ’)’ or too many args in ’if(gt(a,1),-2,650)’ Error when
    evaluating the expression ’if(gt(a,1),-2,650)’ Error opening
    filters !

    What should I do ?