Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roi.sh Usage- Extract audio error, ROI video #8

Open
naveenkumarmulabitmovin opened this issue Sep 25, 2019 · 7 comments
Open

roi.sh Usage- Extract audio error, ROI video #8

naveenkumarmulabitmovin opened this issue Sep 25, 2019 · 7 comments

Comments

@naveenkumarmulabitmovin
Copy link

naveenkumarmulabitmovin commented Sep 25, 2019

I have encountered the error like below while extraction audio and ROI vide.
Giving the error

roi.sh Usage- Extract audio error

.sh: 6: roi.sh: args[i]=../videos/tears_of_steel.avi: not found
roi.sh: 7: roi.sh: ++i: not found
../videos/tears_of_steel.mp4
roi.sh: 6: roi.sh: args[i]=../videos/tears_of_steel.mp4: not found
roi.sh: 7: roi.sh: ++i: not found
5
roi.sh: 6: roi.sh: args[i]=5: not found
roi.sh: 7: roi.sh: ++i: not found
roi.sh: 13: roi.sh: args[0]="../videos/tears_of_steel.avi.h264": not found
roi.sh: 14: roi.sh: args[1]="../videos/tears_of_steel.avi.roi.h264": not found

### Extract Video ##############################################################

ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, avi, from '../videos/tears_of_steel.avi':
  Metadata:
    encoder         : Lavf58.27.103
  Duration: 00:00:05.08, start: 0.000000, bitrate: 2598 kb/s
    Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 2462 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s
File '../videos/tears_of_steel.avi.h264' already exists. Overwrite ? [y/N] y
Stream mapping:
  Stream #0:0 -    #0:0 (mpeg4 (native) -    h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x55e46ed58620] using SAR=1/1
[libx264 @ 0x55e46ed58620] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55e46ed58620] profile High, level 4.0
Output #0, h264, to '../videos/tears_of_steel.avi.h264':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (libx264), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], q=-1--1, 24 fps, 24 tbn, 24 tbc
    Metadata:
      encoder         : Lavc57.107.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame=  122 fps= 21 q=-1.0 Lsize=    6712kB time=00:00:05.00 bitrate=10997.6kbits/s dup=1 drop=0 speed=0.847x    
video:6712kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
[libx264 @ 0x55e46ed58620] frame I:1     Avg QP: 7.00  size:211997
[libx264 @ 0x55e46ed58620] frame P:110   Avg QP:10.00  size: 57498
[libx264 @ 0x55e46ed58620] frame B:11    Avg QP:11.82  size: 30615
[libx264 @ 0x55e46ed58620] consecutive B-frames: 83.6% 11.5%  4.9%  0.0%
[libx264 @ 0x55e46ed58620] mb I  I16..4: 12.7% 67.6% 19.7%
[libx264 @ 0x55e46ed58620] mb P  I16..4:  0.4%  3.1%  1.5%  P16..4: 26.1% 10.4% 11.8%  0.0%  0.0%    skip:46.7%
[libx264 @ 0x55e46ed58620] mb B  I16..4:  0.0%  0.5%  0.3%  B16..8: 35.4%  7.8%  5.6%  direct: 3.1%  skip:47.3%  L0:79.6% L1:12.6% BI: 7.8%
[libx264 @ 0x55e46ed58620] 8x8 transform intra:63.0% inter:50.5%
[libx264 @ 0x55e46ed58620] direct mvs  spatial:81.8% temporal:18.2%
[libx264 @ 0x55e46ed58620] coded y,uvDC,uvAC intra: 80.9% 76.4% 24.4% inter: 27.6% 17.0% 10.5%
[libx264 @ 0x55e46ed58620] i16 v,h,dc,p: 41% 27% 29%  2%
[libx264 @ 0x55e46ed58620] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 26% 35%  2%  1%  1%  1%  2%  3%
[libx264 @ 0x55e46ed58620] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 43% 38%  9%  2%  1%  2%  1%  2%  2%
[libx264 @ 0x55e46ed58620] i8c dc,h,v,p: 22% 40% 35%  3%
[libx264 @ 0x55e46ed58620] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55e46ed58620] ref P L0: 82.7%  8.4%  4.7%  1.5%  1.4%  1.4%
[libx264 @ 0x55e46ed58620] ref B L0: 95.7%  3.2%  1.0%  0.1%
[libx264 @ 0x55e46ed58620] kb/s:10817.30

### Extract Audio ##############################################################

ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, avi, from '../videos/tears_of_steel.avi':
  Metadata:
    encoder         : Lavf58.27.103
  Duration: 00:00:05.08, start: 0.000000, bitrate: 2598 kb/s
    Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 2462 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s
File '../videos/tears_of_steel.avi.mp3' already exists. Overwrite ? [y/N] y
Stream mapping:
  Stream #0:1 -    #0:0 (mp3 (native) -    mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to '../videos/tears_of_steel.avi.mp3':
  Metadata:
    TSSE            : Lavf57.83.100
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p
    Metadata:
      encoder         : Lavc57.107.100 libmp3lame
size=      80kB time=00:00:05.06 bitrate= 129.0kbits/s speed=44.6x    
video:0kB audio:80kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.310422%

### ROI Video ##################################################################
roi.sh: 31: roi.sh: Bad substitution
@ChaoticEnigma
Copy link
Owner

It looks like the script is being run by sh, or an old version of bash. The script was written for a modern version of bash.

@naveenkumarmulabitmovin
Copy link
Author

naveenkumarmulabitmovin commented Sep 25, 2019

It looks like the script is being run by sh, or an old version of bash. The script was written for a modern version of bash.

I have tried with this command..
bash roi.sh ../videos/tears_of_steel.avi ../videos/encode_tears.mp4 5

Now I'm seeing the error at mux audio/video

Mux Audio/Video

ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
../videos/tears_of_steel.avi.roi.h264: No such file or directory

@ChaoticEnigma
Copy link
Owner

That file should be generated by h264-roi. What was the output from the ROI step?

@naveenkumarmulabitmovin
Copy link
Author

naveenkumarmulabitmovin commented Sep 25, 2019

That file should be generated by h264-roi. What was the output from the ROI step?

I ran the command ../h264-roi-build/h264_roi tears_of_steel.avi.h264 tears_of_steel.avi.roi.h264
it's still giving the error.

[16:38:48] 0 N Starting H264-ROI
[16:38:48] 0 N tears_of_steel.avi.h264
[16:38:48] 0 N tears_of_steel.avi.roi.h264
[16:38:48] 0 N Decoder Opened: tears_of_steel.avi.h264
[16:38:48] 0 N Reading frames...
[16:38:48] 0 N FPS: 0.0208333
[16:38:48] 0 N Input Setup: false
[16:38:48] 0 N Output Setup: false
[16:38:48] 0 N Setting 0 regions:
[16:38:48] 0 E [|:] Encoder settings are invalid
[16:38:48] 0 E [|:] Exception caught: Failed to open encoder

[16:38:48] 0 N Finished H264-ROI
Segmentation fault (core dumped)

@ChaoticEnigma
Copy link
Owner

ChaoticEnigma commented Sep 25, 2019

Without specifying a base qp value or any regions, it should encode losslessly. I'll look into it. Most likely the ffmpeg/libav API changed.

@naveenkumarmulabitmovin
Copy link
Author

Without specifying a base qp value or any regions, it should encode losslessly. I'll look into it. Most likely the ffmpeg/libav API changed.

I have tried with QP value and ROI coordinates... Even though without qp, ROI also... giving the same error.. you can see the full output here...

bash roi.sh "../videos/tears_of_steel.avi" "../videos/tears_of_steel.mp4" 20 0,125,102,681:5 0,828,324,1080:5 1810,118,1920,689:5 1608,766,1920,1080:5 572,839,1352,1080:5
../videos/tears_of_steel.avi
../videos/tears_of_steel.mp4
20
0,125,102,681:5
0,828,324,1080:5
1810,118,1920,689:5
1608,766,1920,1080:5
572,839,1352,1080:5

Extract Video

ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, avi, from '../videos/tears_of_steel.avi':
Metadata:
encoder : Lavf58.27.103
Duration: 00:00:05.08, start: 0.000000, bitrate: 2598 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 2462 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s
File '../videos/tears_of_steel.avi.h264' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x55fa8853b620] using SAR=1/1
[libx264 @ 0x55fa8853b620] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55fa8853b620] profile High, level 4.0
Output #0, h264, to '../videos/tears_of_steel.avi.h264':
Metadata:
encoder : Lavf57.83.100
Stream #0:0: Video: h264 (libx264), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], q=-1--1, 24 fps, 24 tbn, 24 tbc
Metadata:
encoder : Lavc57.107.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 122 fps= 14 q=-1.0 Lsize= 6712kB time=00:00:05.00 bitrate=10997.6kbits/s dup=1 drop=0 speed=0.58x
video:6712kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
[libx264 @ 0x55fa8853b620] frame I:1 Avg QP: 7.00 size:211997
[libx264 @ 0x55fa8853b620] frame P:110 Avg QP:10.00 size: 57498
[libx264 @ 0x55fa8853b620] frame B:11 Avg QP:11.82 size: 30615
[libx264 @ 0x55fa8853b620] consecutive B-frames: 83.6% 11.5% 4.9% 0.0%
[libx264 @ 0x55fa8853b620] mb I I16..4: 12.7% 67.6% 19.7%
[libx264 @ 0x55fa8853b620] mb P I16..4: 0.4% 3.1% 1.5% P16..4: 26.1% 10.4% 11.8% 0.0% 0.0% skip:46.7%
[libx264 @ 0x55fa8853b620] mb B I16..4: 0.0% 0.5% 0.3% B16..8: 35.4% 7.8% 5.6% direct: 3.1% skip:47.3% L0:79.6% L1:12.6% BI: 7.8%
[libx264 @ 0x55fa8853b620] 8x8 transform intra:63.0% inter:50.5%
[libx264 @ 0x55fa8853b620] direct mvs spatial:81.8% temporal:18.2%
[libx264 @ 0x55fa8853b620] coded y,uvDC,uvAC intra: 80.9% 76.4% 24.4% inter: 27.6% 17.0% 10.5%
[libx264 @ 0x55fa8853b620] i16 v,h,dc,p: 41% 27% 29% 2%
[libx264 @ 0x55fa8853b620] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 26% 35% 2% 1% 1% 1% 2% 3%
[libx264 @ 0x55fa8853b620] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 43% 38% 9% 2% 1% 2% 1% 2% 2%
[libx264 @ 0x55fa8853b620] i8c dc,h,v,p: 22% 40% 35% 3%
[libx264 @ 0x55fa8853b620] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55fa8853b620] ref P L0: 82.7% 8.4% 4.7% 1.5% 1.4% 1.4%
[libx264 @ 0x55fa8853b620] ref B L0: 95.7% 3.2% 1.0% 0.1%
[libx264 @ 0x55fa8853b620] kb/s:10817.30

Extract Audio

ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, avi, from '../videos/tears_of_steel.avi':
Metadata:
encoder : Lavf58.27.103
Duration: 00:00:05.08, start: 0.000000, bitrate: 2598 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 2462 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s
File '../videos/tears_of_steel.avi.mp3' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:1 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to '../videos/tears_of_steel.avi.mp3':
Metadata:
TSSE : Lavf57.83.100
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p
Metadata:
encoder : Lavc57.107.100 libmp3lame
size= 80kB time=00:00:05.06 bitrate= 129.0kbits/s speed=20.5x
video:0kB audio:80kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.310422%

ROI Video

./h264_roi "../videos/tears_of_steel.avi.h264" "../videos/tears_of_steel.avi.roi.h264" 20 0,125,102,681:5 0,828,324,1080:5 1810,118,1920,689:5 1608,766,1920,1080:5 572,839,1352,1080:5

[17:27:57] 0 N Starting H264-ROI

[17:27:57] 0 N "../videos/tears_of_steel.avi.h264"
[17:27:57] 0 N "../videos/tears_of_steel.avi.roi.h264"

It created the file "./videos/tears_of_steel.avi.roi.h264" but it's giving a final error that no such file with roi.h264.. why is that?

[17:27:57] 0 N 20
[17:27:57] 0 N 0,125,102,681:5
[17:27:57] 0 N 0,828,324,1080:5
[17:27:57] 0 N 1810,118,1920,689:5
[17:27:57] 0 N 1608,766,1920,1080:5
[17:27:57] 0 N 572,839,1352,1080:5

Mux Audio/Video

ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100

../videos/tears_of_steel.avi.roi.h264: No such file or directory

@JpKuo24
Copy link

JpKuo24 commented Dec 2, 2019

I have the same error. It already creates the .h264 file. But in the mux phase, there is the error that says no such file or directory. Do you have any updates on that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants