Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Recommended encoding
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Charles Goyard  
View profile  
 More options Jan 19 2012, 8:28 am
From: Charles Goyard <c...@fsck.fr>
Date: Thu, 19 Jan 2012 14:28:57 +0100
Local: Thurs, Jan 19 2012 8:28 am
Subject: Recommended encoding
Hi list,

I'm sure I saw a document somewhere about that, but I can't find it
anymore.

So, the question is : what's the recommended encoding for video and
audio ? I'm asking because I currently use mjpeg and pcm, and get a lot
of complains from veejay, related to audio. However, everything works
:-/.

Here is how I encode my videos:

mencoder -ovc lavc -oac pcm -lavcopts vcodec=mjpeg -vf scale=1024:768,harddup -noskip -skiplimit 1

Here are the messages I get:

[avi @ 0xaab5cae0] parser not found for codec pcm_s16le, packets or times may be invalid.

Also I sometimes have to encode certain videos two times, like :

mencoder (options) -o intermediate.avi original.avi
mencoder (options) -o transcoded.avi intermediate.avi

to get everything correct. If I don't do that, in veejay, the last frame
of videos does not pass through the effect chain. Since I use the flip
frame effect, it look weird :).

Any advice/hint welcome !

Cheers,
Charles


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Niels Elburg  
View profile  
 More options Jan 19 2012, 11:46 am
From: Niels Elburg <nwelb...@gmail.com>
Date: Thu, 19 Jan 2012 17:46:42 +0100
Local: Thurs, Jan 19 2012 11:46 am
Subject: Re: Recommended encoding

On Thu, Jan 19, 2012 at 2:28 PM, Charles Goyard <c...@fsck.fr> wrote:
> Hi list,

> I'm sure I saw a document somewhere about that, but I can't find it
> anymore.

Is this it ?
http://code.dyne.org/veejay/tree/veejay-current/veejay-server/doc/How...

> So, the question is : what's the recommended encoding for video and
> audio ? I'm asking because I currently use mjpeg and pcm, and get a lot
> of complains from veejay, related to audio. However, everything works
> :-/.

MJPEG and PCM (8 or 16 bit LE) is OK

> Here is how I encode my videos:

> mencoder -ovc lavc -oac pcm -lavcopts vcodec=mjpeg -vf
> scale=1024:768,harddup -noskip -skiplimit 1

> Here are the messages I get:

> [avi @ 0xaab5cae0] parser not found for codec pcm_s16le, packets or times
> may be invalid.

Also I sometimes have to encode certain videos two times, like :

> mencoder (options) -o intermediate.avi original.avi
> mencoder (options) -o transcoded.avi intermediate.avi

> to get everything correct. If I don't do that, in veejay, the last frame
> of videos does not pass through the effect chain. Since I use the flip
> frame effect, it look weird :).

> Any advice/hint welcome !

Maybe you can try a different encoder, see if there's something going on
with libav*
You will need mplayer and the mjpegtools for this

1. Write video to YUV pipe

$ mkfifo stream.yuv
$ mplayer -vo yuv4mpeg -ao pcm:file=/tmp/sound.wav movie.avi

2. second terminal, read YUV pipe and write to MJPEG file
$ cat stream.yuv |yuv2lav -f a -o mjpeg-movie.avi
$ lavaddwav <...>

Good luck,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Niels Elburg  
View profile  
 More options Jan 19 2012, 11:48 am
From: Niels Elburg <nwelb...@gmail.com>
Date: Thu, 19 Jan 2012 17:48:54 +0100
Local: Thurs, Jan 19 2012 11:48 am
Subject: Re: Recommended encoding

Also, you could push a sample of the original file , and a sample of the
transcoded file
to http://*vimeo*.com/groups/*veejay

Cheers,
Niels

*


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Goyard  
View profile  
 More options Jan 27 2012, 7:51 am
From: Charles Goyard <c...@fsck.fr>
Date: Fri, 27 Jan 2012 13:51:56 +0100
Local: Fri, Jan 27 2012 7:51 am
Subject: Re: Recommended encoding
Hi Neils,

Niels Elburg wrote:
> > I'm sure I saw a document somewhere about that, but I can't find it
> > anymore.
> Is this it ?
> http://code.dyne.org/veejay/tree/veejay-current/veejay-server/doc/How...

Yes :).

> Maybe you can try a different encoder, see if there's something going on
> with libav*
> You will need mplayer and the mjpegtools for this

> 1. Write video to YUV pipe

> $ mkfifo stream.yuv
> $ mplayer -vo yuv4mpeg -ao pcm:file=/tmp/sound.wav movie.avi

> 2. second terminal, read YUV pipe and write to MJPEG file
> $ cat stream.yuv |yuv2lav -f a -o mjpeg-movie.avi
> $ lavaddwav <...>

It seems to work better. I haven't switched my transcoder to that method
yet.

Thanks for your support ! Encoding is tricky :)

--
Charlot


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Goyard  
View profile  
 More options Oct 5 2012, 5:59 am
From: Charles Goyard <c...@fsck.fr>
Date: Fri, 5 Oct 2012 11:56:48 +0200
Local: Fri, Oct 5 2012 5:56 am
Subject: Re: Recommended encoding
Hi,

Niels Elburg wrote:
> Maybe you can try a different encoder, see if there's something going on
> with libav*
> You will need mplayer and the mjpegtools for this

> 1. Write video to YUV pipe

> $ mkfifo stream.yuv
> $ mplayer -vo yuv4mpeg -ao pcm:file=/tmp/sound.wav movie.avi

> 2. second terminal, read YUV pipe and write to MJPEG file
> $ cat stream.yuv |yuv2lav -f a -o mjpeg-movie.avi
> $ lavaddwav <...>

Just for the record...

No need for two terminals or forking encoding scritps :

MJPEG_VERBOSITY=0
ffmpeg -loglevel quiet -y -i INPUTFILE audio.wav -vf "scale=1024:880" -r 24 -f yuv4mpegpipe - | yuv2lav -v0 -o tmp.avi
lavaddwav tmp.avi audio.wav OUTPUTFILE

mplayer also supports stdout as a output file, but you have to specify
--really-quiet, or it will send garbage in the yuv stream.

Cheers,

--
Charlot


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »