11.Nas_1


새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


piwigo에서 동영상 mp4의 썸네일 만들기(만들기 실패)

♨ 카랜더 일정 :
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    piwigo에서 동영상 mp의 썸네일 만들기(만들기 실패) 하였습니다

    기본 설치 플러그인

    기본 : 
    1) videojs : 기본작업 / 썸네일 만들기 플러그인 설치

    2) localfiles editor : 초기 설정값 입력

    3)jplayer

    4) 시놀로지 패키지 센터 설정 커뮤티디  입력 ffmpeg가 나오게 하고 설치 // dsm6.1의 ds3615는 나오는데 ds3617는 나오지 않음

    http://packages.synocommunity.com/

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

    1) videojs : 기본작업 / 썸네일 만들기 플러그인 설치

    3232235521_1O6WkBHS_22835dd7cba9c0b3c537292db11171e56ed2e1b2.png

    videojs 환경설정

    3232235521_vyPLY1JS_8657321666e5080efeddaae6a6e4f2da93fc66d6.png

    videojs  플러그인 동기화 하기

    3232235521_e4pKx9UO_d47a7f04a1031029be4a7572f731946b4e3502b2.png

    설치 방법 확인 

    3232235521_Oqf5oLGE_4f3747a2fa12657b73e255e2425b7e75569ade36.png

    영상 10초 부분의 화면 썸네일 1개 생성 예 )

    ffmpeg -i input.mp4 -ss 00:00:10 -vcodec png 

    -vframes 1 thumbnail_%d.png


    2) localfiles editor : 초기 설정값 입력 

    3232235521_tR8DjOp9_e35c7dcb980e730b7b306069dc91b798ca1bf99e.png

    <?php

    //localfiles editor_save_config 20170501 shimss

    $conf['upload_form_all_types'] = true;

    $conf['sync_chars_regex'] = '/[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}0-9a-zA-Z]+/u';

    $library = $conf['graphics_library']='gd';

    //$conf['show_exif'] = true; 

    $conf['show_exif_fields'] = array( 

      'Make', 

      'Model', 

      'ExifVersion', 

      'Software', 

      'DateTimeOriginal', 

      'FNumber', 

      'ExposureBiasValue', 

      'FILE;FileSize', 

      'ExposureTime', 

      'Flash', 

      'ISOSpeedRatings', 

      'FocalLength', 

      'FocalLengthIn35mmFilm', 

      'WhiteBalance', 

      'ExposureMode', 

      'MeteringMode', 

      'ExposureProgram', 

      'LightSource', 

      'Contrast', 

      'Saturation', 

      'Sharpness', 

      'bitrate', 

      'channel', 

      'date_creation', 

      'display_aspect_ratio', 

      'duration', 

      'filesize', 

      'format', 

      'formatprofile', 

      'codecid', 

      'frame_rate', 

      'latitude', 

      'longitude', 

      'make', 

      'model', 

      'playtime_seconds', 

      'sampling_rate', 

      'type', 

      'resolution', 

      'rotation', 

      ); 


    ?>


    4) 시놀로지 패키지 센터 설정 커뮤티디  입력 ffmpeg가 나오게 하고 설치 // dsm6.1의 ds3615는 나오는데 ds3617는 나오지 않음//

    http://packages.synocommunity.com/

    3232235521_9oVLY2cB_2772d04fd100dcdf8f4d2e5a6aac2363060c5f44.png


    3232235521_ZkhbvT3g_64e4894e6c57301ab90537e0b0931c80ab679ab1.png

    썸네일이 만들어지지 않는다,.,.....무엇이 문제인가요

    3232235521_N0X6iozg_63da6aed3bfe5c7da880475bd2b08f08d255ce4e.png


    >>> putty.exe에서도 에러

    3232235521_yaqMLeE1_9e848383ace2ab041ca90600010c681d4a9741ee.png

    root@ds3615_11qkr:/volume2/piwigo# ffmpeg -y -ss 5 -i "./galleries/file_uploader_free/video/ufc20140920.mp4" -vcodec png -vframes 1 -an -f rawvideo -y "./galleries/file_uploader_free/video/pwg_representative/ufc20140920.png"

    ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers

      built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)

      configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-nonfree --enable-libfaac --enable-encoders --enable-pthreads --disable-bzlib --disable-protocol=rtp --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffserver --disable-ffplay --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-decoder=amrnb --disable-encoder=zmbv --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc --enable-yasm --enable-libx264 --enable-encoder=libx264

      libavutil      54. 27.100 / 54. 27.100

      libavcodec     56. 41.100 / 56. 41.100

      libavformat    56. 36.100 / 56. 36.100

      libavdevice    56.  4.100 / 56.  4.100

      libavfilter     5. 16.101 /  5. 16.101

      libswscale      3.  1.101 /  3.  1.101

      libswresample   1.  2.100 /  1.  2.100

      libpostproc    53.  3.100 / 53.  3.100

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './galleries/file_uploader_free/video/ufc20140920.mp4':

      Metadata:

        major_brand     : mp42

        minor_version   : 0

        compatible_brands: mp41isom

        creation_time   : 2014-09-20 14:54:05

      Duration: 00:21:33.76, start: 0.000000, bitrate: 7875 kb/s

        Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 7698 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc (default)

        Metadata:

          creation_time   : 2014-09-20 14:54:05

          handler_name    : VideoHandler

          encoder         : AVC Coding

        Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 174 kb/s (default)

        Metadata:

          creation_time   : 2014-09-20 14:54:05

          handler_name    : SoundHandler

    Output #0, rawvideo, to './galleries/file_uploader_free/video/pwg_representative/ufc20140920.png':

      Metadata:

        major_brand     : mp42

        minor_version   : 0

        compatible_brands: mp41isom

        Stream #0:0(und): Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)

        Metadata:

          creation_time   : 2014-09-20 14:54:05

          handler_name    : VideoHandler

          encoder         : Lavc56.41.100 png

    Stream mapping:

      Stream #0:0 -> #0:0 (h264 (native) -> png (native))

    Error while opening decoder for input stream #0:0 : Operation not permitted

    root@ds3615_11qkr:/volume2/piwigo#

    =================
    에러.....

    >\r\n>\r\n>\r\n♠ 출처는 링크 참조 바랍니다. https://11q.kr ♠ \r\n

    [ 추가 정보 ... 더보기) ]
    뷰PDF 1,2



    office view

    관련자료

    댓글목록

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

    ffmpeg -i "spl.mp4" -ss 00:00:10 -vcodec png -vframes 1 "spl.png"\r\nffmpeg -i spl.mp4 -ss 00:00:10 -vcodec jpg -vframes 1 spl.jpg\r\n...실패

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

    동영상 썸네일 - FFMpeg
    http://paulownia.egloos.com/3090816FFMpeg-PHP
    동영상 썸네일 추출Linux 환경에서 php에 ffmpeg 모듈을 설치하여 동영상에서 썸네일(thumbnail)을 추출하는 방법입니다.
    제가 테스트한 환경은 SULinux 1.5 Server 에서 APM을 설치하여 테스트 하였습니다.
    그리고 제가 필요한 솔루션은 ffmpeg-php 를 이용하여
    .wmv 파일을 이미지(image)로 변환하는 것이었기 때문에다른 변환은 테스트 해보지 않았음을 미리 명시합니다.
    먼저, FFMPEG 에 가서 [Download and SVN] 페이지로 가서 full checkout 을 다운받으세요.
    이 파일은 FFMpeg의 구버전 또는 기본 베이스 파일이라고 생각하시면 될 것 같습니다.
    그 다음엔 SourceForge에 가서 FFMpeg 최신 파일을 다운받습니다.
    그 후에 두 파일을 /usr/local/폴더에 복사하여 압축을 풀어줍니다.
    압축풀기의 경우 확장자가 대부분 tar, tbz2, bz 로 나옵니다.
    tar -xvjf xxx.tartar -xvjpf xxx.tbz2tar -xvzf xxx.bz보통 tar
     옵션을 보면 x는 압축풀기, v는 압축푸는거 보여주기, f의 경우 물어보지 않기 정도 일까요?자세히는 모르겠네요.
     ㅎㅎ압축풀기가 끝나면 먼저 구버전을 설치합니다.구버전 폴더 내에서.
     /configure --enable-sharedmakemake install순으로 명령어를 내려줍니다.
     두번째로 최신 파일의 폴더 내에서/usr/local/php/bin/phpize여기서 경로는 다를 수 있습니다.
     중요한건 phpize 를 실행한다는 겁니다.현재 폴더 내에서 phpize를 실행해주세요.
     ./configure --enable-shared --with-php-config=/usr/local/php/bin/php-config
     여기서 뒤에 --with~ 부분은 실행과정에서 에러가 나오길래 제가 추가한 부분입니다.
     자세히 보면 그냥 php-config 파일의 경로를 적어주었을 뿐입니다.make clean && makemake clean 명령어는 글쎄요.
     자세히는 모르겠지만,
     이전 make 내용을 없애는 걸까요?make install순으로 명령어를 다 내리고 나면 php 의 extension 폴더 안에 ffmpeg.so 파일이 생성됩니다
     .원래 정상적으로 하면 여기까지만 하면 완료됩니다.
     그러나 저같은 경우 ffmpeg test 파일을 웹페이지로 봤을경우
     ffmpeg.so 파일을 읽어들이지 못했습니다.그래서 저는 ffmpeg.so 파일만 복사하여
     소스파일이 있는 폴더내에 같이 놔두고,소스코드 내에 ffmpeg.so 파일을 읽어오는 코드를 넣어서 사용했더니,
     성공적으로 변환이 되었습니다.FFMpeg 설치소스(구버전 및 현재 최신 파일)
     및ffmpeg.so 파일을 읽어와서 테스트(.wmv -> .jpg)하는 소스코드를 첨부합니다.부디 성공하시기를...
     <-- 영어 솔루션 보시느라 고생하셨습니다.
     ;ㅁ;#1. ffmpeg-checkout-snapshot.tar.tar#2. ffmpeg-php-0.5.0.tbz2#3. ffmpeg_process.phpps.
     눈깔 빠지는 줄 알았습니다. OTL

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

    synology 나스의 경우에 ffmpeg 가 설치 되어 있어서 별다른 셋팅은 필요없는거 같습니다. (단 제어판>웹서비스>PHP설정에서 EXEC옵션을 끄셔야 가능합니다. *중요*) \r\n삽질만 엄청 한거 같네요 ;;;;;;; \r\n\r\ndata/게시판이름/파일이름.mp4.jpg 로 저장이 되네요.. \r\n\r\n이제 썸네일은 어떻게 연개 시킬껀지 고민을 ;;;

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

    라즈베리 파이(Ubuntu)에 설치된 piwigo에서 동영상 업로드(upload) 와 재생하기
    http://www.spacek.xyz/mle/?p=386

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

    <?php
     
    /* locfiledit_newfile */
     
    $conf['upload_form_all_types'] = true;
    $conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. ]+$/';
     
     
    $conf['show_exif'] = true;
    $conf['show_exif_fields'] = array(
      'Make',
      'Model',
      'ExifVersion',
      'Software',
      'DateTimeOriginal',
      'FNumber',
      'ExposureBiasValue',
      'FILE;FileSize',
      'ExposureTime',
      'Flash',
      'ISOSpeedRatings',
      'FocalLength',
      'FocalLengthIn35mmFilm',
      'WhiteBalance',
      'ExposureMode',
      'MeteringMode',
      'ExposureProgram',
      'LightSource',
      'Contrast',
      'Saturation',
      'Sharpness',
      'bitrate',
      'channel',
      'date_creation',
      'display_aspect_ratio',
      'duration',
      'filesize',
      'format',
      'formatprofile',
      'codecid',
      'frame_rate',
      'latitude',
      'longitude',
      'make',
      'model',
      'playtime_seconds',
      'sampling_rate',
      'type',
      'resolution',
      'rotation',
      );
     
     
    ?>

    목록

    새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사




    Total 1,684 / 67 Page
    [ G4DTD -> G4 디비변환 (UTF-8 only) ]

    목록글쓰기G4DTD -> G4 디비변환 (UTF-8 only) 모조키작성일시 2013.05.09 09:28:16조회 45 댓글 1 첨부파일…

    [ AMINA TOP MEMU변경/ [topmenu] Drop Down 세로 메뉴 AUTO MENU ] 댓글 2

    [topmenu] Drop Down 세로 메뉴\r\n\r\n\r\n\r\n수정위치 : \r\nw:\ami\thema\basic\menu.php\…

    [ HTML 트루 컬러 차트 폰트색상_faststone capture에서 칼라셋 알아보기 ]

    HTML 트루 컬러 차트 폰트색상_faststone capture에서 칼라셋 알아보기. \r\n상단메뉴바에서 칼라 색죄표를 알아서 sub-men…

    [ 전체 그룹 최신글 스킨입니당^^ ] 댓글 2

    \r\n\r\n전체 그룹 최신글 스킨입니당^^ \r\npomme \r\n작성일시 2009.09.05 12:54:10 \r\n조회 6,713 \r…

    [ 림스모바일_ver242_add_new_map_menu on/off ] 댓글 1

    메뉴를 menu.php에서 개인설정하게 정리하고\r\n그림을 image폴더에main_home.jpg에 이름 변경 저장하면 대문그림Shims Ho…

    [ 타이틀 & 배너용 최근글 리스트스킨 - latest_amina 용 ]

    <!-- 타이틀 & 배너용 최근글 리스트스킨 - latest_amina 용 // ami/thema/basic/head.php #55…

    [ rrim_mobile_263_20131102 림스모바일 2.6.3 설치의 모든것 ]

    \r\n\r\n\r\n본자료는 심씨의 주인장 모바일 사용 압축 입니다\r\nrrim_mobile_263_20131102 림스모바일 2.6.3 설…

    [ homepage_photo station 슬라이드 삽입 방법 / photo station공유 폴더 만들기 ] 댓글 1

     \r\n\r\n\r\n[이 게시물은 관리자님에 의해 2012-12-30 23:24:44 14.H_banner에서 복사 됨]\r\n사진 관리를…

    [ 아미나 로그 클릭시 https 링크에 주의요망 으로 링크주소 출력 되는것 ] 댓글 1

    아미나 로그 클릭시 https 링크에 주의요망 으로 링크주소 출력 되는것\\192.168.0.6\web\g5s\thema\Basic\head.p…

    [ 림스 아미나 모바일 글보기 엔터 줄바꿈 하기...실패로 최신버전 220 ] 댓글 2

    안녕하세요 모바일에서 줄바꿈이 되지 않습니다아래는 림스 모바일에서는 정상인데아미나 스킨 모바일에서는 줄바꿈이 되지 않내요아미나 스킨 모바일 줄바…

    [ 시놀로지 dsm 6.02 ipcamera foscam 8918설정 및 qcam onvif지원 카메라2개 붙이… ] 댓글 3

    시놀로지 호환 ipcam/foscam fi8918w 붙이기dsm7.1 재설정카메라 반대로 뒤집어 고정시 화면 위아래 반전1)먼저 저장소 설정2)…

    [ 홈피 설치 준비 처음에 MariaDB 설치/phpmyadmin설치 작업 ] 댓글 1

    홈페이지 처음 synology를 구입하여phpmyadmin 설치후패쓰워드 설정 방법홈피 만들기전에 mysql db만들어야 홈피 설치가 가능함니다…

    [ 시놀로지NAS DS712 MEMORY 메모리 변경 증설 ]

    \r\n\r\n\r\n>\r\n>\r\n■ 11q.kr은 정보를 찾아 공유 합니다. https://11q.kr.com\r\nhttps…

    [ 로그인 후 원래 위치로 되돌아 가기(모르는 분들을 위하여) ] 댓글 1

    로그인 후 원래 위치로 되돌아 가기(모르는 분들을 위하여)롤프스2014.12.09 22:15:45조회572댓글5관련링크http://unabate…

    [ file station 2giga 파일 업로드 문제 조치 ]

    ♠file station에서 2giga 파일 업로드 문제 조치출처http://cafe.naver.com/synologynas/71815♠ shi…

    [ 제 web 서버 대표홈 이동 방법입니다 ] 댓글 2

    제 web 서버 대표홈 이동 방법입니다//==============root에서 index.php 만듭니다 =============//======…


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-07-09 05:07:11

    오늘의 홈 현황


    • 현재 접속자♨ 627 명
    • 오늘 가입자※ 0 명
    • 어제 가입자※ 4 명
    • 주간 가입자※ 19 명
    • 오늘 방문자 1,265 명
    • 어제 방문자 2,106 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,423,295 명
    • 전체 게시물※ 8,683 개
    • 전체 댓글수※ 24,855 개
    • 전체 회원수 11,098 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑