I cannot play large video files... [temporary SOLVED]

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Elisa

I cannot play large video files... [temporary SOLVED]

Post by Elisa »

Hi guys,

due I have not a powerful video card I cannot play large video files. The Mediainfo app shows this:
large_movie_screen-info2.jpg
I've tried VLC, KMplayer as well as mplayer in CLI / terminal which says:

MPlayer SVN-r31918 (C) 2000-2010 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/..../Shakira_The_Sun_Comes_Out_Tour_Cologne_Pienso_en_Ti_Why_Wait.mp4.
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 1280x720 24bpp 25.000 fps 3404.8 kbps (415.6 kbyte/s)
Clip info:
major_brand: isom
minor_version: 1
compatible_brands: isom
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5.
s3fb: Couldn't map S3 registers: Operation not permitted
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 128.1 kbit/8.34% (ratio: 16009->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
Source image dimensions are too high: 1280x720 (maximum is 1024x1024)
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
Source image dimensions are too high: 1280x720 (maximum is 1024x1024)
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
Source image dimensions are too high: 1280x720 (maximum is 1024x1024)
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
Source image dimensions are too high: 1280x720 (maximum is 1024x1024)
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
Source image dimensions are too high: 1280x720 (maximum is 1024x1024)
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
Source image dimensions are too high: 1280x720 (maximum is 1024x1024)
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
Source image dimensions are too high: 1280x720 (maximum is 1024x1024)
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
etc.

So, meanwhile I'll buy a powerful videocard, how I can play that movie:

does anybody know any CLI command which would cause that the video would be "on the fly" resized and simply played in CLI mplayer ?

Or do you know any magic :) CLI command to resize aka de-/recode movie to such format/size, so the movie clip could be played even on a PC with a slower/weak ;) video card ?
Or maybe to do the job in any GUI app but prefer CLI, if possible :wink:

Thanks in advance for any tips or know-how!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
AlbertP
Level 16
Level 16
Posts: 6701
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: I cannot play large video files, video driver problem...

Post by AlbertP »

Your graphics card supports video up to 1024x1024. So you'll have to resize to that resolution.
This command will resize filename.mp4 to 1024x576 and save it in a file named new-filename.mp4:

Code: Select all

ffmpeg -i filename.mp4 -s 1024x576 new-filename.mp4
It's possible that you need to run this on another computer where the gfx card supports 1280x720.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
Elisa

Re: I cannot play large video files, video driver problem...

Post by Elisa »

Thanks AlbertP +1 !
Ok, it's done, one testing file and here are the results:
large_movie_screen-info3.jpg
As for video, it's a bit square-d (1:1, not zoomed etc.) but I couldn't see the original so I am not sure how good the original is.
But unfortunately the audio quality felt down :(

Is it possible to preserve everything, just changing the size ?
Or is that info in man so have to learn it up? ;)
Ok, I'll sign this as temporary solved, thanks AlbertP.

But if anybody would know any tricks, tips, pls, share them! Thanks.
AlbertP
Level 16
Level 16
Posts: 6701
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: I cannot play large video files, video driver problem...

Post by AlbertP »

Indeed, ffmpeg doesn't recode very fast. It also can't use your graphics card's video engine so please be patient.

By the way, what graphics card do you have? You can post the output of inxi -Gx here.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
Elisa

Re: I cannot play large video files... [temporary SOLVED]

Post by Elisa »

+AlbertP:

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G550 AGP (rev 01) (prog-if 00 [VGA controller])
Subsystem: Matrox Graphics, Inc. Millennium G550 Dual Head DDR 32Mb
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32 (4000ns min, 8000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 16
Region 0: Memory at e4000000 (32-bit, prefetchable)
Region 1: Memory at e6000000 (32-bit, non-prefetchable)
Region 2: Memory at e7000000 (32-bit, non-prefetchable)
[virtual] Expansion ROM at e6020000 [disabled]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [f0] AGP version 2.0
Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2,x4
Command: RQ=32 ArqSz=0 Cal=0 SBA+ AGP+ GART64- 64bit- FW- Rate=x1
00: 2b 10 27 25 07 00 90 02 01 00 00 03 08 20 00 00
10: 08 00 00 e4 00 00 00 e6 00 00 00 e7 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 2b 10 84 0f
30: 00 00 00 00 dc 00 00 00 00 00 00 00 09 01 10 20

BTW, how did you counted the new size ? Is that any ratio / proportional or how I could recount my own, if needing smaller ones etc. Thanks.
AlbertP
Level 16
Level 16
Posts: 6701
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: I cannot play large video files... [temporary SOLVED]

Post by AlbertP »

1280x720 has a 16:9 ratio, and the biggest size your Matrox card supports is 1024 (see the error messages in your first post). 1024 * 9 / 16 = 576. So 1024x576 is the biggest possible 16:9 resolution.

The sound from the old file should be fully preserved. If you want better audio & video quality, you'll probably need to use a more powerful computer for the recoding.

By the way, the 3D driver for Matrox cards will be removed in some future Linux release. I think it'll still be there in 12 but 13 may not have it anymore.
The 2D & video driver will stay so it won't affect playing video files.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
Elisa

Re: I cannot play large video files... [temporary SOLVED]

Post by Elisa »

Just reading man and just set some switches for preserving codec and 128k bitrate (not 64 as it did), so I'll see when it's done.
Locked

Return to “Sound”