[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Retation af video



On Sun, 24 Jul 2011 20:50:11 +0200
Henrik Pedersen <sslug@sslug> wrote:

> Doc Nielsen wrote:
> 
> > 2011/7/21 Henrik Pedersen <sslug@sslug>:
> >> Doc Nielsen wrote:
> >>> Prøv det her
> >>> ffmpeg -i Sebastian_Raw.3gp -vf "transpose=1"
> >>> Sebastian_New.mp4
> > 
> >> Så kaster den følgende op i ansigtet på mig.
> >> Jeg hæfter mig mest ved sidste linie.
> > 
> >> ffmpeg -i VID_20110708_192555.3gp -vf transpose=1 Seb_1.mp4
> >> FFmpeg version 0.6-4:0.6-2ubuntu6.1, Copyright (c) 2000-2010
> >> the FFmpeg developers
> >> built on Mar 31 2011 18:42:12 with gcc 4.4.5
> > 
> >> Unrecognized option 'vf'
> > 
> > Orv, ubuntus version af ffmpeg er ret så gammel. 0.8 er ude.
> > Nu er jeg glad for jeg har bygget min egen. Jeg kan anbefale
> > dig at gøre det samme.
> > 
> > wget http://ffmpeg.org/releases/ffmpeg-0.8.tar.bz2
> > tar jxf ffmpeg-0.8.tar.bz2
> > cd ffmpeg*
> > ./configure
> > make
> > make install
> > 
> > Her er de forskellige muligheder til -vf
> > http://ffmpeg.org/ffmpeg-doc.html#SEC72
> > Den du søger er http://ffmpeg.org/ffmpeg-doc.html#SEC93
> > 
> > -Doc
> 
> 
> Så er den opdateret til seneste version 0.8, men giver nu
> følgende output. 

??? hvilken kommando ???

ffmpeg version 0.8, Copyright (c) 2000-2011 the
> FFmpeg developers built on Jul 24 2011 20:44:26 with gcc 4.4.5
>   configuration: 
>   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
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x95cb340] multiple edit list entries,
> a/v desync might occur, patch welcome
>                                                                                                                                  
> Seems stream 1 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 'VID_20110708_192555.3gp':
>   Metadata:
>     major_brand     : isom
>     minor_version   : 0
>     compatible_brands: isom3gp4
>     creation_time   : 1945-07-07 17:27:21
>   Duration: 00:01:24.73, start: 0.000000, bitrate: 3134 kb/s
>     Stream #0.0(eng): Audio: aac, 16000 Hz, mono, s16, 96 kb/s
>     Metadata:
>       creation_time   : 1945-07-07 17:27:21
>     Stream #0.1(eng): Video: h264 (Baseline), yuv420p, 720x480,
> 3003 kb/s, PAR 65536:65536 DAR 3:2, 30.02 fps, 90k tbr, 90k tbn,
> 180k tbc Metadata:
>       creation_time   : 1945-07-07 17:27:21
> [mp4 @ 0x95c9e60] Frame rate very high for a muxer not
> effciciently supporting it.
> Please consider specifiying a lower framerate, a different muxer
> or -vsync 2 [buffer @ 0x95d3860] w:720 h:480 pixfmt:yuv420p
> tb:1/1000000 sar:65536/65536
> sws_param: [transpose @ 0x95c5380] w:720 h:480 dir:1 -> w:480
> h:720 rotation:clockwise vflip:0
> [mpeg4 @ 0x95ca340] removing common factors from framerate
> [mpeg4 @ 0x95ca340] timebase 1/90000 not supported by MPEG 4
> standard, the maximum admitted value for the timebase denominator
> is 65535 Output #0, mp4, to
> 'Seb_1.mp4': Stream #0.0(eng): Video: mpeg4, yuv420p, 480x720
> [PAR 1:1 DAR 2:3], q=2-31, 200 kb/s, 90k tbn, 90k tbc
>     Metadata:
>       creation_time   : 1945-07-07 17:27:21
>     Stream #0.1(eng): Audio: aac, 16000 Hz, mono, s16, 64 kb/s
>     Metadata:
>       creation_time   : 1945-07-07 17:27:21
> Stream mapping:
>   Stream #0.1 -> #0.0
>   Stream #0.0 -> #0.1
> Error while opening encoder for output stream #0.0 - maybe
> incorrect parameters such as bit_rate, rate, width or height


Ud fra fejl-meddelelsen ser det ud som om der er fejl
i din video-streams frame-rate. Måske video-filen
er korrupt. Kan du spille den med mplayer? Jeg ved ikke 
hvordan man redder defekte video-filer.

Hvilken kommando bruger du? Jeg prøvede og det kører (men
giver en voldsom kompression, vistnok forringet kval.)
Output er forkortet:

# ffmpeg -vf "transpose=1"  -i MVI_9507.avi rotated9507.avi
[...]
Output #0, avi, to 'rotated9507.avi':
  Metadata:
    creation_time   : 2011-07-19 10:42:17
    ISFT            : Lavf53.4.0
    Stream #0.0: Video: mpeg4, yuv420p, 480x640, q=2-31, 200 kb/s, 10 tbn, 10 tbc
    Stream #0.1: Audio: mp2, 16000 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
Warning, using s16 intermediate sample format for resampling
frame=  101 fps= 38 q=31.0 Lsize=     652kB time=00:00:10.10 bitrate= 529.0kbits/s    
video:557kB audio:79kB global headers:0kB muxing overhead 2.420224%
saturn:/mnt/usb1/dax11/pho/B107 #ny *i
-w-    14,653,664  111-07-19 11:41:45    MVI_9506.avi
-w-     6,244,996  111-07-19 11:42:17    MVI_9507.avi
-w-       667,828  111-07-24 22:57:48    rotated9507.avi

--- --- --- --- --- 


ffmpeg -vf "transpose=1"  -i MVI_9507.avi rotated9507.avi

-- 
Donald Axel <sslug@sslug>


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2011-08-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *