[MPlayer-users] Seing blocks when joining short movies

houghi houghi at houghi.org
Sun Apr 7 16:36:44 CEST 2013


I am trying to write a bash script that shows one second of every minute
I recorded. So I first break up the large movie into smaller files. Then I
join them all. The camera used is a gopro Hero 2 and filling is in 1080p
25pfs

The script I use:

#!/bin/bash
for I in `seq 0 60 5760`
do
	mencoder -ss $MIN -endpos 1 -oac pcm -ovc copy in.mp4 -o out.$MIN.mp4
done
FILES=$(ls out.*.mp4)
mencoder -oac pcm -ovc copy -o out.mp4 $FILES


The script part works. I get no errors. However the movie out.mp4 shows a
bit of blocks at the beginning of each new second. Something that is not
seen in the part that has been ripped.

Screenshots from kdenlive from out.png
http://houghi.org/Fun/blocks.png
What I see when I play it:
houghi at penne : mplayer go1.mp4 
MPlayer dev-SVN-r35127-4.7-openSUSE Linux 12.2 (x86_64)-Packman (C)
2000-2012 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote
control.

Playing go1.mp4.
libavformat version 54.25.104 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [H264]  1920x1080  24bpp  25.000 fps  17306.0 kbps (2112.5
kbyte/s)
Clip info:
 Software: MEncoder dev-SVN-r35127-4.7-openSUSE Linux 12.2
 (x86_64)-Packman
 Load subtitles in ./
 [gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
 ==========================================================================
 Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
 libavcodec version 54.54.100 (internal)
 Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
 ==========================================================================
 ==========================================================================
 Opening audio decoder: [pcm] Uncompressed PCM audio decoder
 AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
 Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
 ==========================================================================
 AO: [pulse] Init failed: Connection refused
 Failed to initialize audio driver 'pulse'
 AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
 Starting playback...
 Unsupported PixelFormat 61
 Unsupported PixelFormat 53
 Unsupported PixelFormat 81
 Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
 VO: [gl] 1920x1080 => 1920x1080 Planar YV12 
 A:   0.9 V:   0.9 A-V: -0.000 ct:  0.000  23/ 23 76% 14%  0.0% 7 0 


Screenshot from the one second movie file:
http://houghi.org/Fun/noblocks.png
What I see when I play it:
houghi at penne : mplayer out.00480.mp4 
MPlayer dev-SVN-r35127-4.7-openSUSE Linux 12.2 (x86_64)-Packman (C)
2000-2012 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote
control.

Playing out.00480.mp4.
libavformat version 54.25.104 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [H264]  1920x1080  24bpp  25.000 fps  20531.4 kbps (2506.3
kbyte/s)
Clip info:
 Software: MEncoder dev-SVN-r35127-4.7-openSUSE Linux 12.2
 (x86_64)-Packman
 Load subtitles in ./
 [gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
 ==========================================================================
 Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
 libavcodec version 54.54.100 (internal)
 Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
 ==========================================================================
 ==========================================================================
 Opening audio decoder: [pcm] Uncompressed PCM audio decoder
 AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
 Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
 ==========================================================================
 AO: [pulse] Init failed: Connection refused
 Failed to initialize audio driver 'pulse'
 AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
 Starting playback...
 Unsupported PixelFormat 61
 Unsupported PixelFormat 53
 Unsupported PixelFormat 81
 Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
 VO: [gl] 1920x1080 => 1920x1080 Planar YV12 
 A:   1.0 V:   1.0 A-V:  0.000 ct:  0.000  26/ 26 68% 10%  0.1% 3 0 


What other parameters should I use so that I do not have such disorted
images, or are there better ways to get one second from each minute?

houghi
-- 
This is written under the inluence of the following:
>   Artist : Theatre Of Tragedy
>     Song : Envision
>    Album : Envision (Single)


More information about the MPlayer-users mailing list