Hohoho dear community,
I convert a video shot with goPro8:
https://i.postimg.cc/3YhF4rTz/Screenshot-2020-12-18-at-13-26-55.png
[Attachment 56307 - Click to enlarge]
with PHP-FFMpeg / PHP-FFMpeg
the conversion seems to be successful but the output video is stuck on frame 0 and 0 seconds long and very pixldCode:ffmpeg' '-y' '-i' '/Users/reniar/code/OfflineJetstream/storage/app/public/NgzQEAWIjvJUX9wn.mp4' '-threads' '12' '-vcodec' 'libx264' '-acodec' 'libmp3lame' '-b:v' '500k' '-refs' '6' '-coder' '1' '-sc_threshold' '40' '-flags' '+loop' '-me_range' '16' '-subq' '7' '-i_qfactor' '0.71' '-qcomp' '0.6' '-qdiff' '4' '-trellis' '1' '-b:a' '128k' '-vf' '[in]scale=960:540 [out]' '-pass' '1' '-passlogfile' '/var/folders/kd/979xg6nd0jq8xy3zyy812c_40000gn/T/ffmpeg-passes5fdc9a58242b5coh38/pass-5fdc9a582433b' '/Users/reniar/code/OfflineJetstream/storage/app/public/NgzQEAWIjvJUX9wn.mp4'
https://i.postimg.cc/WTRjvgT0/Screenshot-2020-12-18-at-12-35-22.png
Code:ffprobe nn0aurzgsT58AHaE.MP4 ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers built with Apple clang version 12.0.0 (clang-1200.0.32.27) configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_4 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'nn0aurzgsT58AHaE.MP4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.45.100 Duration: 00:00:00.07, start: 0.000000, bitrate: 467 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 960x540 [SAR 1521:1520 DAR 169:95], 1216 kb/s, 119.88 fps, 119.88 tbr, 120k tbn, 239.76 tbc (default) Metadata: handler_name : GoPro H.265 timecode : 04:21:22:50 Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 129 kb/s (default) Metadata: handler_name : GoPro AAC Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 3 kb/s Metadata: handler_name : GoPro H.265 timecode : 04:21:22:50
any ideas are welcome
another bug if i try to upload another .mp4 is the fololowing ... but that seems to be another issu and is unrelated
if i convert other videos in example this also mp4:
I get :
```
Alchemy\BinaryDriver\Exception\ExecutionFailureExc eption: ffmpeg failed to execute command '/usr/local/bin/ffmpeg' '-y' '-i' '/Users/reniar/code/OfflineJetstream/storage/app/public/cWS9iNcFWs4XXl2i.mp4' '-threads' '12' '-vcodec' 'libx264' '-acodec' 'libmp3lame' '-b:v' '500k' '-refs' '6' '-coder' '1' '-sc_threshold' '40' '-flags' '+loop' '-me_range' '16' '-subq' '7' '-i_qfactor' '0.71' '-qcomp' '0.6' '-qdiff' '4' '-trellis' '1' '-b:a' '128k' '-vf' '[in]scale=960:540 [out]' '-pass' '1' '-passlogfile' '/var/folders/kd/979xg6nd0jq8xy3zyy812c_40000gn/T/ffmpeg-passes5fdc9ddb6f4c3aruc4/pass-5fdc9ddb6f533' '/Users/reniar/code/OfflineJetstream/storage/app/public/cWS9iNcFWs4XXl2i.mp4':
Error Output:
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.27)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_4 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/reniar/code/OfflineJetstream/storage/app/public/cWS9iNcFWs4XXl2i.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41isomavc1
creation_time : 2015-08-07T09:13:36.000000Z
Duration: 00:00:30.53, start: 0.000000, bitrate: 4675 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 4486 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (default)
Metadata:
creation_time : 2015-08-07T09:13:36.000000Z
handler_name : L-SMASH Video Handler
encoder : AVC Coding
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
Metadata:
creation_time : 2015-08-07T09:13:36.000000Z
handler_name : L-SMASH Audio Handler
Output /Users/reniar/code/OfflineJetstream/storage/app/public/cWS9iNcFWs4XXl2i.mp4 same as Input #0 - exiting
FFmpeg cannot edit existing files in-place.
in /Users/reniar/code/OfflineJetstream/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessRunner.php:95
Stack trace:
#0 /Users/reniar/code/OfflineJetstream/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessRunner.php(73): Alchemy\BinaryDriver\ProcessRunner->doExecutionFailure(''/usr/local/bin...', 'ffmpeg version ...')
#1 /Users/reniar/code/OfflineJetstream/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php(207): Alchemy\BinaryDriver\ProcessRunner-
....
```
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
If you simplify your code you will discover you are trying to convert the file onto itself:
ffmpeg' '-y' '-i' '/Users/reniar/code/OfflineJetstream/storage/app/public/NgzQEAWIjvJUX9wn.mp4' '-threads' '12' '-vcodec' 'libx264' '-acodec' 'libmp3lame' '-b:v' '500k' '-refs' '6' '-coder' '1' '-sc_threshold' '40' '-flags' '+loop' '-me_range' '16' '-subq' '7' '-i_qfactor' '0.71' '-qcomp' '0.6' '-qdiff' '4' '-trellis' '1' '-b:a' '128k' '-vf' '[in]scale=960:540 [out]' '-pass' '1' '-passlogfile' '/var/folders/kd/979xg6nd0jq8xy3zyy812c_40000gn/T/ffmpeg-passes5fdc9a58242b5coh38/pass-5fdc9a582433b' '/Users/reniar/code/OfflineJetstream/storage/app/public/NgzQEAWIjvJUX9wn.mp4'
FFMpeg is telling you that too.
Output /Users/reniar/code/OfflineJetstream/storage/app/public/cWS9iNcFWs4XXl2i.mp4 same as Input #0 - exiting
Change the output name or location. -
Hi smrpix,
please note, that you are referring to the second problem, that has nothing to do with the primary problem where the file gets converted but is only 0 seonds long and pixeled ... -
-
That helped me but now I am getting another error could you please help me?
```
Encoding failed:
Caused by
Alchemy\BinaryDriver\Exception\ExecutionFailureExc eption: ffmpeg failed to execute command '/usr/local/bin/ffmpeg' '-y' '-threads' '12' '-i' '/Users/reniar/code/OfflineJetstream/storage/framework/testing/disks/videos_disk/tDcNXXWXVM2HVFWpg0gjMb9BK7qOqjio0Y5rBfhS.mp4' '-map' '0' '-vcodec' 'libx264' '-b:v' '3000k' '-g' '48' '-hls_playlist_type' 'vod' '-hls_time' '10' '-hls_segment_filename' '/Users/reniar/code/OfflineJetstream/storage/app/streamable_videos/1_0_3000_%05d.ts' '-acodec' 'aac' '-b:a' '128k' '/Users/reniar/code/OfflineJetstream/storage/app/streamable_videos/1_0_3000.m3u8':
Error Output:
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.27)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_4 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdeac809000] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdeac809000] moov atom not found
/Users/reniar/code/OfflineJetstream/storage/framework/testing/disks/videos_disk/tDcNXXWXVM2HVFWpg0gjMb9BK7qOqjio0Y5rBfhS.mp4: Invalid data found when processing input
```
Similar Threads
-
I'm Having Problems Converting MKV to MP4
By TinkreBelle in forum Video ConversionReplies: 3Last Post: 31st May 2019, 17:53 -
Problem converting AVI to MP4
By haddoq in forum Video ConversionReplies: 3Last Post: 27th Feb 2019, 03:53 -
Converting Mp4 to Vob
By Phot01 in forum Newbie / General discussionsReplies: 2Last Post: 15th Jun 2018, 13:38 -
Converting .264 to .MP4
By Bowdon in forum Video ConversionReplies: 5Last Post: 17th Mar 2018, 08:20 -
converting vbr mp4 file to cbr mp4
By brandcc in forum Video ConversionReplies: 13Last Post: 19th Jun 2017, 08:43