Is it possible to take video data from one online resource and convert it to another format or quality like avi to 3gp,etc from high quality to low with server side scripting languages PHP, PERL, ETC.

Dani AI

Generated

Short answer: yes — live server-side re-encoding is a common solution for serving low‑bandwidth mobile clients, but it requires a real transcoder (FFmpeg, GStreamer, or a streaming server) running alongside lightweight orchestration code in PHP/Perl/Java/C#. PHP/Perl are fine to start/monitor processes and serve playlists, but they do not do the CPU‑heavy encoding themselves.

Typical, proven architecture:

  • Ingest the source stream (RTMP/RTSP/HTTP).
  • Transcode to one or more low‑bitrate renditions (H.264 baseline or legacy codecs, low fps, small resolution).
  • Package for mobile (HLS is broadly supported; legacy phones may need 3GP/MP4).
  • Serve via a web server or CDN; keep short HLS segments (2–4s) for lower startup latency.

Practical tuning tips for 2G/GPRS targets:

  • Combined audio+video << 150 kb/s (many 2G links need 40–100 kb/s); try 64–128 kb/s total to start.
  • Reduce frame rate (8–12 fps), use small resolution (176x144 or 320x180), single audio channel at 24–32 kb/s.
  • Use H.264 baseline profile for widest compatibility; fallback to 3GP/H.263 only if target devices require it.
  • Test on real devices or simulate bandwidth (tc/netem).

Example FFmpeg workflow (start point — adjust bitrates/resolution as needed):

ffmpeg -i INPUT \
  -c:v libx264 -profile:v baseline -preset veryfast -r 12 \
  -b:v 120k -maxrate 150k -bufsize 200k -vf "scale=320:-2" \
  -c:a aac -b:a 32k -ac 1 \
  -f hls -hls_time 3 -hls_list_size 6 /var/www/html/stream/low.m3u8

Operational notes: transcoding is CPU‑intensive — expect to limit concurrent real‑time streams per server unless using GPU accel (NVENC/VAAPI). Use a supervisor (systemd/supervisor) to keep ffmpeg instances running, and verify legal/DRM rights before re‑streaming third‑party channels. For tools and modules, see FFmpeg and the nginx‑rtmp‑module.

As and implied, higher‑level servers in Java/C# exist, but the practical, widely used solution is native transcoders orchestrated from server‑side scripts. Ignore ’s YouTube conversion reply — it doesn’t address live re‑encoding.

Recommended Answers

All 5 Replies

Not sure about PHP or Perl, but I'm sure there are some libraries for Java and C#

hi, bro, first your video file convert Youtube formate. after convert youtube formate copy script and submit any place.

commented: Spammer trahs -4

hi, bro, first your video file convert Youtube formate. after convert youtube formate copy script and submit any place.

Thanks for your support but my actual trouble was taking streaming data from one source and convert or processing it on server for low bandwidth users (2G GPRS QUALITY), and then send this live stream to bottom user or client. e.g., taking data from news34 channel and parse it for low bandwidth users.

ignore reply from is it just rubbish. He posted just to show off his signature to crappy website, completely ignorant to the note that signature links are only visible to users that are logged in, NOT to whole world. Soon we will have in place rule that will take care of such losers.

Back on topic, did you try to look for any libraries as I suggested previously?

every thing is possible in Computer industry but the only one thing is need is HARD WORK
SO i think c# and java can do this Work

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.