Re: [Mjpeg-users] glav error opening .avi file

2022-10-22 Thread Bernhard Praschinger

Hallo,

Janos G. Komaromi wrote:

Thanks. Yes, glav works with -a 0.

As far as /dev/dsp is concerned I may have to recompile kernel to
include oss drivers. I'll keep on working the sound part, but for my
most immediate editing tasks sound output is not that important.


You should not need to include it directly into the kernel, you might 
just need to compile it as module and every thing should be fine.



Thanks again for all you support and also for Stephen's idea of ffmpeg
method of simmply cutting out a section of the original (compressed)
.avi file.

Best to all,

Janos
PS - please add my other email address
ja...@andraslinux.jgklinux.jankom.net
to members of your mailing list.

On Wed, 2022-10-19 at 19:33 +0200, Bernhard Praschinger wrote:

Hallo,

the workaround I did use was playing back the file without sound. So
a
command like that should work: glav -a 0 output.avi
If that works you can go.

If the /dev/dsp does not exist try loading the kernel module snd-pcm-
oss
using a command like that: modprobe snd-pcm-oss
You should find than the /dev/dsp
You can give glav than another try like the way before, please also
add
-v 2 for a more verbose output:
glav -v 2 output.avi

Janos G Komaromi wrote:

Update:

I've installed alsa-oss and now glav does not die. But it is still
not
working properly. Here is the command and terminal output:

Quote:

janos@andraslinux ~/tmp $ aoss glav output.avi
++: ++ WARN: [lavplay] Unable to set negative priority for audio
thread.
++: ++ WARN: [lavplay] Pthread Real-time scheduling for audio
thread
could not be enabled. ++: lavtools version 2.2.1
++: **ERROR: [lavplay] Error playing audio: Buffer overflow writing
audio ++:

Unquote

The initial screen appears, and after about 4 second some noise
comes
out of the speakers, and soon after the whole thing dies. Same with
lavplay. However, mplayer can play the almost 7 Gig output,avi
correctly with sound.

Is the file too big? Any other methods?

Thanks for your attention,

Janos





--
auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: bernh...@griesbach.at
www: http://www.lysator.liu.se/~gz/bernhard


___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] glav error opening .avi file

2022-10-22 Thread Bernhard Praschinger

Hallo,

I digged it up from a older mail:
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID /
0x44495658),
yuv420p, 800x592 [SAR 1:1 DAR 50:37], 896 kb/s, 30 fps, 30 tbr, 30 tbn,

I'm not sure what kind source you have: because the size is with 800x592 
a little bit strange. That is neither PAL not NTSC or SECAM


If you want to encode the result for video please try a command like 
that assuming you have a 4:3 source:

> cat stream.yuv │ yuvscaler -O DVD | yuv2lav -I 0 -q 90 -f q -o
video_without_sound.qt &

Depending on the source video you might need to add the -n p/s/n 
p=pal,s=secam,n=ntsc switch to yuvscaler.


If it lookes strange please add the output from the commands to the 
mail. Add to yuvscaler and yuv2lav: -v 2 so the output is more verbose.




Janos G Komaromi wrote:

Sorry to bother this community again with a follow up question:

Now that glav works I have visually noticed a difference between the
original (compressed) file and the glav-compatible (huge) file. In
order to confirm my suspicion I issued the command:
ffprobe -v error -show_format -show_streams 
and compared the outputs - see attached diff.txt file.

It is obvious that
(a) width and height ratio is changed (lines 12-13 vs 19-20);
(b) yuv420p vs yuvj422p (lines 26 vs 33) - maybe not relevant for visual
appearance;
(c) time base (lines 42 vs 44) - this explains the bloated size, do we
need this, and if not, how to leave it as original?

Obviously, only item (a) is important, the rest is mainly for my
curiosity and better understanding of the digital video concepts.

Janos


On Wed, 19 Oct 2022 14:36:58 -0400
"Janos G. Komaromi"  wrote:


Thanks. Yes, glav works with -a 0.

As far as /dev/dsp is concerned I may have to recompile kernel to
include oss drivers. I'll keep on working the sound part, but for my
most immediate editing tasks sound output is not that important.

Thanks again for all you support and also for Stephen's idea of ffmpeg
method of simmply cutting out a section of the original (compressed)
.avi file.

Best to all,

Janos
PS - please add my other email address
ja...@andraslinux.jgklinux.jankom.net
to members of your mailing list.



--
auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: bernh...@griesbach.at
www: http://www.lysator.liu.se/~gz/bernhard


___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users