Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how do i convert a video to mpeg2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Fri Aug 03, 2007 5:09 pm    Post subject: how do i convert a video to mpeg2 Reply with quote

hello i have a tv that can read mpeg2 from an usb key
but i need to convert my videos to mpeg2
i've tried but it didn't work(the tv doesn't reconise the sound)
how do i do that with mencoder?
(my ffmpeg version doesn't support flash videos)

another thing...the tv doesn't reconise the files with a . before the name...mabe it's a linux tv...how do i know wich os the tv is running(BSD?,linux?) and where should i bugreport if it's a gpl violation?
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Aug 03, 2007 6:22 pm    Post subject: Re: how do i convert a video to mpeg2 Reply with quote

mpeg2 is a video codec, but if the tv only failed to play the sound then it's the audio codec you need to look at.

What audio codec was used with the files that failed to play?

It could be any *nix on the tv, my money would be on *bsd as the license will let you do just about anything with it anyway, but even if it was linux, where would the license violation be?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Sat Aug 04, 2007 10:30 am    Post subject: Reply with quote

oops i didn't express myself very well
mabe the tv doesn't reconise the video because of the sound
so i don't know if the mencoder command that i typed is rigt and i need another one
Back to top
View user's profile Send private message
tuam
l33t
l33t


Joined: 04 May 2004
Posts: 765
Location: CGN, Germany

PostPosted: Sat Aug 04, 2007 11:11 am    Post subject: Reply with quote

GNUtoo wrote:
so i don't know if the mencoder command that i typed is rigt and i need another one

Probably your -oac setting was wrong :wink: Do you have a video that works on the box, from which you could learn the audio codec?

FF,

Daniel
_________________
Logic clearly dictates that the needs of the many outweigh the needs of the few. - Spock
The needs of the one outweigh the needs of the many. - Kirk
I refuse to let arithmetic decide questions like that. - Picard
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Sat Aug 04, 2007 12:04 pm    Post subject: Reply with quote

Use Avidemux and use the DVD or SVCD preset to get you started.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Sat Aug 04, 2007 12:46 pm    Post subject: Reply with quote

tuam wrote:
GNUtoo wrote:
so i don't know if the mencoder command that i typed is rigt and i need another one

Probably your -oac setting was wrong :wink: Do you have a video that works on the box, from which you could learn the audio codec?

FF,

Daniel

no i don't have it
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Sat Aug 04, 2007 12:47 pm    Post subject: Reply with quote

yngwin wrote:
Use Avidemux and use the DVD or SVCD preset to get you started.

i am on a ppp link and have 40MB of transfer limit so i can't download it
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Sat Aug 04, 2007 1:14 pm    Post subject: Reply with quote

Code:
mencoder /home/regis/rex/youtube/video.flv -ovc lavc -oac lavc -o video.mpeg2 -lavcopts vcodec=mpeg2video:mbd=2 acodec=mp2 vbitrate=1800 abitrate=128

gives me that:
Code:
# mencoder /home/regis/rex/youtube/che-idea-fla.flvminio-mafia.flv -ovc lavc -oac lavc -o /home/gentux/che-idea.mpeg2 -lavcopts vcodec=mpeg2video:mbd=2 acodec=mp2 vbitrate=1800 abitrate=128
MEncoder dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 2.00GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 0  data: 0x0 - 0xa89a2d
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [FLV1]  320x240  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44  fourcc:0x31564C46  size:320x240  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16le, 64.0 kbit/9.07% (ratio: 8000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
==========================================================================
[mp2 @ 0x871f440]bitrate 224 is not allowed in mp2
Couldn't open codec mp2, br=224.


my version of mplayer:
Code:
# emerge -av mplayer

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/mplayer-1.0.20070622-r1  USE="X a52 aac alsa bl cddb cdparanoia dga dts dv dvd dvdnav enca encode gif gtk iconv* ipv6 jpeg lzo mp2 mp3 musepack openal opengl png pnm quicktime rtc samba sdl speex tga theora truetype unicode v4l vorbis xanim xv xvid xvmc (-3dnow) (-3dnowext) -aalib (-altivec) -amrnb -amrwb -arts -bidi -bindist -cpudetection -custom-cflags -debug -directfb -doc -dvb -esd -fbcon -ftp -ggi -ivtv -jack -joystick -libcaca -lirc -live -livecd -mad -md5sum (-mmx*) (-mmxext*) -nas -oss -radio -rar (-real) -srt (-sse*) (-sse2*) -ssse3 (-svga) -tivo -v4l2 -vidix (-win32codecs) (-x264*) -xinerama -zoran" VIDEO_CARDS="-mga -s3virge -tdfx -vesa" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] n

Quitting.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum