Help, Transcoding video

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

Help, Transcoding video

NDJORE BORIS
Hello Team,

I want to encode two times my input video file while decoding it juste one
time.
I use doc/examples/transcoding.c
<https://ffmpeg.org/doxygen/trunk/doc_2examples_2transcoding_8c-example.html>
What I want to do is to decode and encode like the transcoding.c examples
does.
Then, when I finished the decoding and encoding loop (while(1)).
I want to call only the encoding function again in an other loop to encode
a second time without
decoding.
Ex:
First time :
while(1)
{
       if (there is a frame in the input file)
        {
              decode input video;
              encode output file;
              next streamindex;
         }

}

Second time :
while(1)
{       encode another outputfile;
}

What I want to know, is if it's possible to do that (decode only one time
an input file in a whille loop and encode it two times).
If yes, can you tell me how to do it ?

To remind you I used doc/examples/transcoding.c which decode and encode
only one time.
What I want to do is to add an other while loop to encode a second time the
same input video.

I need your help please.
Regards
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: Help, Transcoding video

Carl Eugen Hoyos-2
2019-01-23 15:12 GMT+01:00, NDJORE BORIS <[hidden email]>:

> I want to encode two times my input video file while decoding it juste one
> time.
> I use doc/examples/transcoding.c
> <https://ffmpeg.org/doxygen/trunk/doc_2examples_2transcoding_8c-example.html>
> What I want to do is to decode and encode like the transcoding.c examples
> does.
> Then, when I finished the decoding and encoding loop (while(1)).
> I want to call only the encoding function again in an other loop to encode
> a second time without
> decoding.
> Ex:
> First time :
> while(1)
> {
>        if (there is a frame in the input file)
>         {
>               decode input video;
>               encode output file;
>               next streamindex;
>          }
>
> }
>
> Second time :
> while(1)
> {       encode another outputfile;
> }
>
> What I want to know, is if it's possible to do that (decode only one time
> an input file in a whille loop and encode it two times).

> If yes, can you tell me how to do it ?

Initialize two encoders and call both encoders (one after the other)
in above existing loop.
Please also see http://ffmpeg.org/contact.html#MailingLists - you
did not post on the right mailing list, use libav-user.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: Help, Transcoding video

NDJORE BORIS
Ok for the mistake on the mailing list.
But I want to know if I can't call the second encoder in an other loop.
Because I want to extract all motion vector in the input video during the
first encoding step
and after do some actions on them and reencode my output file while putting
the
above extracted motion vectors.
I will be glad if you can also tell me how to Initialize both
encoders separately.

Thank you a lot


Le mer. 23 janv. 2019 à 15:37, Carl Eugen Hoyos <[hidden email]> a
écrit :

> 2019-01-23 15:12 GMT+01:00, NDJORE BORIS <[hidden email]>:
>
> > I want to encode two times my input video file while decoding it juste
> one
> > time.
> > I use doc/examples/transcoding.c
> > <
> https://ffmpeg.org/doxygen/trunk/doc_2examples_2transcoding_8c-example.html
> >
> > What I want to do is to decode and encode like the transcoding.c examples
> > does.
> > Then, when I finished the decoding and encoding loop (while(1)).
> > I want to call only the encoding function again in an other loop to
> encode
> > a second time without
> > decoding.
> > Ex:
> > First time :
> > while(1)
> > {
> >        if (there is a frame in the input file)
> >         {
> >               decode input video;
> >               encode output file;
> >               next streamindex;
> >          }
> >
> > }
> >
> > Second time :
> > while(1)
> > {       encode another outputfile;
> > }
> >
> > What I want to know, is if it's possible to do that (decode only one time
> > an input file in a whille loop and encode it two times).
>
> > If yes, can you tell me how to do it ?
>
> Initialize two encoders and call both encoders (one after the other)
> in above existing loop.
> Please also see http://ffmpeg.org/contact.html#MailingLists - you
> did not post on the right mailing list, use libav-user.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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