Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,938 Members 49,266 Now Online
XDA Developers Android and Mobile Development Forum

AVIA and MP4 on Chromecast

Tip us?
 
Asphyx
Old
#11  
Senior Member
Thanks Meter 294
Posts: 1,771
Join Date: Dec 2007
Quote:
Originally Posted by codified View Post
I'm using MediaInfo to check the codecs in my files, but it's a laborious process to go through each one manually. Is there a way to scan a whole directory of video files and then list the results?
I'm sure there is some program that does it but I can't name any....
I avoid the issue altogether by running a media server that transcodes it to whatever the device is capable and not just the CCast either.

I would check out Plex and Bubble....
 
bhiga
Old
(Last edited by bhiga; 24th March 2014 at 03:11 AM.)
#12  
bhiga's Avatar
Recognized Contributor
Thanks Meter 847
Posts: 2,191
Join Date: Oct 2010

 
DONATE TO ME
Quote:
Originally Posted by codified View Post
I'm using MediaInfo to check the codecs in my files, but it's a laborious process to go through each one manually. Is there a way to scan a whole directory of video files and then list the results?
Use the CLI (command line interface) version of MediaInfo.

Here's a quick batch file I put together. It may be glitchy, but should work, as it's based off another batch processor I've been working on for a while.

It assumes your structure contains a single level of subfolders, for example:
D:\My Videos\Foo the Epic\Foo1x01.mp4
D:\My Videos\Foo the Epic\Foo1x02.avi
...
D:\My Videos\Foo the Epic\Foo1x12.divx
D:\My Videos\Bar the Final\Bar1x01.mov
D:\My Videos\Bar the Final\Bar0x02.qt
...
D:\My Videos\Bar the Final\Bar0x10.avi

You would point MediaInfoBatch at "D:\My Videos" and set a logfile name like MyVideos.txt
MediaInfoBatch "D:\My Videos" MyVideos.txt
Note double-quoted path as it contains spaces. Double-quoting is also necessary if it contains ampersands. It doesn't hurt to just double-quote it anyway.

Save as MediaInfoBatch.bat (or whatever you want, but then you'll have to change the syntax text).
Easiest to throw it into the same folder as the CLI mediainfo.exe

Code:
@echo off
rem MediaInfoBatch
rem -------------
rem Runs command line interface (CLI) mediainfo on each file in each subfolder of the specified location
rem First parameter should be target directory, enclosed in double-quotes if there are spaces or ampersands within
rem   Assumes files are in subfolders within the target, ie D:\Movies\Title1\file1 ... D:\Movies\Title20\file30
rem     should be executed as MediaInfoBatch.bat D:\Movies
rem Second parameter should be filepath for logfile, enclosed in double-quotes if there are spaces or ampersands within

rem Check for proper command line
IF %1a==a GOTO syntax
IF %2a==a GOTO syntax

rem Remove double-quotes in parameter
set tmp_MediaInfoBatch_Target_raw=%1
set tmp_MediaInfoBatch_Target=%tmp_MediaInfoBatch_Target_raw:"=%
set tmp_MediaInfoBatch_Logfile_raw=%2
set tmp_MediaInfoBatch_Logfile=%tmp_MediaInfoBatch_Logfile_raw:"=%

GOTO check_prereqs

:syntax
	echo MediaInfo Batch processor
	echo -------------------------
	echo Syntax: MediaInfoBatch [path] [logfile]
	echo   Where
	echo     [path] is root path to *folders* to be processed.
	echo         Do NOT include trailing backslash.
	echo         Ex: C:\MyVideos
	echo     [logfile] is filepath for logfile to contain output.
	echo         Ex: C:\MyVideos\MediaInfo.txt
	echo     Enclose any paths with spaces or ampersands in double-quotes.
	echo         Ex: "C:\My Videos"
	echo Example:
	echo     MediaInfoBatch C:\MyVideos C:\MyVideos\MediaInfo.txt
	echo   will run MediaInfo on all files in the first level of directories
	echo   under C:\MyVideos and write the output to C:\MediaInfo.txt
	pause
GOTO end


:check_prereqs
	IF NOT EXIST MediaInfo.exe (
		echo MediaInfo.exe is missing.  We need the Command Line Interface version of MediaInfo.  Please put it in the same directory as this batch file.
		pause
		GOTO end
	)
GOTO main

:main
rem Look in target location
FOR /f "tokens=* usebackq" %%G IN (`dir /b /a:d "%tmp_MediaInfoBatch_Target%"`) DO (
	rem Interate through subfolders
	FOR /f "tokens=* usebackq" %%H IN (`dir /b /a:-d "%tmp_MediaInfoBatch_Target%\%%G"`) DO (
		rem Run mediainfo on each file
		mediainfo -f "%tmp_MediaInfoBatch_Target%\%%G\%%H" >>"%tmp_MediaInfoBatch_Logfile%"
	)
)

:end
Chromecast threads: FAQ - READ THIS FIRST! / Rootable Serial Numbers | Root Mini-FAQ | FlashCast flashing Mini-FAQ
BYO powered OTG cable | WiFi Bandwidth and Router considerations | Not all 1080p/720p is same
Search Tip: Google search terms site:forum.xda-developers.com for only XDA forum results. Example
Follow the rules / Use 'Search' before posting / Post in the correct sections / Do not spam the board / Press thanks, don't post 'Thanks'
The Following User Says Thank You to bhiga For This Useful Post: [ Click to Expand ]
 
Dragontickler
Old
#13  
Member
Thanks Meter 6
Posts: 57
Join Date: Oct 2012
Hello,

I have uninstalled Avia and have started using LocalCast. It plays MKV files effortlessly! No conversion is needed at all!

All the best!
The Following User Says Thank You to Dragontickler For This Useful Post: [ Click to Expand ]
 
gerg004
Old
#14  
gerg004's Avatar
Senior Member
Thanks Meter 153
Posts: 407
Join Date: Oct 2010
Also had this problem, avia not casting mp4. Downloaded Real Player and it fired up the mp4 perfectly.

Sent from my SM-N900V using Tapatalk
 
bawiret
Old
#15  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Aug 2014
Chromecast has limitation in the input formats. Only video containers MP4 and WebM encoded with Video codecs H.264 High Profile Level 4.1, 4.2 and 5, VP8 and audio codecs HE-AAC, LC-AAC, CELT/Opus, MP3, Vorbis are compatible with Chromecast.

When send local media which are with extensions .mp4 or .webm through Chromecast to TV, it succeeded in most cases but sometimes failed. That is because MP4 and WebM, as video container, contain different video or audio codecs which Chromecast doesn't recognize.

I used to use a little piece of software called Faasoft Video Converter to convert MP4, AVI and other various video formats to Chromecast compatible formats, happy with it.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes