My thought is that perhaps the duration of the file is not being correctly extracted so the thumbnail extraction does not correctly seek through the stream to gather the next snapshot.
If it suits, could you please upload your file or sample (<100MB) to:
ftp://any2dvd:incoming@mightylegends.org
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I use xine, it plays back at the right speed, but xine says, for example, 60 seconds have played when 150 seconds by the clock in real time have played!!!
Too large 193MB.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Xine cannot handle time duration correctly on dvdauthorable VOB files, but it does not need to in this instance.
The generated .VOB files are more of an intermediate file prepared especially for dvdauthor to generate a final DVD file structure.
Xine's behaviour is acceptable and unrelated to this bug as both ffmpeg and mplayer (which are used to extract duration info) do more or less report the correct duration for both your sample files.
As '--chapter_points' is in minutes, would be much appreciated if you could upload an offending sample that is at least 2 minutes long (but under 100MB).
I've increased the filesize on the ftp site temporarily to 250MB if you still would like to upload.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Creating Titleset 1 Thumbnail 1... t=399
2...-rw-rw-r-- 1 rick rick 180130 Jan 3 07:08 tmp_any2dvd/VTS-1/tmp_cpics/00000026.jpg
c=120
3...-rw-rw-r-- 1 rick rick 177887 Jan 3 07:08 tmp_any2dvd/VTS-1/tmp_cpics/00000006.jpg
c=180
4...total 0
c=240
5...total 0
c=300
6...total 0
c=360
7...total 0
c=420
total 540
-rw-rw-r-- 1 rick rick 177431 Jan 3 07:08 chapter-1.jpg
-rw-rw-r-- 1 rick rick 180130 Jan 3 07:08 chapter-2.jpg
-rw-rw-r-- 1 rick rick 177887 Jan 3 07:08 chapter-3.jpg
Done!
echo -n " Creating Titleset $VTS Thumbnail $chapternum..."
eval mplayer -vf scale="$SC_WIDTH":"$HEIGHT" -ao null $skip_args -frames $frames -benchmark -vo jpeg:quality=100:outdir=\""$WORKDIR"/VTS-$VTS/tmp_cpics/\" \""$1"\" &> "$WORKDIR"/tmp.log
cat "$WORKDIR"/tmp.log >> "$LOGFILE"
prefpic=`ls -S "$WORKDIR"/VTS-$VTS/tmp_cpics/ | head -n1`
mkdir -p $WORKDIR/VTS-$VTS/cpics/
if [ ! -z "$prefpic" ]; then
mv $WORKDIR/VTS-$VTS/tmp_cpics/$prefpic $WORKDIR/VTS-$VTS/cpics/chapter-$chapternum.jpg
else
cp "$emptythumb" "$WORKDIR/VTS-$VTS/cpics/chapter-$chapternum.jpg"
fi
rm -rf $WORKDIR/VTS-$VTS/tmp_cpics/
echo "t=$DURATION_SECS"
let chapternum=2
let CHAPTERPOINT=$CHAPTERPOINT+$CHAPTERTIME_SECS
# Bug #1448343 fixed by '[ ! -z "$prefpic" ]'
if [ ! -z "$prefpic" ] && [ "$CHAPTERS" != "no" ]; then
until [ $CHAPTERPOINT -ge $DURATION_SECS ]; do
mkdir -p $WORKDIR/VTS-$VTS/tmp_cpics/
echo -n "$chapternum..."
mplayer -vf scale="$SC_WIDTH":"$HEIGHT" -ao null -ss $CHAPTERPOINT -frames $frames -benchmark -vo jpeg:quality=100:outdir=$WORKDIR/VTS-$VTS/tmp_cpics/ "$1" &> "$WORKDIR"/tmp.log
cat "$WORKDIR"/tmp.log >> "$LOGFILE"
prefpic=`ls -S "$WORKDIR"/VTS-$VTS/tmp_cpics/ | head -n1`
ls -l $WORKDIR/VTS-$VTS/tmp_cpics/$prefpic
mkdir -p $WORKDIR/VTS-$VTS/cpics/
[ ! -z "$prefpic" ] && mv $WORKDIR/VTS-$VTS/tmp_cpics/$prefpic $WORKDIR/VTS-$VTS/cpics/chapter-$chapternum.jpg
let chapternum=$chapternum+1
let CHAPTERPOINT=$CHAPTERPOINT+$CHAPTERTIME_SECS
echo "c=$CHAPTERPOINT"
rm -rf $WORKDIR/VTS-$VTS/tmp_cpics/
done
fi
ls -l $WORKDIR/VTS-$VTS/cpics/
echo "Done!"
}
Put debugging in. There are 7 chapters, but only 3 chapters get .jpg's! Yes, ffmpeg reports the right total time (t=399 seconds).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see, so because MPlayer has missed for ID_LENGTH, it is only seeking in as far as it wrongly thinks the file's length is.
An update has been made that has MPlayer seek through the file by bytes instead of by seconds.
Please see if this works for you and report back, thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Would be much appreciated if you could upload an offending sample that is at least 2 minutes long (but under 100MB).
You mentioned before that your file being 193MB was too large (do you mean too large for the FTP, too large for your bandwidth, or both).
I have temporarily increased the FTP filesize to 250MB again in case it is the former.
At any rate, because you are joining a lot of small files together, scale back on the number of files you are joining to create a file that is smaller, thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can't see any configuration problems at this end, perhaps your FTP client tried with too many simultaneous connections, but I'm only guessing.
There was a brute force hacking attempt happening at the precise moment you were trying to upload so the firewall taking momentary measures to kill that off may have affected your connection.
PS> Not sure what this means 'File Added: doit2'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1269204
Originator: NO
I'm unable to reproduce this.
My thought is that perhaps the duration of the file is not being correctly extracted so the thumbnail extraction does not correctly seek through the stream to gather the next snapshot.
If it suits, could you please upload your file or sample (<100MB) to:
ftp://any2dvd:incoming@mightylegends.org
Thanks.
Logged In: YES
user_id=16834
Originator: YES
When I use xine, it plays back at the right speed, but xine says, for example, 60 seconds have played when 150 seconds by the clock in real time have played!!!
Too large 193MB.
Logged In: YES
user_id=16834
Originator: YES
Uploaded two files: m4v00657.mp4 versus tmp_any2dvd/m4v00657.VOB.
Both play the same. But xine says elapsed time of .VOB is only 6 seconds!!!!
Logged In: YES
user_id=1269204
Originator: NO
Xine cannot handle time duration correctly on dvdauthorable VOB files, but it does not need to in this instance.
The generated .VOB files are more of an intermediate file prepared especially for dvdauthor to generate a final DVD file structure.
Xine's behaviour is acceptable and unrelated to this bug as both ffmpeg and mplayer (which are used to extract duration info) do more or less report the correct duration for both your sample files.
~ # mplayer -vo dummy -identify m4v00657.mp4 2>&1 | grep ID_LENGTH
ID_LENGTH=23.22
~ # mplayer -vo dummy -identify m4v00657.VOB 2>&1 | grep ID_LENGTH
ID_LENGTH=23.20
~ # ffmpeg -i m4v00657.mp4 2>&1 | grep Duration
Duration: 00:00:23.2, start: 0.000000, bitrate: 2851 kb/s
~ # ffmpeg -i m4v00657.VOB 2>&1 | grep Duration
Duration: 00:00:22.5, start: 0.178022, bitrate: 2407 kb/s
As '--chapter_points' is in minutes, would be much appreciated if you could upload an offending sample that is at least 2 minutes long (but under 100MB).
I've increased the filesize on the ftp site temporarily to 250MB if you still would like to upload.
Logged In: YES
user_id=16834
Originator: YES
$ mplayer -vo dummy -identify tmp_any2dvd/Basketball_1.VOB
[snip]
Playing tmp_any2dvd/Basketball_1.VOB.
[snip]
ID_LENGTH=172.11
$ date; mplayer tmp_any2dvd/Basketball_1.VOB ; date
Tue Jan 2 05:19:33 CST 2007
MPlayer 1.0pre8-rpm.livna.org-4.1.1 (C) 2000-2006 MPlayer Team
[snip]
VO: [xv] 720x480 => 720x540 Planar YV12
A: 345.7 V: 345.6 A-V: 0.136 ct: 0.050 10345/10345 12% 1% 1.2% 1 0
[snip]
Exiting... (End of file}
Tue Jan 2 05:25:19 CST 2007
There are only 3 chapters in the chapter menu, not 6-7 chapters like it should be. mplayer says:
172 seconds, but real time says 352 seconds!!!!
Logged In: YES
user_id=16834
Originator: YES
Oh yeah, this was the command to any2dvd:
file=$(iterate m4v%05d.mp4 657 686)
any2dvd --chapter_points=1 --format=ntsc --aspect=4:3 --surround=no \ -j Basketball_1=$file
Logged In: YES
user_id=16834
Originator: YES
$ for i in tmp_any2dvd_basketball/m4v*.VOB; do echo -e "$i: \c" >&2; mplayer -vo dummy -identify $i 2>/dev/null | grep ID_LEN | sed 's/^.*=//'; done | awk '{print ; sum+=$1+0.0} END {print "TOTAL: ", sum}'
tmp_any2dvd_basketball/m4v00657.VOB: 23.20
tmp_any2dvd_basketball/m4v00658.VOB: 14.19
tmp_any2dvd_basketball/m4v00659.VOB: 10.69
tmp_any2dvd_basketball/m4v00660.VOB: 22.20
tmp_any2dvd_basketball/m4v00661.VOB: 24.70
tmp_any2dvd_basketball/m4v00662.VOB: 20.70
tmp_any2dvd_basketball/m4v00663.VOB: 6.18
tmp_any2dvd_basketball/m4v00664.VOB: 11.69
tmp_any2dvd_basketball/m4v00665.VOB: 11.19
tmp_any2dvd_basketball/m4v00666.VOB: 7.69
tmp_any2dvd_basketball/m4v00667.VOB: 14.19
tmp_any2dvd_basketball/m4v00668.VOB: 17.20
tmp_any2dvd_basketball/m4v00671.VOB: 18.20
tmp_any2dvd_basketball/m4v00672.VOB: 9.19
tmp_any2dvd_basketball/m4v00673.VOB: 16.69
tmp_any2dvd_basketball/m4v00674.VOB: 10.19
tmp_any2dvd_basketball/m4v00675.VOB: 31.21
tmp_any2dvd_basketball/m4v00676.VOB: 8.69
tmp_any2dvd_basketball/m4v00677.VOB: 4.18
tmp_any2dvd_basketball/m4v00678.VOB: 8.69
tmp_any2dvd_basketball/m4v00679.VOB: 26.20
tmp_any2dvd_basketball/m4v00680.VOB: 7.19
tmp_any2dvd_basketball/m4v00681.VOB: 0.00
tmp_any2dvd_basketball/m4v00682.VOB: 18.20
tmp_any2dvd_basketball/m4v00683.VOB: 14.69
tmp_any2dvd_basketball/m4v00684.VOB: 15.69
tmp_any2dvd_basketball/m4v00685.VOB: 13.19
tmp_any2dvd_basketball/m4v00686.VOB: 9.19
TOTAL: 395.21
VERSUS:
$ for i in tmp_any2dvd_basketball/Bas*.VOB; do echo -e "$i: \c" >&2; mplayer -vo dummy -identify $i 2>/dev/null | grep ID_LEN | sed 's/^.*=//'; done | awk '{print ; sum+=$1+0.0} END {print "TOTAL: ", sum}'
tmp_any2dvd_basketball/Basketball_1.VOB: 172.11
TOTAL: 172.11
Logged In: YES
user_id=1269204
Originator: NO
MPlayer does occassionally miss when calculating duration for ID_LENGTH, but only for MPEG1/2 files.
Which is why FFmpeg is used by default to gather duration info, with only a fallback to MPlayer if FFmpeg is unable to (which is rare).
What duration does FFMpeg report for you ?
Logged In: YES
user_id=16834
Originator: YES
Creating Titleset 1 Thumbnail 1... t=399
2...-rw-rw-r-- 1 rick rick 180130 Jan 3 07:08 tmp_any2dvd/VTS-1/tmp_cpics/00000026.jpg
c=120
3...-rw-rw-r-- 1 rick rick 177887 Jan 3 07:08 tmp_any2dvd/VTS-1/tmp_cpics/00000006.jpg
c=180
4...total 0
c=240
5...total 0
c=300
6...total 0
c=360
7...total 0
c=420
total 540
-rw-rw-r-- 1 rick rick 177431 Jan 3 07:08 chapter-1.jpg
-rw-rw-r-- 1 rick rick 180130 Jan 3 07:08 chapter-2.jpg
-rw-rw-r-- 1 rick rick 177887 Jan 3 07:08 chapter-3.jpg
Done!
echo -n " Creating Titleset $VTS Thumbnail $chapternum..."
eval mplayer -vf scale="$SC_WIDTH":"$HEIGHT" -ao null $skip_args -frames $frames -benchmark -vo jpeg:quality=100:outdir=\""$WORKDIR"/VTS-$VTS/tmp_cpics/\" \""$1"\" &> "$WORKDIR"/tmp.log
cat "$WORKDIR"/tmp.log >> "$LOGFILE"
prefpic=`ls -S "$WORKDIR"/VTS-$VTS/tmp_cpics/ | head -n1`
mkdir -p $WORKDIR/VTS-$VTS/cpics/
if [ ! -z "$prefpic" ]; then
mv $WORKDIR/VTS-$VTS/tmp_cpics/$prefpic $WORKDIR/VTS-$VTS/cpics/chapter-$chapternum.jpg
else
cp "$emptythumb" "$WORKDIR/VTS-$VTS/cpics/chapter-$chapternum.jpg"
fi
rm -rf $WORKDIR/VTS-$VTS/tmp_cpics/
echo "t=$DURATION_SECS"
let chapternum=2
let CHAPTERPOINT=$CHAPTERPOINT+$CHAPTERTIME_SECS
# Bug #1448343 fixed by '[ ! -z "$prefpic" ]'
if [ ! -z "$prefpic" ] && [ "$CHAPTERS" != "no" ]; then
until [ $CHAPTERPOINT -ge $DURATION_SECS ]; do
mkdir -p $WORKDIR/VTS-$VTS/tmp_cpics/
echo -n "$chapternum..."
mplayer -vf scale="$SC_WIDTH":"$HEIGHT" -ao null -ss $CHAPTERPOINT -frames $frames -benchmark -vo jpeg:quality=100:outdir=$WORKDIR/VTS-$VTS/tmp_cpics/ "$1" &> "$WORKDIR"/tmp.log
cat "$WORKDIR"/tmp.log >> "$LOGFILE"
prefpic=`ls -S "$WORKDIR"/VTS-$VTS/tmp_cpics/ | head -n1`
ls -l $WORKDIR/VTS-$VTS/tmp_cpics/$prefpic
mkdir -p $WORKDIR/VTS-$VTS/cpics/
[ ! -z "$prefpic" ] && mv $WORKDIR/VTS-$VTS/tmp_cpics/$prefpic $WORKDIR/VTS-$VTS/cpics/chapter-$chapternum.jpg
let chapternum=$chapternum+1
let CHAPTERPOINT=$CHAPTERPOINT+$CHAPTERTIME_SECS
echo "c=$CHAPTERPOINT"
rm -rf $WORKDIR/VTS-$VTS/tmp_cpics/
done
fi
ls -l $WORKDIR/VTS-$VTS/cpics/
echo "Done!"
}
Put debugging in. There are 7 chapters, but only 3 chapters get .jpg's! Yes, ffmpeg reports the right total time (t=399 seconds).
Logged In: YES
user_id=1269204
Originator: NO
I see, so because MPlayer has missed for ID_LENGTH, it is only seeking in as far as it wrongly thinks the file's length is.
An update has been made that has MPlayer seek through the file by bytes instead of by seconds.
Please see if this works for you and report back, thanks.
Logged In: YES
user_id=16834
Originator: YES
Authoring DVD File Structure...
DVDAuthor::dvdauthor, version 0.6.11.
Build options: gnugetopt magick iconv freetype fribidi
Send bugs to <dvdauthor-users@lists.sourceforge.net>
INFO: Locale=en_US.UTF-8
INFO: Converting filenames to UTF-8
INFO: dvdauthor creating VTS
STAT: Picking VTS 01
STAT: Processing tmp_any2dvd/VTSM/vtsm1_1.mpg...
INFO: Video pts = 0.178 .. 3.514
INFO: Audio[0] pts = 0.178 .. 20.178
INFO: Audio[32] pts = 0.178 .. 0.178
STAT: Processing tmp_any2dvd/VTSM/vtsm1_2.mpg...
INFO: Video pts = 0.178 .. 3.514
INFO: Audio[0] pts = 0.178 .. 20.178
INFO: Audio[32] pts = 0.178 .. 0.178
STAT: VOBU 12 at 2MB, 2 PGCS
INFO: Generating VTSM with the following video attributes:
INFO: MPEG version: mpeg2
INFO: TV standard: ntsc
INFO: Aspect ratio: 4:3
INFO: Resolution: 720x480
INFO: Audio ch 0 format: ac3/2ch, 48khz drc
STAT: Processing tmp_any2dvd/Basketball_1.VOB...
STAT: VOBU 560 at 177MB, 1 PGCS
INFO: Video pts = 0.500 .. 345.711
INFO: Audio[0] pts = 0.500 .. 400.116
STAT: VOBU 575 at 184MB, 1 PGCS
INFO: Generating VTS with the following video attributes:
INFO: MPEG version: mpeg2
INFO: TV standard: ntsc
INFO: Aspect ratio: 4:3
INFO: Resolution: 720x480
INFO: Audio ch 0 format: ac3/2ch, 48khz drc, 'en'
ERR: Cannot jump to chapter 7 of title 1, only 6 exist
ERR: in VTSM pgc 1, button 5
Error: DVD file structure was not successfully created
Logged In: YES
user_id=1269204
Originator: NO
OK, I'll ask once more.
Would be much appreciated if you could upload an offending sample that is at least 2 minutes long (but under 100MB).
You mentioned before that your file being 193MB was too large (do you mean too large for the FTP, too large for your bandwidth, or both).
I have temporarily increased the FTP filesize to 250MB again in case it is the former.
At any rate, because you are joining a lot of small files together, scale back on the number of files you are joining to create a file that is smaller, thanks.
Logged In: YES
user_id=16834
Originator: YES
$ ncftpput -u any2dvd mightylegends.org . m4v006*.mp4
Password: ********
m4v00657.mp4: 7.89 MB 43.06 kB/s
m4v00658.mp4: 4.90 MB 41.56 kB/s
m4v00659.mp4: 3.73 MB 41.65 kB/s
m4v00660.mp4: 7.68 MB 41.91 kB/s
m4v00661.mp4: 8.35 MB 42.67 kB/s
m4v00662.mp4: 7.14 MB 42.63 kB/s
m4v00663.mp4: 2.23 MB 40.36 kB/s
m4v00664.mp4: 4.06 MB 41.82 kB/s
m4v00665.mp4: 3.80 MB 42.91 kB/s
m4v00666.mp4: 2.72 MB 40.60 kB/s
m4v00667.mp4: 4.91 MB 42.51 kB/s
m4v00668.mp4: 5.92 MB 42.22 kB/s
m4v00671.mp4: 6.19 MB 42.34 kB/s
m4v00672.mp4: 3.25 MB 42.36 kB/s
m4v00673.mp4: 5.78 MB 42.75 kB/s
ncftpput m4v00673.mp4: could not send file to remote host.
m4v00674.mp4: 3.42 MB 42.53 kB/s
ncftpput m4v00674.mp4: could not send file to remote host.
m4v00675.mp4: 10.75 MB 43.24 kB/s
ncftpput m4v00675.mp4: could not send file to remote host.
m4v00676.mp4: 3.00 MB 41.88 kB/s
ncftpput m4v00676.mp4: could not send file to remote host.
m4v00677.mp4: 1.38 MB 39.00 kB/s
ncftpput m4v00677.mp4: could not send file to remote host.
m4v00678.mp4: 3.03 MB 41.29 kB/s
ncftpput m4v00678.mp4: could not send file to remote host.
m4v00679.mp4: 9.01 MB 43.23 kB/s
ncftpput m4v00679.mp4: could not send file to remote host.
m4v00680.mp4: 2.37 MB 40.57 kB/s
ncftpput m4v00680.mp4: could not send file to remote host.
m4v00681.mp4: 409.57 kB 34.27 kB/s
m4v00682.mp4: 6.22 MB 41.32 kB/s
ncftpput m4v00682.mp4: could not send file to remote host.
m4v00683.mp4: 5.06 MB 42.22 kB/s
ncftpput m4v00683.mp4: could not send file to remote host.
m4v00684.mp4: 5.36 MB 42.08 kB/s
ncftpput m4v00684.mp4: could not send file to remote host.
m4v00685.mp4: 4.51 MB 41.17 kB/s
ncftpput m4v00685.mp4: could not send file to remote host.
m4v00686.mp4: 3.17 MB 40.66 kB/s
ncftpput m4v00686.mp4: could not send file to remote host.
Logged In: YES
user_id=16834
Originator: YES
File Added: doit2
doit2 shell script
Logged In: YES
user_id=1269204
Originator: NO
Try again, still need files 674 to 686.
Can't see any configuration problems at this end, perhaps your FTP client tried with too many simultaneous connections, but I'm only guessing.
There was a brute force hacking attempt happening at the precise moment you were trying to upload so the firewall taking momentary measures to kill that off may have affected your connection.
PS> Not sure what this means 'File Added: doit2'