Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (111)

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

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (10723)

  • How to transcode avi or mov file to mpeg-ts with specific results ?

    15 juillet 2015, par Andy Do

    Can someone please help me convert a mov or mp4 file to mpeg-ts to look like the output below ?

    So far I have this :

    ffmpeg -i test_5.mp4 -c copy -bsf h264_mp4toannexb -b:a test_5.ts

    and want to replicate this :

    Format                                   : MPEG-TS
    File size                                : 1.48 GiB
    Duration                                 : 11mn 45s
    Overall bit rate mode                    : Constant
    Overall bit rate                         : 18.0 Mbps

    Video
    ID                                       : 481 (0x1E1)
    Menu ID                                  : 1 (0x1)
    Format                                   : MPEG Video
    Format version                           : Version 2
    Format profile                           : Main@Main
    Format settings, BVOP                    : Yes
    Format settings, Matrix                  : Custom
    Format settings, GOP                     : M=3, N=15
    Format settings, picture structure       : Frame
    Codec ID                                 : 2
    Duration                                 : 11mn 45s
    Bit rate                                 : 16.9 Mbps
    Maximum bit rate                         : 15.0 Mbps
    Width                                    : 720 pixels
    Height                                   : 480 pixels
    Display aspect ratio                     : 4:3
    Frame rate                               : 29.970 fps
    Standard                                 : NTSC
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Interlaced
    Scan order                               : Top Field First
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 1.633
    Time code of first frame                 : 00:00:00;00
    Time code source                         : Group of pictures header
    Stream size                              : 1.39 GiB (94%)

    Audio
    ID                                       : 482 (0x1E2)
    Menu ID                                  : 1 (0x1)
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Mode extension                           : CM (complete main)
    Format settings, Endianness              : Big
    Codec ID                                 : 129
    Duration                                 : 11mn 45s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz
    Bit depth                                : 16 bits
    Compression mode                         : Lossy
    Stream size                              : 16.2 MiB (1%)
    Language                                 : English

    Thanks if you can !

  • ffmpeg to convert file to webm returns in error

    14 avril 2019, par user3184895

    i have a self-recorded file in .ts format and want to convert it to three different formats(.mp4, .ogg and .webm).

    for that i use my brandnew debian9 with following commands :

    /usr/bin/ffmpeg -y -i source.ts -strict experimental -r 25 -b 18550k -bt 22792k -acodec aac -ac 2 -ar 48000 -ab 320k output.mp4

    /usr/bin/ffmpeg -y -i source.ts -r 25 -b 18550k -bt 22792k -vcodec libtheora -acodec libvorbis -ac 2 -ar 48000 -ab 320k output.ogg

    /usr/bin/ffmpeg -y -i source.ts -r 25 -b 18550k -bt 22792k -ac 2 -ar 48000 -ab 320k output.webm

    Source-File :

    General
    ID                                       : 1019 (0x3FB)
    Complete name                            : test.ts
    Format                                   : MPEG-TS
    File size                                : 85.9 MiB
    Duration                                 : 56 s 490 ms
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 12.7 Mb/s

    Video
    ID                                       : 5101 (0x13ED)
    Menu ID                                  : 10301 (0x283D)
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L4
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Codec ID                                 : 27
    Duration                                 : 55 s 880 ms
    Bit rate                                 : 11.1 Mb/s
    Width                                    : 1 280 pixels
    Height                                   : 720 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
    Bits/(Pixel*Frame)                       : 0.241
    Stream size                              : 74.1 MiB (86%)

    Audio #1
    ID                                       : 5102 (0x13EE)
    Menu ID                                  : 10301 (0x283D)
    Format                                   : MPEG Audio
    Format version                           : Version 1
    Format profile                           : Layer 2
    Codec ID                                 : 3
    Duration                                 : 56 s 448 ms
    Bit rate mode                            : Constant
    Bit rate                                 : 256 kb/s
    Channel(s)                               : 2 channels
    Sampling rate                            : 48.0 kHz
    Compression mode                         : Lossy
    Delay relative to video                  : -1 s 136 ms
    Stream size                              : 1.72 MiB (2%)
    Language                                 : German

    Audio #2
    ID                                       : 5103 (0x13EF)
    Menu ID                                  : 10301 (0x283D)
    Format                                   : MPEG Audio
    Format version                           : Version 1
    Format profile                           : Layer 2
    Codec ID                                 : 3
    Duration                                 : 56 s 448 ms
    Bit rate mode                            : Constant
    Bit rate                                 : 256 kb/s
    Channel(s)                               : 2 channels
    Sampling rate                            : 48.0 kHz
    Compression mode                         : Lossy
    Delay relative to video                  : -1 s 136 ms
    Stream size                              : 1.72 MiB (2%)
    descriptor_tag_extension                 : 6

    Audio #3
    ID                                       : 5106 (0x13F2)
    Menu ID                                  : 10301 (0x283D)
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Mode extension                           : CM (complete main)
    Format settings, Endianness              : Big
    Codec ID                                 : 6
    Duration                                 : 56 s 480 ms
    Bit rate mode                            : Constant
    Bit rate                                 : 448 kb/s
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 spf)
    Bit depth                                : 16 bits
    Compression mode                         : Lossy
    Delay relative to video                  : -1 s 168 ms
    Stream size                              : 3.02 MiB (4%)
    Language                                 : German

    Text
    ID                                       : 5105 (0x13F1)
    Menu ID                                  : 10301 (0x283D)
    Format                                   : DVB Subtitle
    Codec ID                                 : 6
    Duration                                 : 54 s 800 ms
    Delay relative to video                  : 2 s 520 ms
    Language                                 : German

    Other
    ID                                       : 5104 (0x13F0)-100
    Menu ID                                  : 10301 (0x283D)
    Format                                   : Teletext
    Language                                 : German

    Menu
    ID                                       : 5100 (0x13EC)
    Menu ID                                  : 10301 (0x283D)
    Duration                                 : 56 s 490 ms
    List                                     : 1170 (0x492) () / 1176 (0x498) () / 2171 (0x87B) () / 5101 (0x13ED) (AVC) / 5102 (0x13EE) (MPEG Audio, German) / 5103 (0x13EF) (MPEG Audio) / 5104 (0x13F0)-100 (Teletext, de) / 5105 (0x13F1) (DVB Subtitle, German) / 5106 (0x13F2) (AC-3, German) / 5108 (0x13F4) () / 5172 (0x1434) ()
    Language                                 :  /  /  /  / German /  / German / German / German

    Why i am doing that ? I just play arround with a privat intranet (web-application) to stream my own recorded files on different clients (Smartphone, Tablet, Desktop). Thats also the reason for the different formats (.mp4, .ogg, .webm)

    My current problem is : The command to convert it to .webm returns following error :

    /usr/bin/ffmpeg -y -i test.ts -r 25 -b 18550k -bt 22792k -ac 2 -ar 48000 -ab 320k output.webm
    ffmpeg version 3.2.12-1~deb9u1 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
     configuration: --prefix=/usr --extra-version='1~deb9u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
     libavutil      55. 34.101 / 55. 34.101
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.101 / 57. 56.101
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libavresample   3.  1.  0 /  3.  1.  0
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] decode_slice_header error
    [h264 @ 0x557535b03b40] no frame!
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] decode_slice_header error
    [h264 @ 0x557535b03b40] no frame!
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] decode_slice_header error
    [h264 @ 0x557535b03b40] no frame!
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] decode_slice_header error
    [h264 @ 0x557535b03b40] no frame!
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] decode_slice_header error
    [h264 @ 0x557535b03b40] no frame!
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] decode_slice_header error
    [h264 @ 0x557535b03b40] no frame!
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] decode_slice_header error
    [h264 @ 0x557535b03b40] no frame!
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] decode_slice_header error
    [h264 @ 0x557535b03b40] no frame!
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] decode_slice_header error
    [h264 @ 0x557535b03b40] no frame!
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] decode_slice_header error
    [h264 @ 0x557535b03b40] no frame!
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] SPS unavailable in decode_picture_timing
    [h264 @ 0x557535b03b40] non-existing PPS 0 referenced
    [h264 @ 0x557535b03b40] decode_slice_header error
    [h264 @ 0x557535b03b40] no frame!
    [mpegts @ 0x557535ade440] start time for stream 9 is not set in estimate_timings_from_pts
    [mpegts @ 0x557535ade440] PES packet size mismatch
    [mpegts @ 0x557535ade440] Could not find codec parameters for stream 0 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 0x557535ade440] Could not find codec parameters for stream 1 (Unknown: none ([12][0][0][0] / 0x000C)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 0x557535ade440] Could not find codec parameters for stream 2 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 0x557535ade440] Could not find codec parameters for stream 10 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mpegts, from 'test.ts':
     Duration: 00:00:58.04, start: 86615.181389, bitrate: 12418 kb/s
     Program 10301
       Stream #0:0[0x492]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:1[0x498]: Unknown: none ([12][0][0][0] / 0x000C)
       Stream #0:2[0x87b]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:3[0x13ed]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
       Stream #0:4[0x13ee](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
       Stream #0:5[0x13ef](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
       Stream #0:6[0x13f0](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
       Stream #0:7[0x13f1](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
       Stream #0:8[0x13f2](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 448 kb/s
       Stream #0:9[0x13f4]: Data: bin_data ([6][0][0][0] / 0x0006)
       Stream #0:10[0x1434]: Unknown: none ([11][0][0][0] / 0x000B)
     Program 10302
     Program 10303
     Program 10304
    Please use -b:a or -b:v, -b is ambiguous
    [libvpx-vp9 @ 0x557535ba6d00] v1.6.1
    Stream mapping:
     Stream #0:3 -> #0:0 (h264 (native) -> vp9 (libvpx-vp9))
     Stream #0:4 -> #0:1 (mp2 (native) -> opus (libopus))
     Stream #0:6 -> #0:2 (dvb_teletext (libzvbi_teletextdec) -> webvtt (native))
    Error while opening encoder for output stream #0:2 - maybe incorrect parameters such as bit_rate, rate, width or height

    i dont understand the problem, because the convertions to .ogg or .mp4 are workin. So i cannot be a problem with the source-codecs. Does anyone have any idea what my problem might be

  • FFmpegFrameGrabber and FFmpegFrameRecorder Audio Issue

    20 août 2015, par Sheheryar Chagani

    I am compress an existing camera recorded video using FFmpegframerecorder and ffmpegFrameGrabber.

    The issue is that its audio is not occurring after compression.

    Please note that I am using googlecode.javacv along with javacpp and armeabi in lib folder.

    Below is the code which I have used.

    public void compressVideo(String filePath)

       FrameGrabber grabber = new FFmpegFrameGrabber(filePath);
       grabber.start();
       fileoutput = filePath.replace("trimmed", "compressed");
       // recorder.setAudioCodec(grabber.get);
       FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(fileoutput, 480,
               480, grabber.getAudioChannels());
       recorder.setFrameRate(grabber.getFrameRate());
       recorder.setSampleRate(grabber.getSampleRate());
       recorder.setSampleFormat(grabber.getSampleFormat());
       recorder.setFormat(grabber.getFormat());
       // recorder.setPixelFormat(grabber.getPixelFormat());

       recorder.start();
       Frame frame;
       int count = 0;
       while ((frame = grabber.grabFrame()) != null) {
           if (frame.image != null) {
               publishProgress(count);
               count++;
               IplImage rotateImage = rotate(frame.image, 90);
               IplImage cropImage = resizeImage(rotateImage, 480, 480, true);
               frame.image = cropImage;
               recorder.record(frame);
               if (rotateImage != null)
                   opencv_core.cvReleaseImage(rotateImage);
               if (cropImage != null)
                   opencv_core.cvReleaseImage(cropImage);
           } else {
               recorder.record(frame);
           }

       }
       recorder.stop();
       grabber.stop();
       recorder.release();
       grabber.release();
    }

    IplImage resizeImage(IplImage origImg, int newWidth, int newHeight,
           boolean keepAspectRatio) {

       IplImage outImg;
       int origWidth = 0;
       int origHeight = 0;
       if (origImg != null) {
           origWidth = origImg.width();
           origHeight = origImg.height();
       }
       if (newWidth <= 0 || newHeight <= 0 || origImg == null
               || origWidth <= 0 || origHeight <= 0) {
           // cerr << "ERROR: Bad desired image size of " << newWidth
           // << "x" << newHeight << " in resizeImage().\n";
           return null;
       }

       if (keepAspectRatio) {
           // Resize the image without changing its aspect ratio,
           // by cropping off the edges and enlarging the middle section.
           CvRect r;
           // input aspect ratio
           float origAspect = (origWidth / (float) origHeight);
           // output aspect ratio
           float newAspect = (newWidth / (float) newHeight);
           // crop width to be origHeight * newAspect
           if (origAspect > newAspect) {
               int tw = (origHeight * newWidth) / newHeight;
               // System.out.println((origWidth - tw) / 2+" "+)
               r = opencv_core.cvRect((origWidth - tw) / 2, 0, tw, origHeight);
           } else { // crop height to be origWidth / newAspect
               int th = (origWidth * newHeight) / newWidth;
               r = opencv_core.cvRect(0, (origHeight - th) / 2, origWidth, th);
           }
           IplImage croppedImg = cropImage(origImg, r);

           // Call this function again, with the new aspect ratio image.
           // Will do a scaled image resize with the correct aspect ratio.
           outImg = resizeImage(croppedImg, newWidth, newHeight, false);
           opencv_core.cvReleaseImage(croppedImg);

       } else {

           // Scale the image to the new dimensions,
           // even if the aspect ratio will be changed.
           outImg = opencv_core.cvCreateImage(
                   opencv_core.cvSize(newWidth, newHeight), origImg.depth(),
                   origImg.nChannels());
           if (newWidth > origImg.width() && newHeight > origImg.height()) {
               // Make the image larger
               opencv_core.cvResetImageROI((IplImage) origImg);
               // CV_INTER_LINEAR: good at enlarging.
               // CV_INTER_CUBIC: good at enlarging.
               cvResize(origImg, outImg, CV_INTER_LINEAR);
           } else {
               // Make the image smaller
               opencv_core.cvResetImageROI((IplImage) origImg);
               // CV_INTER_AREA: good at shrinking (decimation) only.
               cvResize(origImg, outImg, CV_INTER_AREA);
           }

       }
       return outImg;
    }

    // Returns a new image that is a cropped version (rectangular cut-out)
    // of the original image.
    IplImage cropImage(IplImage img, CvRect region) {
       IplImage imageCropped;
       opencv_core.CvSize size = new CvSize();

       if (img.width() <= 0 || img.height() <= 0 || region.width() <= 0
               || region.height() <= 0) {
           // cerr << "ERROR in cropImage(): invalid dimensions." << endl;
           return null;
       }

       if (img.depth() != opencv_core.IPL_DEPTH_8U) {
           // cerr << "ERROR in cropImage(): image depth is not 8." << endl;
           return null;
       }

       // Set the desired region of interest.
       opencv_core.cvSetImageROI((IplImage) img, region);
       // Copy region of interest into a new iplImage and return it.
       size.width(region.width());
       size.height(region.height());
       imageCropped = opencv_core.cvCreateImage(size,
               opencv_core.IPL_DEPTH_8U, img.nChannels());
       opencv_core.cvCopy(img, imageCropped); // Copy just the region.

       return imageCropped;
    }

    public IplImage rotate(IplImage image, double angle) {
       IplImage copy = opencv_core.cvCloneImage(image);

       IplImage rotatedImage = opencv_core.cvCreateImage(
               opencv_core.cvGetSize(copy), copy.depth(), copy.nChannels());
       CvMat mapMatrix = opencv_core.cvCreateMat(2, 3, opencv_core.CV_32FC1);

       // Define Mid Point
       CvPoint2D32f centerPoint = new CvPoint2D32f();
       centerPoint.x(copy.width() / 2);
       centerPoint.y(copy.height() / 2);

       // Get Rotational Matrix
       opencv_imgproc.cv2DRotationMatrix(centerPoint, angle, 1.0, mapMatrix);

       // Rotate the Image
       opencv_imgproc.cvWarpAffine(copy, rotatedImage, mapMatrix,
               opencv_imgproc.CV_INTER_CUBIC
                       + opencv_imgproc.CV_WARP_FILL_OUTLIERS,
               opencv_core.cvScalarAll(170));
       opencv_core.cvReleaseImage(copy);
       opencv_core.cvReleaseMat(mapMatrix);
       return rotatedImage;
    }

    I am rotating the video frame and then resizing the frame image.

    The code was working fine 3 days ago but not suddenly it started messing up.