Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (108)

Sur d’autres sites (14596)

  • YouPHPTube Encoder is not encoding video [on hold]

    11 octobre 2019, par Tanjima Tani

    I successfully installed YouPHPTube an on demand video script. I tried to encode a local video but it is always in "pending" state. The error of encoding error log is as follows :

    [11-Oct-2019 23:54:25 Asia/Dhaka] Upload.php will set format
    [11-Oct-2019 23:54:25 Asia/Dhaka] Upload.php will let function decide decideFormatOrder
    [11-Oct-2019 23:54:25 Asia/Dhaka] decideFormatOrder: {"file":"myvideo.mp4","audioOnly":"false","spectrum":"false","webm":"false","inputHLS":"false","inputLow":"true","inputSD":"true","inputHD":"true","title":"","description":"","categories_id":"0"}
    [11-Oct-2019 23:54:25 Asia/Dhaka] decideFormatOrder: MP4 All
    [11-Oct-2019 23:54:25 Asia/Dhaka] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"}
    [11-Oct-2019 23:54:25 Asia/Dhaka] YouPHPTube-Encoder sending file to http://localhost/YouPHPTube/youPHPTubeEncoder.json
    [11-Oct-2019 23:54:25 Asia/Dhaka] YouPHPTube-Encoder reading file from
    [11-Oct-2019 23:54:25 Asia/Dhaka] YouPHPTube-Streamer answer {"error":false,"video_id":14}
    [11-Oct-2019 23:54:25 Asia/Dhaka] {"error":false,"format":"mp4","file":"","resolution":"","videoDownloadedLink":null,"target":"http:\/\/localhost\/YouPHPTube\/youPHPTubeEncoder.json","postFields":11,"response_raw":"{\"error\":false,\"video_id\":14}","response":{"error":false,"video_id":14}}
    [11-Oct-2019 17:54:27 UTC] downloadFile: start queue_id = 14
    [11-Oct-2019 17:54:27 UTC] downloadFile: url = http://localhost/YouPHPTube-Encoder/videos/original_myvideo_YPTuniqid_5da0c1d10f5c29.50237780
    [11-Oct-2019 17:54:27 UTC] downloadFile:strpos global['webSiteRootURL'] = http://localhost/YouPHPTube-Encoder/
    [11-Oct-2019 17:54:27 UTC] downloadFile: this file was uploaded from file and thus is in the videos
    [11-Oct-2019 17:54:27 UTC] downloadFile: downloadedFile = /var/www/html/YouPHPTube-Encoder/videos/original_myvideo_YPTuniqid_5da0c1d10f5c29.50237780 | url = http://localhost/YouPHPTube-Encoder/videos/original_myvideo_YPTuniqid_5da0c1d10f5c29.50237780
    [11-Oct-2019 17:54:27 UTC] Try to get UTF8 URL http://localhost/YouPHPTube-Encoder/videos/original_myvideo_YPTuniqid_5da0c1d10f5c29.50237780
    [11-Oct-2019 17:54:27 UTC] Try to get UTF8 decode URL http://localhost/YouPHPTube-Encoder/videos/original_myvideo_YPTuniqid_5da0c1d10f5c29.50237780
    [11-Oct-2019 17:54:27 UTC] downloadFile: success
    [11-Oct-2019 17:54:27 UTC] downloadFile: {"error":false,"filename":"14_tmpFile.mp4","pathFileName":"\/var\/www\/html\/YouPHPTube-Encoder\/videos\/14_tmpFile.mp4"}
    [11-Oct-2019 17:54:27 UTC] sendImages: Sending image to [14]
    [11-Oct-2019 17:54:27 UTC] Duration found: 0:00:26
    [11-Oct-2019 17:54:27 UTC] sendImages: YouPHPTube-Encoder sending file to http://localhost/YouPHPTube/objects/youPHPTubeEncoderReceiveImage.json.php
    [11-Oct-2019 17:54:27 UTC] sendImages: YouPHPTube-Encoder reading file from /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4
    [11-Oct-2019 17:54:27 UTC] getImage: ffmpeg -ss 00:00:13 -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4.jpg
    [11-Oct-2019 17:54:27 UTC] getImage: takes 0.11579895019531 sec to complete
    [11-Oct-2019 17:54:27 UTC] getGifImage
    [11-Oct-2019 17:54:27 UTC] getGif: Starts
    [11-Oct-2019 17:54:28 UTC] getGif: takes 0.51563596725464 sec to complete
    [11-Oct-2019 17:54:29 UTC] sendImages: curl_init
    [11-Oct-2019 17:54:29 UTC] sendImages: curl_exec
    [11-Oct-2019 17:54:29 UTC] sendImages: YouPHPTube-Streamer answer {"error":false,"video_id":14}
    [11-Oct-2019 17:54:29 UTC] {"error":false,"file":"\/var\/www\/html\/YouPHPTube-Encoder\/videos\/14_tmpFile.mp4","target":"http:\/\/localhost\/YouPHPTube\/objects\/youPHPTubeEncoderReceiveImage.json.php","postFields":6,"response_raw":"{\"error\":false,\"video_id\":14}","response":{"error":false,"video_id":14}}
    [11-Oct-2019 17:54:29 UTC] run:runMultiResolution
    [11-Oct-2019 17:54:29 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:720 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_HD.mp4]
    [11-Oct-2019 17:54:29 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:720 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_HD.mp4 --- [] --- (8, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_HD.mp4, 14)
    [11-Oct-2019 17:54:29 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:540 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_SD.mp4]
    [11-Oct-2019 17:54:29 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:540 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_SD.mp4 --- [] --- (7, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_SD.mp4, 14)
    [11-Oct-2019 17:54:29 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:360 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_Low.mp4]
    [11-Oct-2019 17:54:29 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:360 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_Low.mp4 --- [] --- (1, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_Low.mp4, 14)
    [11-Oct-2019 17:54:29 UTC] Trying again: [1] => Execute code error "Array\n(\n)\n"
    Code: ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:360 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_Low.mp4
    [11-Oct-2019 23:54:30 Asia/Dhaka] ERROR on get http://localhost/YouPHPTube/plugin/CustomizeAdvanced/advancedCustom.json.php false
    [11-Oct-2019 23:54:30 Asia/Dhaka] PHP Warning:  Creating default object from empty value in /var/www/html/YouPHPTube-Encoder/view/index.php on line 233

    What to do next ? Thanks in advance

  • dyld : Symbol not found : _objc_alloc_init

    13 avril 2020, par dimarik

    I built static ffmpeg binaries under one mac and when I trying to run the binary under another one I have the following error :

    



    ./ffmpeg -f avfoundation -list_devices true -i ''
ffmpeg version N-95218-g7da57875b5 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.8)
  configuration: --pkg-config-flags=--static --disable-ffplay --disable-debug --disable-doc --enable-filter=format --disable-d3d11va --disable-dxva2 --disable-network --disable-iconv --disable-protocol=crypto --enable-libopus --enable-libvorbis --enable-libmp3lame --enable-libopenh264 --enable-libtheora --enable-libvpx --enable-libwebp --disable-protocol=hls --disable-protocol=cache --extra-ldexeflags='-Bstatic -L/usr/local/lib -L/usr/local/opt/llvm/lib' --extra-cflags='-I/usr/local/include -static -I/usr/local/opt/llvm/include -I/usr/local/opt/llvm/include/c++/v1/ -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Versions/A/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Versions/A/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMedia.framework/Versions/A/Headers' --disable-bzlib --disable-appkit --disable-coreimage --disable-indevs --enable-indev=lavfi --disable-asm --enable-indev=avfoundation --cc=/usr/bin/clang
  libavutil      56. 35.100 / 56. 35.100
  libavcodec     58. 59.101 / 58. 59.101
  libavformat    58. 33.100 / 58. 33.100
  libavdevice    58.  9.100 / 58.  9.100
  libavfilter     7. 61.100 /  7. 61.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
dyld: lazy symbol binding failed: Symbol not found: _objc_alloc_init
  Referenced from: ffmpeg (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libobjc.A.dylib

dyld: Symbol not found: _objc_alloc_init
  Referenced from: ffmpeg (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libobjc.A.dylib


    



    Abort trap : 6

    



    Please advise.

    


  • ffmpeg lose frames when extracting them

    11 octobre 2019, par Francisco Isoardi Prieto

    When I extract all frames from a video, FFmpeg lose one frame. I tried multiple options, like adding more parameters to the function, but none of them worked.

    ffmpeg -i Multicam420-30a.mp4 -framerate 30 frame%08d.jpg

    ffmpeg version N-94077-g01d8c72b95 Copyright (c) 2000-2019 the FFmpeg developers
    built with gcc 9.1.1 (GCC) 20190621
    configuration : —enable-gpl —enable-version3 —enable-sdl2 —enable-fontconfig —enable-gnutls —enable-iconv —enable-libass —enable-libdav1d —enable-libbluray —enable-libfreetype —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-libshine —enable-libsnappy —enable-libsoxr —enable-libtheora —enable-libtwolame —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libzimg —enable-lzma —enable-zlib —enable-gmp —enable-libvidstab —enable-libvorbis —enable-libvo-amrwbenc —enable-libmysofa —enable-libspeex —enable-libxvid —enable-libaom —enable-libmfx —enable-amf —enable-ffnvcodec —enable-cuvid —enable-d3d11va —enable-nvenc —enable-nvdec —enable-dxva2 —enable-avisynth —enable-libopenmpt
    libavutil 56. 29.100 / 56. 29.100
    libavcodec 58. 53.100 / 58. 53.100
    libavformat 58. 28.100 / 58. 28.100
    libavdevice 58. 7.100 / 58. 7.100
    libavfilter 7. 55.100 / 7. 55.100
    libswscale 5. 4.101 / 5. 4.101
    libswresample 3. 4.100 / 3. 4.100
    libpostproc 55. 4.100 / 55. 4.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000023af91f9e80] st : 0 edit list : 1 Missing key frame while searching for timestamp : 0
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000023af91f9e80] st : 0 edit list 1 Cannot find an index entry before timestamp : 0.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’Multicam420-30a.mp4’ :
    Metadata :
    major_brand : isom
    minor_version : 512
    compatible_brands : mp41mp42
    creation_time : 2019-08-20T01:30:57.000000Z
    Duration : 00:00:01.00, start : 0.000000, bitrate : 11208 kb/s
    Stream #0:0(eng) : Video : h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 11007 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
    Metadata :
    creation_time : 2019-08-20T01:30:57.000000Z
    encoder : AVC Coding
    Stream #0:1(eng) : Audio : aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata :
    creation_time : 2019-08-20T01:30:57.000000Z
    Stream mapping :
    Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
    Press [q] to stop, [?] for help
    [swscaler @ 0000023afb923740] deprecated pixel format used, make sure you did set range correctly
    Output #0, image2, to ’frame%08d.jpg’ :
    Metadata :
    major_brand : isom
    minor_version : 512
    compatible_brands : mp41mp42
    encoder : Lavf58.28.100
    Stream #0:0(eng) : Video : mjpeg, yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc (default)
    Metadata :
    creation_time : 2019-08-20T01:30:57.000000Z
    encoder : Lavc58.53.100 mjpeg
    Side data :
    cpb : bitrate max/min/avg : 0/0/200000 buffer size : 0 vbv_delay : -1
    frame= 29 fps= 17 q=24.8 Lsize=N/A time=00:00:00.96 bitrate=N/A speed=0.557x
    video:3153kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : unknown

    As you can see, the original video has 30 frames and last 1 second, and the output frames are 29 and less than a second.