FFMPEG and VirtualDub

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

FFMPEG and VirtualDub

Robert Aronson
Hello all! First post here.

I can't for the life of me get FFMPEG to work with VirtualDub. The
following line works fine on a command line:

         ffmpeg -i 01.mkv -c:v copy test.mkv

But if I try the closest I can in VirtualDub's external encoder...

         Command arguments: -i - -c:v copy "%(tempvideofile)"

         Output file:" %(outputname).h264

...it doesn't work at all. What can I do to fix this?

Thanks,

Robert Aronson

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG and VirtualDub

Moritz Barsnick
On Wed, Mar 20, 2019 at 12:47:31 -0400, Robert Aronson wrote:
> I can't for the life of me get FFMPEG to work with VirtualDub.

Have you tried google?

> The following line works fine on a command line:
>          ffmpeg -i 01.mkv -c:v copy test.mkv

But that's not too closely related to this:

> But if I try the closest I can in VirtualDub's external encoder...
>          Command arguments: -i - -c:v copy "%(tempvideofile)"

Here you're trying to let ffmpeg encode from stdin, which is different
from your attempt above.

But while googling, I noticed that %(tempvideofile) should be
VirtualDub's output file, which ffmpeg would use as input.
E.g. here:
https://encodingtalk.com/threads/virtualdub-save-direct-to-mp4-fraps-to-youtube-with-external-encoders.2446/page-2#post-13731

So you would use
        Command arguments: -i "%(tempvideofile)" -c:v copy -f h264 "%(outputname)"

> ...it doesn't work at all. What can I do to fix this?

What, nothing? No console output, no feedback, no error message?

Apparently, you can use something like
      "logStdout": true,
      "logStderr": true,
Then ffmpeg would show you a lot of useful information in some log.

Moritz, knows absolutely nothing about VirtualDub (but how to use a
search engine)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG and VirtualDub

Robert Aronson
Honestly, I don't appreciate your condescending attitude. I did do some
research before coming here but found nothing that helped my
understanding. I also privately troubleshot for a long time. Only then
did I finally resort to asking for help. I have many external encoders
up and running fine. FFMPEG is the only one that's been giving me
trouble, probably because FFMPEG has been confusing to me for a long
time, and only recently have I begun to understand it a bit.

Now, that being said, when I use your command line suggestion it crashes
as before. The error (as reported by VirtualDub), if I understand the
log correctly, is saying that the input it's seeing is what I know
should be the output, and the output it's reporting is what I know
should be the final result after muxing video and audio together through
a separate VirtualDub process. Note, in all my functional external
encoder command lines, "%(tempvideofile)" specifies the output.

On my original line, there is no useful error message given by
VirtualDub. It just says that the "pipe has ended" after processing 0
seconds. But, using FFMPEG's "-report" function (which I found from
using Google, believe it or not, because your "true/false" statements
below made no sense to me), I get an error message of, "Invalid data
found when processing input." The source video, however, is not corrupt,
and works fine in FFMPEG on a raw command line outside of VirtualDub.

Thank you for your help thus far.

On 3/20/2019 6:44 PM, Moritz Barsnick wrote:

> On Wed, Mar 20, 2019 at 12:47:31 -0400, Robert Aronson wrote:
>> I can't for the life of me get FFMPEG to work with VirtualDub.
> Have you tried google?
>
>> The following line works fine on a command line:
>>           ffmpeg -i 01.mkv -c:v copy test.mkv
> But that's not too closely related to this:
>
>> But if I try the closest I can in VirtualDub's external encoder...
>>           Command arguments: -i - -c:v copy "%(tempvideofile)"
> Here you're trying to let ffmpeg encode from stdin, which is different
> from your attempt above.
>
> But while googling, I noticed that %(tempvideofile) should be
> VirtualDub's output file, which ffmpeg would use as input.
> E.g. here:
> https://encodingtalk.com/threads/virtualdub-save-direct-to-mp4-fraps-to-youtube-with-external-encoders.2446/page-2#post-13731
>
> So you would use
> Command arguments: -i "%(tempvideofile)" -c:v copy -f h264 "%(outputname)"
>
>> ...it doesn't work at all. What can I do to fix this?
> What, nothing? No console output, no feedback, no error message?
>
> Apparently, you can use something like
>        "logStdout": true,
>        "logStderr": true,
> Then ffmpeg would show you a lot of useful information in some log.
>
> Moritz, knows absolutely nothing about VirtualDub (but how to use a
> search engine)
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG and VirtualDub

Carl Eugen Hoyos-2
2019-03-21 0:12 GMT+01:00, Robert Aronson <[hidden email]>:
> Honestly, I don't appreciate your condescending attitude.

Then you are unfortunately really wrong here because Moritz
gave a lot of effort to answer your question which nobody
else wanted to do (possibly with good reason).

Please do not top-post here.

Sorry, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG and VirtualDub

Robert Aronson
Firstly, what is top-posting?

Secondly, I am not ungrateful for the effort to resolve my issue. I did
thank Moritz at the end of the message. But I did not, and still do not,
believe the attitude was called for. I am not a tech or software wizard.
Most people aren't. But I tried very hard to solve this problem on my
own, and coming here was a last resort. My question apparently wasn't
even allowed to be posted for some reason on the other FFMPEG forum I
asked. (My post never appeared.) But what do I find here, in my
desperation, as a first response? A person talking to me like I'm an
idiot. There is no such thing as a stupid question if it is asked from a
genuine point of ignorance.

On 3/20/2019 7:15 PM, Carl Eugen Hoyos wrote:

> 2019-03-21 0:12 GMT+01:00, Robert Aronson <[hidden email]>:
>> Honestly, I don't appreciate your condescending attitude.
> Then you are unfortunately really wrong here because Moritz
> gave a lot of effort to answer your question which nobody
> else wanted to do (possibly with good reason).
>
> Please do not top-post here.
>
> Sorry, Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG and VirtualDub

Moritz Barsnick
In reply to this post by Robert Aronson
On Wed, Mar 20, 2019 at 19:12:19 -0400, Robert Aronson wrote:
> On my original line, there is no useful error message given by
> VirtualDub. It just says that the "pipe has ended" after processing 0
> seconds.

But it is nothing techie, just logic, to observe that ffmpeg standalone
gives a lot of log messages, but VirtualDub isn't showing you any. You
could have asked VirtualDub where it made those messages disappear. And
my suggestion for "logStdout" et.al. was an attempt to help you get
some info out of VirtualDub. If that doesn't help, I also found a hint
"If there are still problems look into VirtualDub's log (F8). (Maybe
need to redirect stdout to log.)". Honestly, I don't have the time or
machine power to try, but you didn't say whether you did either.
*shrug*

> found when processing input." The source video, however, is not corrupt,
> and works fine in FFMPEG on a raw command line outside of VirtualDub.

No, not quite, because, as I pointed out, your command line was
different. In VirtualDub, you are using "-i -", so stdin, while on the
commandline, you are using "-i filename". There's *can be* bit of a
difference there, which may or may not matter. (Admittedly, that it a
bit techy, the experience that doing things differently like this with
ffmpeg may reduce comparability.)

So try
$ cat 01.mkv | ffmpeg -i - -c:v copy somefilename

If that works, while is doesn't in VirtualDub, then it's peculiar. I
would check the logs to see whether both are actually using the same
version.

> But, using FFMPEG's "-report" function (which I found from using
> Google, believe it or not, because your "true/false" statements below
> made no sense to me), I get an error message of, "Invalid data found
> when processing input."

While it may not help in this case, could you attach that report file?
Report files tend to get large due to the automatically selected log
level, but it should be short in this case. (I'm asking because it may
show a lot of useful information - about ffmpeg's version, also the
actual command line, and info about the input file, in case something
useful is actually detected.)

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG and VirtualDub

Kieran O Leary
In reply to this post by Robert Aronson
On Wed, 20 Mar 2019, 23:32 Robert Aronson, <[hidden email]> wrote:

> Firstly, what is top-posting?
>
Here's the first result from a Google search for top-posting
https://en.m.wikipedia.org/wiki/Posting_style

Speaking as someone who has seen Moritz thoughtfully help folks for several
years, he really put a lot of effort into helping you. In general, users
need to supply as much info as possible regarding the errors they are
seeing and what they are actually doing. It's impossible to help without
this information.

Best,

KIERAN.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".