Jump to content

i have about 450GB of videos, and i want to transcode all of them from MPEG4 to H.264 which is what my chromecast+ipad use, is there a way to do this in one go?

many thanks

CPU: Intel9-9900k 5.0GHz at 1.36v  | Cooling: Custom Loop | MOTHERBOARD: ASUS ROG Z370 Maximus X Hero | RAM: CORSAIR 32GB DDR4-3200 VENGEANCE PRO RGB  | GPU: Nvidia RTX 2080Ti | PSU: CORSAIR RM850X + Cablemod modflex white cables | BOOT DRIVE: 250GB SSD Samsung 850 evo | STORAGE: 7.75TB | CASE: Fractal Design Define R6 BLackout | Display: SAMSUNG OLED 34 UW | Keyboard: HyperX Alloy elite RGB |  Mouse: Corsair M65 PRO RGB | OS: Windows 10 Pro | Phone: iPhone 11 Pro Max 256GB

 

Link to comment
https://linustechtips.com/topic/780582-plex-transcoding/
Share on other sites

Link to post
Share on other sites

Just now, Electronics Wizardy said:

ffmpeg script

do i download it or are the programs i can download?

 

CPU: Intel9-9900k 5.0GHz at 1.36v  | Cooling: Custom Loop | MOTHERBOARD: ASUS ROG Z370 Maximus X Hero | RAM: CORSAIR 32GB DDR4-3200 VENGEANCE PRO RGB  | GPU: Nvidia RTX 2080Ti | PSU: CORSAIR RM850X + Cablemod modflex white cables | BOOT DRIVE: 250GB SSD Samsung 850 evo | STORAGE: 7.75TB | CASE: Fractal Design Define R6 BLackout | Display: SAMSUNG OLED 34 UW | Keyboard: HyperX Alloy elite RGB |  Mouse: Corsair M65 PRO RGB | OS: Windows 10 Pro | Phone: iPhone 11 Pro Max 256GB

 

Link to comment
https://linustechtips.com/topic/780582-plex-transcoding/#findComment-9841358
Share on other sites

Link to post
Share on other sites

Just now, KOMTechAndGaming said:

do i download it or are the programs i can download?

 

download ffmpeg and install/compile.

 

then

for i in *.avi;
  do name=`echo $i | cut -d'.' -f1`;
  echo $name;
  ffmpeg -i $i $name.mov;
done

 

and change the ffmpeg settings, and change file file type you want to encode and whenere you want it.

Link to comment
https://linustechtips.com/topic/780582-plex-transcoding/#findComment-9841366
Share on other sites

Link to post
Share on other sites

H.264 is a video codec , the most popular software encoder that can compress a video using the h.264 algorithm is x264

 

MPEG4  is a collection of standards, or if you mean MP4 , it's a file container.. An MP4 file stores video and audio and subtitles, where the video part is compressed either with MPEG-2 or H.264 (also known as AVC)  or VC1 or H.265 (also known as HEVC) and the audio part is compressed with MP3 or AAC. 

 

For Apple products I guess the desired codecs would be h264 and AAC.

 

So what I'm trying to say is that your videos may already be compressed in H.264 , so you may not achieve smaller files by doing what you're thinking of.

 

Maybe you have 1080p or 720p videos ... then you could get lower the size of your videos by resizing the video frames  to 1280x720 or 960x540 (for 1080p videos) or 640x360 (for 720p videos) and then choosing a minimum quality setting in the video encoder (x264).

 

Handbrake may have some profiles for iPhone / iPad, basically a preset for the x264 encoder, in order to create videos that can be decoded easily on your tablet, with as little as possible battery consumption. Check that out.

MeGUI should also have such profiles, but I'm not sure it has batch processing or some friendly way of converting lots of videos in an automated way.

 

 

 

Link to comment
https://linustechtips.com/topic/780582-plex-transcoding/#findComment-9841506
Share on other sites

Link to post
Share on other sites

Just now, mariushm said:

H.264 is a video codec , the most popular software encoder that can compress a video using the h.264 algorithm is x264

 

MPEG4  is a collection of standards, or if you mean MP4 , it a file container.. An MP4 file stores video and audio, where the video part is compressed either with MPEG-2 or H.264 or VC.1 or H.265 / HEVC  and the audio part is compressed with MP3 or AAC

 

So what I'm trying to say is that your videos may already be compressed in H.264 , so you may not achieve smaller files by doing what you're thinking of.

 

Maybe you have 1080p or 720p videos ... then you could get lower the size of your videos by resizing the video frames  to 1280x720 or 960x540 (for 1080p videos) or 640x360 (for 720p videos) and then choose a minimum quality setting in the video encoder (x264).

 

Handbrake may have some profiles for iPhone / iPad, basically a preset for the x264 encoder, in order to create videos that can be decoded easily on your tablet, with as little as possible battery consumption. Check that out.

MeGUI should also have such profiles, but I'm not sure it has batch processing or some friendly way of converting lots of videos in an automated way.

 

 

 

unknown.png

unknown.png

this is what plex says when playing things on either device

CPU: Intel9-9900k 5.0GHz at 1.36v  | Cooling: Custom Loop | MOTHERBOARD: ASUS ROG Z370 Maximus X Hero | RAM: CORSAIR 32GB DDR4-3200 VENGEANCE PRO RGB  | GPU: Nvidia RTX 2080Ti | PSU: CORSAIR RM850X + Cablemod modflex white cables | BOOT DRIVE: 250GB SSD Samsung 850 evo | STORAGE: 7.75TB | CASE: Fractal Design Define R6 BLackout | Display: SAMSUNG OLED 34 UW | Keyboard: HyperX Alloy elite RGB |  Mouse: Corsair M65 PRO RGB | OS: Windows 10 Pro | Phone: iPhone 11 Pro Max 256GB

 

Link to comment
https://linustechtips.com/topic/780582-plex-transcoding/#findComment-9841512
Share on other sites

Link to post
Share on other sites

The hardware video decoder in iPad may have some limitations, meaning some video streams won't play well on iPad without converting them to another format.

 

Also, in your case plain "MPEG4" may refer to MPEG4 ASP ( DIVX, XVID) , H264 is MPEG4-AVC and H265 is MPEG4-HEVC

 

So what you're watching was probably compressed with XVID and the audio track is probably MP3 or AAC ...

 

Plex knowns the iPad can decode mp3 or aac so does direct streaming for the audio part, but there's few devices which can decode in hardware XVID so Plex knowns the iPad would use more power decoding XVID with the processor compared to using the hardware decoder in its video card, so it decides to transcode the video part to H264 so that the video would play smoothly on the iPad.

 

So if the video doesn't fit in those limitations, PLEX may decide to transcode to a format that would fit those restrictions.

Link to comment
https://linustechtips.com/topic/780582-plex-transcoding/#findComment-9841567
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×