iAudiophile.net Forums
Go Back   iAudiophile.net Forums > Flash-Memory Players > iAudio 7

Post New Thread  Reply
 
Thread Tools Display Modes
Old 04-30-2009, 15:27   #46
Zweistein
Member
 
Join Date: Mar 2008
Location: Belgium
Posts: 37
Default

I've never used i7remux, but buffer overflow in sprintf usually means some text is longer than expected. Did you check the fix neonleonb suggested in post #43?

You could try to shorten the names of files, or shorten any text you specify as an option such as ID3 tags.
Zweistein is offline View Zweistein's Photo Album   Reply With Quote
Old 05-05-2009, 12:23   #47
elpresidente
Junior Member
 
Join Date: Apr 2009
Posts: 3
Default

Quote:
Originally Posted by Zweistein View Post
I've never used i7remux, but buffer overflow in sprintf usually means some text is longer than expected. Did you check the fix neonleonb suggested in post #43?

You could try to shorten the names of files, or shorten any text you specify as an option such as ID3 tags.
I am also having the buffer overflow problem. I am not sure how to run the fix suggested in post #43.
elpresidente is offline View elpresidente's Photo Album   Reply With Quote
Old 05-05-2009, 14:59   #48
Zweistein
Member
 
Join Date: Mar 2008
Location: Belgium
Posts: 37
Default

I had a look at the code and there's no doubt neonleonb found a bug.
In directory i7remux-0.1, file AviFile.cc, line 685 is "char id[4];".
The 4 should be increased to 5. Or if you're a purist, the sprintf
statements operating on it should be changed, but that's more difficult.

After this, run "make" and "su -c 'make install'" again.

If that still doesn't help, you could debug it:
- remove the -O2 in Makefile, line 29 (the line that sets CXXFLAGS)
- run "make clean"
- run "make"
- run "gdb --args i7remux xyz" where xyz are the arguments you normally pass to i7remux
In that environment type "run" and when it crashes "ba".
If you haven't given up yet at that point, try "help".
If you have given up, type "quit".

Last edited by Zweistein; 05-05-2009 at 16:15.
Zweistein is offline View Zweistein's Photo Album   Reply With Quote
Old 05-05-2009, 15:47   #49
elpresidente
Junior Member
 
Join Date: Apr 2009
Posts: 3
Default

Quote:
Originally Posted by Zweistein View Post
I had a look at the code and there's no doubt neonleonb found a bug.
In directory i7remux-0.1, file AviFile.cc, line 685 is "char id[4];".
The 4 should be increased to 5. Or if you're a purist, the sprintf
statements operating on it should be changed, but that's more difficult.

After this, run "make" and "su -c 'make install'" again.

If that still doesn't help, you could debug it:
- remove the -O2 in Makefile, line 29 (the line that set CXXFLAGS)
- run "make clean"
- run "make"
- run "gdb --args i7remux xyz" where xyz are the arguments you normally pass to i7remux
In that environment type "run" and when it crashes "ba".
If you haven't given up yet at that point, try "help".
If you have given up, type "quit".
Thank you. This worked for me.
elpresidente is offline View elpresidente's Photo Album   Reply With Quote
Old 05-05-2009, 16:12   #50
Zweistein
Member
 
Join Date: Mar 2008
Location: Belgium
Posts: 37
Default

I doubt we'll hear from author takayuki again, so I uploaded i7remux-0.2.zip with the main fix (and without compiler warnings and a typo in the mencoder example in README).

I tried just one video and it seems to work well - insofar you can enjoy video on such a small screen.
Zweistein is offline View Zweistein's Photo Album   Reply With Quote
Old 05-06-2009, 08:02   #51
elpresidente
Junior Member
 
Join Date: Apr 2009
Posts: 3
Default

i7remux is working for me now but it seems to produce video with constant blocky effects. (I actually don't think this is from i7remux). I've been using the tutorial from http://www.linuxjournal.com/article/9919 as I cannot seem to get ffmpeg to work properly for me. Anyone have any idea what produces those blocky effects in the video (plays fine on the computer)?
elpresidente is offline View elpresidente's Photo Album   Reply With Quote
Old 05-21-2009, 07:28   #52
daniel90
Junior Member
 
Join Date: May 2009
Posts: 1
Default

Thank you, it works very well for me!

@elpresidente:
Maybe you could try what worked for me:

Install ffmpeg via the package manager of your choice, then do the following:

ffmpeg -i <infile> -f avi -g 1 -b 384k -vcodec libxvid -vtag XVID -ab 128k -ar 44100 -ac 2 -acodec libmp3lame -s 160x128 -aspect 4:3 -r 15 <outfile>

<outfile> stands for a filename with the ending .avi

next do:

i7remux <infile> <outfile>

where <infile> has to be the <outfile> of the ffmpeg-step.
Then your video should be perfect for playing on the iAudio7.
daniel90 is offline View daniel90's Photo Album   Reply With Quote
Old 05-21-2009, 08:24   #53
ulrich_th
Junior Member
 
Join Date: May 2009
Posts: 4
Default thanks for i7remux - one further comment

Thank you for the programm it works perfect. I just added one thing, as dependeing on the source the pictures sometimes is distorted. By adding black pads this is solved:

Example:

ffmpeg -i <infile> -f avi -g 1 -b 384k -r 15 -s 160x108 -padtop 10 -padbottom 10 -vtag XVID -vcodec libxvid -ab 128k -ar 44100 -ac 2 -acodec libmp3lame <outfile.avi>

Please note that the size is counted WITHOUT the pads, the example gives you an output size of 108+10+10=128

Ulrich
ulrich_th is offline View ulrich_th's Photo Album   Reply With Quote
Old 07-10-2009, 09:27   #54
corrish
Junior Member
 
Join Date: Jul 2009
Posts: 8
Default

Hi!

To sum up all what was written and to make converting on linux more comfortable I write small script and instruction.

FIRSTLY.
I am not sure,but it have to be installed next packages:
Quote:
libxvidcore4 libxvidcore4-dev libxvidcore-dev libxvidcore mp3lame mencoder pyqt4-dev-tools build-essential autogen autotools-dev autoconf automake libtool
Then install i7remux fixed 0.2 version. Download it, unzip, then
Code:
$ cd /path/to/i7remux-0.2
$ ./configure
$ make
$ sudo make install
Then use my script. You can download it or copy from here.

You can download my script or copy from here:

Code:
#!/bin/bash
#
#!!!!Edit that directory if you want.Dont forget about "/" in the end
#!!!!NO SPACES!Only letters, numbers and dots in the name of path!
#!!!!There is "~/.tmp_video_dir/" by default. To make this dir enter that command: mkdir ~/.tmp_video_dir/
temp_dir=~/.tmp_video_dir/
#
in=$1
BASENAME=`basename "$in"`
PATH2FILE="`echo $1 | sed s/$BASENAME//g`"
temp_out=$temp_dir`cat /dev/urandom | tr -dc a-zA-Z0123456789 | head -c 10`.avi
#
#
#It makes a temp file in your temp dir with a random name for the first step of convertetion. 
mencoder "$in"  -ofps 12 -vf scale=160:128 -ovc xvid -xvidencopts bitrate=384:max_bframes=0:max_key_interval=1 -oac mp3lame -lameopts br=128 -o "$temp_out"
#Then convert temp video by i7remux.
#It makes video with same name, but with "_.avi" in the end.
i7remux $temp_out $temp_dir`basename "$in"`_.avi
#It moves result to dir, where video was
mv $HOME/.tmp_video_dir/`basename "$in"`_.avi "$PATH2FILE"
#Delete temp file
rm "$temp_out"
#If its ok, that will be popup
if [ -e "$1_.avi" ]
then
notify-send "Converting completed" "`basename "$in"`"
else
notify-send "Something is wrong" "`basename "$in"`"
fi
Then put it to ~/.convert_i7, for example.

Make:
Code:
$ chmod +x ~/.convert_i7
Then:
Code:
$ echo "alias video_to_i7='$HOME/.convert_i7'" >> $HOME/.bashrc"
Instead 'video_to_i7' you can write any you want.

USING:
Code:
$ video_to_i7 /path/to/input_video
After that, it will be a video with "_.avi" in the end of name.

P.S You can use it from Nautilus, if put script to ~/.gnome2/nautilus-scripts/
P.S.S. Programmers, make gui with progress bar,please. It will be cool.

All suggestions are welcome.
corrish from Russia, with love
corrish is offline View corrish's Photo Album   Reply With Quote
Thanks from:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:08.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.