Nowe posty

xx Problem ze sterownikami. (5)
2024-04-13, 21:25:16
xx Instalacja xfce4 (2)
2024-04-13, 16:20:17
xx Serie kompilacji bez instalacji dla “emerge” w Gentoo (2)
2024-04-08, 18:40:04
xx Plasma 6 w Neonie ssie trochę mniej ... (17)
2024-04-05, 10:03:46
xx Problem z Linux Lite po instalacji (3)
2024-04-03, 14:23:40
xx Jak właczyć num locka przy starcie systemu debian 12? (12)
2024-04-02, 17:43:54
xx Brak dźwieku w systemie. (5)
2024-04-02, 16:13:41
xx Dystrybucja pod HP Omen (7)
2024-03-29, 11:33:05
xx [Poradnik] Wyszukiwanie Sterowników (2)
2024-03-27, 21:08:23
xx Ile pingwinów? (1)
2024-03-27, 08:59:24

Autor Wątek: ffmpeg konwersja filmu  (Przeczytany 4639 razy)

videoad

  • Gość
ffmpeg konwersja filmu
« dnia: 2010-07-01, 12:42:33 »
Nie działa mi polecenie konwersji
    DiskStation> /usr/syno/bin/ffmpeg -i c.avi -f flv -vcodec flv c.flv
    FFmpeg version SVN-r20167-snapshot, Copyright (c) 2000-2009 Fabrice Bellard, et al.
      built on May  8 2010 00:09:44 with gcc 4.2.1
      configuration: --arch=i686 --cross-prefix=/usr/local/i686-linux-gnu/bin/i686-linux-gnu- --extra-cflags= --enable-cross-compile --enable-shared --disable-static --disable-network --disable-devices --disable-filters --disable-swscale-alpha --disable-altivec --disable-ffserver --disable-ffplay --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-optimizations --disable-armvfp --disable-armv5te
      libavutil     50. 3. 0 / 50. 3. 0
      libavcodec    52.36. 0 / 52.36. 0
      libavformat   52.39. 0 / 52.39. 0
      libavdevice   52. 2. 0 / 52. 2. 0
      libswscale     0. 7. 1 /  0. 7. 1
    [NULL @ 0x8072710]Invalid and inefficient vfw-avi packed B frames detected
    Input #0, avi, from 'c.avi':
      Duration: 01:39:54.24, start: 0.000000, bitrate: 979 kb/s
        Stream #0.0: Video: mpeg4, yuv420p, 640x272 [PAR 1:1 DAR 40:17], 25 tbr, 25 tbn, 25 tbc
        Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 123 kb/s
    File 'c.flv' already exists. Overwrite ? [y/N] y
    [libmp3lame @ 0x8074fa0]flv does not support that sample rate, choose from (44100, 22050, 11025).
    Output #0, flv, to 'c.flv':
        Stream #0.0: Video: flv, yuv420p, 640x272 [PAR 1:1 DAR 40:17], q=2-31, 512 kb/s, 1k tbn, 30 tbc
        Stream #0.1: Audio: libmp3lame, 48000 Hz, 2 channels, s16, 64 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Could not write header for output file #0 (incorrect codec parameters ?)
(przykład przy filmie > 1 gb)

Takie polecenie mi działało dla małych filmów jednak następnego dnia już nie.
Chciałem też i większe filmy > 1 gb ale niestety nie udało się (jak w przykładzie).\\

Obecnie po wpisaniu tego samego nic się nie dzieje

    DiskStation> /usr/syno/bin/ffmpeg -i c.avi -f flv -vcodec flv c.flv
    DiskStation>
W czym jest problem?
Czy muszę jeszcze raz zainstalować?
Jak zainstalować?

ra-v

  • Gość
ffmpeg konwersja filmu
« Odpowiedź #1 dnia: 2010-07-01, 16:57:25 »
/usr/syno/bin/ffmpeg -i c.avi c.flv
U mnie chyba tak działa, przerabiałem OGV na FLV i inne formaty i nie było problemów.

videoad

  • Gość
ffmpeg konwersja filmu
« Odpowiedź #2 dnia: 2010-07-02, 09:35:48 »
Chciałem zainstalować sobie jeszcze raz ffmpeg. Pobrałem ze strony internetowej i umieściłem na dysku.

Niestety dostaje taki błąd:
DiskStation> ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-libtheora
-ash:  ./configure: Permission denied
Jak zainstalować poprawnie ffmpeg?

videoad

  • Gość
ffmpeg konwersja filmu
« Odpowiedź #3 dnia: 2010-07-02, 10:30:34 »
Problem był w chmod tyle że wyskoczył taki błąd więc nie iwem czy dobre polecenie wpisuje bo korzystam z takiego przykładu:
http://linux.justinhartman.com/FFmpeg,_FFmpeg-PHP,_Lame,_Libogg,_Libvorbis,_FLVtool2,_Mplayer,_Mencoder,_AMR_Installation

DiskStation> ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-libtheora
./configure: ./configure: 1186: tr: not found
Unknown C compiler gcc
./configure: ./configure: 1408: pr: not found
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.

ubu59

  • Gość
ffmpeg konwersja filmu
« Odpowiedź #4 dnia: 2010-07-03, 07:27:00 »
Witaj wideoad!
Cytat: videoad
(...)

DiskStation> ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-libtheora
./configure: ./configure: 1186: tr: not found
Unknown C compiler gcc
(...)
Tak wygląda, że nie masz zainstalowanego gcc (http://pl.wikipedia.org/wiki/GNU_Compiler_Collection). Jest to kompilator języka C (http://pl.wikipedia.org/wiki/Kompilator).
Sprawdź to np. poleceniem z konsoli:
gcc --version
Powinieneś otrzymać coś podobnego do tego:

gcc (GCC) 4.1.1 20060724 (prerelease) (4.1.1-4pclos2007)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Pozdrawiam!