Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (56)

Sur d’autres sites (9350)

  • ffmpeg return black and white image

    16 décembre 2011, par njai

    Video capture device is kworld dvd maker 2 (em2861)
    It returns the image in "black and white" with green line at the bottom of screen ; but when I tested it with webcam, it worked properly.

    Here is 30s video. http://www.youtube.com/watch?v=7q2wFGVwGGI

    How can I convert it to color ?

    [root@localhost ~]# ffmpeg -f video4linux2 -i /dev/video0 -vcodec mpeg4 -y output.mp4
    ffmpeg version git-2011-11-05-5fd1a69, Copyright (c) 2000-2011 the FFmpeg developers
    built on Nov  5 2011 21:10:52 with gcc 4.4.4 20100726 (Red Hat 4.4.4-13)
    configuration: --enable-libx264 --enable-gpl --enable-libvpx
    libavutil    51. 23. 0 / 51. 23. 0
    libavcodec   53. 27. 0 / 53. 27. 0
    libavformat  53. 18. 0 / 53. 18. 0
    libavdevice  53.  4. 0 / 53.  4. 0
    libavfilter   2. 47. 0 /  2. 47. 0
    libswscale    2.  1. 0 /  2.  1. 0
    libpostproc  51.  2. 0 / 51.  2. 0
    [video4linux2,v4l2 @ 0x2a64780] Estimating duration from bitrate, this may be inaccurate
    Input #0, video4linux2,v4l2, from '/dev/video0':
    Duration: N/A, start: 1320637788.113946, bitrate: 165888 kb/s
    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 165888 kb/s, 25 tbr, 1000k tbn, 25 tbc
    Incompatible pixel format 'yuyv422' for codec 'mpeg4', auto-selecting format 'yuv420p'
    [buffer @ 0x2a63920] w:720 h:576 pixfmt:yuyv422 tb:1/1000000 sar:0/1 sws_param:
    [buffersink @ 0x2a63cc0] auto-inserting filter 'auto-inserted scale 0' between the filter    'src' and the filter 'out'
    [scale @ 0x2a64560] w:720 h:576 fmt:yuyv422 -> w:720 h:576 fmt:yuv420p flags:0x4
    Output #0, mp4, to 'output.mp4':
    Metadata:
    encoder         : Lavf53.18.0
    Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 720x576, q=2-31, 200 kb/s, 25    tbn, 25 tbc
    Stream mapping:
    Stream #0.0 -> #0.0 (rawvideo -> mpeg4)
    Press [q] to stop, [?] for help
    frame=  969 fps= 25 q=31.0 Lsize=    1547kB time=00:00:38.76 bitrate= 327.0kbits/s    
    video:1538kB audio:0kB global headers:0kB muxing overhead 0.561411%
  • converting of wma to mp3 through ffmpeg is not working

    8 novembre 2011, par Rahul Mehta

    I want to convert my wma file to mp3 by ffmpeg .
    why this error is coming what should i do ? i installed libmp3lame already .

    when i am trying to convert by following command gives error :

    /var/www/yapi$ sudo /usr/local/bin/ffmpeg -i uploads/4e02dc4f197c1.wma uploads/4e02dc4f1b212.mp3
    ffmpeg version N-30971-g4b87a08, Copyright (c) 2000-2011 the FFmpeg developers
     built on Jun 23 2011 10:08:49 with gcc 4.4.5
     configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-x11grab
     libavutil    51.  9. 1 / 51.  9. 1
     libavcodec   53.  7. 0 / 53.  7. 0
     libavformat  53.  4. 0 / 53.  4. 0
     libavdevice  53.  1. 1 / 53.  1. 1
     libavfilter   2. 23. 0 /  2. 23. 0
     libswscale    2.  0. 0 /  2.  0. 0
     libpostproc  51.  2. 0 / 51.  2. 0
    Input #0, asf, from 'uploads/4e02dc4f197c1.wma':
     Metadata:
       title           : "Highway Blues"
       artist          : Marc Seales, composer. New Stories. Ernie Watts, saxophone.
       genre           : Jazz
       album           : Speakin' Out
       track           : 1
       WM/Year         : 1999
       WMFSDKVersion   : 8.00.00.4389
       WMFSDKNeeded    : 0.0.0.0000
     Duration: 00:01:33.71, start: 0.000000, bitrate: 64 kb/s
       Stream #0.0: Audio: wmav2, 44100 Hz, 2 channels, s16, 64 kb/s
    File 'uploads/4e02dc4f1b212.mp3' already exists. Overwrite ? [y/N] y

    Output #0, mp3, to 'uploads/4e02dc4f1b212.mp3':
       Stream #0.0: Audio: [0][0][0][0] / 0x0000, 44100 Hz, 2 channels, s16, 64 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
    Encoder (codec id 86017) not found for output stream #0.0

    why it is not working ?

  • ffmpeg : AVI to FLV conversion doubles file size

    22 septembre 2012, par weekens

    I convert AVI to FLV with ffmpeg using -sameq parameter (same quality) :

    ffmpeg -i test.avi -sameq -f flv sameq.flv

    The resulting file has the same video and audio quality as the original, but it's more than twice the original file size :

    84M sameq.flv
    41M test.avi

    Why does it happen ?

    Transcoder output :

    ffmpeg version N-34750-g070d2d7, Copyright (c) 2000-2011 the FFmpeg developers
     built on Nov 12 2011 11:23:07 with gcc 4.6.1
     configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab
     libavutil    51. 24. 1 / 51. 24. 1
     libavcodec   53. 33. 0 / 53. 33. 0
     libavformat  53. 20. 0 / 53. 20. 0
     libavdevice  53.  4. 0 / 53.  4. 0
     libavfilter   2. 48. 0 /  2. 48. 0
     libswscale    2.  1. 0 /  2.  1. 0
     libpostproc  51.  2. 0 / 51.  2. 0
    Input #0, avi, from 'test.avi':
     Duration: 00:06:30.00, start: 0.000000, bitrate: 866 kb/s
       Stream #0:0: Video: mpeg4 (Advanced Real Time Simple Profile) (DIVX / 0x58564944), yuv420p, 400x300 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, mono, s16, 64 kb/s
    [buffer @ 0xa247ae0] w:400 h:300 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
    Output #0, flv, to 'sameq.flv':
     Metadata:
       encoder         : Lavf53.20.0
       Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 400x300 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 1k tbn, 25 tbc
       Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, mono, s16, 128 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 -> flv)
     Stream #0:1 -> #0:1 (mp3 -> libmp3lame)
    Press [q] to stop, [?] for help
    frame= 9742 fps=255 q=0.0 Lsize=   85074kB time=00:06:30.00 bitrate=1787.0kbits/s    
    video:79163kB audio:5525kB global headers:0kB muxing overhead 0.455568%