VideoHelp Forum
+ Reply to Thread
Results 1 to 29 of 29
Thread
  1. I'm trying to use the WebM (Opus) encoder set.

    The command arguments for the V VP9 video encoder are -y -f rawvideo -s %(width)x%(height) -r %(fpsnum)/%(fpsden) -i - -f webm -c libvpx-vp9 -b 0 -crf 18 -threads 8 -speed 2 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 "%(tempvideofile)"

    The command arguments for the A Opus @~192K audio encoder are -y -i - -f ogg -c libopus -b 192K -vbr on -compression_level 10 "%(tempaudiofile)"

    I keep getting an "anonymous pipe" error. How do I fix it?
    Image Attached Thumbnails Click image for larger version

Name:	Capture.PNG
Views:	384
Size:	32.5 KB
ID:	43997  

    Click image for larger version

Name:	Capture2.PNG
Views:	176
Size:	9.2 KB
ID:	43998  

    Click image for larger version

Name:	Capture3.PNG
Views:	198
Size:	13.8 KB
ID:	43999  

    Click image for larger version

Name:	Capture4.PNG
Views:	207
Size:	13.7 KB
ID:	44000  

    Click image for larger version

Name:	Capture5.PNG
Views:	85
Size:	5.1 KB
ID:	44001  

    Click image for larger version

Name:	Capture6.PNG
Views:	89
Size:	6.5 KB
ID:	44002  

    Last edited by Bruce Banner; 12th Dec 2017 at 17:11.
    Quote Quote  
  2. Nothing? No suggestions?
    Quote Quote  
  3. It looks like ffmpeg doesn't receive data from pipe (at least error type and ffmpeg command-line suggest such problem) - if you are desperate you can always use ffmpeg directly with your video outside virtualdubmod.
    Quote Quote  
  4. Show the log (F8) - it should show any ffmpeg errors.
    Last edited by sneaker; 14th Dec 2017 at 04:49.
    Quote Quote  
  5. Originally Posted by sneaker View Post
    Show the log (F8) - it should show any ffmpeg errors.
    [*] AVI: Opening file "C:\Users\Bruce\Desktop\test.avi"
    [*] Beginning dub operation.

    [i] Dub: Input (decompression) format is: RGB24.

    [i] Dub: Output (compression) format is: YUV420.

    [i] Dub: Command line encoding started with format: YUV420.

    [i] VideoEnc: ffmpeg version N-72086-g51f6455 Copyright (c) 2000-2015 the
    FFmpeg developers

    [i] VideoEnc: built with gcc 4.9.2 (GCC)

    [i] VideoEnc: configuration: --disable-static --enable-shared --enable-gpl
    --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
    --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
    --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
    --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm
    --enable-libilbc --enable-libmodplug --enable-libmp3lame
    --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
    --enable-libopus --enable-librtmp --enable-libschroedinger
    --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
    --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
    --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
    --enable-lzma --enable-decklink --enable-zlib

    [i] VideoEnc: libavutil 54. 23.101 / 54. 23.101

    [i] VideoEnc: libavcodec 56. 38.100 / 56. 38.100

    [i] VideoEnc: libavformat 56. 33.101 / 56. 33.101

    [i] VideoEnc: libavdevice 56. 4.100 / 56. 4.100

    [i] VideoEnc: libavfilter 5. 16.101 / 5. 16.101

    [i] VideoEnc: libswscale 3. 1.101 / 3. 1.101

    [i] VideoEnc: libswresample 1. 1.100 / 1. 1.100

    [i] VideoEnc: libpostproc 53. 3.100 / 53. 3.100

    [i] VideoEnc: Input #0, rawvideo, from 'pipe:':

    [i] VideoEnc: Duration: N/A, start: 0.000000, bitrate: 123639 kb/s

    [i] VideoEnc: Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p,
    718x574, 123639 kb/s, 25 tbr, 25 tbn, 25 tbc

    [i] VideoEnc: [libvpx-vp9 @ 022bfb60] v1.4.0

    [i] VideoEnc: Output #0, webm, to 'C:\Users\Bruce\Desktop\test.webm.webm':

    [i] VideoEnc: Metadata:

    [i] VideoEnc: encoder : Lavf56.33.101

    [i] VideoEnc: Stream #0:0: Video: vp9 (libvpx-vp9), yuv420p, 718x574,
    q=-1--1, 25 fps, 1k tbn, 25 tbc

    [i] VideoEnc: Metadata:

    [i] VideoEnc: encoder : Lavc56.38.100 libvpx-vp9

    [i] VideoEnc: Stream mapping:

    [i] VideoEnc: Stream #0:0 -> #0:0 (rawvideo (native) -> vp9 (libvpx-vp9))

    [i] AudioEnc: ffmpeg version N-72086-g51f6455 Copyright (c) 2000-2015 the
    FFmpeg developers

    [i] AudioEnc: built with gcc 4.9.2 (GCC)

    [i] AudioEnc: configuration: --disable-static --enable-shared --enable-gpl
    --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
    --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
    --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
    --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm
    --enable-libilbc --enable-libmodplug --enable-libmp3lame
    --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
    --enable-libopus --enable-librtmp --enable-libschroedinger
    --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
    --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
    --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
    --enable-lzma --enable-decklink --enable-zlib

    [i] AudioEnc: libavutil 54. 23.101 / 54. 23.101

    [i] AudioEnc: libavcodec 56. 38.100 / 56. 38.100

    [i] AudioEnc: libavformat 56. 33.101 / 56. 33.101

    [i] AudioEnc: libavdevice 56. 4.100 / 56. 4.100

    [i] AudioEnc: libavfilter 5. 16.101 / 5. 16.101

    [i] AudioEnc: libswscale 3. 1.101 / 3. 1.101

    [i] AudioEnc: libswresample 1. 1.100 / 1. 1.100

    [i] AudioEnc: libpostproc 53. 3.100 / 53. 3.100

    [i] AudioEnc: Input #0, wav, from 'pipe:':

    [i] AudioEnc: Duration: N/A, bitrate: 3072 kb/s

    [i] AudioEnc: Stream #0:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 48000
    Hz, stereo, flt, 3072 kb/s

    [i] AudioEnc: Output #0, ogg, to 'C:\Users\Bruce\Desktop\test.webm.webm':

    [i] AudioEnc: Metadata:

    [i] AudioEnc: encoder : Lavf56.33.101

    [i] AudioEnc: Stream #0:0: Audio: opus (libopus), 48000 Hz, stereo, flt,
    192 kb/s

    [i] AudioEnc: Metadata:

    [i] AudioEnc: encoder : Lavc56.38.100 libopus

    [i] AudioEnc: Stream mapping:

    [i] AudioEnc: Stream #0:0 -> #0:0 (pcm_f32le (native) -> opus (libopus))

    [i] AudioEnc: size= 39kB time=00:00:01.59 bitrate= 200.6kbits/s

    [i] AudioEnc: video:0kB audio:39kB subtitle:0kB other streams:0kB global
    headers:0kB muxing overhead: 0.957748%

    [E] Error: Write error occurred on file "<anonymous pipe>": The pipe is being
    closed.
    [*] Ending operation.
    Quote Quote  
  6. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    Cant be problem the video is mod2 only? I know nothing about VP9 to be honest, but suppose it couldnt be problem nowadays.
    If you add 1pixel to each side you get mod 16 and it is probably better for compression?
    Last edited by Bernix; 14th Dec 2017 at 11:33. Reason: second
    Quote Quote  
  7. Originally Posted by Bernix View Post
    Cant be problem the video is mod2 only? I know nothing about VP9 to be honest, but suppose it couldnt be problem nowadays.
    If you add 1pixel to each side you get mod 16 and it is probably better for compression?
    1 pixel? Wouldn't I have to add 2? If I added 1 to each side, the video would be 719x575.
    Quote Quote  
  8. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    of course I meant left right top and bottom...
    EDIT: If I were bad man, I take your remark personally. With such attitude, you can't search for help. Please use your brain.
    And yes, I know my english is very very poor, but I can still recognize even and odd numbers.
    Last edited by Bernix; 14th Dec 2017 at 12:19. Reason: Edit
    Quote Quote  
  9. Originally Posted by Bernix View Post
    of course I meant left right top and bottom...
    Oh yeah, of course, sorry, brain freeze.

    I tried changing the dimensions to 720x544 but I still got an anonymous pipe error.
    [*] Beginning dub operation.

    [i] Dub: Input (decompression) format is: YUV420.

    [i] Dub: Output (compression) format is: YUV420.

    [i] Dub: Command line encoding started with format: YUV420.

    [i] AudioEnc: ffmpeg version N-72086-g51f6455 Copyright (c) 2000-2015 the
    FFmpeg developers

    [i] AudioEnc: built with gcc 4.9.2 (GCC)

    [i] AudioEnc: configuration: --disable-static --enable-shared --enable-gpl
    --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
    --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
    --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
    --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm
    --enable-libilbc --enable-libmodplug --enable-libmp3lame
    --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
    --enable-libopus --enable-librtmp --enable-libschroedinger
    --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
    --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
    --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
    --enable-lzma --enable-decklink --enable-zlib

    [i] AudioEnc: libavutil 54. 23.101 / 54. 23.101

    [i] AudioEnc: libavcodec 56. 38.100 / 56. 38.100

    [i] AudioEnc: libavformat 56. 33.101 / 56. 33.101

    [i] AudioEnc: libavdevice 56. 4.100 / 56. 4.100

    [i] AudioEnc: libavfilter 5. 16.101 / 5. 16.101

    [i] AudioEnc: libswscale 3. 1.101 / 3. 1.101

    [i] AudioEnc: libswresample 1. 1.100 / 1. 1.100

    [i] AudioEnc: libpostproc 53. 3.100 / 53. 3.100

    [i] VideoEnc: ffmpeg version N-72086-g51f6455 Copyright (c) 2000-2015 the
    FFmpeg developers

    [i] VideoEnc: built with gcc 4.9.2 (GCC)

    [i] VideoEnc: configuration: --disable-static --enable-shared --enable-gpl
    --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
    --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
    --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
    --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm
    --enable-libilbc --enable-libmodplug --enable-libmp3lame
    --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
    --enable-libopus --enable-librtmp --enable-libschroedinger
    --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
    --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
    --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
    --enable-lzma --enable-decklink --enable-zlib

    [i] VideoEnc: libavutil 54. 23.101 / 54. 23.101

    [i] VideoEnc: libavcodec 56. 38.100 / 56. 38.100

    [i] VideoEnc: libavformat 56. 33.101 / 56. 33.101

    [i] VideoEnc: libavdevice 56. 4.100 / 56. 4.100

    [i] VideoEnc: libavfilter 5. 16.101 / 5. 16.101

    [i] VideoEnc: libswscale 3. 1.101 / 3. 1.101

    [i] VideoEnc: libswresample 1. 1.100 / 1. 1.100

    [i] VideoEnc: libpostproc 53. 3.100 / 53. 3.100

    [i] AudioEnc: Input #0, wav, from 'pipe:':

    [i] AudioEnc: Duration: N/A, bitrate: 3072 kb/s

    [i] AudioEnc: Stream #0:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 48000
    Hz, stereo, flt, 3072 kb/s

    [i] VideoEnc: Input #0, rawvideo, from 'pipe:':

    [i] VideoEnc: Duration: N/A, start: 0.000000, bitrate: 117504 kb/s

    [i] VideoEnc: Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p,
    720x544, 117504 kb/s, 25 tbr, 25 tbn, 25 tbc

    [i] VideoEnc: [libvpx-vp9 @ 0212fb60] v1.4.0

    [i] AudioEnc: Output #0, ogg, to 'C:\Users\Bruce\Desktop\test.webm.webm':

    [i] AudioEnc: Metadata:

    [i] AudioEnc: encoder : Lavf56.33.101

    [i] AudioEnc: Stream #0:0: Audio: opus (libopus), 48000 Hz, stereo, flt,
    192 kb/s

    [i] AudioEnc: Metadata:

    [i] AudioEnc: encoder : Lavc56.38.100 libopus

    [i] AudioEnc: Stream mapping:

    [i] AudioEnc: Stream #0:0 -> #0:0 (pcm_f32le (native) -> opus (libopus))

    [i] VideoEnc: Output #0, webm, to 'C:\Users\Bruce\Desktop\test.webm.webm':

    [i] VideoEnc: Metadata:

    [i] VideoEnc: encoder : Lavf56.33.101

    [i] VideoEnc: Stream #0:0: Video: vp9 (libvpx-vp9), yuv420p, 720x544,
    q=-1--1, 25 fps, 1k tbn, 25 tbc

    [i] VideoEnc: Metadata:

    [i] VideoEnc: encoder : Lavc56.38.100 libvpx-vp9

    [i] VideoEnc: Stream mapping:

    [i] VideoEnc: Stream #0:0 -> #0:0 (rawvideo (native) -> vp9 (libvpx-vp9))

    [i] AudioEnc: size= 39kB time=00:00:01.59 bitrate= 200.7kbits/s

    [i] AudioEnc: video:0kB audio:39kB subtitle:0kB other streams:0kB global
    headers:0kB muxing overhead: 0.957119%

    [E] Error: Write error occurred on file "<anonymous pipe>": The pipe is being
    closed.
    [*] Ending operation.
    Quote Quote  
  10. Export and post your preset (.vdporf file)
    Quote Quote  
  11. Originally Posted by shekh View Post
    Export and post your preset (.vdporf file)
    Sorry, how do you do that?
    Quote Quote  
  12. From "Configure External Encoders", press "Export...", save to file.
    If you can, delete everything irrelevant (if you have many other presets).
    Quote Quote  
  13. Originally Posted by shekh View Post
    From "Configure External Encoders", press "Export...", save to file.
    If you can, delete everything irrelevant (if you have many other presets).
    Thanks, here ya go.
    Image Attached Files
    Quote Quote  
  14. I don't know ffmpeg that much but this command also fails. This is weird
    Code:
    copy test.bin | ffmpeg.exe -y -f s16le -ar 48000 -ac 2 -i - -c libvorbis test.ogg
    
    Stream #0:0 -> #0:0 (pcm_s16le (native) -> vorbis (libvorbis))
    Multiple frames in a packet from stream 0
    [pcm_s16le @ 029029e0] Invalid PCM packet, data has size 1 but at least a size of 4 was expected
    Error while decoding stream #0:0: Invalid data found when processing input
    To me it looks like its pipe reader is broken, but this is insane. Any ideas?
    Image Attached Files
    Quote Quote  
  15. Originally Posted by shekh View Post
    I don't know ffmpeg that much but this command also fails. This is weird
    Code:
    copy test.bin | ffmpeg.exe -y -f s16le -ar 48000 -ac 2 -i - -c libvorbis test.ogg
    
    Stream #0:0 -> #0:0 (pcm_s16le (native) -> vorbis (libvorbis))
    Multiple frames in a packet from stream 0
    [pcm_s16le @ 029029e0] Invalid PCM packet, data has size 1 but at least a size of 4 was expected
    Error while decoding stream #0:0: Invalid data found when processing input
    To me it looks like its pipe reader is broken, but this is insane. Any ideas?
    At least it's not just me then. That's something. What's test.bin?
    Quote Quote  
  16. Sorry, used wrong command. Should be type instead of copy, works this way.
    But it is interesting that wrong command resulted in same error messages as in VD log. Need to look further

    test.bin is raw audio for this test, to make it repeatable just in case.
    Quote Quote  
  17. Originally Posted by shekh View Post
    Sorry, used wrong command. Should be type instead of copy, works this way.
    But it is interesting that wrong command resulted in same error messages as in VD log. Need to look further

    test.bin is raw audio for this test, to make it repeatable just in case.
    Ah, OK. In the meantime, as you're looking further, is there anything you'd advise me to change about the command arguments? Should I look for copy and change it to type?

    Ah, seems I can't find the word copy.
    Quote Quote  
  18. It works for me with these presets using the webm(opus) encoder set on a random youtube video
    https://forum.videohelp.com/threads/367446-Virtualdub-External-Encoder-feature/page3#post2390309

    The only thing I changed was the ffmpeg path

    (tested using vdfm 40176)
    Quote Quote  
  19. Maybe try updating your ffmpeg binary ? Where/when is it from ?

    ffmpeg version N-72086-g51f6455 Copyright (c) 2000-2015
    Probably older.... I think it's 2017 now ? Yep. Almost 2018
    Quote Quote  
  20. Originally Posted by poisondeathray View Post
    Maybe try updating your ffmpeg binary ? Where/when is it from ?

    ffmpeg version N-72086-g51f6455 Copyright (c) 2000-2015
    Probably older.... I think it's 2017 now ? Yep. Almost 2018
    Hi. I just downloaded ffmpeg 3.4.1 but I've no idea how to update.
    Quote Quote  
  21. Unzip it somewhere , and update the paths in the external encoder settings (your 1st post)
    e.g. Instead of C:\Users\Bruce\Desktop.... , change to wherever the newer ffmpeg.exe is located
    Quote Quote  
  22. Originally Posted by poisondeathray View Post
    Unzip it somewhere , and update the paths in the external encoder settings (your 1st post)
    e.g. Instead of C:\Users\Bruce\Desktop.... , change to wherever the newer ffmpeg.exe is located
    There doesn't seem to be a newer one. I unzipped the ffmpeg-3.4.1 folder to my desktop but there's no ffmpeg.exe in there.
    Quote Quote  
  23. it's probably in a subfolder somewhere usually it's in the folder "bin" for binary
    Quote Quote  
  24. Originally Posted by poisondeathray View Post
    it's probably in a subfolder somewhere usually it's in the folder "bin" for binary
    Nope, I searched with this app called Everything that looks at all the files on your computer; there's no ffmpeg.exe in that folder. And there's no bin folder either. I've got all the subfolders listed in alphabetical order; the first one's compat
    Quote Quote  
  25. where did you download it from ? I usually get precompiled windows ffmpeg binaries from zeranoe
    https://ffmpeg.zeranoe.com/builds/
    Quote Quote  
  26. Originally Posted by poisondeathray View Post
    where did you download it from ? I usually get precompiled windows ffmpeg binaries from zeranoe
    https://ffmpeg.zeranoe.com/builds/
    That could explain it then. I just Googled ffmpeg and downloaded from the first hit.

    https://www.ffmpeg.org/

    EDIT: Hey, great, that did the trick, it worked! I downloaded from zeranoe and the new ffmpeg worked fine! Thanks!
    Last edited by Bruce Banner; 14th Dec 2017 at 22:57.
    Quote Quote  
  27. Beware of older ffmpeg that can be present in your path environment - lot of programs install ffmpeg on their own silently and later when you call ffmpeg you may receive errors as old ffmpeg build may be used instead desired one. Best idea is to search ffmpeg.exe on ALL local disks. This is quite common issue.
    Alternatively you can modify path to point current ffmpeg first. Substituting older ffmpeg.exe by new one is not recommended as some difference may occur in syntax and you will get unexpected error from applications.
    Quote Quote  
  28. So the problem was filename conflict
    Instead of
    Code:
    "outputFilename": "%(outputname).webm"
    Should specify distinct names for audio/video
    Code:
    "outputFilename": "%(outputname).Audio.webm"
    "outputFilename": "%(outputname).Video.webm"
    The problem I saw with invalid pcm packets remains but it is something not critical, the encoding finishes.
    Quote Quote  
  29. Great, thanks for the advice, guys!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!