Rockbox General > Rockbox General Discussion

Video Playback (yet another newbie question)

(1/1)

Primefalcon:
I see that the mpeg player is capable of handling standard mpeg video


as of now I am converting widescreen video's using the following avconv command


--- Code: ---avconv -i "inputFile.mp4" -r 20 -s 166x96 -b 128k "outputFile.mpeg"
--- End code ---

I was wondering however if there is a better codec that mpeg1 supports such as mp4, webm, mkv's or whatever that allows same quality or so video's at smaller filesizes.

I download a lot of podcasts such as Linux action show.... Leo Laporte's this week in tech and so on..... considering there are quite a few.... a format that would allow smaller filesizes would be very handy
Post Merge: September 11, 2012, 05:03:41 AMOk I have been reading the wiki... and see that if I am right the optimal codec would be mpeg2.....

So I have the following bash script going through and doing my podcast folders


--- Code: ---#!/bin/bash

convertEp()
{
cd "$HOME/Music/gpodder-downloads/$1"

for f1 in *.mp4; do
f2="${f1%.mp4}.mpeg"

if [ ! -f "Rockbox/$f2" ]; then
avconv -i "$f1" -s 176x100 -vcodec mpeg2video -b 229k -ab 192k -ac 2 -ar 44100 -acodec libmp3lame "Rockbox/${f1%.mp4}.mpeg"
fi
done
}

convertEp 'podcast 1 folder'
convertEp 'podcast 2 folder'
#and so on
--- End code ---

Seems to be going pretty well, any comments welcome... also feel free to use the code   ;D

gbl08ma:
Formats with better compression such as mp4, webm and mkv need more processing power than what most Rockbox-supported players have.

bluebrother:

--- Quote from: Primefalcon on September 11, 2012, 04:21:23 AM ---I was wondering however if there is a better codec that mpeg1 supports such as mp4

--- End quote ---

Not sure if we have a language problem here -- MPEG1 is a codec, you can't put any other codecs in -- unlike formats like avi, which is a container format. Apart from that mpegplayer supports MPEG1 and MPEG2, both with mp3 audio. That's all you can use.

Primefalcon:

--- Quote from: bluebrother on September 11, 2012, 02:17:27 PM ---
--- Quote from: Primefalcon on September 11, 2012, 04:21:23 AM ---I was wondering however if there is a better codec that mpeg1 supports such as mp4

--- End quote ---

Not sure if we have a language problem here -- MPEG1 is a codec, you can't put any other codecs in -- unlike formats like avi, which is a container format. Apart from that mpegplayer supports MPEG1 and MPEG2, both with mp3 audio. That's all you can use.

--- End quote ---
I meant mpegplayer not the mpeg codec sorry... up too long plays havoc on typing....

I kinda figured as much about other codecs... was just hoping though.... I've go back to using mpeg1 over mpeg 2 since that does seem to be better at lower resolutions and bit rates unless I am missing something

Navigation

[0] Message Index

Go to full version