Re: Digicam-Video: Skipping frame bei Audio bewirkt Stille am Ende > 1 min.
Al Bogner <suse-multimedia-Wco+c2LKsy1DayIqkcHqbfyE8WyFmGdT@public.gmane.org>
| Newsgroups | gmane.linux.suse.multimedia.german |
|---|---|
| Message-ID | <[email protected]> |
Am Donnerstag, 11. Februar 2010 17:25:40 schrieb Maik Holtkamp:
> Das Problem lag IIRC in der sampling rate (11.xxx), die weder
> transcode noch mplayer direkt in 44100 wandeln wollten. Daher der
> Umweg ueber sox.
Das Audiofile mit mplayer zu erstellen, war eine gute Idee. Es gibt keine
skipped Frames mehr.
sox WARN rate: rate clipped 1920 samples; decrease volume?
sox WARN dither: dither clipped 1685 samples; decrease volume?
GIbt es da eine automatische Anpassung?
Doch das Problem dürfte auch im Videobereich entstehen, denn das Original hat
zB eine Dauer von 1:18, alle Audio-Files aus dem Skript darunter, haben auch
1:18. Die mkv-Datei hat dann aber 1:33
#mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$AVIFILE" &
Das hat auch nichts gebracht.
mplayer -vo null -vc dummy -ao pcm:waveheader "$AVIFILE"
sox audiodump.wav -r 44100 audiodump_44100.wav &
mencoder -ovc x264 -x264encopts qp=28:threads=auto:pass=1 \
-vf yadif=0,softskip,harddup \
-vf unsharp=l:5x5:0.9:c:5x5:0.1 \
-sws 9 -nosound -of rawvideo -o /dev/null $AVIFILE
lame --quiet --preset standard audiodump_44100.wav "$MP3FILE" &
mencoder -ovc x264 -x264encopts qp=28:threads=auto:pass=2 \
-vf yadif=0,softskip,harddup \
-vf unsharp=l:5x5:0.9:c.5x5:0.1 \
-sws 9 -nosound -of rawvideo -o "$X264FILE" "$AVIFILE"
mkvmerge -o "$MKVFILE" "$X264FILE" "$MP3FILE"
Original:
Playing digicam_nikon_test.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [MJPG] 640x480 24bpp 30.000 fps 6815.3 kbps (831.9 kbyte/s)
Clip info:
Software:
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
==========================================================================
Opening audio decoder: [alaw] aLaw/uLaw audio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 64.0 kbit/50.00% (ratio: 8000->16000)
Selected audio codec: [ulaw] afm: alaw (uLaw)
==========================================================================
AO: [oss] 8000Hz 1ch s16le (2 bytes per sample)
Starting playback...
Could not find matching colorspace - retrying with -vf scale...0 0
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0xd2fec0]BICUBIC scaler, from yuv422p to yuv420p using MMX2
VO: [vdpau] 640x480 => 640x480 Planar YV12
Mir fällt beim Original auf:
30.000 fps
Movie-Aspect is undefined
--------------------------------------------------
Mencoder 2. Durchgang
--------------------------------------------------
MPlayer dev-SVN-r30099-4.3-openSUSE Linux 11.1 (x86_64)-Packman (C) 2000-2009
MPlayer Teamsuccess: format: 0 data: 0x0 - 0x400d010
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [MJPG] 640x480 24bpp 30.000 fps 6815.3 kbps (831.9 kbyte/s)
[V] filefmt:3 fourcc:0x47504A4D size:640x480 fps:30.000 ftime:=0.0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [unsharp=l:5x5:0.9:c.5x5:0.1]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
Pos: 0.0s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos: 0.0s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos: 0.1s 4f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Could not find matching colorspace - retrying with -vf scale...0 [0:0]
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0xbe01a0]Lanczos scaler, from yuv422p to yuv420p using MMX2
unsharp: 3x5:0.90 (sharpen luma)
unsharp: 3x5:0.10 (sharpen chroma)
Opening video filter: [scale]
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Slow
x264 [info]: profile High, level 3.0
1 duplicate frame(s)!
Pos: 77.8s 2341f (99%) 15.38fps Trem: 0min 18mb A-V:0.000 [1998:0]
Flushing video frames.
Video stream: 1998.231 kbit/s (249778 B/s) size: 19482754 bytes 78.000 secs
2341 frames
x264 [info]: frame I:22 Avg QP:25.00 size: 18418
x264 [info]: frame P:1900 Avg QP:28.00 size: 9220
x264 [info]: frame B:414 Avg QP:30.00 size: 3768
x264 [info]: consecutive B-frames: 64.3% 35.6% 0.1% 0.0%
x264 [info]: mb I I16..4: 1.2% 98.7% 0.1%
x264 [info]: mb P I16..4: 2.2% 22.8% 0.4% P16..4: 50.4% 12.5% 4.6% 0.0%
0.0% skip: 7.2%
x264 [info]: mb B I16..4: 0.1% 0.5% 0.0% B16..8: 38.9% 1.4% 2.0%
direct: 9.3% skip:47.7% L0:39.2% L1:40.4% BI:20.4%
x264 [info]: 8x8 transform intra:90.1% inter:85.2%
x264 [info]: coded y,uvDC,uvAC intra: 74.6% 91.6% 51.8% inter: 36.6% 61.9%
2.0%
x264 [info]: i16 v,h,dc,p: 22% 13% 10% 56%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 14% 29% 4% 6% 7% 6% 7%
6%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 16% 15% 5% 10% 10% 10% 6%
5%
x264 [info]: Weighted P-Frames: Y:20.0%
x264 [info]: ref P L0: 55.3% 17.0% 19.3% 6.8% 1.5%
x264 [info]: ref B L0: 82.6% 17.4%
x264 [info]: kb/s:2001.65
Video stream: 1998.231 kbit/s (249778 B/s) size: 19482754 bytes 78.000 secs
Die 1m 18sec werden hier also noch angegeben.
mkvmerge v2.4.0 ('Fumbling Towards Ecstasy') built on Dec 3 2008 16:22:26
'/videos_nfs/digicam_nikon_test/digicam_nikon_test.x264': Using the AVC/h.264
ES demultiplexer.
'/videos_nfs/digicam_nikon_test/digicam_nikon_test.avi.mp3': Using the MP2/MP3
demultiplexer.
'/videos_nfs/digicam_nikon_test/digicam_nikon_test.x264' track 0: Extracted
the aspect ratio information from the MPEG-4 layer 10 (AVC) video data and set
the display dimensions to 640/480.
'/videos_nfs/digicam_nikon_test/digicam_nikon_test.x264' track 0: Using the
MPEG-4 part 10 ES video output module.
'/videos_nfs/digicam_nikon_test/digicam_nikon_test.avi.mp3' track 0: Using the
MPEG audio output module.
The file './digicam_nikon_test.x264.mkv' has been opened for writing.
Progress: 100%
The cue entries (the index) are being written...
Muxing took 3 seconds
Danach ist das Video 1m 33sec lang.
Spiele ich _nur_ das Video, also ohne Ton ab, so wird das Video _extrem_
schnell gespielt, wie in Zeitraffer.
Playing digicam_nikon_test.x264.
Seek failed
libavformat file format detected.
[h264 @ 0x156f2f0]max_analyze_duration reached
[h264 @ 0x156f2f0]Estimating duration from bitrate, this may be inaccurate
[lavf] Video stream found, -vid 0
VIDEO: [H264] 640x480 0bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 640x480 => 640x480 Planar YV12
No pts value from demuxer to use for frame!
pts after filters MISSING
No pts value from demuxer to use for frame!,?% 0 0
pts after filters MISSING
No pts value from demuxer to use for frame!,?% 0 0
pts after filters MISSING
No pts value from demuxer to use for frame!,?% 0 0
pts after filters MISSING
No pts value from demuxer to use for frame!,?% 0 0
pts after filters MISSING
No pts value from demuxer to use for frame!,?% 0 0
pts after filters MISSING
No pts value from demuxer to use for frame!,?% 0 0
pts after filters MISSING
No pts value from demuxer to use for frame!,?% 0 0
Al